flâneur

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