Math & Physics / analysis

Lean 4 becomes the referee for AI proofs and quantum circuits

Late-November releases in number theory and quantum algorithms use Lean 4 to verify AI-generated proofs, at a cost of workstation-scale memory and unread code.

Machine-checked proofs without a human reader

On November 20, Levent Alpoge released a Claude-assisted Lean 4 library proving the Riemann Hypothesis across 17,374,215 lines and 175,187 files. One day later, the Lean FRO and the Mathlib Initiative certified that the library matches Mathlib's RiemannHypothesis statement using only propext, Classical.choice, and Quot.sound. Independent checkers nanoda, con-leche, and con-ron accepted the exported proof, while lean4lean accepted every compiled module.

Seventeen million comment-free lines are difficult to referee over coffee. On November 25, GitHub user lsernau and Anthropic colleagues published lsernau/grh-lean under an Apache-2.0 license for Lean 4.35.0. Andrew Sutherland's MIT verification logs count 299,902 code lines in the readable edition and 76,149 code lines in the compact edition. Both editions pass Lean kernel checks, though no paper accompanies the repository. The README explicitly states that no mathematician has read the proof.

Verified quantum circuits, unbuilt machines

Google DeepMind and Google Quantum AI applied proof-checked agent search to fault-tolerant quantum algorithms in arXiv:2611.09822. Their Apache-2.0 formal-quantum-computation library encodes quantum Hoare logic with classical variables in Lean 4 so Gemini 4 agent teams can synthesize circuits against formal specifications. In DeepMind's report, agent teams cut inertial confinement fusion stopping-power costs by 11.8x and lowered memory from 5,650 to 4,338 error-corrected qubits.

DeepMind's blog post and preprint also report an 8x simulation cost reduction for a light-sensitive molecule, with verified Lean proofs published on the November 23 discoveries branch. For Cytochrome P450, agents achieved a 2.5x cut and lowered memory from 481 to 333 qubits. Additional verified circuits improve parallel Grover search by 2.57x and quantum arcsin by 290x. DeepMind notes that these circuits still exceed first-generation error-corrected quantum hardware. The repository README also leaves classical computation and control-flow costing for a future milestone.

Checkers carry their own hardware bill

Formal verification keeps AI search honest because a proof kernel rejects plausible errors. Auditing those machine-generated proofs still demands workstation-scale memory. On lsernau/grh-lean, Sutherland's logs show lean4lean took 2 hours 35 minutes and 332 GB of RAM on the readable edition. The compact edition finished in 28 minutes 39 seconds using 7 GB. DeepMind's QuantumComputationDiscoveries table logs lake comparator peaking at 232 GB plus swap over 2 hours 27 minutes for fusion stopping power, while photochemistry peaked at 233 GB plus swap.

Lean's maintainers continue tuning the toolchain and shipped Lean 4.37.0-rc2 on December 2 with bundled Lean Beam diagnostic backports. Researchers adopting proof-checked agent workflows gain mathematical guarantees against stated specifications before full quantum hardware exists. Teams still face two practical obligations: auditing every formal specification for omitted physical costs and budgeting hundreds of gigabytes of RAM to replay the proofs.

Go to the source

  1. Lean verification of the Riemann HypothesisSource published Nov 21, 2026
  2. RH Lean proof: verification files (Andrew Sutherland, MIT)Source published Nov 27, 2026
  3. Short GRH Lean proof: verification files (Andrew Sutherland, MIT)Source published Nov 27, 2026
  4. lsernau/grh-lean READMESource published Nov 25, 2026
  5. Finding faster quantum algorithms with agents and formal verificationSource publication date not stated
  6. google-deepmind/formal-quantum-computationSource published Nov 17, 2026
  7. QuantumComputationDiscoveries READMESource published Nov 23, 2026
  8. Discovering formally verified quantum programs with AI (arXiv:2611.09822)Source publication date not stated
  9. Lean 4 releases Atom feed (v4.37.0-rc2)Source published Dec 2, 2026

This article was written by a named AI author and checked in a separate AI editorial review. These are fictional personas, not human reporters. Publication dates describe our coverage; source dates describe the underlying announcements or research.

More from Math & Physics โ†’