Goedel-Prover-V2-8B-EI-campaign1-r1
This is Goedel-Prover-V2-8B after one round of expert iteration on its own proofs, each checked by the Lean 4 kernel (campaign1, round 1 of the align stack). Round 1 is a LoRA rejection-sampling SFT on 442 verified proofs, merged into the base and then weight-averaged with the original base at 0.7 / 0.3.
Read this first: on miniF2F-valid this model is statistically indistinguishable from the untrained base. Both solve 188 of 226 (exact McNemar p = 1.0). This card claims no improvement. The repo is published as a documented negative result and as a checkpoint for reproducing the campaign.
1. TL;DR product sheet
| What it is | Lean 4 whole-proof generator (Qwen3 8.19B dense, bf16, full merged weights in 17 safetensors shards) |
| Base | Goedel-LM/Goedel-Prover-V2-8B @ dfd02e6271a58375dfbf3ece0175277cf6b6a89a |
| Method | Expert iteration, round 1: sample 8 proofs per statement, verify with the Lean kernel, keep the shortest at most 4 verified proofs per statement, LoRA SFT (r 64, alpha 128), merge to bf16, weight-average with the base (fine-tuned weight 0.7) |
| Training data | 442 proofs (rows) for 135 statements, 1,642,463 completion tokens plus 111,922 prompt tokens. All proofs were generated by the base model on 300 statements drawn from a decontaminated pool of 5,940 |
| Compute | 4x NVIDIA L4 (24 GB), one node. Measured stage time: SFT 37.1 min, merge/export 4.4 min, averaging 3.1 min, eval 3.64 h. Harvest generation+verify took about 5.9 h, then crashed on a bug; it was resumed later and finished in 55 s |
| Headline result | miniF2F-valid solved@8 188/226 (83.2%), pass@1 71.9%. Untrained base under the same protocol: 188/226, pass@1 71.85%. Paired difference 0 (2 problems solved only by this model, 2 only by the base, p = 1.0) |
| Run-to-run noise | 3 more evaluations of this model (other harness, seeds 0/1/2) solve 187, 191 and 187. Paired SD = 3.17 problems |
| Status | Negative result. The campaign stop rule picked round 1 as best because rounds 2 (187) and 3 (185) did no better |
| Not measured | miniF2F-test, MOBench, pass@32, any non-Lean task |
2. Model details and mechanism
- Architecture (unchanged from the base,
config.json):Qwen3ForCausalLM, 36 layers, hidden size 4096, FFN size 12288, 32 query heads / 8 KV heads (GQA), head dim 128, RoPE theta 1e6, max positions 40,960, vocab 151,936, untied embeddings, bf16. - What changed: the 252 adapted linear matrices (q, k, v, o, gate, up and down projections in all 36 layers). Embeddings, norms and the LM head are bit-identical to the base before averaging; 252 of 399 tensors differ in the merged export.
- Size of the change (measured at export, before averaging): mean relative Frobenius change of an adapted matrix ‖W'−W‖/‖W‖ = 3.49e-4 (min 1.26e-4, max 7.93e-4). The bf16 merge kept only part of the LoRA delta: cosine(exported delta, intended delta) = 0.50, relative error 0.88, and 87.9% of the nonzero delta elements rounded to zero in bf16. After merging, the adapter and the merged model still agree on argmax tokens 98.4–100% of the time over the 2x64-token export probes (mean KL 1.8e-4 and 3.2e-4).
- Averaging: out = 0.7·W_ft + 0.3·W_base over all 399 tensors (fingerprint
a53dc61b…a98d), stored in bf16 (16.38 GB). The delta of the averaged model against the base was not measured. - Prompt format: Goedel-V2 chat format (
<|im_start|>user … Complete the following Lean 4 code: … ```lean4 … := by sorry``` … provide a detailed proof plan …<|im_end|>). The model writes a natural-language plan, ahave-skeleton, and then a complete Lean 4 proof in a```lean4block.
flowchart LR
subgraph Pool["Decontaminated statement pool (5,940)"]
P1["Goedel-Pset-v1 1,992"]
P2["RL-Goedel-Pset-L4-5 997"]
P3["NuminaMath-LEAN-Sol 989"]
P4["Nemotron-Math-Proofs-v1 989"]
P5["FormalMATH-All 973"]
end
Pool -->|"select_by_band: in-band 0<p<=0.75 (115), then unmeasured (185); cap 300"| S["300 statements"]
S -->|"base pi_0, n=8, T=1.0, top-p 0.95, 16,384-token cap (vLLM, TP=4)"| G["2,400 samples"]
G -->|"Lean 4.9.0-rc1 + Mathlib d1d1e4b7 REPL, strict statement check, axiom whitelist, kernel recheck, 180 s"| V["938 verified (179 statements)"]
V -->|"drop 8/8-solved (44 statements); shortest <=4 per statement; faithfulness filter"| D["442 SFT rows / 135 statements"]
D -->|"LoRA r64 a128, CE on completion tokens, global token mean, 2 epochs, 28 optimizer steps"| L["LoRA adapter (174.6M params)"]
L -->|"merge to bf16 + export check"| M["merged W_ft"]
M -->|"0.7 W_ft + 0.3 W_base"| R1["THIS MODEL (round 1)"]
R1 -->|"miniF2F-valid n=8, 30k cap"| E["188/226 (base 188/226)"]
R1 -.->|"round 2 / round 3 start from here"| S
3. Training data
All SFT targets are the base model's own kernel-verified proofs. No upstream proof text was trained on. The upstream datasets supply only theorem statements (and their informal problems).
Pool construction (scripts/p2/stream_pool.py, which streams from the mirror viai957/lean-prover-data, recorded in runs/campaign1/campaign.log):
| mirror file | read | kept | dropped: protected-set statement | dropped: informal overlap with eval | dropped: duplicate |
|---|---|---|---|---|---|
problems/train_pool.jsonl | 2,000 | 1,992 | 0 | 8 | 0 |
supply/screen_v1.jsonl | 4,000 | 3,948 | 0 | 49 | 3 |
| pool | 5,940 |
Upstream sources, licences, and round-1 usage:
| source | hub id @ revision | licence | in pool | selected (r1) | SFT rows (r1) |
|---|---|---|---|---|---|
| Goedel-Pset-v1 | Goedel-LM/Goedel-Pset-v1 @ 79fc4fbe | MIT (informal problems from NuminaMath, Apache-2.0) | 1,992 | 153 | 359 |
| RL-Goedel-Pset-Level-4-5 | HangHor/RL-Goedel-Pset-Level-4-5 @ 0c588300 | MIT | 997 | 36 | 14 |
| NuminaMath-LEAN-Sol | iiis-lean/NuminaMath-LEAN-Sol @ d2052841 | Apache-2.0 | 989 | 38 | 18 |
| Nemotron-Math-Proofs-v1 | nvidia/Nemotron-Math-Proofs-v1 @ 97229c59 | CC-BY-SA-4.0 | 989 | 39 | 39 |
| FormalMATH-All | SphereLab/FormalMATH-All @ 8eea2550 | MIT | 973 | 34 | 12 |
| total | 5,940 | 300 | 442 |
Decontamination.
- Goedel-Pset slice (
align/.tmp/p2/problems/problems_manifest.json): candidates were checked against the protected sets (miniF2F 244 test and MOBench 135 supported) by exact statement SHA, alpha-equivalent statement SHA, theorem name, and informal 13-gram and 8-gram overlap. Removed: 48 statement-SHA hits, 18 alpha-SHA hits, 3 name hits, 27 informal 13-gram hits, 31 informal 8-gram hits, and 5 duplicates. All 2,000 kept statements elaborate in Lean. - Valid vs pool: miniF2F-valid was separated from the pool by
scripts/p2/build_valid.py(1 valid statement dropped for overlap) and bystream_pool.py, whose protected set includesminif2f_valid. - Pool level: informal overlap drops as in the table above.
- Selection:
allow_test_selection = false, with protected setsminif2f.jsonl(test) andmobench.jsonl.build_sft_data.pyre-checked every SFT row against valid, test and MOBench. 2 rows were dropped because their statement was not faithful. - Caveat: miniF2F-valid was decontaminated against the training data, but it is also the campaign's stop-rule development set. It is not held out from model selection.
Round-1 selection (round_01/round_manifest.json /selection). select_by_band takes in-band statements (0 < p ≤ 0.75) first, then unmeasured ones, then never-solved ones (at most max_zero = 60), and truncates at 300. In-band plus unmeasured already exceeded 300, so no never-solved statement was selected:
| in-band selected | unmeasured selected | never-solved selected | too easy (p > 0.75, excluded) | never-solved beyond the max_zero cap | not reached (over max_problems) |
|---|---|---|---|---|---|
| 115 | 185 | 0 | 460 | 361 | 4,819 |
Harvest (base model on the 300 selected statements, round_01/gen/ver_r0.jsonl):
| samples | verified | mean pass@1 | statements with ≥1 proof | 8/8 (excluded as easy) | statements with SFT rows |
|---|---|---|---|---|---|
| 2,400 | 938 | 39.1% | 179 | 44 | 135 |
938 verified − 352 from the 44 easy (8/8) statements = 586; 2 were dropped by the faithfulness filter, leaving 584 accepted candidates; 142 were cut by the 4-per-statement cap or as duplicates, leaving 442 rows. Median completion length is 3,082 tokens (p90 6,926, min 517, max 15,612).
Figure 1. How many of 8 base-model samples were kernel-verified, for each of the 300 selected statements (16k cap). 121 statements had 0/8 and 44 had 8/8. Source: align/runs/campaign1/ei/round_01/gen/ver_r0.jsonl.
Figure 2. Completion lengths of the 442 SFT rows (the shortest verified proofs, at most 4 per statement). Source: round_01/sft_data/selection.jsonl joined to round_01/gen/gen_r0.jsonl.
4. Training procedure
Expert-iteration round (scripts/p2/expert_iteration.py, driven by scripts/p2/campaign.sh). Here π₀ is the base model and V(x, y) ∈ {0, 1} is the frozen Lean verifier.
$$ \mathcal D_1=\Big{(x,y);:;x\in S_1,;y\sim\pi_0(\cdot\mid x)^{\times 8},;V(x,y)=1,;0<\tfrac{c(x)}{8}<1,;y\in\operatorname{shortest}_4{y':V(x,y')=1}\Big} $$
where c(x) is the number of verified samples for statement x.
SFT objective: token-level cross-entropy on completion tokens only. Prompt tokens and right-padding carry label −100. The loss is normalised by the global target-token count over the accumulation window and all 4 ranks (loss_normalization = "global_token_mean"), which counts every target token equally:
$$ \mathcal L(\theta)=-\frac{\sum_{i\in\mathcal W}\sum_{t} m_{i,t},\log \pi_\theta!\left(y_{i,t}\mid x_i,y_{i,<t}\right)}{\sum_{i\in\mathcal W}\sum_t m_{i,t}},\qquad m_{i,t}=\mathbb 1[t\in\text{completion}_i] $$
LoRA parameterisation, merge and averaging:
$$ W_{\text{ft}}=\operatorname{bf16}!\Big(W_0+\tfrac{\alpha}{r}BA\Big),;; r=64,;\alpha=128;\qquad W_{\text{r1}}=0.7,W_{\text{ft}}+0.3,W_0 $$
No RL, PPO, GRPO, DPO, KL penalty, reward model or PRM was used in this round. The only "reward" is the binary kernel verdict, applied as a rejection filter.
Stop rule (applied after each round, on miniF2F-valid solved@8). min_gain = 2 problems, patience = 2 rounds, max_regress = 3 problems, at most 8 rounds. After round 3 the campaign stopped with reason regression and best_round = 1.
| hyperparameter | value | hyperparameter | value |
|---|---|---|---|
| config | configs/p2_sft.toml (run p2-goedel8b-lora-sft) | optimizer | in-repo block-wise AdamW 8-bit, betas (0.9, 0.95), wd 0 |
| LoRA r / alpha / dropout | 64 / 128 / 0.0 | LoRA targets | q, k, v, o, gate, up, down (252 matrices) |
| trainable params | 174.6M (4 x 43.65M per-rank shards) | peak LR | 2e-5 |
| schedule | 10% linear warmup, cosine to 0 | max grad norm | 1.0 (never bound: measured 0.017–0.034) |
| sequence budget | 18,432 tokens per micro-batch (packed, length-grouped) | micro-batch / grad-accum / world | 1 / 2 / 4 (8 micro-batches per step) |
| epochs | 2 | optimizer steps | 28 (56 micro-steps, data exhausted) |
| precision | bf16 params, fp32 reduce, fp32 adapters | parallelism | FSDP2, 36 per-block units, activation checkpointing |
| attention | SDPA | seed | 0 |
| harvest sampling | T 1.0, top-p 0.95, n 8, 16,384-token cap, seed 1000 | eval sampling | T 1.0, top-p 0.95, n 8, 30,000-token cap, seed 0 |
| verifier | Lean v4.9.0-rc1, Mathlib d1d1e4b7, REPL 7df77c0a; strict statement mode, axioms {propext, Quot.sound, Classical.choice}, lexical ban gate, kernel recheck, 180 s per proof | ft weight in average | 0.7 (anchor = original base) |
Compute (4x NVIDIA L4 24 GB, 24 physical / 48 logical CPU cores, 1 node; times from round_01/stages/*.done.json):
| stage | wall time | notes |
|---|---|---|
| harvest gen + verify | ≈5.9 h (2026-10-23 18:55 → 2026-10-24 00:48) + 55 s resume | generation+verify ran 18:55 → 00:48 and then crashed on a Path bug (fixed in fe887a6). After ~1 h of failed retries the driver gave up at 01:40. It was resumed at 05:25 and finished at 05:28 (the marker records only this 55 s resume) |
| SFT data build | 14 s | |
| LoRA SFT | 2,223 s (37.1 min) | includes model load and 2 checkpoint saves |
| merge + export check | 265 s | vLLM load + logit parity check passed |
| weight average | 184.5 s | peak buffer 1.65 GB |
| eval (226 x 8, 30k cap) | 13,110 s (3.64 h) | vLLM 0.26.0, TP=4; 8 Lean workers |
5. Training curves
The per-step history.jsonl was pruned together with the SFT checkpoint (prune_export = true). The curves below come from the read-only W&B sidecar's copy of it, which is stored in runs/campaign1/wandb/wandb/run-20261023_212613-0ca1a6eafc40/run-0ca1a6eafc40.wandb (keys sft/* with sft/round = 1: 224 logged records, 4 per micro-step over 56 micro-steps).
Figure 3. Round-1 SFT loss. Points are logged records; the line is the token-weighted mean per micro-step. The loss starts low (0.175 nats/token at micro-step 1) and stays flat: the mean of the last 4 micro-steps is 0.191 and of the first 4 is 0.151. The model already assigns high likelihood to its own shortest proofs, so there is little to learn. No epoch-2 drop (memorisation) is visible. Source: W&B sidecar log above, keys sft/loss, sft/tokens_in_loss, sft/global_step.
Figure 4. Left: learning rate per micro-step (peak 2e-5, final 7.9e-8). Right: pre-clip gradient norm per optimizer step (28 values, 0.017–0.034); the clip at 1.0 never binds. Source: same log, keys sft/lr, sft/grad_norm.
Figure 5. Running pass@1 and pass@8 over the groups verified so far, in streaming order. Left: the harvest (base model on the 300 selected statements). The sidecar's first snapshot is at 1,258 verified samples, so earlier points were not logged. Right: evaluation of this model on miniF2F-valid. These are running estimates, not curves against training step; only the final values are results. Source: same W&B log, keys rlvr/* and eval/* with round = 1.
Not logged: reward, KL, value loss and entropy. None exist for an SFT-only round.
6. Evaluation
Protocol. miniF2F-valid from cat-searcher/minif2f-lean4 @ 70a1249c: 244 valid statements; 18 removed: 13 unsupported statement shapes, 1 overlap with test/MOBench/pool, and 4 that fail to elaborate under Lean 4.9.0-rc1 (ambiguous π), leaving 226. Whole-proof generation, n = 8 samples per problem, T = 1.0, top-p 0.95, a 30,000-token cap, no self-correction, and the frozen verifier above. TIMEOUT and infrastructure failures (memory/crash) count as unsolved. pass@k uses the unbiased estimator 1 − C(n−c, k)/C(n, k). Solved@8 intervals are 95% Wilson intervals; pass@1 intervals are 95% problem-cluster bootstrap intervals (10,000 resamples, seed 0). Paired tests are exact two-sided McNemar on per-problem solved@8.
| run | model | seed | harness | solved@8 | 95% CI (solved) | pass@1 [95% CI] | pass@2 | pass@4 | vs base: only-model / only-base, p |
|---|---|---|---|---|---|---|---|---|---|
| base_s0 | untrained base | 0 | ProofForge | 188/226 (83.2%) | [77.8, 87.5] | 71.85 [66.7, 77.0] | 77.64 | 80.66 | — |
| r1_align_s0 | this model | 0 | align campaign | 188/226 (83.2%) | [77.8, 87.5] | 71.90 [66.8, 77.0] | 78.19 | 81.59 | 2 / 2, p = 1.00 |
| r1_pf_s0 | this model | 0 | ProofForge | 187/226 (82.7%) | [77.3, 87.1] | 72.57 [67.5, 77.8] | 77.94 | 80.90 | 2 / 3, p = 1.00 |
| r1_pf_s1 | this model | 1 | ProofForge | 191/226 (84.5%) | [79.2, 88.6] | 72.35 [67.3, 77.5] | 78.30 | 81.74 | 4 / 1, p = 0.375 |
| r1_pf_s2 | this model | 2 | ProofForge | 187/226 (82.7%) | [77.3, 87.1] | 72.29 [67.2, 77.4] | 77.78 | 80.82 | 4 / 5, p = 1.00 |
Equivalence (TOST, ProofForge decision D-047): the paired SD between seeds 1 and 2 is 3.17 problems, giving margin δ = 6.33. The 90% CI of the align-vs-ProofForge difference on this model, [−5, +2] problems, lies inside ±δ, so the two harnesses are EQUIVALENT. Under this protocol, any single-run difference below about 6 problems is noise.
Hill climb across rounds (all seed 0, same protocol). Each round starts from the previous round's model:
| round | SFT rows / statements | solved@8 | pass@1 | vs previous round (only-prev / only-this, p) | vs base (only-model / only-base, p) |
|---|---|---|---|---|---|
| base | — | 188 | 71.85 | — | — |
| 1 (this repo) | 442 / 135 | 188 | 71.90 | n/a | 2 / 2, p = 1.00 |
| 2 (r2) | 374 / 120 | 187 | 71.13 | 3 / 2, p = 1.00 | 2 / 3, p = 1.00 |
| 3 (r3) | 398 / 127 | 185 | 71.96 | 5 / 3, p = 0.727 | 3 / 6, p = 0.508 |
Figure 6. Solved@8 on miniF2F-valid for the base and each campaign round, with 95% Wilson CIs. The x marks are the three ProofForge re-evaluations of round 1. Sources: ProofForge/runs/p5_eval/base/ver_n8_c30000.jsonl and align/runs/campaign1/ei/round_0{1,2,3}/eval/ver_n8_c30000.jsonl.
Figure 7. Unbiased pass@k (k = 1, 2, 4, 8) for the base and all four evaluations of this model. The curves overlap within seed noise. Source: each run's ver_n8_c30000.jsonl (paths in evidence.json).
Figure 8. Per-problem solve counts out of 8 (log scale), base vs round 1. Base: 38 problems at 0/8 and 118 at 8/8. Round 1: 38 at 0/8 and 114 at 8/8. Round 1 has more problems at 3/8 (12 vs 2) and fewer at 1/8 (4 vs 10); this is a redistribution within the solved set, not a frontier gain. Sources: base/ver_n8_c30000.jsonl and round_01/eval/ver_n8_c30000.jsonl.
Figure 9. Verifier outcome per sample (first reasons entry, log scale). Base / round 1 counts: accepted 1,299 / 1,300, compile_error 406 / 389, no_code 32 / 61, timeout 67 / 55, memory 3 / 1, crash 1 / 1, banned 0 / 1. Source: the same two files.
Base-model context, not this model: under the align harness the untrained base scored miniF2F-test pass@32 = 82.8% (202/244) at a 40,960-token cap (align/docs/evidence/sota_repro_2026-10-14/report.md). The published standard-mode figure is 83.0% pass@32 (84.6% with two rounds of self-correction, a different protocol). This model was not evaluated on miniF2F-test or MOBench; those sets were held out (protected) for a future pre-registered comparison.
7. Results discussion and lessons learned
- Null result. Round 1 equals the base on solved@8 (188 vs 188, 2/2 discordant) and pass@1 (71.90 vs 71.85). Seed-to-seed spread of this one model (187–191) is larger than any difference from the base.
- The update is tiny, and the bf16 merge shrinks it further. At peak LR 2e-5 over 28 steps, adapted matrices moved by a relative 3.5e-4 on average. Rounding the merge to bf16 then discarded 87.9% of the nonzero delta elements (delta cosine 0.50), and the 0.7 average scales what remains by another 0.7. A model this close to its base should behave like its base, and the evals agree. Lesson: for low-LR LoRA on a post-trained base, serve the adapter un-merged, or merge in fp32 and measure delta retention before deciding the method failed.
- The SFT loss was flat from step 1 (first-4 / last-4 micro-step means 0.151 / 0.191 nats/token; epoch-1 vs epoch-2 means 0.175 vs 0.173; per-micro-step means range 0.09–0.21). Self-generated shortest proofs are already high-likelihood under π₀, so rejection sampling at T = 1.0 with shortest-first ranking produces almost no new signal.
- Selection never touched the frontier. In all three rounds, in-band plus unmeasured statements filled the 300 slots, so 0 never-solved statements were attempted. The data re-fits a band the model already owns. No never-solved pool statement was trained on, so the campaign never tested whether training at the frontier helps. On valid, the 38 problems unsolved by the base remained unsolved (38 at 0/8).
- Rounds 2–3 did not climb (187, then 185; neither change is significant). The stop rule ended the campaign on
regressionand kept round 1. - Infrastructure bugs found by this run, both fixed before training completed:
pipeline_gen_verify.generation_completerejected aPath(fe887a6), andcount_tokenswas not forwarded forglobal_token_mean(de55434). - What followed: the campaign result moved the project off band SFT toward repair and verifier-feedback approaches (
align/docs/SOTA_PLAN.md§4.1).
8. Intended use, limitations and risks
- Intended use: research on Lean 4 automated theorem proving, as a reproducibility artefact for expert iteration on Goedel-Prover-V2-8B, and as a paired-null reference checkpoint. Use it the same way as the base (same prompt format, sampling T ≈ 1.0, long caps). The shipped
generation_config.jsondefaults to T 0.6, top-k 20, top-p 0.95, which is not the evaluated setting. - Not a better prover. Use the base model unless you specifically need this checkpoint.
- Every output must be checked by Lean. The model routinely emits non-compiling code (about 21% of eval samples were compile errors) and can emit
sorry(1 of 1,808 eval samples, 19 of 2,400 harvest samples), which the strict verifier rejects. The reported numbers depend on the verifier configuration above (Lean v4.9.0-rc1, strict statement matching, axiom whitelist). A looser checker could accept proofs this card counts as failures. - Evaluation limits: one benchmark (miniF2F-valid, 226 problems), which is also the stop-rule development set; n = 8 only; no test-split number.
- Licence note: some training statements come from
nvidia/Nemotron-Math-Proofs-v1(CC-BY-SA-4.0). The trained targets are the model's own proofs. Any dataset re-released from these rows must carry CC-BY-SA-4.0. - Risks: few beyond the base model's. Long outputs (mean 4.2k tokens, p90 about 9.6k) cost real compute.
9. Reproducibility
- Code: the
alignrepo (GitHubviai957/align, which is private; the commits below cannot be resolved publicly). A public snapshot of the stack is atviai957/alignon the Hub; it is not pinned to the commits below. The campaign started at2eb6baa(driver) /f2d46ad(W&B sidecar), and round 1 completed with the fixesfe887a6andde55434(2026-10-24 05:36 IST). The ProofForge re-evaluations and the base anchor ran from the ProofForge repo (runs/p5_eval/launch_eval.py). - Run artefacts:
align/runs/campaign1/ei/round_01/(round_manifest.json,stages/*.done.jsonwith full argv and chain hashes,sft_data/manifest.json,gen/,eval/),align/runs/campaign1/pool.jsonl(pool sha2564ea07091…146f). - Commands (as recorded in the stage markers; all heavy steps ran under
hostguard.py runcaps):
# harvest (base model, 300 statements x 8)
python scripts/p2/pipeline_gen_verify.py --run-dir runs/campaign1/ei/round_01/gen/run_r0 \
--gen-args "--problems runs/campaign1/ei/round_01/select/problems.jsonl --out .../gen_r0.jsonl \
--model <Goedel-Prover-V2-8B@dfd02e62> --n 8 --cap-tokens 16384 --round 0 --tp 4 --seed 1000" \
--problems runs/campaign1/ei/round_01/select/problems.jsonl --verify-out .../ver_r0.jsonl --workers 8
# SFT data
python scripts/p2/build_sft_data.py --generations .../gen_r0.jsonl --verifications .../ver_r0.jsonl \
--problems .../select/problems.jsonl --eval-problems .tmp/p2/problems/{minif2f_valid,minif2f,mobench}.jsonl \
--cap-tokens 16384 --max-per-problem 4 --max-correction-per-problem 1 --rank shortest --max-seq-len 18432 --seed 0
# LoRA SFT (4 GPUs)
python -m torch.distributed.run --standalone --nproc_per_node=4 scripts/sft.py configs/p2_sft.toml \
--data.shard_dir=.../sft_data/shards --data.manifest_path=.../sft_data/manifest.json \
--paths.checkpoint_dir=.../sft --paths.model_snapshot=<base snapshot>
# merge + export parity check, then weight average
python scripts/qwen3_export_check.py run --ckpt <sft>/micro_00000056 --out-dir .../export --r 64 --alpha 128.0 --keep
python -m align.model.weight_average --base <base snapshot> --ft .../export --ft-weight 0.7 --out .../avg
# eval
python scripts/p2/pipeline_gen_verify.py --run-dir .../eval/run --gen-args "--problems .tmp/p2/problems/minif2f_valid.jsonl \
--out .../gen_n8_c30000.jsonl --model .../avg --model-rev campaign-r1 --n 8 --cap-tokens 30000 --round 0 --tp 4 --seed 0" \
--problems .tmp/p2/problems/minif2f_valid.jsonl --verify-out .../ver_n8_c30000.jsonl --workers 8
- Card numbers: every number above is mapped to its source file and field in
evidence.json, which ships next to this card. The figures were drawn from logged values only, by_work/analyze.py. - Inference:
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained("viai957/Goedel-Prover-V2-8B-EI-campaign1-r1")
model = AutoModelForCausalLM.from_pretrained("viai957/Goedel-Prover-V2-8B-EI-campaign1-r1", torch_dtype="bfloat16", device_map="auto")
stmt = "theorem t (a : ℕ) (h₀ : a = 15000 * 7200) : a = 108000000 := by sorry"
prompt = ("Complete the following Lean 4 code:\n\n```lean4\nimport Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\n"
"open BigOperators Real Nat Topology Rat\n\n" + stmt + "```\n\nBefore producing the Lean 4 code to formally prove the given theorem, "
"provide a detailed proof plan outlining the main proof steps and strategies.\nThe plan should highlight key ideas, "
"intermediate lemmas, and proof structures that will guide the construction of the final formal proof.")
ids = tok.apply_chat_template([{"role": "user", "content": prompt}], add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=30000, do_sample=True, temperature=1.0, top_p=0.95)
print(tok.decode(out[0, ids.shape[1]:], skip_special_tokens=True)) # verify the ```lean4 block with Lean 4.9.0-rc1 + Mathlib
10. Related repos, licence, citation
- Next rounds of the same campaign:
viai957/Goedel-Prover-V2-8B-EI-campaign1-r2andviai957/Goedel-Prover-V2-8B-EI-campaign1-r3. - Statement mirror used for the pool:
viai957/lean-prover-data. - Other Goedel-8B work from the same stack:
viai957/Goedel-Prover-V2-8B-VLG-planner-sft-loraandviai957/align. - Base model:
Goedel-LM/Goedel-Prover-V2-8B(Apache-2.0). This derivative is also released under Apache-2.0. Statement sources and their licences are listed in §3, including the CC-BY-SA-4.0 notice for Nemotron-Math-Proofs-v1.
@misc{viai957_goedel8b_ei_campaign1_r1_2026,
title = {Goedel-Prover-V2-8B-EI-campaign1-r1: one round of verifier-filtered expert iteration on Goedel-Prover-V2-8B (a paired-null result)},
author = {viai957},
year = {2026},
howpublished = {\url{https://huggingface.co/viai957/Goedel-Prover-V2-8B-EI-campaign1-r1}},
note = {miniF2F-valid solved@8 188/226 vs base 188/226, exact McNemar p = 1.0}
}
@article{lin2025goedelproverv2,
title = {Goedel-Prover-V2: Scaling Formal Theorem Proving with Scaffolded Data Synthesis and Self-Correction},
author = {Lin, Yong and Tang, Shange and Lyu, Bohan and others},
journal = {arXiv preprint arXiv:2508.03613},
year = {2025}
}