← Adversarial Mathematics: From First Principles

All Eight Investigations

For each investigation: the command, what it runs, where its contract and inputs live, where its recorded run is, the evidence it produced, and what it does not establish. Plus the tutorial.

Every investigation runs with the same command, in the image:

docker run --rm --network none -e UV_OFFLINE=1 -e MATHENV_IMAGE_ID=$img -v "${PWD}:/source:ro" -v "${PWD}/out:/out" math-env uv run --offline math-engine proof NAME --out /out/proof-NAME

and, where no Mathlib is needed, outside it as math-engine proof NAME. Contracts are in experiments/investigations/<directory>/investigation.json. Every recorded run below passes the record verifier.

At a glance

Part I NAME Directory Evidence Checks Controls Recorded run Evidence result
1 fermat n1-fermat kernel Lean, Rocq, computation 9 kernel-runs/2026-11-13-approved/ kernel checks passed; correspondence recorded
2 abel-f1 n2-abel-f1 kernel Lean, computation 5 kernel-runs/2026-11-13-pinned/ Lean checks passed
3 haraux p03-haraux historical pinned inputs, 02F archive, computation ×2 1 runner-runs/2026-11-13-pinned/ imported historical record verified
4 wrong-theorem p04-wrong-theorem kernel (core Lean) pinned inputs, demonstration 1 runner-runs/2026-11-13-pinned/ core Lean demonstration passed
5 grasshopper n3-grasshopper historical pinned inputs, audit archive, log analysis 1 runner-runs/2026-11-13-pinned/ imported audit verified
6 kempe p06-kempe computation pinned inputs, computation 1 runner-runs/2026-11-13-pinned/ exact computation passed
7 simpson p07-simpson kernel Lean, Rocq, computation 8 kernel-runs/2026-11-13-v2-pinned/ kernel checks passed
8 gabriel p08-gabriel kernel Lean, computation 5 runner-runs/2026-11-13-v2-pinned/ kernel checks passed
III-9 cube-tutorial t1-cube-tutorial kernel (core Lean); tutorial Lean, computation 5 runner-runs/2026-11-14-pinned/ tutorial; core Lean checks passed

Superseded runs are kept beside these: Fermat’s earlier runs, Simpson v1 (kernel-runs/2026-11-13-pinned/) and Gabriel v1 (kernel-runs/2026-11-13-v1-pinned/). Verifying a v1 run today reports that the contract has changed since the run, which is correct.

Each investigation

fermat (Chapter 2 — One Number Against Fermat (Part I, Chapter 1)). Proof files formal/lean/FermatEuler.lean, formal/rocq/FermatEuler.v. Computation: python -m math_engine.proofs.fermat_compute --divisor 641 --cofactor 6700417. The recorded run is the worked example used in Part III. Does not establish: anything about 2^(2^n) + 1 for n > 5, or Fermat’s exact wording.

abel-f1 (Chapter 3 — Continuous Terms, Discontinuous Sum (Part I, Chapter 2)). Proof file formal/lean/AbelF1CosSum.lean. Computation: python -m math_engine.proofs.abel_f1_compute --constant 1/2. Does not establish: anything about the infinite series; steps 2 to 5 of Abel’s argument are open.

haraux (Chapter 4 — Two Clocks, Two Questions (Part I, Chapter 3)). Imports MATH-INV-02F run 2 (math-inv-02/kernel-runs/2026-11-13-02f-run2/, 78 files) read-only. Computation: python -m math_engine.proofs.haraux_compute --v 3/5; the reader ledger alone: python experiments/investigations/math-inv-02/reader_events.py --v 3/5. A fresh kernel re-execution is run_02f.sh in the image, outside the reference check. Does not establish: anything about the physical world; the reading of the paper is our interpretation, not a formal result.

wrong-theorem (Chapter 5 — The Wrong Theorem (Part I, Chapter 4)). Demonstration experiments/investigations/p04-wrong-theorem/demo.py with core Lean 4.35.0; claim claim.json pinned by sha256; four cases in cases/; historical gate in historical/. Outside the image: math-engine proof wrong-theorem with MATH_PROOF_CORE_LEAN set. Does not establish: that the statement gate refuses every possible attack.

grasshopper (Chapter 6 — The AI Proof That Wasn’t Finished (Part I, Chapter 5)). Imports the audit record (n3-grasshopper/kernel-runs/2026-11-13-pinned/, 7 files) and re-reads its kernel logs: python -m math_engine.proofs.grasshopper_logs. The audit itself runs in its own image, grasshopper-env:4.28.0 (docker/grasshopper/), as shown in Chapter 6 — The AI Proof That Wasn’t Finished (Part I, Chapter 5). The e-print is stored with the research sources; the audit reads it into a scratch directory, and the logs remain private. Does not establish: a fresh kernel execution, or the relation to IMO 2009 Problem 6.

kempe (Chapter 7 — The Proof That Lasted Eleven Years (Part I, Chapter 6)). Inputs heawood-fig18.json (25 regions, 69 boundaries) and src/math_engine/proofs/kempe_compute.py, both pinned. Computation and control --drop B3-Gout. No proof kernel. Does not establish: that the transcription is Heawood’s map.

simpson (Chapter 8 — When Every Group Says Yes (Part I, Chapter 7)). Proof files formal/lean/SimpsonParadox.lean, formal/rocq/SimpsonParadox.v. Computation: python -m math_engine.proofs.simpson_compute. Does not establish: any causal conclusion.

gabriel (Chapter 9 — A Horn You Can Fill but Cannot Paint (Part I, Chapter 8)). Proof file formal/lean/GabrielHorn.lean (Lean only). Computation: python -m math_engine.proofs.gabriel_compute --volume pi. Does not establish: that these integrals are the volume and area of the solid (the classical formula, assumed).

cube-tutorial (Chapter 28 — A Ninth Investigation (Part III, Chapter 9)). Proof file formal/lean/CubeTutorial.lean (core Lean). Computation: python -m math_engine.proofs.cube_compute. A tutorial: its contract says "tutorial": true, it is listed apart, and it is not a claim investigation. Outside the image with MATH_PROOF_LEAN set.

Next in Part IV: Chapter 31, the claim contract field by field.