Question
When a proof checker accepts a statement, how can a reader tell which mathematical question it answered? The distinction matters even for the small number 4, which has the divisor 2.
Data
The lab recorded four declarations from two Lean 4.36.0 modules and one separate positive-integer witness. A declaration pairs a formal statement with a proof. The kernel is the part of Lean that checks whether the proof has that statement as its type.
Method
The archived procedure built fresh modules, replayed compiled declarations, printed their fully qualified types and listed the axioms each proof used. Axioms are starting assumptions. The gate rejected admitted proofs and unapproved axioms. We read the definitions in both source modules and evaluated the separate witness by multiplication and by factorization.
Results
| Declaration | Formal statement | Reading |
|---|---|---|
| successor_gt | (n : Nat) : n + 1 > n | Taking the successor increases a natural number. |
| seven_dvd_mul | (n : Nat) : 7 ∣ 7 * n | The multiplier n witnesses divisibility by 7. |
| sum_first_five | ∑ i ∈ Finset.range 5, i = 10 | The sum runs from 0 through 4. |
| four_prime | Prime 4 | Lookalike.Prime accepts every natural number. |
The divisibility proof supplies its witness directly and uses no axioms. The sum uses the three allowed standard axioms. The successor proof uses two of them. The fourth declaration proves that the proposition True holds, which requires no axioms.
| Positive integer | Its square | Difference |
|---|---|---|
| 1 | 1 | 0 |
Checks
The replay recorded on 26 November 2026 checks proofs against the pinned dependencies. The definition of Lookalike.Prime returns True for every input. Ordinary primality requires a number greater than one with exactly two positive divisors. Four has three. In the square example the two expressions n² − n and n(n − 1) agree at the allowed input 1. This exact counterexample settles the universal inequality.
What it means in plain words
Ask to see the statement that the machine accepted, the definitions behind its words and the assumptions on which it depends. A single counterexample can settle a universal claim even when no proof assistant is involved.
References
- Lean project, kernel checker documentation
The checker replays compiled declarations using Lean’s own kernel.
Opened 2026-11-26 - The Lean language reference
Role of the kernel, declarations and the standard type theory.
Opened 2026-11-26 - Python language documentation, numeric types
The verifier uses Python integers. The documentation states, “Integers have unlimited precision.”
Opened 2026-11-26
Reproduce
From the extracted study folder, run python code/check.py. It verifies the SHA-256 fingerprints, reads the Lean statements and checks the positive-integer witness. It regenerates the declaration and witness tables and the figure using Python’s standard library. The original witness verifier can also be run with python verify.py from code/inputs/integer-counterexample/. The replay result cited here is the archived 26 November run.
To repeat the kernel step, install the Lean release specified in code/inputs/lean-proof-checks/lean-toolchain and Git. The compiled third-party libraries are large and distributed by the Lean and Mathlib projects. Their source URLs and exact revisions are in the accompanying Lake manifest. In that directory, run lake exe cache get to obtain the pinned libraries. From the study folder, run python code/check.py --kernel to rebuild the two modules, replay each declaration and print its type and axioms. An existing matching library directory can be supplied with --packages DIRECTORY.
Change log
26 November 2026. Combined the two lab examples and checked their statements against the frozen sources.
3 December 2026. Source files and reproduction notes were made portable for the archived copy. No result changed.