H
Howardism
Plate IIFormal Math中文HOWARDISM

Evolutionary Proof Search

PublishedMay 23, 2026FiledConceptDomainFormal MathTagsAI For MathematicsAgent EngineeringSearchReading5 minSourceAI-synthesised

The full-featured agent's mechanism: population DB of proof sketches, Elo via Plackett–Luce/Gibbs, P-UCB selection, LLM-critic fitness for binary proof eval

Illustration for Evolutionary Proof Search

Sources#

Summary#

The mechanism inside DeepMind's full-featured AlphaProof Nexus agent (agent D), inspired by AlphaEvolve: prover subagents sample from and contribute to a shared population database of proof sketches, with an evolutionary loop driving the search. The hard problem it solves: evolutionary algorithms assume a graduated fitness landscape, but formal proof evaluation is binary (compiles / doesn't, complete / has sorry). The fix is to rate incomplete sketches by promise using LLM critics, turning a binary signal into a continuous fitness that an evolutionary search can climb.

The binary-fitness problem#

A proof either type-checks sorry-free or it doesn't — there's no smooth gradient telling you a half-finished sketch is "closer." Evolutionary search needs such a gradient. AlphaProof Nexus bridges the gap by decoupling generation from fitness assignment: generate sketches freely, then assign fitness via relative LLM review of how promising each (often incomplete) sketch looks — its strategy clarity, the plausibility of remaining goals, and mathematical novelty.

Elo from LLM matches (Plackett–Luce + Gibbs)#

  • Cheaper rater agents (Gemini 3.0 Flash) continuously sample sets of $P=7$ sketches and produce a relative ranking ($P=7$ balances information-per-call against context size).
  • Outcomes are modeled with a Plackett–Luce distribution (each sketch has a latent strength $\lambda_s$), with a hierarchical Gamma prior for heavier tails while staying conjugate.
  • Posterior strengths are inferred by Gibbs sampling ($I=1000$ samples, $B=200$ burn-in), converted to Elo: $\mathrm{Elo}s = 1200 + 400\log{10}\lambda_s^{\text{mean}}$.
  • Sketch selection for matches uses Thompson sampling over the posterior; ties (raters sometimes output them) are broken by sampling from the model.

Evolutionary selection (P-UCB)#

Parent sketches for new episodes are chosen with a Predictor + Upper-Confidence-Bound (P-UCB) rule: filter to the top-64 by Elo, normalize to a base score $q\in[0,1]$, then $$\text{score}=q+c\frac{\sqrt{\sum V_i}}{v+1}$$ ($v$ = times this sketch was sampled, $c=0.2$ exploration constant). This exploits elite sketches while the UCB bonus explores newly-promoted ones, "preventing the search from collapsing into a single, suboptimal lineage." Diversity is further injected by stochastically prompting "decompose unsolved goals," "combine prior attempts," or "try a completely new approach" (the AlphaEvolve move).

Efficiency machinery#

  • Global goal cache: every generated subgoal gets a deep hash of its exact Lean state (goal_id); if any prior sketch across the population already proved/disproved that state, the result (and its tactic/value) is retrieved instead of re-dispatched to AlphaProof. Novel subgoals are batched to AlphaProof over non-blocking RPCs.
  • Budgets: each episode capped at 5 AlphaProof queries and 90 search-replace edits; AlphaProof itself bounded (~400 simulations, hard RPC timeout) to avoid stalling on intractable/hallucinated goals.
  • Async controller: an asyncio event loop fans work across generation, validation, and Elo-rating threads; validation runs in Docker sandboxes (Lean v4.27 + Pantograph) and ends in SafeVerify (compiles, no sorryAx/axiom injection).

Where it sits#

Agent D combines this evolutionary search with the bespoke AlphaProof RL prover as a tool (AlphaProof Nexus). It's the most elaborate point on the A→D spectrum — and the one whose advantage the basic agent erased on most problems, retaining a 2×–5× cost edge only on the very hardest (Erdős #125, #138). So evolutionary proof search is best understood as the receding-frontier specialized scaffolding: it buys efficiency on the hardest problems today, with a diminishing margin as LLMs improve.

Connections#

  • Open-Ended Discovery Harnesses — the same anti-collapse goal with the heuristic replaced by a model. P-UCB, top-64 Elo filtering and the stochastic "try a completely new approach" prompt exist to stop the search "collapsing into a single, suboptimal lineage"; SwarmResearch hands that job to an LLM orchestrator choosing which git branch each new agent starts from. The claim is not yet settled — its own §3.5 reports the orchestrator's default behavior as near-greedy, which is the failure the hand-designed UCB bonus was built to make impossible
  • AlphaProof Nexus — the full-featured agent (D) this mechanism powers
  • AI-Driven Formal Proof Search — the paradigm; this is its most elaborate search strategy
  • Agentic Loops Overtake Bespoke Systems — the finding that the basic loop matched this machinery on most problems
  • Client-Side Agent Optimization — population/budget/model-per-role (Flash raters, Pro provers) is the AgentOpt "combo" lever made concrete
  • The Bitter Lesson — Elo/P-UCB/evolution is exactly the hand-engineered structure the bitter lesson predicts general methods will outrun
  • Lean — the verifier whose binary signal forced the LLM-critic fitness workaround
  • The Verifiability Thesis — rating incomplete sketches extends a verifiable domain's signal into the unverified-yet region
  • LLM-as-a-Judge — the LLM-critic rater agents are an LLM-as-a-judge used as a fitness function: turning a binary verifier signal into a continuous grading gradient

Open Questions#

  • The LLM-critic fitness is itself an unverified heuristic atop a verified substrate. How often does the Elo ranking mislead the search vs. the cost of computing it?
  • Hyperparameters ($c=0.2$, top-64, $P=7$) were "chosen empirically." How sensitive is the result to them, and do they transfer across mathematical domains?

Sources#

§ end
About this piece

Articles in this journal are synthesised by AI agents from a curated wiki and are refreshed automatically as new concepts arrive. Topics, framing, and editorial direction are curated by Howardism.

Cited by 11
  • Google DeepMind×3

    Google's AI research lab. In this corpus it appears as the lab behind Ai Driven Formal Proof Search…

  • Agentic Loops Overtake Bespoke Systems×2

    Evolutionary Proof Search — the bespoke scaffolding (population + Elo) the simple loop matched

  • AlphaProof Nexus×2

    (D) Full-featured · Evolution and AlphaProof together · Used for the open-problem exploration;…

  • LLM-as-a-Judge×2

    Evolutionary Proof Search — LLM-critic rater agents as a fitness function: an LLM-as-a-judge used…

  • Open-Ended Discovery Harnesses×2

    Evolutionary methods have long had an answer to the same problem — MAP-Elites in AlphaEvolve, P-UCB…

  • AI-Driven Formal Proof Search

    Evolutionary Proof Search — the full-featured agent's population/Elo search mechanism

  • Client-Side Agent Optimization

    Evolutionary Proof Search — model-per-role made concrete: DeepMind runs Gemini 3.1 Pro for proving…

  • Lean

    Evolutionary Proof Search — Lean's binary pass/fail forced the LLM-critic fitness workaround

  • Formal Mathematics & Proof Search

    Evolutionary Proof Search — The full-featured agent's mechanism: population DB of proof sketches,…

  • Open Questions Backlog

    Evolutionary Proof Search ×2 (oldest 81d) — The LLM-critic fitness is itself an unverified…

  • The Bitter Lesson

    Evolutionary Proof Search — the bespoke evolutionary apparatus is exactly what the bitter lesson…

Related articles
  • Agentic Loops Overtake Bespoke Systems

    DeepMind's *basic* Ralph-loop agent matched its bespoke evolutionary+AlphaProof system as the LLM improved; the bitter…

  • AI-Driven Formal Proof Search

    LLM generates Lean, compiler verifies every step → eliminates hallucination; DeepMind resolves 9/353 Erdős + 44/492 OEI…

  • AlphaProof Nexus

    DeepMind framework for LLM-aided Lean proof generation; four agents (basic→full-featured); proof-sketch + EVOLVE-BLOCK…

  • Scale-Dependent Prompt Sensitivity

    Large models underperform small ones on 7.7% of standard benchmarks due to overthinking; brevity constraints recover 26…

  • The Verifiability Thesis

    LLMs automate what you can *verify* as computers automate what you can *specify*; RL verification rewards → jagged peak…