Dataset Viewer
Auto-converted to Parquet Duplicate
theorem
stringlengths
16
19
source_file
stringlengths
16
16
proof_axioms
stringclasses
8 values
statement_axioms
stringclasses
4 values
reaches_choice
bool
2 classes
statement_bound
bool
2 classes
choice_eligible
bool
2 classes
reaches_sorry
bool
2 classes
compile_error
bool
2 classes
lean_workbook_10009
Proof_00000.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1001
Proof_00001.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10012
Proof_00002.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10013
Proof_00003.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10014
Proof_00004.lean
propext
null
false
false
false
false
false
lean_workbook_10016
Proof_00005.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1002
Proof_00006.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10026
Proof_00007.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1003
Proof_00008.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10039
Proof_00010.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10041
Proof_00011.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10049
Proof_00012.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10053
Proof_00013.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10057
Proof_00014.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10058
Proof_00015.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1006
Proof_00016.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10064
Proof_00017.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10065
Proof_00018.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10074
Proof_00019.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10075
Proof_00020.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1008
Proof_00021.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10081
Proof_00022.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10082
Proof_00023.lean
Classical.choice Quot.sound propext sorryAx
Classical.choice Quot.sound propext
true
true
false
true
true
lean_workbook_10083
Proof_00024.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10087
Proof_00025.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10088
Proof_00026.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10096
Proof_00028.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10097
Proof_00029.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_101
Proof_00030.lean
propext
propext
false
false
false
false
false
lean_workbook_10113
Proof_00031.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10116
Proof_00032.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10125
Proof_00033.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10135
Proof_00034.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10144
Proof_00035.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10145
Proof_00036.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10147
Proof_00037.lean
Quot.sound propext
propext
false
false
false
false
false
lean_workbook_1016
Proof_00038.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10166
Proof_00039.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10168
Proof_00040.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10170
Proof_00041.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10172
Proof_00042.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10178
Proof_00043.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1018
Proof_00044.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10185
Proof_00045.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10187
Proof_00046.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10191
Proof_00047.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10197
Proof_00048.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10198
Proof_00049.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_102
Proof_00050.lean
Classical.choice Quot.sound propext sorryAx
Classical.choice Quot.sound propext
true
true
false
true
true
lean_workbook_10202
Proof_00051.lean
propext
propext
false
false
false
false
false
lean_workbook_10204
Proof_00052.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10207
Proof_00053.lean
propext sorryAx
propext
false
false
false
true
true
lean_workbook_10208
Proof_00054.lean
Quot.sound propext
null
false
false
false
false
false
lean_workbook_10209
Proof_00055.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1021
Proof_00056.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10218
Proof_00057.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10222
Proof_00058.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10230
Proof_00059.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10236
Proof_00060.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1024
Proof_00061.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10246
Proof_00062.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10253
Proof_00063.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10255
Proof_00064.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10290
Proof_00065.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10291
Proof_00066.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10295
Proof_00067.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10299
Proof_00068.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10305
Proof_00070.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10307
Proof_00071.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10308
Proof_00072.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10309
Proof_00073.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10314
Proof_00074.lean
Classical.choice Quot.sound propext
propext
true
false
true
false
false
lean_workbook_10319
Proof_00075.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1032
Proof_00076.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10328
Proof_00077.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10329
Proof_00078.lean
Classical.choice Quot.sound propext
null
true
false
true
false
false
lean_workbook_10331
Proof_00079.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10337
Proof_00080.lean
Classical.choice Quot.sound propext
propext
true
false
true
false
false
lean_workbook_1034
Proof_00081.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10342
Proof_00082.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10344
Proof_00083.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10348
Proof_00084.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10352
Proof_00085.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10355
Proof_00086.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10358
Proof_00087.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10364
Proof_00089.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10370
Proof_00090.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10373
Proof_00091.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10379
Proof_00092.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10385
Proof_00093.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1039
Proof_00094.lean
Classical.choice Quot.sound propext sorryAx
Classical.choice Quot.sound propext
true
true
false
true
true
lean_workbook_10390
Proof_00095.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10393
Proof_00096.lean
Classical.choice Quot.sound propext sorryAx
Classical.choice Quot.sound propext
true
true
false
true
true
lean_workbook_10395
Proof_00097.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10396
Proof_00098.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_1041
Proof_00099.lean
propext
propext
false
false
false
false
false
lean_workbook_10412
Proof_00101.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10417
Proof_00102.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10421
Proof_00103.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
lean_workbook_10425
Proof_00104.lean
Classical.choice Quot.sound propext
Classical.choice Quot.sound propext
true
true
false
false
false
End of preview. Expand in Data Studio

What machine-generated Lean proofs rest on

Per-theorem axiom dependencies for 9,729 machine-generated Lean 4 proofs.

A model writing Lean gets one bit of feedback: the proof compiles, or it does not. What the proof ends up standing on is not part of that signal. This is that measurement, over the Goedel-Prover output for the Lean Workbook problems.

Headline

Of the 9,169 proofs that still compile under Lean 4.32:

count share
reach Classical.choice 8,496 92.7%
— bound by the statement 7,899 86.1%
— avoidable, proof only 597 6.5%
choice-free entirely 673 7.3%
rest on an unfinished proof 0 0%
use native_decide 0 0%
cite any other axiom 0 0%

Every proof that compiles proves its theorem.

92.7% depending on the axiom of choice reads alarmingly and means almost nothing on its own. 86.1% of those depend on it because of what they say — the theorem is about the real numbers, which Mathlib constructs with choice, and no proof of such a statement can avoid it. Only 6.5% depend on it because of how they were proved. Separating the statement from the proof is what turns one number into two that mean different things.

Fields

column type meaning
theorem string name in the source corpus
source_file string file in banach1729/goedel-workbook-lean427
proof_axioms string axioms the proof rests on, space separated
statement_axioms string union over constants in the theorem's type
reaches_choice bool Classical.choice in proof_axioms
statement_bound bool also in statement_axioms — irremovable
choice_eligible bool proof only — avoidable in principle
reaches_sorry bool sorryAx in proof_axioms
compile_error bool see below

Read this before computing anything

Filter compile_error == False. The corpus targets Lean 4.27; this was measured under 4.32. 560 proofs fail on the version gap, and Lean admits a declaration whose proof failed to elaborate carrying sorryAx. Those rows are present so the drift is auditable, but including them silently reports version skew as a property of the proofs.

All 520 reaches_sorry rows lie inside those 560. Among the 9,169 that compile, none reaches sorryAx.

import pandas as pd
df = pd.read_csv("data/axioms.csv")
ok = df[~df.compile_error]           # 9,169 rows
ok.choice_eligible.mean()            # 0.065
ok.reaches_sorry.sum()               # 0

Method

Axioms come from Lean.collectAxioms, the call behind #print axioms, run per theorem inside the environment. Statement axioms are the union over constants appearing in the theorem's type.

Controls fixed before measuring: a Nat goal closed by omega must show choice in the proof and not the statement; a structural proof must show nothing; a goal over the reals must show choice in both. All three behave as required.

Cross-checked against an independent route — serialising the whole 790,000-declaration environment and recomputing reachability outside Lean gives the same answer on the same subset, and that graph was traversed in both directions returning identical sets.

Why the whole corpus and not a sample

Measuring only the proofs that invoke omega returns 6.5% → 46.6% avoidable. That is wrong by a factor of seven: omega operates on Nat and Int, exactly the population whose statements are choice-free and whose dependence is therefore removable. Any sample drawn on tactic use selects on the outcome.

Where the avoidable dependence comes from

Largely one tactic. omega supplies the Decidable argument of six helper lemmas as a literal Classical.propDecidable and never attempts instance synthesis. On Nat and Int the constructive instance exists and is axiom-free, so an otherwise constructive proof comes out classical. Reported upstream and closed as completed, with the reply that avoiding choice is a deliberate non-goal of Lean core.

Reproducing

pip install gonzalgo

Compile the corpus in batches against Mathlib and run the axiom report. Full method and definitions: https://doi.org/10.5281/zenodo.21769846

Citation

@dataset{gonzalez2026genproofs,
  author = {Gonzalez, Vince},
  title  = {What machine-generated Lean proofs rest on},
  year   = {2026},
  url    = {https://f-keys.com/gonzalgo/generated-proofs/},
  note   = {Measured with gonzalgo; method at doi:10.5281/zenodo.21769846}
}

Source corpus: banach1729/goedel-workbook-lean427, Apache-2.0. This dataset is Apache-2.0.

Downloads last month
35