Harsh Gupta on X: "LeanDB: A strongly typed SQL Frontend " / X
x.com · 2,459 words · saved by 1 readers
LeanDB: A strongly typed SQL Frontend
At Theoric Labs we believe agentic AI combined with Formal methods can “solve” software. Essentially, we believe software will be fast, and bug free. LeanDB is an experiment in applying part of this idea to databases: describe data and its properties in Lean, while using SQL databases for storage and querying. A Primer on Types in Lean Types are powerful because they allow us to check properties before the code is run. A function expecting a number should not accidentally receive a string. Lean takes this much further. We can express properties as propositions, construct proofs of those…
saved by
related reading
- Lean (proof assistant) - Wikipediaen.wikipedia.org
- A Lean Syntax Primer — overreactedoverreacted.io
- Lean Programming Languagelean-lang.org
- Type theory - Wikipediaen.wikipedia.org
- Lean Game Serveradam.math.hhu.de
- Against SQLscattered-thoughts.net
- 4. Sets and Functions - Mathematics in Lean v4.19.0 documentationleanprover-community.github.io
- "Why don't you use dependent types?"lawrencecpaulson.github.io
- SQLFluffsqlfluff.com
- The Advantages Of Flexible Typingsqlite.org
- Putting Task Expertise into RL Achieves State-of-the-Art Performance on Text-to-SQLthinkingmachines.ai
- propositions-as-types.pdfhomepages.inf.ed.ac.uk