Lasm is a new open-source project that brings the Lean programming language to the browser, Node, serverless, and edge environments. The author describes formal verification as the next major evolution of software engineering, and sees Lean as especially promising because it is a general-purpose language with verification built directly into it.
With Lasm, developers can write full web applications, from frontend to backend, in Lean and formally verify them. The project imagines an Express or Hono-style server running on Cloudflare Workers with its specification formally verified. Lasm compiles ordinary Lean 4 programs ahead of time to WebAssembly, so one codebase can become a Node server, a serverless or edge function, a WASI/Fastly module, or a browser app.
The flagship example, Conduit, is described as a Real World app with 117 proved theorems. Lasm is distributed on npm and bundles Lean 4.35.0 and Lake, so users need only Node, Bun, or Deno to get started. It supports Linux, macOS, and Windows, and can deploy to targets including AWS Lambda, Vercel, and Netlify Functions.
The project was built largely by Claude Opus 5.5 under the author's high-level direction. The article is a Hacker News post with 10 points and no comments at the time of capture.
Source: Hacker News · Summarized by HeadlinesBriefing