Weekly

News about Lean, the theorem prover and programming language.

Verification

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

Verification

Columbia University and CertiK researchers find 66 GPU kernel bugs with TensorLean

The researchers formally verified 2,078 production kernel instances from FlashAttention, DeepSeek DeepGEMM, and LinkedIn Liger Kernel, with TensorLean's semantics and soundness proofs mechanized in Lean 4. Standard unit tests and benchmarks did not catch the previously unknown defects; per CertiK, 57 of the bugs can corrupt outputs or crash real runs.

TensorLean: 66 Hidden GPU Kernel Bugs in FlashAttention, DeepGEMM, and Liger
Image: explainx.ai

Checked against: explainx.ai

Verification

Wenji Fang and co-authors present LeanHardware for verifying LLM-generated Verilog in Lean

LeanHardware executes Lean specifications to expose ambiguities for designer clarification, then translates generated Verilog into Lean and builds Lean-checked refinement proofs against the clarified specifications. On four benchmarks (329 designs), LeanHardware reaches 91% to 98% functional correctness, with unbounded refinement proofs for 79.0% of designs against cycle-level specifications and 92.1% against transaction-level ones.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2612.05355wjfang838-coder/LeanHardwarepaperswithlean.com

Verification

Quietus uses Lean to find 32 DMA violations in Linux and Zephyr

Samarth Narang and Brandon Reagen formalize in Lean when drivers can safely reuse buffers that devices read and write through direct memory access (DMA), independently of the CPU. A checker, proved sound and complete and run in the Lean kernel, found violations in 25 Linux and 4 Zephyr drivers; some were reproduced on hardware.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2612.04862paperswithlean.com

Verification

Hiroki Fukui audits four open-source dive planners with Lean-proved theorems

Hiroki Fukui built an interval-arithmetic scorer on Lean 4 theorems showing when endpoint ceiling checks certify a whole constant-rate ascent. All four planners violated the gradient-factor line from their own settings (dive-deco in 372 of 720 schedules, Subsurface in 64 through a 1-mbar rounding); single code changes removed most or all violations.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2612.05016hirokifukui/zhl16c-gf-verifypaperswithlean.com

Verification

François Garillot formalizes zero-knowledge results for STARKs in Lean 4

The ZkStarks library proves perfect honest-verifier zero-knowledge for protocols in Ulrich Haböck and Al Kindi's "A note on adding zero-knowledge to STARK". The Palomar registry entry isolates the core of Lemma 1 for Lean's Comparator: under the paper's hypotheses, the randomized witness evaluation measure does not depend on the witness.

Checked against: palomar-registry.orghuitseeker/zk-in-starks-lean

Verification

MedLean uses Lean 4 to audit LLM cancer care plans against guidelines

Zhihao Tang, Chao Li, and Jun Zhao audit four guidelines (1,861 executable rules) with Z3 and prove 23 machine-checked theorems about MedLean's online verification kernel; static auditing uncovers contradictions in published guidelines. Across 428 multi-cancer cases with DeepSeek-V4.1-Flash and GPT-6.2-Astra, MedLean drives high-risk releases to 0% and lifts whole-plan certification to 98.4% and 100%.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2612.06157

Verification

Tripp Lyons publishes Recube, a GameCube recompiler written and proved in Lean

Recube translates a game's PowerPC code into AArch64 assembly ahead of time, and Lean checks a proof that, in trusted machine models, the emitted code behaves as the guest code does. The Legend of Zelda: The Wind Waker and Super Smash Bros. Melee, the two games tested so far, run natively on macOS.

Checked against: tripplyons/recube

Verification

François Garillot and Brandon Kase formalize recursive FRI protocol soundness in Lean

SPLAT, registered in the Palomar registry, formalizes the generalized subspace checks and recursive FRI soundness proof from Alex Evans and Guillermo Angeris's paper "Succinct Proofs and Linear Algebra", covering arbitrary linear challenge codes and basis-aligned subspaces. It includes adaptive prover strategies and a concrete recursive Reed-Solomon instantiation, with five results selected for comparison.

Checked against: palomar-registry.orgbkase/splat

Verification

NVIDIA's CUDA-Oxide 0.5 previews Lean 4 verification of GPU kernels

CUDA-Oxide, NVIDIA's experimental Rust-based CUDA compiler, now brings in the Lean 4 proof assistant through #[verify] for compile-time proofs of adherence to memory bounds, freedom from race conditions, barrier uniformity, and asynchronous hardware lifecycle invariants. Version 0.5 also adds a test suite of 45 GPU synchronization bug/fix pairs.

Checked against: linuxmint.hu

Verification

Aurora Silicon builds a safety-checking compiler for Apple's Neural Engine in Lean

The compiler, vane, targets Neural Engine hardware on Linux via the accel/ane kernel driver and statically verifies bitfield bounds, tiling legality, 2 MiB L2 SRAM footprints and multi-task hazard freedom before emitting binaries. On-device testing uses vane-runner (a zero-dependency Go device runner) and independent reference models for every supported operator.

Checked against: aurora-silicon/vane

Verification

Adnan Rashid presents an executable Lean 4 framework for general fault trees

Fault trees model failure propagation in safety-critical systems; the SBMF 2026 paper defines executable Boolean semantics for AND, OR, NOT, NAND, and NOR gates and proves every positive (AND/OR) fault tree semantically monotone. Models of a satellite solar array's hinge subsystem and complete mechanical system (33 distinct basic events) need no model-specific monotonicity proofs.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2612.02057codeforpapers3/gftlean4

Verification

TheoremV's LLM agents prove RTL designs equivalent to reference models in Lean

TheoremV, which compiles Register-Transfer Level (RTL) designs into executable Lean models, verified silicon-proven floating-point and matrix units (XiangShan Fudian and NVDLA CMAC) and the PicoRV32 core with proofs of up to 170,923 lines. Commercial equivalence checkers timed out on most of these, and TheoremV found a RISC-V spec bug in PicoRV32's FENCE instruction.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.36857paperswithlean.com

Verification

Anatoly Yakovenko publishes a Lean-verified JIT compiler for Solana sBPF

The lean-svm-jit repository pairs a JIT compiler from Solana sBPF v0 through v3 to x86-64 with a drop-in LiteSVM replacement; its README reports no sorry, custom axioms or external Lean dependencies. The JIT is self-compiled directly from Lean 4 into a 25 KB x86-64 shared library with zero dependencies, not even libc.so.6.

Checked against: aeyakovenko/lean-svm-jit

Verification

Hugo Cardoso releases SABRINA, a kernel-verified OWL 2 DL reasoner in Lean

SABRINA proves its decision procedure sound and complete for admitted inputs, with zero sorry, only standard axioms, and an audit of 106 headline theorems. It covers all 16 class constructors and 33 XML Schema and OWL datatypes, handles DL-Safe SWRL rules, and passes the W3C OWL 2 DL conformance gate (42 of 42).

Contribute to TheHugoHypothesis/sabrina-reasoner development by creating an account on GitHub.
Image: github.com

Checked against: TheHugoHypothesis/sabrina-reasoner

Verification

Nanyang Technological University's LEAP checks robot actions against Lean specifications before execution

A language-model agent writes a task's valid actions as a Lean 4 action family over a physics-law library; the chosen action is checked with exact interval arithmetic and, optionally, the Lean kernel. LEAP raises Claude Opus 5.5's LIBERO-PRO success from 48.0% to 95.0% and GPT-6 Astra's real-robot successes from 5 to 13 of 15.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.36564WeichenFan/LEAP

Verification

Dominik Mascherbauer and Bernhard K. Aichernig verify an L* implementation in Lean

AALean, a roughly 2,400-line artifact built on Mathlib, implements Angluin's L* algorithm for learning minimal deterministic finite automata from membership and equivalence queries, and proves termination, minimality, and correctness directly about the executable code. The paper calls it the first mechanized correctness proof of classical L*, whose guarantees had rested on pen-and-paper proofs.

Image: paperswithlean.com

Checked against: paperswithlean.comdoi.org

Verification

Daniela Kaufmann and Pedro Saccomani prove multiplier circuits correct in Lean

Checked separately, PAC (algebraic) and LRAT (SAT) certificates from multiplier verifiers AMulet2 and TalisMan2 do not establish circuit correctness. The paper composes them into one Lean 4 correctness theorem for the circuit in the input AIGER file; all 192 AOKI multipliers with 64-bit operands are certified, each theorem checked in under seven minutes.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.37210doi.orgpaperswithlean.com

Verification

Researchers verify the GreatGramma grammar-constrained decoding algorithm in Lean 4

Grammar-constrained decoding restricts a language model's next-token choices so its output remains extendable to a string accepted by a user-provided grammar. Manu Bhat, Arnav Dandu, Kanghee Park, and Loris D'Antoni prove GreatGramma's executable checker sound and complete under explicit assumptions, and the formalization found an end-of-stream bug in the published lexer construction.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.38514

Verification

Yan Liu and Alex Potanin formalize CoreFi, a calculus for embedded systems

CoreFi, derived from Communicating Sequential Processes, models bounded shared-memory channels and is instantiated on the verified microkernel seL4 and its MicroKit framework. The Apache-licensed Lean 4 proofs, built on Mathlib and CSLib with a coding agent's help, show every well-formed system (acyclic dependencies, partitioned guarded choices) is deadlock-free and deterministic.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.40661fiducia-lang/fidus

Verification

Konstantinos Karagiannis machine-checks Grover attack costs on AES and SHA-2 in Lean

The paper, built on DeepMind's Lean 4 formal-quantum-computation library, bounds Grover search costs when a depth cap (NIST's MAXDEPTH) forces attackers to parallelise, and shows recent AI-discovered parallel-search protocols give no gain for single-target key search. It verifies the Boyar-Peralta AES S-box against the FIPS-197 table on all 256 inputs; no proof uses sorry.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.41529

Verification

Kiran Gopinathan's LLM agents build a Lean-verified FizzBuzz beating the human record

The agents wrote buzzsaw, 1,053 lines of x86-64 assembly, and proved the binary correct; it prints FizzBuzz at 336 GB/s on a Ryzen 9 9950X, against the 224 GB/s human record. The proof trusts Kraken's x86-64 instruction semantics plus an agent-ported encoding of x86-TSO (the standard model of x86 multiprocessors) and the Linux pipe.

Checked against: kirancodes.mekiranandcode/fastest-fizzbuzzleanprover.zulipchat.com

Verification

Zhao-Yun Chen and coauthors verify quantum oracle bindings in Lean

Oracle-based quantum algorithms are proved correct before oracle implementations are chosen (late binding). The paper proves in Lean that an accepted binding transfers the caller's proof when implementations meet public matrix contracts and return private workspace to zero; the accompanying OracqVerify checker is demonstrated on Grover search, with checks scaling to 4,096 iterations.

Image: paperswithlean.com

Checked against: paperswithlean.comquantum-atlas-ai/OracqVerify

Verification

Adnan Rashid verifies an executable human-robot collaboration safety monitor in Lean

Built with the LeanSafeHRC framework, the monitor assigns the runtime state one of four risk levels and selects the least restrictive action the safety policy permits. Machine-checked proofs over the same definitions used to execute it establish policy soundness, determinism, and minimal intervention, and a collaborative-assembly case study covers seven scenarios.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2611.37697codeforpapers3/leansafehrc

Verification

Dev D. Goyal releases ACPOG, a Lean-verified checker for model counting

ACPOG checks algebraic certificates for plain, rational-weighted and complex-weighted solution counts from raw DIMACS CNF files; a core Lean 4 proof (92-line trusted kernel, no Mathlib) shows accepted certificates give exact weighted counts. Existing verified toolchains certify decision-DNNF circuits, which grow exponentially on some problems algebraic counters solve in polynomial time.

Image: doi.org

Checked against: leanprover.zulipchat.comdoi.orgdvgyl/subsat

More news