Documentation

ReflectiveSubsystems.ReflectiveAutomaton

The reflective decision automaton ([Decoupling] §6.5, Proposition 6.5, FV-19) #

Provenance: [Decoupling] §6.5 (Proposition 6.5). This assembles the two threads of §3 and §6 into ONE object: a shared-memory update step on a two-cell memory whose code cell is read-only (so a decoded model persists — the Decoupling Lemma, §3) and whose work cell runs the bounded proof search of §6.3 to decide bounded non-provability, producing the §6 Gödel verdict on the true-but-underivable sentence.

The machine #

The memory has two cells, false (code) and true (work), over the alphabet Val C := C.Formula ⊕ (ℕ × Bool). The code cell holds Sum.inl φ (the sentence under test); the work cell holds Sum.inr (k, b) — a step counter k and the running verdict b. One step:

What this establishes #

ReflectiveSubsystems.Incompleteness is the imported Gödel black box (§6.2), consumed only as a hypothesis; the checker C : ReflectiveSubsystems.BoundedChecker is the abstract §6.3 interface, discharged concretely on the Foundation side.

@[reducible, inline]

§6.5 cell alphabet: a code cell holds a Formula (Sum.inl), a work cell holds a step counter and running verdict (ℕ × Bool) (Sum.inr).

Equations
Instances For
    @[reducible, inline]

    §6.5 machine state: the two-cell shared memory of §3 with cells indexed by Bool (false = code cell, true = work cell).

    Equations
    Instances For

      The work-cell update given the current code and work cells. On a well-formed configuration (code Sum.inl φ, work Sum.inr (k, b)) with the counter within budget (k ≤ M_chk), it folds one more proof code into the verdict: Sum.inr (k+1, b && !(Prf φ k)). Otherwise the work cell is left unchanged.

      Equations
      Instances For

        §6.5 one machine step: the code cell (false) is always fixed; the work cell (true) advances by workNext, reading the sentence off the code cell.

        Equations
        Instances For

          Initial configuration for testing φ: code cell Sum.inl φ, work cell Sum.inr (0, true) (counter 0, verdict true).

          Equations
          Instances For

            Read out the running verdict: the work cell's Boolean, or false on an ill-typed work cell.

            Equations
            Instances For

              Decode the code cell (§3's model read-out).

              Equations
              Instances For

                D1/D2 on the machine ([Decoupling] §3) #

                §3 D1 — the code region {false} is read-only under step, by construction.

                §3 D2 — the code decoder is faithful on {false}: equal decode ⟺ agreement on the code region.

                The code decoder is non-constant: distinct configurations decode differently (a faithful, non-degenerate model — §3).

                §3 (Lemma 3.1, sufficiency) on the machine — the decoded sentence persists across every iteration, obtained through the Decoupling Lemma (model_persists) from step_fixes_code and faithfulness, not a bespoke re-proof.

                The run ([Decoupling] §6.5 / §6.3) #

                theorem ReflectiveSubsystems.BoundedChecker.decide_and_not (P : ℕ → Bool) (j : ℕ) :
                (decide (∀ p < j, P p = false) && !P j) = decide (∀ p < j + 1, P p = false)

                One fold step of the running verdict: extending the search by the next proof code multiplies in !(P j), i.e. decide (∀ p < j, P p = false) && !(P j) = decide (∀ p < j+1, P p = false).

                theorem ReflectiveSubsystems.BoundedChecker.step_run_invariant (C : BoundedChecker) (φ : C.Formula) (j : ℕ) :
                j ≤ C.Mchk + 1 → C.step^[j] (C.init φ) true = Sum.inr (j, decide (∀ p < j, C.Prf φ p = false))

                Run invariant ([Decoupling] §6.5): after j ≤ M_chk + 1 steps from init C φ, the work cell is Sum.inr (j, decide (∀ p < j, Prf φ p = false)) — the counter is j and the verdict is the partial conjunction over the first j proof codes.

                §6.5, Proposition 6.5 (the run). After M_chk + 1 steps the read-out Boolean is exactly the §6.3 bounded-non-provability decision Decide C φ.

                theorem ReflectiveSubsystems.BoundedChecker.automaton_decides_godel (C : BoundedChecker) (True_ : C.Formula → Prop) (g : ℕ) (hInc : Incompleteness C.gnum C.Derivable True_ g) :
                ∃ (G : C.Formula), C.gnum G = g ∧ True_ G ∧ C.readout (C.step^[C.Mchk + 1] (C.init G)) = true

                §6.5, Proposition 6.5 (the verdict). Under imported incompleteness at g (§6.2), the reflective automaton halts after M_chk + 1 steps reading true on a sentence G that is true in the standard model and underivable in the internal logic: representational reflection is a decision automaton for the §6 Gödel phenomenon.