Mech interp of Provers across Base, SFT, RL training states.
I’m asking for $30,000 ($8,000 minimum) to fund a 6-month independent research. I want to figure out how Lean 4 theorem provers actually represent proof states, how they use compiler feedback during multi-turn repair, and what really changes across Base, SFT, and RL checkpoints.
Why I do care about these questions?
Special training provers always overfits on the specialize math area and get break down in other areas. But while base models scale , such as astra, shows general abilities beyond Lean coding, to universal reasoning on hard problems. On the other side, Tactic-based Prover like Reaper-1 also shows a different talent in proving with a small size model without reasoning.
So I'm trying to find the differences between those different route of provers. Lean coding may need a nontrivial world model somewhere inside the model. If we know how the models build it, how does training effect the model. We may scale the use of the world model, and may spread the results into more areas that need a "world model" such as coding. If we know how does the training break the Generalization ability of the model, we can avoid the same pattern and strengthen in the opposite direction.
Pre-publication note: I'm holding back my unpublished pilot numbers, effect sizes, and split diagnostics from this public page to protect priority before arXiv submission. If you're a vetted Manifund regrantor or donor, email me at vvauted@gmail.com and I'll give you private read access to the full audit ledger, pre-registered protocols, and early findings.
In board games, every move is atomic and there is no external solver. If a transformer predicts legal moves reliably over long horizons, it has no choice but to track the board state in its hidden activations.
Open-weight Lean 4 provers don't have that problem. They have two big shortcuts that let them skip internal kernel simulation:
First, they outsource algebra and logic to decision procedures. Tactics like ring, linarith, nlinarith, omega, and simp are basically symbolic solvers. On routine subgoals, surface syntax routing is often all a model needs. When goals get hard, the real bottleneck is guessing nonlinear witnesses or lemma arguments, not simulating internal reduction rules.
Second, they externalize state into the text context. During step-level search, the REPL literally prints the updated state back to the model. Even in whole-proof generation without compiler echoes, provers spam have h : T := by ... blocks. Writing the intermediate proposition back into the text lets later steps attend directly to explicit tokens instead of tracking hidden state across rewrites.
Because of this, "formal world modeling" really breaks down into two different problems. One is a compiler-transition model: can the prover track variable bindings, hypothesis scope, rewrite effects, and tactic feasibility when it doesn't have explicit have anchors to lean on? The other is a mathematical planning model: can it pick intermediate subgoals that actually move the proof forward—rather than wasting search budget on valid but useless lemmas—and actually read compiler feedback when repairing a broken proof?
Predicting a tactic isn't single-label classification. Tactic arguments, witness instantiation, and dependency structure matter just as much as the tactic head. Over 180+ pilot runs and an internal confound-audit ledger on 1.7B to 27B open-weight provers, I kept running into ways standard interpretability setups fabricate results.
One sneaky trap is search-stopping bias. If your logger stops a search tree the moment a proof closes, the winning candidate always lands at the end of the trace by construction. Unless you evaluate the full, unpruned candidate pool, you get an artificial negative correlation between policy likelihood and proof closure.
Supervised linear probes were just as misleading. They looked great against raw, unnormalized log-probs, then lost their edge as soon as I compared them to simple text baselines using token length, line counts, and multi-line formatting flags. They also fell apart when I held out a tactic family like nlinarith.
Then there are plain engineering bugs that look like real stage gaps: chat vs. completion prompt mismatches, piecewise UTF-8 decoding bugs on subscripts and Unicode symbols, bf16 numerical drift, and unverified checkpoint lineages (like accidentally treating two sibling releases from the same base model as a parent-child RL pair).
To clean this up, my audit pipeline sticks to official model toolchains, deterministic SHA-256 explore/confirm splits (so isomorphic or renamed theorems never leak across splits), fp32 causal checks, and Lean kernel replay as the final ground truth.
This grant will pay for systematic confirmatory runs and mechanistic interventions across weight-verified Base, SFT, and RL prover chains (7B to 27B), plus multi-turn repair loops. I'm trying to answer five things:
How do provers represent Lean state transitions and tactic feasibility internally, separate from surface prompt cues?
What do SFT and RL actually change inside the weights, beyond shifting sampling distributions and formatting?
Are there predictive signals in activations, sampling consistency, or compiler diagnostics that standard SFT/RL training ignores?
Can causal interventions on specific representations or attention paths fix genuine failure modes?
Do any of these findings actually help during training—improving end-to-end proof rates under matched compute and Lean-verification budgets?
Timeline:
Months 1–2: Run pre-registered, Lean-verified counterfactual experiments on my sealed confirm splits. This covers multi-turn compiler feedback utilization and in-place parameterized tactic feasibility transplantation, complete with matched shuffle and placebo controls.
Months 3–4: Move to 4x/8x H100 runs for cross-family localization—activation caching, KV-prefix interventions, attention-knockout checks, and weight-diff spectral attribution across 7B–27B Base, SFT, and RL checkpoints.
Months 5–6: Test whether these mechanistic signals translate into equal-budget training gains on held-out theorems. Write up an arXiv preprint and a LessWrong technical report (including both positive and negative findings), and open-source the Lean counterfactual harness and evaluation splits.
Every claim I publish has to survive strict explore/confirm separation, matched lexical/random controls, and causal Lean-kernel verification—probe AUROC on its own isn't enough. I'll also publish confirmed negative results and methodological confounds right alongside any positive mechanisms. Once the arXiv preprint goes up, I'll release the Lean 4 counterfactual prefix/feedback replay toolkit and evaluation scripts publicly.
Working independently in Shanghai keeps my living costs low and avoids institutional overhead, so 64% of the target budget goes straight to H100 compute.
Living stipend (6 months): $10,800 ($1,800/mo for Shanghai rent, food, health, and local costs)
Cloud GPU compute (6 months): $19,200 (~$3,200/mo for 4x/8x H100s for 7B–27B activation caching, patching, and confirmatory RL runs)
Target total: $30,000
Minimum viable goal (3 months): $8,000 ($5,400 living + $2,600 GPU compute to finish the confirmatory controls and get the initial preprint out)
I'm Shiyuan Zhang (vvauted@gmail.com, https://github.com/Vvauted), an 18+ high-school graduate taking a full-time research gap year in China (NOIP 2023 First Prize).
Since March 2026, I've been a research intern at SphereLab (SLAI), working on Lean 4, formal benchmarks, math reasoning, and prover training. There I solely led FormalCP—an unpublished 100-problem dual-track Lean 4 competitive-programming and complexity benchmark—and co-authored a paper currently under review at ICLR 2027.
On the open-source side, I wrote Complexity (https://github.com/Vvauted/Complexity), a computational-model and certified Word-RAM running-time DSL in Lean 4 + mathlib, and OpLean (https://github.com/Vvauted/OpLean), a Zero-TCB Lean 4 verification DSL extending Complexity to GPU operators. Using OpLean, I audited 1,506 ROCm/aiter kernels, filed 5 upstream bugs (#8890–#8894) and 1 decoder crash (#11), and found 10 Lean-refuted bugs across vLLM, Unsloth, SGLang, FlagGems, and FlashInfer. I also have 24 merged PRs in cslib-community/cslib-frontier (Nov 2026) formalizing optimal minimum-spanning-forest components on Word-RAM.
Conflicts & concurrent grants: No family members or close associates will receive funds from this grant. I currently have concurrent applications out to EA Funds (for OpLean and a private unredacted track for formal-interp) and plan to submit a separate Ethereum Foundation ESP proposal on zkVM verification. I won't double-fund living stipends or compute—if multiple grants come through, I'll either run the work periods back-to-back or cut overlapping budgets.
There are no bids on this project.
Comments
No comments yet. Sign in to create one!