Documentation

ReflectiveSubsystems.ShiftedSpikeHost

The lag-6 host and witness substrate for the second certified design #

The certified block-pair host (BlockPairHost.lean, BlockPairWitness.lean) carries literal 0's own recursion o u = ¬(o (u - 8)) ⊕ noise: window width 8 and recursion lag 8 coincide, so the window's own shift-and-complement structure (ReflectiveSubsystems.noisyStep, complementing window cell 0, the OLDEST cell) already computes it. Literal 2's recursion is o u = ¬(o (u - 6)) ⊕ noise — window width stays 8 ([Inevitability] Definition 2.3's eight-literal code region), but the lag is 6, so the cell that must be complemented is not the oldest but window cell 2: at target counter u, TapeHost.designWindow's convention "cell i holds the observation at u - 8 + i" gives u - 8 + i = u - 6 exactly at i = 2. This is the one genuinely literal-specific layer, and it is confined to two bespoke definitions below (windowMap2, tape2); everything else mirrors BlockPairHost.lean/BlockPairWitness.lean line for line with the design, the modulus (22 in place of 24), and the loaded literal (2 in place of 0) substituted.

BlockPairHost.subUpdate's own window-shift branch already reads s (Sum.inr (Sum.inl (BlockPairHost.decodeRule M s))) — the DECODED literal's own cell, not a hardcoded 0 — so the witness substrate below (subUpdate2) needs no change to that structure at all: loaded one-hot at 2, decodeRule2 reads back 2, and the same branch automatically consults window cell 2. Only the correction term (BlockPairHost.tape, becoming tape2) and the loaded code are literal-specific.

Main results #

Scope #

Deliberately out of scope, as this pair statement does not need it and [Inevitability] registers 𝒮_L membership only for the landed (literal-0) host: the membership capstone (BlockPairHost.witness_substrateL's analogue), (S1)'s witness clause (BlockPairHost.subUpdate_reads_code's analogue), and the counter's own closed-form orbit (BlockPairHost.readCounter_iterate_load's analogue) — none of these are consumed by the tower rung this substrate feeds. Also out of scope, as BlockPairHost.lean's own periodicity section is for the certified host: the parallel-cycle theorem (BlockPairHost.windowXor/BlockPairHost.rot8/BlockPairHost.update_iterate_period_all's analogues) — the rung witness needs only the designed orbit.

The lag-6 host #

def ReflectiveSubsystems.ShiftedSpikeHost.tape2 (M : ℕ) [NeZero (2 * (2 * M))] (u : ZMod (2 * (2 * M) * 22)) :

The tape's own bit at u, at literal 2's own lag 6: whether the design agrees with its value six steps back.

Equations
Instances For

    The literal-2 window-shift map: ReflectiveSubsystems.windowMap's own shape, with the complemented cell moved from 0 to 2.

    Equations
    Instances For
      def ReflectiveSubsystems.ShiftedSpikeHost.update2 (M : ℕ) [NeZero (2 * (2 * M))] :
      (Fin 8 → Bool) × ZMod (2 * (2 * M) * 22) → (Fin 8 → Bool) × ZMod (2 * (2 * M) * 22)

      One step of the lag-6 host: the window steps by noisyStep2 on the tape bit at the counter's next position, while the counter itself advances by one.

      Equations
      Instances For
        def ReflectiveSubsystems.ShiftedSpikeHost.designWindow2 (M : ℕ) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 22)) :
        Fin 8 → Bool

        The design's own length-8 window ending at counter c: the oldest coordinate first, mirroring TapeHost.designWindow.

        Equations
        Instances For
          theorem ReflectiveSubsystems.ShiftedSpikeHost.update2_iterate_designWindow2 (M : ℕ) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 22)) (t : ℕ) :
          (update2 M)^[t] (designWindow2 M c, c) = (designWindow2 M (c + ↑t), c + ↑t)

          The designed orbit. Started at the design's own window ending at counter c, the host's state after t steps is the design's window ending t further along, mirroring TapeHost.tapeUpdate_iterate_designWindow.

          The witness substrate: memory layout, update, and loading #

          @[reducible, inline]

          The witness's cell index at literal 2: 8 code cells, 8 window cells, and a finite binary counter register of Nat.size (2 * (2 * M) * 22) cells, mirroring BlockPairHost.Idx at this pair's own modulus.

          Equations
          Instances For
            @[reducible, inline]

            The witness's memory, in [Decoupling]'s own shape: one Bool per cell.

            Equations
            Instances For

              The code region: the cells holding the committed literal.

              Equations
              Instances For

                Reading the rule off the code cells, mirroring BlockPairHost.decodeRule.

                Equations
                Instances For
                  theorem ReflectiveSubsystems.ShiftedSpikeHost.counter_val_lt2 (M : ℕ) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 22)) :
                  c.val < 2 ^ (2 * (2 * M) * 22).size

                  The counter register's value stays below 2 ^ Nat.size of its modulus.

                  Reading the counter register, mirroring BlockPairHost.readCounter.

                  Equations
                  Instances For
                    def ReflectiveSubsystems.ShiftedSpikeHost.writeCounter2 (M : ℕ) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 22)) (i : Fin (2 * (2 * M) * 22).size) :

                    Writing the counter register, mirroring BlockPairHost.writeCounter.

                    Equations
                    Instances For

                      One step of the substrate's own dynamics at literal 2. BlockPairHost.subUpdate's own line, verbatim: the window-shift branch already reads the DECODED literal's own cell (decodeRule2 M s), so nothing there changes; only the correction term is literal-specific (tape2 in place of BlockPairHost.tape).

                      Equations
                      Instances For
                        def ReflectiveSubsystems.ShiftedSpikeHost.load2 (M : ℕ) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 22)) :
                        Mem M

                        Loading the substrate's own designed window into the memory, at literal 2. The code is one-hot at literal 2 (in place of 0); the window and counter loading are otherwise BlockPairHost.load's own line.

                        Equations
                        Instances For

                          The observation the substrate emits: its window's oldest bit, mirroring BlockPairHost.readObs.

                          Equations
                          Instances For

                            The realization theorem: the substrate's own process IS the lag-6 host #

                            Mirroring BlockPairWitness.lean's own realization section: the (window, counter) projection commutes with the two updates given the code names literal 2, the code stays one-hot at 2 along the whole loaded orbit, and the combined orbit theorem transports update2_iterate_designWindow2 as a black box.

                            theorem ReflectiveSubsystems.ShiftedSpikeHost.readObs_iterate_load2 (M : ℕ) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 22)) (t : ℕ) :
                            readObs2 M ((subUpdate2 M)^[t] (load2 M c)) = designObs2 M (c + ↑t)

                            The realization theorem. Reading the substrate's own observation cell along its own update's orbit, from its own loaded state, reproduces designObs2 exactly — pointwise, mirroring BlockPairHost.readObs_iterate_load.

                            Axiom audit #