Documentation

ReflectiveSubsystems.BlockPairWitness

The certified block-pair host is a member of ๐’ฎ_L #

LearningWitness.lean exhibits one member of the learning route-class ๐’ฎ_L ([Inevitability] ยง2 Definition 2.3) on an abstract noise stream. This module exhibits a SECOND member โ€” the finite, deterministic, autonomous host of BlockPairObservability.lean โ€” whose E1 is drawn from its OWN dynamics rather than from an external probability space.

The embedding mirrors LearningWitness's: subUpdate splits its memory into a code region (8 cells, the committed literal), a window (8 cells), and โ€” replacing the chain witness's unconsumed noise stream โ€” a finite binary counter register (Nat.size ฮ  cells, ฮ  := 2ยท(2ยทM)ยท24) tracking the host's own phase. The realization theorem does not re-derive the window/counter recursion from scratch: it projects onto update's own (window, counter) pair and reuses update_iterate_designWindow as a black box, so the code invariant is the only genuinely new induction here.

Main results #

Scope #

Deliberately out of scope, as BlockPairObservability.lean's: ๐’ฎ_E and the overlap question โ€” BlockPairOverlap.lean's business. The paper home is [Inevitability] ยง5 Theorem 5.8(a)(b), row IN-37, which registers this membership at the boundary stated there.

The memory layout #

@[reducible, inline]

The witness's cell index: 8 code cells, 8 window cells, and a finite binary counter register of Nat.size ฮ  cells (ฮ  := 2 * (2 * M) * 24), replacing the chain witness's unconsumed noise stream.

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

        The code region has exactly 8 cells.

        Reading the rule off the code cells, mirroring ReflectiveSubsystems.Wit.decodeRule re-typed on the host's own index โ€” that lemma is typed on ReflectiveSubsystems.Wit k and cannot be reused as is.

        Equations
        Instances For

          The finite binary counter register, and its round trip #

          theorem ReflectiveSubsystems.BlockPairHost.counter_val_lt (M : โ„•) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 24)) :
          c.val < 2 ^ (2 * (2 * M) * 24).size

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

          Reading the counter register: the finite binary word the register cells carry, read as a ZMod ฮ  value via finFunctionFinEquiv.

          Equations
          Instances For
            def ReflectiveSubsystems.BlockPairHost.writeCounter (M : โ„•) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 24)) (i : Fin (2 * (2 * M) * 24).size) :

            Writing the counter register: the binary word representing c.val, well-defined since c.val < ฮ  < 2 ^ (Nat.size ฮ ) (ZMod.val_lt against Nat.lt_size_self, no digit lemma needed).

            Equations
            Instances For

              The update, its loading, and the observation #

              One step of the host's own dynamics: ReflectiveSubsystems.Wit.chainUpdate's own line โ€” code copied, window shifts with the noise cell replaced by the tape bit the rule computes at the next counter, counter written one step ahead.

              Equations
              Instances For
                def ReflectiveSubsystems.BlockPairHost.load (M : โ„•) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 24)) :
                Mem M

                Loading the host's own designed window into the memory. The code is one-hot at literal 0; the window cells take the design's own values ahead of c; the counter is written to c + 7, the newest window position, matching BlockPairHost's own convention.

                Equations
                Instances For

                  The observation the substrate emits: its window's oldest bit.

                  Equations
                  Instances For

                    (S1): the code is read-only, and the update nonetheless reads it #

                    theorem ReflectiveSubsystems.BlockPairHost.subUpdate_reads_code (M : โ„•) [NeZero (2 * (2 * M))] :
                    โˆƒ (s : Mem M) (s' : Mem M), (โˆ€ x โˆ‰ codeRegion M, s x = s' x) โˆง subUpdate M s โ‰  subUpdate M s'

                    The update genuinely consults its code region, ReflectiveSubsystems.chainUpdate_reads_code transported line for line.

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

                    Rather than re-deriving the window/counter recursion from scratch, this section projects onto update's own (window, counter) pair and reuses update_iterate_designWindow as a black box: the only genuinely new induction is the code invariant (the code stays one-hot at 0 along the loaded orbit), exactly as chainUpdate_fixes makes it for the chain witness.

                    theorem ReflectiveSubsystems.BlockPairHost.readCounter_iterate_load (M : โ„•) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 24)) (t : โ„•) :
                    readCounter M ((subUpdate M)^[t] (load M c)) = c + 7 + โ†‘t

                    The counter register's own orbit, in closed form. Reading the counter cells back after t steps from the loaded state at phase c recovers c + 7 + t exactly โ€” the .snd half of proj_iterate/proj_load composed with BlockPairHost's own designed-orbit theorem, exposed as its own public lemma rather than left inside the private orbit machinery, since a later construction needs the counter's orbit alone, with no window component.

                    theorem ReflectiveSubsystems.BlockPairHost.readObs_iterate_load (M : โ„•) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 24)) (t : โ„•) :
                    readObs M ((subUpdate M)^[t] (load M c)) = designObs 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 the design exactly โ€” pointwise, with no measure theory anywhere. This is what makes every statistical clause on this substrate a statement about the HOST and not about a process glued to it.

                    def ReflectiveSubsystems.BlockPairHost.substrateTraj (M : โ„•) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 24)) :
                    โ„• โ†’ Bool

                    The substrate's OWN observation process, read along its own orbit from its own loaded state.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      theorem ReflectiveSubsystems.BlockPairHost.substrateTraj_eq_traj (M : โ„•) [NeZero (2 * (2 * M))] (c : ZMod (2 * (2 * M) * 24)) :

                      The substrate's own process is traj โ€” readObs_iterate_load, packaged for rewriting.

                      theorem ReflectiveSubsystems.BlockPairHost.substrate_mixingHoeffding_schedule (M : โ„•) [NeZero (2 * (2 * M))] (a : Fin 8) (ฯˆ : Bool โ†’ Bool โ†’ โ„) (hฯˆ : โˆ€ (u v : Bool), |ฯˆ u v| โ‰ค 1) :
                      MixingHoeffding ((โ†‘(Fintype.card (ZMod (2 * (2 * M) * 24))))โปยน โ€ข โˆ‘ c : ZMod (2 * (2 * M) * 24), MeasureTheory.Measure.dirac (substrateTraj M c)) (pairEnsemble ฯˆ (โ†‘a) 8) (if โ†‘a = 0 then pairMean ฯˆ + pairCoefAB ฯˆ * (-2 / 3) else pairMean ฯˆ) ((if โ†‘a = 0 then 2 * 56 + 46 else 2 * 56 + 192) ^ 2 / (2 * Real.log 2))

                      T72's schedule theorem, restated on the substrate's own process. phaseLaw M's finite average, taken over substrateTraj instead of traj, is the SAME statement โ€” by rewriting through substrateTraj_eq_traj โ€” so E1 over the schedule holds on the substrate's own emitted process, not merely on a process identified with it after the fact.

                      Realizability, and the membership capstone #

                      Realizability, named on the host. The loaded code decodes to literal 0, and the substrate's own observation process obeys that literal's rule up to the tape bit โ€” ReflectiveSubsystems.ChainRealizable's shape with the noise word replaced by the host's own tape from phase c.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem ReflectiveSubsystems.BlockPairHost.witness_substrateL (M : โ„•) [NeZero (2 * (2 * M))] {ฯ„ : โ„} (hฯ„ : 2 * (1 / 6) โ‰ค ฯ„) :
                        SubstrateL (subUpdate M) (codeRegion M) 3 (8 + 100) (2 * (8 + 100)) 1 2 3 (1 / 2) 8 2 True True True True (Realizable M) (ChainWindowBudget 8 (1 / 6) ฯ„)

                        The membership capstone. The certified block-pair host โ€” a finite, deterministic, autonomous system with memory 16 + Nat.size ฮ  cells and no external stream โ€” is a member of ๐’ฎ_L ([Inevitability] ยง2 Definition 2.3), with E1 drawn from its own dynamics: the phase law phaseLaw, via mixingHoeffding_schedule at a = 0, ฯˆ = pairChar.

                        The three prerequisites and the five learning fields follow ReflectiveSubsystems.witness_substrateL_of_e1's own proof term at the same numerals โ€” r = 3, K = 8 + 100, L = 2K, cโ‚€ = 1, cโ‚ = 2, cโ‚‚ = 3, ฮด = 1/2, sCodeSize = 8 (codeRegion_ncard), g(T_S) = 2 โ€” with assumptionA and benignSeparation reused verbatim from LearningWitness (both are facts about Fin 8 alone, not about the memory carrying it).

                        Axiom audit #