Malotru
Back to notes

Proof Search You Can Replay

November 5, 2026

Reaper-1, a 1.7B Lean 4 prover trained with Monte Carlo search, solves 79.9% of miniF2F-test at pass@32 and changes how it spends that search. Beside a Rocq agent that separates compilation from a finished foundation, it shows what machine-checkable mathematics actually checks.

Proof Search You Can Replay

The public argument about AI and mathematics has been about manuscripts: long, fast, and hard to read. Two November papers ask a narrower question. Can a machine produce an artifact a proof assistant will accept, and can a person see how the search spent its effort? Reap answers with a 1.7-billion-parameter model searching inside Lean 4. The Math Foundation Formalization Agent answers with a Rocq workflow that refuses to treat "the model said it was done" as evidence. They are not rows on one leaderboard. Together they show what checked mathematics looks like when the checker is in the loop, and where a green compiler still lies.

A tactic that is also the training environment

Reap runs policy–value Monte Carlo tree search as a Lean 4 tactic. Proof-state transitions, an AND–OR tree over obligations, budgets, reconstruction, and replay stay inside Lean. An external service proposes tactics and estimates value, trained against remaining search cost so the tree prefers shorter successful continuations. The same path generates reinforcement-learning rollouts and the proofs reported at evaluation. Logs record model calls, tactic execution, and timing. That record is the difference between a solve rate and an account of strategy. The tactic code is public [Source 1][Source 2].

Reaper-1, the network in that loop, starts from Qwen3-1.7B-Base. Continued pre-training adapts it to Lean and informal mathematics, including Mathlib at v4.28.0-rc1. Supervised fine-tuning teaches tactic prediction. Five stages of search-based reinforcement learning then train on trajectories Lean has replayed, from about 25,000 curated Art of Problem Solving problems. The reinforcement-learning run is reported as 60 NVIDIA A100 GPU-days. Weights are on Hugging Face. The Scythe-rl pipeline that coordinated rollouts is described as not yet released, so an outsider can inspect the tactic and cannot yet regenerate the training stack [Source 1].

Premise selection is a separate system. The default selector, PS-2, follows the LeanSearch-PS recipe on Qwen3-Embedding-8B and stays frozen while the prover learns. A "1.7B prover" here is that policy–value network, plus an 8B retriever, plus the CPU cores that run tactics [Source 1].

The number, and the procedure behind it

On miniF2F-test, 244 competition-style problems, Reaper-1 solves 79.9 percent at pass@32. That is 3.3 points above the 1.7B Kimina-Prover-RL baseline at 76.6 percent, and ahead of several 7B systems in the paper's table. It is not the highest figure on the page. Goedel-Prover-V2-8B is listed at 84.6 percent and Pythagoras-Prover-4B at 86.1 percent. Other systems were scored at their original budgets, so the table is not compute-matched. The claim actually made is state of the art among open provers of comparable size, at a budget a group outside a frontier lab can run [Source 1].

Transfer matters more than the headline. The same pipeline reaches 33.9 percent on ProofNet-test, against 23.7 percent for REAL-Prover; 81.3 percent on a 150-problem FATE-M snapshot; 21 of 660 PutnamBench problems at pass@32; and 7 of 100 CombiBench problems at pass@16. Training text was stripped of 10-gram overlaps with every evaluation set, and those sets were not used to pick the model. Every reported success is replayed in Lean. The controlled configuration uses 8,192 simulations and tactics of at most 1,024 tokens. The full pass@32 sweep took about three hours on 32 A100 GPUs and 800 CPU cores, with premise selection about 8.6 percent of inference time [Source 1].

The logs describe a change in procedure. Later checkpoints organize proofs around intermediate claims, take fewer search decisions, and do more work inside each tactic. At pass@8 on miniF2F-test, solved problems move from 134 after supervised training to 191 after the fifth reinforcement-learning stage. On the training corpus, pass@1 rises from 19.16 percent to 45.27 percent by the fourth stage. The fifth stage then changes the rollout: 8,192 simulations, and at most two successful trajectories per theorem, kept for a small backed-up value at the root. The authors' reading is that learning bought larger steps and paid in tactic-execution cost, rather than resampling the same local edits [Source 1].

That trade is the part worth copying. A small model is weak as a one-shot author of a whole proof. It becomes competitive when search, value, and the kernel share a state, and when training may change the shape of a tactic. The pattern is AlphaProof-style expert iteration, run here on a real Lean goal with the trace retained [Source 1].

Foundations fail differently

Contest search is clean because the statement is given and the kernel judges it. Formalizing a foundation is not. Files depend on each other, and a model will declare victory because something compiled. MFF-Agent is a general-purpose Rocq agent — Rocq is the prover formerly called Coq — aimed at foundation tasks rather than a pass@k table. Jiaxin Xie, Guowei Dou, Xiang Ji, and Wensheng Yu distinguish proof, file creation, modification, analysis, and compilation, and they define completion separately for each [Source 3].

The controls answer false positives they had already seen. The model says it is done while target theorems are open. A side test file compiles and is mistaken for the task. A multi-theorem request is only partly finished. `Admitted`, `admit`, and `Abort` count as unfinished. A state machine reaches task success only after a type-specific check on top of a successful compile. A short prompt mode carries the task, the completion rules, and the latest compiler feedback. A heavier mode, after ten consecutive failures, after completed theorems hit a multiple of five, or past an estimated 500,000 tokens of context, adds proof state and recent failures. A planner runs only for the ten-failure case. The Rocq session is discarded when the source changes, so the model cannot stare at a stale goal [Source 3].

Nine core files hold 24,379 lines and 647 theorem-like declarations. A Morse–Kelley layer supplies classes, ordinals, and cardinals. A choice development then walks Tukey's lemma, Hausdorff's maximal principle, Zorn's lemma, well-ordering, and Zermelo's theorem. A real-number development shows that structures with the same ordered-field interface are isomorphic. Propositional logic, proved sound and complete, does not import the set theory. The code is public [Source 3][Source 4].

The result that should travel is the trust boundary. A finished source file, a file that loads interactively, and a reproducible compiled artifact are three facts. Some choice files load and have no current compiled output in the snapshot. The real-number axioms compile; the isomorphism layer loads and does not yet keep a compiled file. The snapshot was checked with Coq 8.13.2, while agent runs used Rocq 9.0.1. More important: the set-theory record already contains choice as an axiom, so the choice layer shows classical equivalents on a base that assumes choice. It does not derive choice from a theory without it. Two identical copies of the set-theory file sit in the tree, plus a third, different copy for the reals. There are no per-task traces, and the paper claims no solve rate. The proof checker looks for `Admitted` in the target proof; a different check, used for new or edited files, is stricter about explicit axioms [Source 3].

Two meanings of checked

Reaper-1 makes success mechanical and the search observable. Its pass@32 figure means something because successes were replayed, training text was filtered against the tests, and the logs show a change in tactic shape. Until Scythe-rl is released, outsiders can run the weights and cannot regenerate the curriculum [Source 1][Source 2]. MFF-Agent makes the complementary point. Compilation is evidence about a file. Task completion is evidence about a request. Foundation work adds a third question: which axioms the accepted theorem still depends on. Proving Zorn's lemma atop a record that already posits choice formalizes a classical equivalence. It does not show that choice was optional. Separating source text, interactive loading, and compiled artifacts — and refusing a benchmark score the logs cannot support — is the discipline worth copying [Source 3].

Small open provers do not end the verification crisis. They change the object being graded. A kernel transcript plus a record of decisions can still misstate an informal claim. It cannot hide the mismatch as easily as an unreadable manuscript can.

Sources