Tech News
← Home  ·  All topics

Lean Proofs

2 GoKawiil briefs on this topic

Trail of Bits used AI to build custom tools before auditing Miden zkVM

Trail of Bits reports that ahead of auditing the Miden zero-knowledge VM, its team spent six months using AI agents to build an LSP server, decompiler, static analysis engine, and a Lean formal model of the VM executor from scratch, since almost no developer tooling existed for Miden's custom assembly language. The resulting tools and formal proofs helped uncover a security flaw allowing a malicious prover to forge Falcon signatures and steal funds from Miden account holders, plus 95 machine-checked correctness proofs covering much of the Miden core library.

New language Bend uses formal proofs to stop AI coding agents from shipping bugs

Bend is a newly introduced programming language that compiles to native code, runs on multiple CPU cores or GPUs without manual threading, and includes a built-in proof checker similar to Lean and Rocq. Developers can write rules in a LAWS.bend file, and Bend will refuse to accept any AI-generated code change that violates those rules, checking each change in about a second. Its creators demonstrate this by showing an AI agent attempt to break a game's win condition, which Bend blocks until the AI produces a compliant fix.