Weekly

News about Lean, the theorem prover and programming language.

Verification, page 2

Software, hardware, protocols, and cryptography verified with Lean. 148 items, newest first.

Verification

zkSecurity adds a Lean-checked Midnight Network SHA-256 challenge to zkGolf

zkGolf, a contest for optimizing zero-knowledge circuits, now asks for a cheaper version of Midnight's SHA-256 circuit, used in proofs that show a statement is true without revealing the underlying data. Human developers and AI agents can enter, and a design counts only if Lean 4 confirms it does exactly the same job.

Image: cryptonews.net

Checked against: cryptonews.net

Verification

Researchers formalize Dugong, a unified DAG consensus protocol, in Lean 4

In Dugong (by George Danezis, Lefteris Kokoris-Kogias and Alberto Sonnino), a parameterized core algorithm, the Decider, implements eight existing protocols and four new ones. About 125,000 lines of Lean, with most proofs produced by AI agents, prove safety and liveness, show that production mechanisms compose with every configuration, and repair gaps in published proofs.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.27473paperswithlean.comasonnino/mysticeti

Verification

José Valim's Lynx lets developers write proofs about Erlang/Elixir programs in Lean

Lynx translates the whole program and its properties, written in Elixir or Erlang, to Lean, where Lean's kernel checks the proofs and concurrent properties must hold for every interleaving of processes. The README warns users to expect bugs and says coding agents produced the project's proofs, while humans designed and reviewed the translation layer.

Checked against: josevalim/lynx

Verification

Gabriel Ebner proves in Lean 4 that SafeJIT's shipped binaries never crash

SafeJIT is a small JavaScript engine with a speculating baseline JIT; the theorem covers its RISC-V and x86-64 executables on any input, executed instruction by instruction on Sail ISA models. The proof uses separation logic (iris-lean) over a model of a Linux user process and does not trust the C compiler, assembler or linker.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.28436

Verification

mlc-ai's TxVerify verifies compiled production GPU kernels with Lean proofs

A shared core holds the rules the PTX manual states clearly; conditions a kernel needs beyond the core become assumptions, listed in its theorem for a person to review. Lean checks proofs of four properties, including safety (no undefined behaviour or data races), for kernels such as FlashAttention-4 forward (4,897 PTX instructions).

Checked against: mlc-ai/tx-verify

Verification

Naoya Yamashita finds 17 unreported Clojure bugs using Lean and differential testing

Naoya Yamashita modeled integer and bit arithmetic in Lean, where bv_decide searched for counterexamples, and tested the persistent data structures against java.util collections. The bugs, none found in Clojure's JIRA or on ask.clojure.org, include a reduce on vector-of (a primitive-array vector) that never finishes and a removal from hash-map's HAMT that hides another key.

I checked Clojure's core with Lean and differential testing and found unreported bugs in HAMT and vector-of
Image: s.conao3.com

Checked against: s.conao3.comnews.ycombinator.com

Verification

Luca Dall'Olio's Clang plugin certifies cost bounds with a Lean-verified checker

For real-time C and C++ functions in a linear fragment, the plugin emits certificates that the checker, compiled from a Lean 4 definition proved sound in a companion paper, validates with integer arithmetic only. On 29 TACLeBench benchmark kernels, it bounds 142 of 220 loops, and 161 of 165 bounded functions receive accepted certificates.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.31449arXiv:2611.31430

Verification

Anatoly Yakovenko publishes lean-svm, a Lean 4 to Solana compiler

lean-svm lets developers write on-chain programs in Lean 4, prove invariants such as lamport conservation with no sorry or custom axioms, and compile the same definitions to Solana sBPF bytecode without LLVM. Its README reports smaller binaries and fewer Compute Units than hand-rolled, zero-dependency Rust compiled with LLVM 22 at -O3.

Checked against: aeyakovenko/lean-svm

Verification

David Tse, Nikhil Vanjani and Psi Vesely propose Praxis, practical witness encryption

Witness encryption encrypts a message to an NP statement so that whoever holds a witness can decrypt. The paper gives Lean 4 proofs of correctness and extraction at its instantiation's parameters, where the ciphertext is 7.88 GiB at 100-bit security, over ten orders of magnitude smaller than in either construction by Hair and Sahai.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.28552

Verification

Anirudh Gupta shares Paralever, a Lean framework for verifying parallel programs

Paralever, a semester project at the Indian Institute of Science under Professor Siddhartha Gadgil, embeds a low-level, MLIR-like language in Lean and generates proofs that a parallel program matches its sequential execution under every schedule. It shows race counterexamples, reads a subset of MLIR, and autoparallelizes sequential code using a toy memory model.

Checked against: AnirudhG07/paraleverleanprover.zulipchat.com

Verification

Liang Song mechanizes the soundness of verifiable LLM inference in Lean 4

FlashProve-Next produces zero-knowledge-masked proofs for individual LLM API responses without modifying native serving or disclosing weights or hidden prompts. Twenty-eight Lean 4 modules (696 declarations, zero sorry, standard axioms only) mechanize its round-by-round soundness and executable verifiers; a Rust verifier checks 8 MiB proofs in 10.1 ms on CPU.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.33741

Verification

Gabriela Moreira announces Lean proofs for Quint specs via Veil

A new Veil model checker is also available through quint verify --backend veil, along with agent skills to help users navigate the new possibilities. Gabriela Moreira's blog post has more details.

Image: x.com/bugarela

Checked against: @bugarela on X

Verification

Ziv paper formalizes type soundness and compiler correctness in Lean 4

Lucas Yunkyu Lee, Sungjin Hwang, and Wonyeol Lee present Ziv, a language embedded in Julia for developing correctly rounded math libraries, with a compiler targeting C; Ziv reimplementations of 19 functions use 2.63x fewer lines of code. Codex helped construct parts of the Lean artifact, with every proof checked by the Lean kernel.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.30346paperswithlean.com

Verification

Anatoly Yakovenko publishes percolator-lean, a formally verified Solana perpetuals DEX

Written in Lean 4 and compiled directly to sBPF v3 bytecode via lean-svm, the DEX carries machine-checked proofs that adversarial markets cannot drain other markets, untouched users, or other markets' insurance pools. The README says the code is unaudited, for educational and research purposes only, and the proofs cover only modeled specifications.

Checked against: aeyakovenko/percolator-lean

Verification

Supun Manathunga's StatClaim checks statistical claims about study designs in Lean

StatClaim, a declarative domain-specific language for research protocols and statistical analysis plans, uses Lean to prove claims about Type I error, familywise error, power and interval coverage, under stated assumptions. Its validation reproduces 102 optimal and minimax two-stage designs from Simon's published tables and verifies their error and power bounds in Lean.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.30021

Verification

Erat Demo publishes Grounding, a Lean toolkit for reasoning over hardware models

The GitHub repository, created on November 18, 2026, describes Grounding as a toolkit for reasoning over RTL and gate-level models of digital hardware in Lean. Contributors sign off commits to certify contributions under the Developer Certificate of Origin.

Checked against: EratDemo/Grounding

Verification

Intrinsic Technologies verifies ten RustCrypto crates' compiled code against Lean specifications

The rustcrypto-fv repository's 71 theorems, covering operations in crates such as sha2, sha3, aes-gcm, chacha20poly1305 and p256, state that the crates' compiled x86-64 code, run on lean-x86's machine model, computes their Lean specifications. Comparator checks each theorem's statement, axioms and kernel validity, and the specifications are tested against published vectors.

Checked against: intrinsic-technologies/rustcrypto-fv

Verification

CertiK and Columbia University researchers formally verify GPU kernels in Lean

Using TensorLean, which checks compiled PTX code, the researchers proved 83 of 149 kernel instances conform to their Lean specifications, in what CertiK calls the world's first formal verification of production-grade AI operators. The team found 38 correctness issues across 6 libraries, including 2 in DeepSeek's DeepGEMM and 23 in the FlashAttention operator library.

CertiK and Columbia University Researchers Release TensorLean Results, Completing the World's First Formal Verification of Production-Grade AI Operators in DeepSeek and FlashAttention
Image: panewslab.com

Checked against: panewslab.com

Verification

@rasidency publishes heresy, a Fil-C to Haskell compiler with Lean-checked output

The compiler itself is written in OCaml; for accepted programs, Lean proves that the source and lowered models agree on completed observations, including exit status and stdout. A separate native backend emits a 132-byte x86-64 Linux executable for a closed integer expression and proves its exit status in the machine model.

Checked against: rasidency/heresy

Verification

Long Qian and André Platzer check ODE reachability proofs with Lean 4

The paper's differential dynamic logic proofs certify ordinary differential equation (ODE) reachability, like UNSAT proofs in satisfiability solving, and any approximation correctly computed via Taylor models (a technique for rigorous ODE bounds), even by untrusted algorithms, provably yields one. The checker, implemented in Lean 4 for improved performance, can formally verify ARCH competition benchmarks.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.25303

Verification

Tether monitors AI agents with security policies written in Lean 4

Tether, by Meghana Aparna Sistla and coauthors, sandboxes proposed commands and commits side effects only if a policy allows them; its Lean 4 DSL is both the executable monitor and the specification for mechanized proofs. On coding-agent benchmarks, one shared policy blocks 100% of in-scope attacks with a 4.7% benign false-positive rate.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.25599paperswithlean.com

Verification

Daksh Shami and Charles Yuan verify MARBLE's rewrite rules in Lean 4

The MARBLE language compiles publication-style matrix formulas into quantum circuits, applying algebraic rewrite rules that decompose each matrix into simpler matrices with known circuits; Lean 4 proofs show every rule preserves matrix semantics. MARBLE matches or surpasses 37 of 39 published baselines and produces exponentially smaller circuits than the leading tool FABLE.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.17756paperswithlean.com

Verification

&Truth says its proofs can be independently checked using Lean

In a post on X, &Truth argues that mathematical proof offers stronger assurance by establishing that code meets precise requirements, under explicit assumptions. Its initial focus is memory safety and absence of undefined behavior.

Checked against: @andTruthPBC on X

Verification

John Zhuoyang Ye and co-authors present QCCDCert, a Lean-verified trapped-ion quantum compiler

Hardware descriptions and operating rules are compiler inputs, so one theorem covers every candidate design: compiled code preserves program behavior and obeys those rules. QCCDCert provably avoids 11 defects found in three previous compilers, and an AI agent proposing devices from checked compilation results beats the fastest fixed design on 71 of 75 benchmark programs.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.23469paperswithlean.com

More news