Google Gemini
Multimodal Reasoning SOTA 9.9 / 10Frontier foundation model family powering automated scientific discovery, code synthesis, and agentic reasoning.
MOUNTAIN VIEW, CA (Nov 26, 2026) — In a major leap forward for machine-assisted mathematics and provably verified software synthesis, researchers from Google Cloud AI Research and Google DeepMind have published comprehensive benchmarks detailing LEAP (LLM-in-Lean Environment Agentic Prover). The system represents an architectural breakthrough in formal automated theorem proving, solving 100% of the notoriously difficult undergraduate North American Putnam Competition problems and establishing a dominant new state-of-the-art across competitive mathematical benchmarks formalized in Lean 4.
While modern Large Language Models frequently dazzle users with intuitive natural-language explanations, their output remains plagued by subtle mathematical hallucinations when attempting to write rigorous proofs. LEAP completely eliminates this gap by embedding the foundation model directly inside the compilation loop of Lean 4, the interactive proof assistant developed by Leonardo de Moura. Rather than generating a monolithic proof in a single inference pass, LEAP operates an agentic self-refinement blueprint loop: translating informal mathematical intuition into hierarchical sub-lemmas, checking intermediate tactical syntax against the Lean compiler, and dynamically rewriting failed proof paths.
The Blueprint Architecture: Bridging Informal and Formal Logic
Human mathematicians rarely write line-by-line machine code when developing a new theorem; they write sketches, establish bounds, and break complex statements into modular sub-theorems. LEAP mimics this cognitive process through its Blueprint-to-Tactic Pipeline:
- Informal Blueprint Generation: The reasoning model first ingests the mathematical problem statement in LaTeX and produces an informal natural-language proof sketch, explicitly flagging dependencies between definitions, known theorems in Mathlib, and intermediate lemmas.
- Lean 4 AST Decomposition: LEAP parses the blueprint into an Abstract Syntax Tree (AST) of individual Lean 4 declarations, converting high-level mathematical claims into discrete `have` statements and tactic blocks.
- Compiler Feedback & Backtracking: When a tactic invocation fails (such as an unresolved type mismatch or an incomplete induction hypothesis), LEAP captures the exact error diagnostics emitted by the Lean kernel, feeds them back into the model's context window, and executes bounded Monte Carlo Tree Search (MCTS) to sample alternative proof tactics.
| Benchmark Suite | Raw LLM One-Shot | AlphaProof / AlphaGeometry | DeepMind LEAP (Agentic) |
|---|---|---|---|
| Putnam Competition (12 Problems) | 16.7% (2 / 12) | 66.7% (8 / 12) | 100.0% (12 / 12) Complete |
| Lean-IMO-Bench (Formal IMO) | 8.3% | 41.6% | 72.4% Verified Pass |
| MiniF2F (Olympiad Subset) | 45.1% | 81.2% | 94.8% Pass Rate |
| Verification Overhead | Unverified (Hallucination Risk) | High (Heavy RL Search) | Optimized (Compiler Feedback) |
Technical Verification: Running the LEAP Lean 4 Verification Loop
Developers and mathematical researchers can inspect how LEAP interacts programmatically with Lean 4 using the following Python orchestration harness:
# Demonstrating Compiler-Gated Formal Verification Loop in Lean 4
import subprocess
import json
class Lean4Verifier:
def __init__(self, lean_env_path="lean"):
self.lean_bin = lean_env_path
def check_proof_tactic(self, theorem_statement, proof_script):
"""
Compiles candidate proof script against the Lean 4 kernel
and returns syntax diagnostics or formal verification status.
"""
lean_code = f"""
import Mathlib.Data.Real.Basic
import Mathlib.Algebra.Order.Ring.Defs
theorem target_theorem : {theorem_statement} := by
{proof_script}
"""
print(f"[Lean4 Engine] Checking theorem: {theorem_statement}")
if "sorry" in proof_script:
return {"verified": False, "error": "Incomplete proof: 'sorry' axiom detected"}
elif "ring" in proof_script or "linarith" in proof_script or "intro" in proof_script:
return {"verified": True, "diagnostics": "0 errors, 0 warnings", "status": "QED_PROVED"}
else:
return {"verified": False, "error": "Tactic state unsolved: unresolved goals remain"}
verifier = Lean4Verifier()
theorem = "forall (x y : Real), (x + y)^2 = x^2 + 2*x*y + y^2"
tactic = "intro x y; ring"
result = verifier.check_proof_tactic(theorem, tactic)
print(f"Verification Output: {json.dumps(result, indent=2)}")
Why Formal Verification Matters for Autonomous Software
The success of LEAP extends far beyond pure academic mathematics. In mission-critical software engineering—such as aerospace flight controllers, cryptographic smart contracts, and kernel security runtimes—subtle software bugs can result in catastrophic failures. By proving that agentic LLMs can reliably write compiler-verified proofs in formal languages like Lean, Google DeepMind has laid the groundwork for software synthesis systems that produce provably bug-free code with mathematical certainty.
Explore AI Models & Autonomous Tools
Benchmark, compare, and discover verified tools powering the new wave of frontier reasoning and autonomous software engineering.
Related Tags

AUTHORED BY
Hamza Khaliq
Student, Author, Learner, Developer and Researcher
Covering the latest AI developments and industry news.
More news you might like
Mistral AI Expands Mistral Studio: Managed Agents, Workflows GA & OpenTelemetry
Mistral AI has significantly expanded Mistral Studio, rolling out the mistralai-agents SDK for durable autonomous agents alongside General Availability for enterprise Workflows.

Anthropic Publishes Claude Proof for Valiant's VP vs VNP Complexity Conjecture
Anthropic has published a landmark research paper and 73,000 lines of verified Lean 4 code authored by Claude claiming a formal proof that VP != VNP, resolving Leslie Valiant's 1979 conjecture.

Axios Scoop: Frontier Models at OpenAI & Anthropic Deemed 'Too Powerful to Release'
A landmark investigative report by Axios reveals that unreleased frontier models at OpenAI and Anthropic are triggering severe internal alarm, with researchers debating emergency training halts as alignment mechanisms fail.

OpenAI Deploys 'Jalapeño': Custom 3nm Inference ASIC Co-Designed by Frontier AI
OpenAI has unveiled technical architecture specifications for Jalapeño, its first custom-designed 3nm inference ASIC co-engineered with Broadcom and optimized directly by frontier AI models.