QouratR&D centreContact

What does a kernel replay establish when a machine checks a mathematical claim?

Four Lean declarations passed the recorded kernel replay. Three express familiar arithmetic facts.

Four Lean declarations passed the recorded kernel replay. Three express familiar arithmetic facts.

The fourth calls 4 prime using a definition that accepts every natural number.

Reading the definition explains how a correct replay can answer the wrong question.

On this page

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

Three arithmetic declarations and one deliberately redefined predicate passed.
All four passed replay, including the example with a misleading name.Open full-size figure
These are the four accepted declarations. Nat means natural number, ∣ means divides, and Finset.range 5 contains 0 through 4.CSV
DeclarationFormal statementReading
successor_gt(n : Nat) : n + 1 > nTaking the successor increases a natural number.
seven_dvd_mul(n : Nat) : 7 ∣ 7 * nThe multiplier n witnesses divisibility by 7.
sum_first_five∑ i ∈ Finset.range 5, i = 10The sum runs from 0 through 4.
four_primePrime 4Lookalike.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.

For the separate claim that squaring always increases a positive integer, the witness gives equality.CSV
Positive integerIts squareDifference
110

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

Download reference list

  1. Lean project, kernel checker documentation

    The checker replays compiled declarations using Lean’s own kernel.

    Opened 2026-11-26
  2. The Lean language reference

    Role of the kernel, declarations and the standard type theory.

    Opened 2026-11-26
  3. 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.

Our review

Rating 7.4 out of 10

  • Question 14 of 15
  • Evidence 17 of 25
  • Verification 11 of 15
  • Sources 13 of 15
  • Usefulness 15 of 20
  • Originality 4 of 10

The four declarations, linked kernel-replay procedure and separately checked integer witness give readers a worked test of what a theorem means, though rerunning Lean requires the archived fixtures.

This is the centre's own review, not peer review by outside scholars; see Policies.

Cite this study

Titles are italic in Harvard, APA, MLA and Chicago.

First published .

Harvard

Qourat 2026, What does a kernel replay establish when a machine checks a mathematical claim?, Research 012, Qourat Research and Development Centre, https://doi.org/10.5281/zenodo.24790406

APA (7th edition)

Qourat. (2026). What does a kernel replay establish when a machine checks a mathematical claim? (Research 012). Qourat Research and Development Centre. https://doi.org/10.5281/zenodo.24790406

IEEE

[1] Qourat, “What does a kernel replay establish when a machine checks a mathematical claim?” Qourat Research and Development Centre, Research 012, Nov. 27, 2026. [Online]. Available: https://doi.org/10.5281/zenodo.24790406

MLA (9th edition)

Qourat. What Does a Kernel Replay Establish When a Machine Checks a Mathematical Claim? Research 012, Qourat Research and Development Centre, 27 Nov. 2026, https://doi.org/10.5281/zenodo.24790406.

Chicago (author-date)

Qourat. 2026. What Does a Kernel Replay Establish When a Machine Checks a Mathematical Claim? Research 012. Qourat Research and Development Centre. https://doi.org/10.5281/zenodo.24790406.

BibTeX

@techreport{qourat-012,
  author = {Qourat},
  title = {{What does a kernel replay establish when a machine checks a mathematical claim?}},
  institution = {Qourat Research and Development Centre},
  number = {Research 012},
  year = {2026},
  date = {2026-11-27},
  url = {https://doi.org/10.5281/zenodo.24790406}
}

Add the date you read the page if your style asks for one.