File size: 4,447 Bytes
834ad2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
license: apache-2.0
language:
- en
tags:
- lean4
- theorem-proving
- minif2f
- multi-agent
pretty_name: mathagents traces (miniF2F, Lean 4 verified)
configs:
- config_name: test_set
  data_files: test_set.jsonl
---

# mathagents: execution traces on miniF2F

Raw traces of a multi-agent system (planner, retriever, generator, autoformalizer,
verifier, critic) that proves miniF2F problems, where a problem counts as solved **only if
the Lean 4 kernel accepts the assembled proof** with no `sorry` and no axioms outside
`{propext, Classical.choice, Quot.sound}`.

Code: <https://github.com/velandia3110/Proyecto-inteligencia-computacional>

## Contents

| Path | What it is |
|---|---|
| `traces/*.jsonl` | The official run, one file per configuration (30 problems each). One `header` line (seed, models, Mathlib commit, repo commit, prompt version, prover token cap), one `call` line per model call, `event` lines, and one `result` line per problem. |
| `raw/*.jsonl` | The two original batches the official files were assembled from (see below). |
| `test_set.jsonl` | The 30 miniF2F test problems evaluated in the traces (`problem_id`, `nl_statement`, `formal_statement`). The test split was opened once. |
| `prompts/*.md` | The prompts used in the traces, frozen before the test set was opened (planner prompt `planner.v2`). |
| `results/` | `analysis.md` and `analysis.json` produced by `python -m src.analysis traces/*.jsonl`. |
| `MANIFEST.sha256` | Checksums of every file above. |

## Setup

- 30 problems from the miniF2F test split, drawn (seed 11, stratified by level and area) from a
  sealed set of 50 (seed 10, stratified by source). Selection reads only problem ids.
- Planner, generator and critic: `qwen3:4b-instruct` via Ollama. Prover: Goedel-Prover-V2-8B,
  bf16, served with vLLM on a 24 GB RTX 4090, max 14,000 output tokens.
- pass@1, temperature 0.6, hard budget of 20 model calls per problem, at most 2 attempts per step.
- Lean 4.15 with Mathlib commit `9837ca9d`.

## Configurations (ablation)

| Config | Description |
|---|---|
| `baseline_a` | One prompt to the prover, whole proof, one call |
| `baseline_b` | Natural-language chain of thought with self-assessment, then formalized |
| `agents_only` | Multi-agent, no retrieval, no critic |
| `no_critic` | Multi-agent with retrieval, no critic |
| `full` | Full system |

## Results

| Config | Solved / 30 | Rate | Wilson 95% CI |
|---|---|---|---|
| `baseline_a` | 13 | 43.3% | [27.4, 60.8] |
| `baseline_b` | 17 | 56.7% | [39.2, 72.6] |
| `agents_only` | 12 | 40.0% | [24.6, 57.7] |
| `no_critic` | 11 | 36.7% | [21.9, 54.5] |
| `full` | 10 | 33.3% | [19.2, 51.2] |

- No pairwise difference is significant after Bonferroni correction (exact McNemar; the
  smallest corrected p is 0.65, `baseline_b` vs `full`). The study is **exploratory**: read
  effect sizes and intervals, not only p-values.
- False positives in `baseline_b`: the model rated 20 of its proofs as correct and the kernel
  rejected 8 of them (40%, Wilson [21.9, 61.3]).
- Valid skeletons in the multi-agent variants: 79 of 90 (88%).

Full tables (calls per problem, verdicts, pairwise comparisons) are in `results/analysis.md`.
The `cost_usd` fields are 0 because no model is billed per token; the GPU rental is not
included in the traces.

## How the official files were assembled

The experiment ran in two batches: the first 20 problems, then the remaining 10. When the
second batch of `full` and `no_critic` was resumed after infrastructure failures, the resume
also re-ran problems from the first batch. `traces/` takes the first 20 problems from batch 1
and the other 10 from batch 2, so each problem appears exactly once per configuration. The
extra rows are kept in `raw/` as a second run: on those 20 problems, `full` solved 9 the
second time versus 6 the first, a run-to-run spread as large as the differences between
configurations.

## Known limitations

- Small local model for planner, generator and critic, so absolute solve rates are not
  comparable with systems that use frontier API models.
- The prover runs without its self-correction loop and with 14,000 output tokens instead of
  the 32,768 of its paper.
- 30 problems and a single sample per problem: intervals of about ±17 points.

## Reproducing

Every number is aggregated from the traces; nothing is computed by hand. Kernel verification
requires the project's Docker image (Lean 4 + pinned Mathlib commit).