Documentation

ReflectiveSubsystems.TapeHost

The finite autonomous host, over an arbitrary observation sequence #

[Inevitability] §5 Theorem 5.8.

BlockPairHost.lean wraps the certified block-pair design into a finite autonomous host: a length-8 window over a counter valued in ZMod N, stepped by ReflectiveSubsystems.noisyStep on a tape bit read off the design's own observation sequence, at a fixed period N := (2 * (2 * M)) * 24. This module restates that construction with the observation sequence o : ZMod N → Bool and the modulus N themselves as parameters, in place of the certified design and its specific period — the block-pair pipeline's host layer with its sequence made a parameter.

Every proof below is BlockPairHost.lean's own proof, verbatim, with designObs M read as the parameter o and the certified period read as N. The pure rotation lemmas windowXor, rot8, rot8_iterate_dvd, windowXor_noisyStep carry no dependence on the design or its period even in BlockPairHost.lean (they are stated before that file introduces its own period), so this module consumes them directly by name rather than restating or relocating them.

Main results #

Scope #

No claim about the observation sequence's own statistical or correlation content is stated here — that is a hypothesis of every downstream module, never discharged here. This file states only what the host does with o once it is read as a tape: it reproduces it, and (at 8 ∣ N) every state of the machine is periodic.

def ReflectiveSubsystems.TapeHost.tape {N : ℕ} (o : ZMod N → Bool) (u : ZMod N) :

The tape's own bit at u: whether the sequence agrees with its value eight steps back. Solved for tape, this is exactly the bit the noisy window chain's recursion needs in order to carry the sequence from u - 8 to u.

Equations
Instances For
    def ReflectiveSubsystems.TapeHost.tapeUpdate {N : ℕ} (o : ZMod N → Bool) :
    (Fin 8 → Bool) × ZMod N → (Fin 8 → Bool) × ZMod N

    One step of the finite autonomous host: the window steps by the noisy window chain's own update on the tape bit at the counter's next position, while the counter itself advances by one.

    Equations
    Instances For
      def ReflectiveSubsystems.TapeHost.designWindow {N : ℕ} (o : ZMod N → Bool) (c : ZMod N) :
      Fin 8 → Bool

      The sequence's own length-8 window ending at counter c: the oldest coordinate first.

      Equations
      Instances For

        The designed orbit #

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

        theorem ReflectiveSubsystems.TapeHost.tapeUpdate_iterate_last {N : ℕ} (o : ZMod N → Bool) (c : ZMod N) (t : ℕ) :
        ((tapeUpdate o)^[t] (designWindow o c, c)).1 7 = o (c + ↑t)

        The window's last coordinate along the sequence's own orbit reproduces the sequence at the counter: the sequence emitted along the orbit is o.

        The designed state returns after one full period. Automatic in ZMod N, since N itself casts to 0 there.

        Every state is periodic #

        The difference-rotation lemma, carried along the host's own orbit. Two states sharing a counter differ, after t steps, by BlockPairHost.rot8 iterated t times on their starting difference.

        theorem ReflectiveSubsystems.TapeHost.tapeUpdate_iterate_period_all {N : ℕ} (o : ZMod N → Bool) (h8 : 8 ∣ N) (w : Fin 8 → Bool) (c : ZMod N) :
        (tapeUpdate o)^[N] (w, c) = (w, c)

        The parallel-cycle theorem. At 8 ∣ N, every state of the host — not only the designed one — lies on a cycle of the full period: the difference from the designed orbit evolves by BlockPairHost.rot8 alone (windowXor_tapeUpdate_iterate), and rot8's own period divides 8, which divides N by hypothesis, so the difference — and with it the state itself — returns unchanged.