Documentation

ReflectiveSubsystems.TapeHostSurvival

A member of both route-classes carries survival, by redundancy ([Inevitability] §5, §6) #

[Inevitability] §5 Theorem 5.8's boundary paragraph leaves open "whether any member of both [route- classes] can carry survival," naming the reason a permutation host cannot: H_M's core dynamics is a permutation, so Guests Law 4 puts a positive intrinsic margin out of its reach ([Inevitability] §2 Definition 2.3). But survival in this corpus has a second, independent form — the redundancy route, §6 Proposition 6.1(iii)'s third sufficient condition, delivered "with no margin inequality entering at all" — and that route is available to any host whose observations drive a redundant floored fiber, margin or none.

This module exhibits a witness: the tape host's substrate (TapeHostWitness/TapeHostOverlap, at any window-deviation profile) with a P-copy redundant floored fiber (RedundantFiber) added as extra memory, packaged as one ReflectiveSubsystems.Mem-substrate (CompMem). The fiber's own cells never write the base's, and the base's own update never reads the fiber's, so both of the base's memberships — 𝒮_L (substrateL) and 𝒮_E (substrateE) — transport to the composite unchanged in every field but the read-only-code witness, which is a direct re-proof. The fiber's miss indicator is read off the base's own observation cell (compSubUpdate's fiber branch consults nothing else), and it is exactly ReflectiveSubsystems.witMiss on tapeStream (fiberMiss_eq_witMiss) — the same identity TapeHostFiber's own rate and absorption theorems already consume. Survival is then exists_untouched_copy (an untouched copy exists, from the profile's own bound on the base's noise count) composed with RedundantFiber.compRun_eq_wRunFrom_of_untouched (that copy's reading, under any damage schedule confined to the untouched set, is the single undamaged floored fiber's) — [Inevitability] §6 Theorem 6.6(v′), its absorption half, with no margin entering anywhere.

Main results #

Scope #

Survival here is the redundancy route, not the margin. No margin is claimed, so Guests Law 4 does not enter, whether or not the composite's update is reversible. What is claimed is [Inevitability] §6 Theorem 6.6(v′), its absorption half — an untouched copy exists and its reading is the single undamaged floored fiber's — at a horizon, with the host-side gate in place of (DM1), (DM2) unchanged, the gate endogenous — confined to the tape's own firing (ReflectiveSubsystems.NoiseGated) — not lifetime-free: the tape fires past every horizon at a positive-density profile (tapeStream_fires_forever), so (v)/(v″)'s quiet-stream gates are not on offer here, exactly as they are not for TapeHostFiber itself. Nor is the decode-level conclusion — the composite's reading equal to the base's next state — on offer: it needs the settling theorems' never-missing hypothesis, which this base denies at positive density, exactly as TapeHostFiber's own docstrings say of settling. One witness; the class-level question — which systems carry survival — stays open.

compSubUpdate's fiber branch is a genuine one-step implementation of RedundantFiber.wGen, fed by fiberMiss — not a placeholder — so the composite substrate honestly carries the fiber it claims to, rather than merely type-checking against 𝒮_L/𝒮_E's opaque fields. What is not attempted is a theorem identifying compSubUpdate's own bit-level fiber iterate, across P copies and a damage schedule, with RedundantFiber.compRun at the CompMem level: comp_carries_survival is stated over compRun's own abstract carrier Fin P → ReflectiveSubsystems.WVec 8 W, exactly as exists_untouched_copy already is, and every hypothesis of that theorem is independent of what compSubUpdate's fiber branch computes — the identity connecting the two is fiberMiss_eq_witMiss, proved for the undamaged orbit, which is what the redundancy route needs.

The base modules (TapeHostWitness, TapeHostOverlap, TapeHostFiber) are untouched — every fact this module needs from them is public. RedundantFiber and SubstrateEmergence are consumed as cited black boxes.

[Inevitability] §2 Definition 2.3, §5 Theorem 5.8, §6 Proposition 6.1, Theorem 6.6, rows IN-25, IN-28, IN-41, IN-42.

The composite carrier #

@[reducible, inline]

The fiber's own cells: for each of the P copies, one length-Nat.size W binary register per candidate — writeCounter/readCounter's pattern, per cell of the candidate's quantized weight.

Equations
Instances For
    @[reducible, inline]

    The composite's own cell index: the host's Idx plus the fiber's own cells, a clean sum with no interleaving — the choice that keeps frame (and its surjectivity) unchanged below.

    Equations
    Instances For
      @[reducible, inline]

      The composite memory, in [Decoupling]'s own shape.

      Equations
      Instances For
        theorem ReflectiveSubsystems.TapeHost.fiberVal_lt {W : ℕ} (x : Fin (W + 1)) :
        ↑x < 2 ^ W.size

        A fiber index stays below 2 ^ Nat.size W.

        Writing a population of weight vectors into the fiber's own cells.

        Equations
        Instances For

          Reading a population of weight vectors back out of the fiber's own cells.

          Equations
          Instances For

            The fiber's own round trip.

            The fiber's own miss indicator, read off the base's readObs alone #

            def ReflectiveSubsystems.TapeHost.fiberMiss (N : ℕ) [NeZero N] (o : ZMod N → Bool) (b : Mem N) :
            Fin 8 → Bool

            The fiber's miss indicator. Candidate i's miss, read off the base's own readObs at i and 8 forward iterates of subUpdate — nothing else of the base is consulted, and nothing of the fiber is.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem ReflectiveSubsystems.TapeHost.fiberMiss_eq_witMiss {N : ℕ} [NeZero N] (o : ZMod N → Bool) (c : ZMod N) (t : ℕ) :
              fiberMiss N o ((subUpdate N o)^[t] (load N o c)) = witMiss 8 (tapeStream o c) t

              The fiber's miss indicator is ReflectiveSubsystems.witMiss on tapeStream, along the loaded orbit. readObs_iterate_load applied at horizons t + i and t + 8 (via Function.iterate_add_apply), then traj_eq_obs ties the result to obs 8 on the stream, matching ReflectiveSubsystems.witMiss_eq_not_xor's own normal form exactly.

              The composite's own update #

              def ReflectiveSubsystems.TapeHost.compSubUpdate (N P W : ℕ) [NeZero N] (o : ZMod N → Bool) :
              CompMem N P W → CompMem N P W

              The composite's own update: subUpdate on the base cells, reading only the base cells (s ∘ Sum.inl); the fiber's own wGen step on the fiber cells, driven by fiberMiss of the base cells alone and the fiber's own current population. Neither half reads the other's newly-written cells — this is the whole content of the transport lemmas below.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem ReflectiveSubsystems.TapeHost.compSubUpdate_base_eq {N : ℕ} [NeZero N] (o : ZMod N → Bool) {P W : ℕ} (s : CompMem N P W) (i : Idx N) :
                compSubUpdate N P W o s (Sum.inl i) = subUpdate N o (s ∘ Sum.inl) i

                The composite's base half is exactly subUpdate's own step, by construction.

                theorem ReflectiveSubsystems.TapeHost.compSubUpdate_base_iterate {N : ℕ} [NeZero N] (o : ZMod N → Bool) {P W : ℕ} (s : CompMem N P W) (t : ℕ) :

                The composite's base half is exactly subUpdate's own orbit, at every horizon: the base cells evolve independently of the fiber cells, so the composite's iterate restricted to Sum.inl is subUpdate's own iterate of the restriction.

                The composite's code region is read-only ([Inevitability] §2 (S1), embedded through Sum.inl): the base's own guard (subUpdate_fixes), transported through compSubUpdate_base_eq.

                def ReflectiveSubsystems.TapeHost.compLoad (N P W : ℕ) [NeZero N] (o : ZMod N → Bool) (c : ZMod N) (v₀ : Fin P → WVec 8 W) :
                CompMem N P W

                The composite's own loaded state: the base loaded exactly as load does, the fiber loaded at an arbitrary initial population v₀.

                Equations
                Instances For

                  The composite's own packing, and its frame #

                  def ReflectiveSubsystems.TapeHost.compStateEquiv (N P W : ℕ) [NeZero N] :
                  CompMem N P W ≃ Fin (2 ^ (8 + (8 + N.size) + P * (8 * W.size)))

                  The composite, packed onto a numeral carrier. The host's own packing (idxEquiv) on the base cells, an analogous flat packing on the fiber cells, a clean sum, then ReflectiveSubsystems.stateEquiv's own Bool-cell-to-numeral convention — the same shape stateEquiv uses, over the larger carrier.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def ReflectiveSubsystems.TapeHost.compPacked (N P W : ℕ) [NeZero N] (o : ZMod N → Bool) :
                    Fin (2 ^ (8 + (8 + N.size) + P * (8 * W.size))) → Fin (2 ^ (8 + (8 + N.size) + P * (8 * W.size)))

                    The composite's own update, packed.

                    Equations
                    Instances For
                      def ReflectiveSubsystems.TapeHost.compFrame (N P W : ℕ) [NeZero N] (o : ZMod N → Bool) :
                      Fin (2 ^ (8 + (8 + N.size) + P * (8 * W.size))) → Fin (2 ^ frameBits N)

                      The composite's own frame: decode the flat state, restrict to the base cells, and read frame off them unchanged — the fiber cells are never consulted.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem ReflectiveSubsystems.TapeHost.compFrame_surj_iterate {N : ℕ} [NeZero N] (o : ZMod N → Bool) {P W : ℕ} :
                        Function.Surjective fun (s : Fin (2 ^ (8 + (8 + N.size) + P * (8 * W.size)))) => compFrame N P W o ((compPacked N P W o)^[2 ^ (8 + (8 + N.size) + P * (8 * W.size))] s)

                        The composite is a member of 𝒮_L #

                        theorem ReflectiveSubsystems.TapeHost.comp_substrateL {N : ℕ} [NeZero N] (o : ZMod N → Bool) {P W : ℕ} {S : ℝ} {ρ Wp : Fin 8 → ℝ} (h : Profile o S ρ Wp) (K : ℝ) (gTS : ℕ) (hK : 8 + ↑(capacity (Nat.clog 2 (gTS + 1))) ≤ K) {η τ : ℝ} (hη : 0 ≤ η) (hτ : 2 * η ≤ τ) :
                        SubstrateL (compSubUpdate N P W o) (Sum.inl '' codeRegion N) 3 K (2 * K) 1 2 3 (1 / 2) 8 gTS True True True True (Realizable N o) (ChainWindowBudget 8 η τ)

                        The composite is a member of 𝒮_L, at any window-deviation Profile and any (K, gTS) clearing 8 + capacity(⌈log₂(gTS+1)⌉). Every field but s1 is substrateL's own: none of ReflectiveSubsystems.Substrate's or SubstrateL's other fields is typed against the update or the code region, so the base's own proof terms transport verbatim.

                        The composite is a member of 𝒮_E #

                        theorem ReflectiveSubsystems.TapeHost.comp_substrateE {N : ℕ} [NeZero N] (o : ZMod N → Bool) {P W : ℕ} (K : ℝ) (gTS : ℕ) (hK : 8 + ↑(capacity (Nat.clog 2 (gTS + 1))) ≤ K) (hE : GrownGuestReachesThresholdAt (frameBits N) gTS) :
                        SubstrateE (compSubUpdate N P W o) (Sum.inl '' codeRegion N) 3 K (2 * K) 1 2 3 (1 / 2) 8 gTS True True True True (GrowsLawfulGuestOf (compPacked N P W o) (compFrame N P W o)) (GrownGuestReachesThresholdAt (frameBits N) gTS)

                        The composite is a member of 𝒮_E, at the same coupled (K, gTS) — ReflectiveSubsystems.substrateE_of_emergence at the composite's own packing (compStateEquiv) and frame (compFrame), surjective off the composite's own packed iterate (compFrame_surj_iterate).

                        Survival by redundancy ([Inevitability] §6 Theorem 6.6(v′), its absorption half) #

                        theorem ReflectiveSubsystems.TapeHost.comp_carries_survival {N : ℕ} (o : ZMod N → Bool) {P W : ℕ} [NeZero P] {S : ℝ} {ρ Wp : Fin 8 → ℝ} (h : Profile o S ρ Wp) {η : ℝ} (hρ0 : ρ 0 = 2 * η - 1) (c : ZMod N) {n cnt : ℕ} {H : Finset ℕ} (hH : H ⊆ Finset.range n) (hgate : NoiseGated 8 (tapeStream o c) H) (col : ℕ → Finset (Fin P)) (hcol : ∀ (t : ℕ), (col t).card ≤ cnt) (hP : ↑cnt * (↑n * η + Wp 0 / 2) < ↑P) (v₀ : Fin P → WVec 8 W) (land : ℕ → Fin P → WVec 8 W) :
                        ∃ (i₀ : Fin P), (∀ t ∈ H, i₀ ∉ col t) ∧ ∀ (t : ℕ), compRun W (witMiss 8 (tapeStream o c)) v₀ H col land t i₀ = wRunFrom W (missFit (witMiss 8 (tapeStream o c))) (v₀ i₀) t

                        The redundancy route, on the composite's own fiber. An untouched copy exists (exists_untouched_copy, from the profile's own bound on the base's noise count within a damage schedule confined to tapeStream's own firing), and that copy's reading under the damaged run is exactly the single undamaged floored fiber's (RedundantFiber.compRun_eq_wRunFrom_of_untouched, definitional, for any schedule and any weight budget). No margin enters: this copy-level identity is the redundancy Proposition 6.1(iii)'s third sufficient condition rides on, not the constant decoded value that condition speaks of.

                        The capstone: a member of both route-classes, carrying survival #

                        theorem ReflectiveSubsystems.TapeHost.carries_survival :
                        ∃ (gTS : ℕ), ∀ (N : ℕ) [inst : NeZero N] (o : ZMod N → Bool) (P W : ℕ) [NeZero P] (S : ℝ) (ρ Wp : Fin 8 → ℝ), Profile o S ρ Wp → ∀ (η τ : ℝ), 0 ≤ η → 2 * η ≤ τ → ρ 0 = 2 * η - 1 → ∀ (K : ℝ), 8 + ↑(capacity (Nat.clog 2 (gTS + 1))) ≤ K → hostsAt (frameBits N) gTS → SubstrateE (compSubUpdate N P W o) (Sum.inl '' codeRegion N) 3 K (2 * K) 1 2 3 (1 / 2) 8 gTS True True True True (GrowsLawfulGuestOf (compPacked N P W o) (compFrame N P W o)) (GrownGuestReachesThresholdAt (frameBits N) gTS) ∧ SubstrateL (compSubUpdate N P W o) (Sum.inl '' codeRegion N) 3 K (2 * K) 1 2 3 (1 / 2) 8 gTS True True True True (Realizable N o) (ChainWindowBudget 8 η τ) ∧ ∀ (c : ZMod N) {n cnt : ℕ} {H : Finset ℕ}, H ⊆ Finset.range n → NoiseGated 8 (tapeStream o c) H → ∀ (col : ℕ → Finset (Fin P)), (∀ (t : ℕ), (col t).card ≤ cnt) → ↑cnt * (↑n * η + Wp 0 / 2) < ↑P → ∀ (v₀ : Fin P → WVec 8 W) (land : ℕ → Fin P → WVec 8 W), ∃ (i₀ : Fin P), (∀ t ∈ H, i₀ ∉ col t) ∧ ∀ (t : ℕ), compRun W (witMiss 8 (tapeStream o c)) v₀ H col land t i₀ = wRunFrom W (missFit (witMiss 8 (tapeStream o c))) (v₀ i₀) t

                        A member of both route-classes carries survival, by redundancy, at a horizon — [Inevitability] §5 Theorem 5.8's boundary paragraph, sharpened: a permutation host cannot carry the MARGIN form of survival (Guests Law 4), but the composite here is not a permutation, and it carries the REDUNDANCY form (Proposition 6.1(iii)'s third condition) at the coupled (K, gTS) that also puts it in 𝒮_E ∩ 𝒮_L. Conditional on the damage model (DM1)/(DM2), the gate confined to the base's own firing — not lifetime-free (tapeStream_fires_forever). One witness; the class-level question stays.