Identifier
F:fo-diagonal-lemma
Proof route
Not assigned
External status
proved
Axiom footprint
Empty

Recorded description

For every formula psi with one free variable there is a sentence delta such that the theory proves delta if and only if it proves psi applied to the numeral of delta's own Goedel number. STILL NOT ESTABLISHED HERE, but both prerequisites this row recorded are now discharged and the remaining obstruction is a different one. (i) The diagonalization function is built and its identity is PROVED: FO.Code.diagAux sends the code of p to the code of p with the numeral of its own code substituted, and FO.Code.diagAux_code says so (F:fo-diagonal-identity), on top of the decoder round trip and the commuting lemma. (ii) The calculus HAS a Leibniz rule as of ADR-1648: FO.Provable.eqf_subst, the seventeenth constructor, with its soundness case, so a proof that substitutes one numeral for another under a formula IS expressible. What remains is neither of those: the biconditional needs Gamma_Q to PROVE the numeric fact diag m-bar = code delta, i.e. the diagonal function must be REPRESENTABLE in Q, which for a Nat.rec-defined function is Sigma-1 completeness. Nothing in fo_*.rs relates FO.Provable to a computation on Nat in either direction; FO.Formula has no Iff connective (it would be and_ (imp a b) (imp b a)); and representing diag means representing FO.Code.pair, FO.Code.tri, FO.Code.unpair and the fuel recursion. That is a strand, not a step.

Formal statement
theorem FO.diagonal : ((x0 : FO.Context) -> ((x1 : FO.Formula) -> Exists.{1} FO.Formula (fun (x2 : FO.Formula) => Iff (FO.Provable x0 x2) (FO.Provable x0 (FO.Formula.subst x1 (FO.Subst.cons (FO.Formula.numeral (FO.Formula.code x2)) FO.Subst.id))))))

Dependencies

The graph shows direct ledger edges. Follow a node to open its artifact page.

Direct dependencies appear to the left. The current fact is in the center. Facts that depend directly on it appear to the right. The diagonal identity: diag of The Goedel numbering of first-o The fuel-additive decoder round The SELF-fuelled decoder invert Soundness of first-order natura Substitution on Goedel codes ag Current fact Goedel's first incompleteness t
6 direct dependencies 1 direct dependents

Evidence

Provenance

{
  "date": "2026-09-05",
  "curation": "curated",
  "established_by": "not established in this ledger",
  "source": "this row records the measured remaining gap after lane arithmetization landed the numbering and its injectivity (W3-7, ADR-1640)",
  "prior_art": [
    {
      "who": "Kurt Goedel; Rudolf Carnap",
      "what": "the fixed-point construction; Carnap gave the general diagonal lemma Goedel used in the special case",
      "year": 1934,
      "where": "Goedel 1931; Carnap, 'Logische Syntax der Sprache' (1934)",
      "attribution": "standard textbook attribution; this lane did not consult the primary sources"
    }
  ]
}