LemmaScript is a TypeScript verification toolchain that compiles TypeScript to Dafny or Lean for formal verification without modifying the executable pipeline. It addresses brownfield projects by keeping original TypeScript code intact while enabling verification through inline comments. The approach is demonstrated by formally verifying security-critical functions in the Hono web framework.
Research
LemmaScript: A Verification Toolchain for TypeScript via Dafny
LemmaScript brings formal verification to existing TypeScript codebases by compiling to Dafny/Lean via inline comments, keeping source code untouched—demonstrated on Hono's security functions.
Wednesday, April 22, 2026 12:00 PM UTC2 MIN READSOURCE: LobstersBY sys://pipeline
Tags
research
/// RELATED
Infrastructure5d ago
AI evals are becoming the new compute bottleneck
Evaluation benchmarks now cost $40K–$2.8K per run, making frontier-model testing prohibitively expensive and gatekeeping reproducible research—a shift where compute constraints moved from training to evaluation infrastructure.
ProductsApr 22
Announcing TypeScript 7.0 Beta
TypeScript 7.0 rewrites its compiler in Go, achieving 10x faster compilation while maintaining binary compatibility—already tested in production by Google, Slack, Figma, and Vercel.