Gödel's second incompleteness theorem says that a consistent, sufficiently strong theory cannot prove its own consistency, but its standard proof exhibits no concrete computational object whose behavior the theory cannot decide. The busy-beaver program asks for exactly such an object: an explicit Turing machine, small enough to write down in full, whose halting behavior the axioms of set theory leave open. Yedidia and Aaronson gave a 7,910-state, 2-symbol machine whose behavior is independent of ZFC (arXiv:1605.04343). In 2026, Elliot Glazer verified in Rocq that a 230-state machine, K230, halts if and only if ZFC is inconsistent (k230-rocq), and James Chang gave a 209-state machine whose blank-tape halting is independent of ZF, with the whole argument checked in Lean 4 (ZF209). This mission formalizes Chang's 207-state successor (ZF207): the same proof search with a smaller decoder for the stored program, together with a sentence of set theory that expresses its halting in every model of ZF.
Timeline: Gödel (1931) proved incompleteness abstractly; Yedidia–Aaronson (2016) made it concrete at 7,910 states for ZFC; Glazer (2026) reached 230 states for ZFC with a Rocq-verified simulation; Chang (2026) reached 209 and then 207 states for ZF with a Lean-verified simulation and an explicit halting sentence.
The machine. is a Turing machine with tape alphabet , infinite in both directions, starting on the all-zero tape. States are working states and is the halt label; the transition table has one row for each pair in (414 rows, fixed in the development as literalRows). The machine interprets a register program stored as a binary tree and enumerates command words, searching for a refutation in a fixed numeric calculus for set theory; it halts exactly when the search succeeds.
The theory. ZF is ordinary classical first-order Zermelo–Fraenkel set theory with full Separation and Replacement and without Choice. In the Lean development, formulas carry de Bruijn indices (PalomarZF207.Formula); Provable p means a natural-deduction derivation (ND) from the fixed ZF axioms and the two schemas with arbitrary finite parameter lists; Consistent is ; and Model E means that every axiom is valid under every assignment in the membership relation on a domain , with nonemptiness required separately at each use.
Halting, internally. For a model , the predicate InternalLinkedHalts E asserts the existence of an internally finite halting history of from the blank tape: configurations coded by Cantor pairing, a linked run given by an internal set function, and a terminal configuration. All witnesses are objects of the model, and the history may have nonstandard length.
The halting sentence. Represents207 H says that is closed and that in every nonempty model of ZF, under every assignment, holds exactly when InternalLinkedHalts holds.
Soundness. Following Definition 1.1 of the paper, ZF is arithmetically -sound (ArithmeticSigma1Sound) if every closed arithmetic sentence that ZF proves is true in the standard natural numbers. The Lean form quantifies over the full class SigmaFormula, with standard evaluation natEval, model-internal relational evaluation internalEval, and the representation predicate RepresentsArithmetic.
The goal is Theorem 1.2 of the paper, in the exact standalone form PalomarZF207.Exact207Claim:
The milestones factor the claim. They are stated for an arbitrary representing sentence; the sentence constructed in the paper is one such.
The theorem gives a fully explicit 207-state witness to the incompleteness of ZF: under arithmetic -soundness, ZF decides neither halting nor nonhalting of this machine, so the busy-beaver value at 207 states is not determined by ZF. The improvement from 209 to 207 states comes from a smaller decoder, with the simulation rechecked against the new literal table rather than inherited.
The claim is already proved and machine-checked in the source repository: a Lean 4.35.0 development on Mathlib and the vendored Foundation library, with an axiom audit reporting only propext, Classical.choice and Quot.sound, and independent statement comparison and replay checks. The remaining work is a self-contained formalization of the known proof against the standalone statement fixed here, in the mission's environment (Lean 4.33.1 with Mathlib), without the vendored Foundation: the meaning theorem, the calibration argument behind the unprovability clauses, and the literal-table simulation, rebuilt from the definitions.
The meaning theorem must hold in every model of ZF, including models with nonstandard natural numbers: the halting history is only internally finite, and all arithmetic is relational inside the model. An argument that treats only the standard model, or only well-founded models, does not prove the target.
The naive route to unprovability of — apply Gödel's second theorem directly to ZF's own provability predicate — fails: no derivability conditions for that predicate are available. The unprovability clauses must be obtained without them.
On the machine side, the simulation is literal: every instruction of the stored register program must be checked against the 207-state table, including the 58,616-step startup from the blank tape. Finally, -soundness is a hypothesis about the full class, not merely about the halting sentence.
Three definition bundles fix the statement, taken verbatim from the author's standalone Challenge.lean (the only edit: forced type annotations on natural-deduction binders, required by the server's autoImplicit = false):
Def_palomar_zf207_history — the literal table and the model-internal halting semantics;Def_palomar_zf207_zf — the de Bruijn syntax, natural deduction, fixed axioms and schemas, Provable, Consistent, Model;Def_palomar_zf207_statement — the class, the representation predicates, and Exact207Claim.Committed conventions: equality is in the syntax with explicit logical axioms; the schemas carry arbitrary finite parameter lists; the initial state is , not a parameter; true means move right; Neg H is imp H bot; nonemptiness is a separate hypothesis at every quantified model use.
The statement admits no trivializing reading: Represents207 is a conclusion about a constructed closed sentence, never a hypothesis supplying an unspecified halting predicate, and the table is the literal 414-row table. The external nonhalting clause of Theorem 1.2(1) (" does not halt") is proved in the source through the physical machine layer and is not part of the exact compared statement targeted here.
The standalone ZF proof system and the representation predicate are reusable beyond this mission. Contributions are welcome on soundness and completeness of the natural-deduction system, the calibration argument, the machine simulation, and alternative proofs of any milestone.
namespace PalomarZF207 theorem exact207Claim : Exact207Claim := by sorry end PalomarZF207
Theorem 1.2 of Chang's ZF207 paper, in the exact standalone form checked by the source repository's statement comparator. There is a closed sentence of the language of set theory such that:
Represents207 H).Consistent), then ZF does not prove .ArithmeticSigma1Sound, the full-class form of Definition 1.1), then ZF proves neither nor .The machine-meaning clause and the compiler correctness behind it are conclusions, not assumptions: the sentence must be constructed and its meaning proved in every ZF model. The source repository proves this claim in Lean 4.35.0 (PalomarZF207.exact207Claim, via ZF207.Halting.exact207Claim); the present target is the same statement against the standalone definitions, to be proved in the mission environment. The external nonhalting clause of Theorem 1.2(1) is proved separately in the source and is not part of this exact statement.
No open leaves. Every sub-goal is proved or awaiting decomposition.