← Adversarial Mathematics: From First Principles

Statuses and Approvals

Why a kernel's acceptance and a person's approval are different things, how the runner turns a run into one status line, what an approval record must contain to count, and why no machine, including an AI, can ever produce one. Fermat's investigation before and after its approval.

Every run ends with one line, such as

Status: kernel_checked_correspondence_pending

The line has two halves on purpose. The first says what the machines did. The second says what a person has decided. This chapter is about why those must be kept apart, and how the laboratory keeps them apart.

Two questions with different answerers

Chapter 15 — What a Formal Proposition Says (Part II, Chapter 6) separated five parts of a checked declaration and showed that the kernel guarantees one relation among three of them: the proof has the type of the proposition, using the listed axioms. The fifth part, whether the proposition says what the claim means, is not a question a kernel can answer. One side of it is English, or a 1640 letter, or a figure in an 1890 journal.

So a run answers two separate questions.

  1. Did the checks pass, on the pinned tools? A machine can answer this, and the runner does.
  2. Does what was checked correspond to the claim? Only a person can answer this. The person answerable for the claim records that answer separately, in a file the runner reads but never writes.

The status line puts the two answers side by side. It never lets the first stand in for the second.

How the status is decided

run_investigation decides the status in a fixed order. The first rule that applies wins.

Condition Status
any check or control did not behave as the contract expects run_failed
only some of the contract’s systems were run partial_run
everything passed, but not in the pinned image with the expected versions checked_unpinned
everything passed in the pinned image, and there is no valid approval <kind>_correspondence_pending
the same, and there is at least one valid approval <kind>_correspondence_approved

<kind> is kernel_checked, computed or historical_verified: what this execution produced (Chapter 21). The order matters. A failed control is never outweighed by an approval, and an approval never upgrades a rehearsal.

Each status comes with a fixed sentence, printed under it and written into the notebook, so the meaning travels with the label. For the last two:

Kernel-checked on the pinned toolchain. The correspondence between the claim and the formal statements awaits the author’s approval, so no formal finding is attached yet.

Kernel-checked on the pinned toolchain, with the correspondence approved by the author. Human mathematical review is recorded separately.

What counts as an approval

Approvals live in each investigation’s approvals.json. The runner counts a record only if all four of these hold (valid_approvals):

  • reviewer_role is user or human;
  • decision is approve;
  • correspondence names this contract’s correspondence id;
  • contract_sha256 is the hash of the contract as it is now.

Everything else is ignored, silently and on purpose. (This protects against an approval being reused for a changed contract. It does not protect against someone who can edit approvals.json itself: the record is trusted because it is kept in the repository’s history under the reviewer’s name, not because of anything the runner can check.) A record written by a script, an agent or a reviewing AI has no approving role and does not count. A record for a different correspondence does not count. A record for an earlier version of the contract does not count: change one character of investigation.json and every approval for it lapses, and the next run is pending again. Approving a contract means approving those exact bytes.

The rule is enforced at the point where it matters, in the code that computes the status, and stated again in every approvals file:

"rule": "Only records with reviewer_role 'user' or 'human' count. Each record
  names the correspondence id and the investigation.json sha256 it approves; a
  changed contract voids it. No machine-generated record is valid."

Fermat, before and after

A recorded Fermat run shows exactly what an approval changes. Two of its runs are compared below.

Before After
Run 20261113T121659Z-e91fdfcd (kernel-runs/2026-11-13-clean-d4189ac/) 20261113T161233Z-9c5ae090 (kernel-runs/2026-11-13-approved/)
Contract sha256 ef384bbf… sha256 ef384bbf…, the same
Checks and controls 3 checks passed, 9 of 9 controls refused identical, check by check
Approvals found 0 1
Status kernel_checked_correspondence_pending kernel_checked_correspondence_approved

The contract did not change, and nothing about the mathematics changed. Between the two runs one approval record was added:

{
  "correspondence": "N1-CORR-01",
  "contract_sha256": "ef384bbfd65f8bdaca0f466cb252a855dc3b9e2578fcb24b83a69eb4d71d0704",
  "reviewer": "<person answerable for the claim>",
  "reviewer_role": "user",
  "decision": "approve",
  "date": "<date>",
  "notes": "What the approval covers, and what it does not."
}

Read the notes. The approval is narrow: the Lean and Rocq statements express the claim, and the three bridges between ℕ and ℤ are accepted as argued. It says nothing about whether Fermat wrote what the secondary sources say he wrote. That is a separate obligation, and it stays open.

The contract still says “pending”

An approved run’s contract can still read

"status": "pending_author_approval"

in its correspondence block. That is not an error. The contract cannot record its own approval: editing it to say “approved” would change its hash and void the approval. The state is read from the approvals file at run time. A notebook must therefore derive the state from the valid approval records, as the status does (_approval_line in src/math_engine/proofs/notebook.py), not from the contract’s own field. Otherwise an approved run can display “pending” beside an approved status.

What an approval does not mean

kernel_checked_correspondence_approved is the strongest status a run can have, and it is still narrow. It does not mean:

  • that anyone has independently reviewed the argument, its sources, or its completeness. The approval covers correspondence only.
  • that the sources are faithful. Fermat’s approval explicitly excludes the 1640 wording.
  • that the evidence is fresh. historical_verified_correspondence_approved is possible, and would say that a person approved the correspondence of evidence imported from an earlier run. No kernel ran.

Why an AI never approves

An AI can propose, draft, program and search for errors. It cannot approve: the code makes that a rule rather than a habit, and there is no role an AI can hold that valid_approvals counts.

The reason is the same as the reason a kernel cannot approve. Correspondence is a judgement that the formal object says what the prose claim says. An AI can argue for that judgement, and a good one often argues well. But the person answerable for the claim makes the judgement and records it. Chapter 27 of this part returns to the role of AI.

Try it yourself

  1. In a copy of the repository, add a record to n1-fermat/approvals.json with "reviewer_role": "assistant" and run Fermat. What status do you get?
  2. Change the record’s contract_sha256 to the hash of Gabriel’s contract and run again. What happens, and which line of valid_approvals decides it?
  3. Fix a typo in Fermat’s does_not_establish list and run again, with the genuine approval in place. Explain the status you get, and say what would have to change to restore the approval.
  4. For the Kempe investigation, suppose its correspondence had no approval record. Write, in two sentences, what an approval would assert, and what it would still not assert.
  5. Why can a run be run_failed and have a valid approval at the same time?

Worked answers: Chapter 35 — Appendix A: Solutions to the Exercises (Part IV, Appendix A)#chapter-5-statuses-and-approvals.

Evidence record

Status rules STATUS_TEXT, STATUS_PREFIX, APPROVING_ROLES, valid_approvals, run_investigation in src/math_engine/proofs/runner.py
Notebook rendering _approval_line, _since_approved in src/math_engine/proofs/notebook.py
Approval record experiments/investigations/n1-fermat/approvals.json
Runs compared n1-fermat/kernel-runs/2026-11-13-clean-d4189ac/ and n1-fermat/kernel-runs/2026-11-13-approved/
Scope an approval applies only to the exact contract it names; a changed contract voids it

Further Reading

For deeper study; not sources for the chapter’s claims.

  1. John Hardwig. “Epistemic Dependence.” The Journal of Philosophy 82(7) (1985), 335–349. DOI. Why read it: A philosophical account of justified reliance on others’ testimony, directly relevant to why an approval is a person’s judgement rather than a machine result.
  2. Donald MacKenzie. “The automation of proof: a historical and sociological exploration.” IEEE Annals of the History of Computing 17(3) (1995), 7–29. DOI. Why read it: A historical and sociological study of trust in automated proof, complementing the book’s rule that no machine-generated record counts as approval.

Next in Part III: Chapter 25, what the records and notebooks contain.