Lanes: an extended standard library and concurrent runtime for Lean 4
// momentum
// why it's here
- Created 6 days ago and already shipping
- Built almost entirely by one person
- Health 97/100 with only 29 stars
- 46 open issues handled by one or two people
// how to help
// readme
Lanes
Full-stack, formally verified web applications in Lean 4.
Lanes is a web framework, database layer, and verified runtime for Lean 4. You write your
applicationβs tables, SERIALIZABLE transactions, typed HTML views, and routes as pure Lean
code, and Lanes runs them on a native per-core event-loop server backed by PostgreSQL or SQLite
β with outbox jobs, live-updating routes, auth, WebSockets, S3, and Redis built in.
Because your logic is pure and deterministic, the exact code you deploy is checked by a
counterexample finder (FindDb), explored by a model checker (Check.Search), and proved
correct with Leanβs kernel (txn_wp) β no separate spec language, no runtime ORM magic, and
no TypeScript build step.
It is built for software that agents write and people must be able to trust: an agent can write code faster than anyone can review it, so business invariants, authorization rules, and schema migrations are machine-checked alongside the code that runs.
Status: early preview (
0.0.3, actively reshaping toward0.1). See Status.