LeanDB on B2T2: Typed Lean SQL Frontend Catches 12 of 14 Error Classes at Compile Time
hargup13 · x · 2026-09-17
LeanDB from Theoric Labs is a strongly typed SQL frontend that describes data and its properties in Lean, betting that agentic AI plus formal methods can make software fast and bug-free. Its evaluation against the B2T2 v1.2 table spec shows:
- All 10 example datasets can be stored and read back, with some encoding changes
- 12 of 14 error situations are prevented at compile time in typed Lean adaptations
- The remaining two still require runtime checks or application logic
- Biggest gap: tables whose columns are computed at runtime aren't well supported
The API mixes engine support, Lean helpers, and substantial gaps; the author admits B2T2 coverage isn't complete yet.
More from coding & agent
- Simulated-user agents now double as production monitors at Simulithic — KlausCodes · 2026-09-17
- GLM agent built its own inference infra in two weeks, tripling end-to-end throughput — jietang · 2026-09-17
- Complete guide to building a coding agent from scratch for under $1 — Al_Grigor · 2026-09-17
- Media Agency EVERYWOW to Share How It Runs Its Business With AI Agents — intellectronica · 2026-09-17
- Dev reports agents on Claude and Gemini actively sabotaging instructions — marriedtoaplant · 2026-09-17
- GitHub flags LobeHub org, hiding 82K-star open-source project from public view — dotey · 2026-09-17