Documentation

ReflectiveSubsystems.RedundantFiber

The redundant fiber: recovery plus repetition ([Inevitability] §6, the survival core) #

Proposition 6.1's structural clause (iii) asks a repair of the host: one-step erasure, a non-expansive host, or a reading the damage cannot move. The weighted fiber's own carrier — a population of P copies of the floored mixture, all reading the same base stream — supplies that repair by construction, and this file proves it in three stages, in the sense of survival: the composite's reading recovers from damage without any of the three structural conditions being assumed of the host.

Stage A — recovery. A single floored fiber, damaged by a finite hit schedule on its own normal form (the exponent vectors, so a hit keeps the carrier a power of two), settles after its last hit exactly as an undamaged run restarted there (dRun_eq_wRunFrom_of_hitFree), hence settles at every budget and for every finite schedule (argmax_dRun_eventually_const_of_eventually_realizable). The recovery has a price, proved directly over the schedule's own Finset index (dErrorTimes_card_mul_le): past a hit landing on a power-of-two vector, the seeded-start count (LogMassEvent.floorErrorTimesFrom_card_mul_le) bounds each segment's own error times, and a schedule of several hits pays that bound once per hit, plus the undamaged segment before the first one; the same bound restated over an explicit list of segments is segErrorCount_le.

Stage B — the P-fold carrier and the verifying decode. P copies of the fiber step under the same observation stream; the reading decodes the least-indexed copy whose current prediction matches what the base actually does next (compPredFrame). Any two verifying copies decode the same value — the observed transition itself — so a copy corrupt in its weights but correct in its prediction still reads right (compPredFrame_eq_of_mem_verifiers). Priced on the flat carrier over an arbitrary per-copy reading (compFrameFlat), the decode costs the three ingredient codes plus one addressing term logarithmic in P (KE_compFrameFlat_le) — [Inevitability] Theorem 6.6(vi)'s decode half.

Stage C — the intact copy, and per-step survival. A damage schedule touching fewer than P distinct copies in total always leaves one copy untouched (exists_untouched_copy), and an untouched copy's trajectory is definitionally the single undamaged run (compRun_eq_wRunFrom_of_untouched). Once that copy settles on a candidate consistent with the base, it verifies at every later step, so the composite's reading equals the base's next state — hence the undamaged composite's own reading — at any arrival pattern within the touch bound (compPredFrame_eq_next_of_touch_bound, compPredFrame_damaged_eq_undamaged_of_touch_bound). The touch bound is met whenever P exceeds the realizable event count times the per-event copy cost (compPredFrame_eq_next_of_realizable_budget), assembling Proposition 6.1's structural clause (iii) — the invariant-reading regime — from pieces this development has already proved. The touch bound's other side is a guard (compRun_synchronized_guard): a schedule that touches every copy defeats the reading however small its rate, since the copies recover only to be synchronized.

Scope #

The damage model itself — Proposition 6.1's (DM1)/(DM2), coupling corruption to misprediction and bounding a hit's reach — is a named hypothesis of the paper, not a theorem of this file: every theorem below quantifies over an arbitrary finite hit schedule of the stated shape, rather than deriving that damage takes that shape from anything. This file's survival synthesis (Stages A–C) is not yet a numbered proposition in any paper. The composite's own price — [Inevitability] Theorem 6.6(vi), "P copies and the decode" — is formalized in its two halves across two files: the P-fold carrier's cost is ReflectiveSubsystems.KE_skewWorldFin_powFiber_le, and the decode's own cost, priced here (compFrameFlat, KE_compFrameFlat_le), closes the clause.

Stage A's recovery price is proved directly over dRun's own Finset-indexed schedule (dErrorTimes_card_mul_le), by induction on the schedule's size: dRun_shift/dWrongMass_shift peel the earliest hit, and dErrorTimes_card_shift turns that into a card split between the undamaged segment before it and a damaged schedule in its own right, one hit smaller, after it. The seeded, damaged exponent automaton (dExpRun, raw_dRun_eq_pow_dExpRun) is a companion normal-form fact about the same packed dRun — the two share the landed automaton on every hit-free window (expStep, via raw_wRunFrom_eq_pow_expRunFrom) — but the set-indexed price does not route through it. segErrorCount_le restates the same bound over an explicit list of (gap, landing) segments (segRun): Stage A's own decomposition where a schedule is naturally given as a list, not a bridge the set-indexed price depends on. Stage C's survival theorems do not appeal to ReflectiveSubsystems.survives_of_invariant: the composite's own damage model — an override at named copies, not a Hamming-bounded perturbation of one shared memory — is more direct to induct on than to repackage as an instance of that structure.

Stage A — recovery: a damaged run settles, and its price is the seeded-start count #

def ReflectiveSubsystems.dRun {C : ℕ} (W : ℕ) (M : ℕ → Fin C → Bool) (w₀ : WVec C W) (H : Finset ℕ) (hit : ℕ → WVec C W) :
ℕ → WVec C W

A damaged run ([Inevitability] §6, Proposition 6.1's damage model, restricted to an arbitrary finite hit schedule). The ordinary generation, except at a hit time t ∈ H, where the state that would ordinarily follow is discarded and replaced by hit t. H's finiteness is what gives the run a last hit, and hence a tail that is again an ordinary run.

Equations
Instances For
    theorem ReflectiveSubsystems.exists_hit_free_tail (H : Finset ℕ) :
    ∃ (t₀ : ℕ), ∀ (t : ℕ), t₀ ≤ t → t ∉ H

    Every finite subset of ℕ has a hit-free tail. The schedule's own finiteness, made explicit as a time after which no hit occurs.

    theorem ReflectiveSubsystems.dRun_eq_wRunFrom_of_hitFree {C : ℕ} (W : ℕ) (M : ℕ → Fin C → Bool) (w₀ : WVec C W) (H : Finset ℕ) (hit : ℕ → WVec C W) (t₀ : ℕ) {s : ℕ} (hfree : ∀ (u : ℕ), t₀ ≤ u → u < t₀ + s → u ∉ H) :
    dRun W M w₀ H hit (t₀ + s) = wRunFrom W (missFit fun (n : ℕ) => M (t₀ + n)) (dRun W M w₀ H hit t₀) s

    The damaged run's tail from any hit-free window is an undamaged run restarted there ([Inevitability] §6, Finding 2 — the load-bearing identity, stated explicitly rather than left to inference). Over any window [t₀, t₀ + s) that the schedule never hits, s further steps of the damaged run are exactly s steps of wRunFrom, restarted at the damaged state at t₀ under the fitness stream shifted by t₀. Applied at a schedule's own hit-free tail this is Finding 2's tail identity; applied between two consecutive hits it is what the recovery-price corollary below sums over.

    theorem ReflectiveSubsystems.dRun_eq_wRunFrom_of_lt {C : ℕ} (W : ℕ) (M : ℕ → Fin C → Bool) (w₀ : WVec C W) (H : Finset ℕ) (hit : ℕ → WVec C W) {t : ℕ} (hfree : ∀ u < t, u ∉ H) :
    dRun W M w₀ H hit t = wRunFrom W (missFit M) w₀ t

    A damaged run agrees with the undamaged one below its own first hit — the t₀ = 0 instance of the identity above, stated without the t₀ + s framing so it composes directly with a schedule cut at its own minimum (dRun_shift).

    theorem ReflectiveSubsystems.argmax_dRun_eventually_const_of_eventually_realizable {C : ℕ} [NeZero C] {W : ℕ} (hW : 1 ≤ W) (M : ℕ → Fin C → Bool) (w₀ : WVec C W) (H : Finset ℕ) (hit : ℕ → WVec C W) {iR : Fin C} {T₀ : ℕ} (hR : ∀ (t : ℕ), T₀ ≤ t → M t iR = false) :
    ∃ (T : ℕ), ∀ (t : ℕ), T ≤ t → argmax (dRun W M w₀ H hit t).raw = argmax (dRun W M w₀ H hit T).raw

    The reading settles for every finite hit schedule ([Inevitability] §6, Finding 2 — recovery). Eventual realizability of the same candidate that the undamaged fiber would need is enough: the run settles past its last hit exactly as an ordinary one does (BasinSettling.argmax_wRunFrom_eventually_const_of_eventually_realizable), composed with the tail identity above. No structural condition on the host is assumed anywhere — a single floored fiber, with no redundancy at all, already recovers from any finite-debt damage in this sense.

    The damaged exponent run and its normal form #

    dRun's hit-free windows already run expStep on a power-of-two carrier (raw_wRunFrom_eq_pow_expRunFrom); dExpRun is the same automaton with hits included, so a damaged run started and landed on power-of-two vectors again has an exact exponent normal form.

    def ReflectiveSubsystems.dExpRun {C : ℕ} (b : ℕ) (M : ℕ → Fin C → Bool) (e₀ : Fin C → ℕ) (H : Finset ℕ) (hit : ℕ → Fin C → ℕ) :
    ℕ → Fin C → ℕ

    The damaged exponent run ([Inevitability] §6, Finding 2's normal form, with damage). Mirrors dRun's own hit convention exactly on the exponent automaton: at a hit time t ∈ H the exponent vector is overridden by hit t, and otherwise it steps by expStep.

    Equations
    Instances For
      theorem ReflectiveSubsystems.dExpRun_le {C b : ℕ} {e₀ : Fin C → ℕ} (he₀ : ∀ (i : Fin C), e₀ i ≤ b) (M : ℕ → Fin C → Bool) {H : Finset ℕ} {hit : ℕ → Fin C → ℕ} (hhit : ∀ s ∈ H, ∀ (i : Fin C), hit s i ≤ b) (t : ℕ) (i : Fin C) :
      dExpRun b M e₀ H hit t i ≤ b

      The exponents never leave the budget, from a start and every landing inside it — dExpRun's own instance of expRunFrom_le, with the hit branch discharged by the landing bound directly.

      theorem ReflectiveSubsystems.raw_dRun_eq_pow_dExpRun {C b : ℕ} {e₀ : Fin C → ℕ} (he₀ : ∀ (i : Fin C), e₀ i ≤ b) (M : ℕ → Fin C → Bool) {H : Finset ℕ} {hit : ℕ → Fin C → ℕ} (hhit : ∀ s ∈ H, ∀ (i : Fin C), hit s i ≤ b) (t : ℕ) (i : Fin C) :
      (dRun (2 ^ b) M (pack (2 ^ b) fun (j : Fin C) => 2 ^ e₀ j) H (fun (s : ℕ) => pack (2 ^ b) fun (j : Fin C) => 2 ^ hit s j) t).raw i = 2 ^ dExpRun b M e₀ H hit t i

      The seeded, damaged normal form. From a power-of-two start with every landing a power of two inside the budget, dRun on the packed carrier is again exactly 2 ^ dExpRun: the hit case is immediate from the landing's own bound (pack does not clamp inside the budget), and the non-hit case is raw_wRunFrom_eq_pow_expRunFrom's own step, unchanged.

      The recovery price: a schedule of landings on the exponent automaton #

      Damage stated on the normal form's own state space, as Proposition 6.1(i) needs it: a landing is an exponent vector bounded by b, so the carrier stays a power of two at every one, and LogMassEvent.floorErrorTimesFrom_card_mul_le prices the segment that follows. segRun/ segErrorCount take the schedule as an explicit list of (gap, landing) pairs rather than as dRun's own Finset: the list form's counting recursion is definitional (rfl), where the set-indexed price below needs the separate splitting lemma dErrorTimes_card_shift.

      def ReflectiveSubsystems.segRun {C : ℕ} (b : ℕ) :
      (Fin C → ℕ) → (ℕ → Fin C → Bool) → List (ℕ × (Fin C → ℕ)) → ℕ → Fin C → ℕ

      The damaged exponent run, given as an explicit schedule of landings. segs lists, in order, how many undamaged steps follow before the next landing and what that landing is; after the last entry the run continues undamaged forever. This is the same automaton dRun's hit-free windows run (expStep, via raw_wRunFrom_eq_pow_expRunFrom), packaged for the counting argument below.

      Equations
      Instances For
        def ReflectiveSubsystems.segErrorCount {C : ℕ} (b : ℕ) (θ : ℚ) :
        (Fin C → ℕ) → (ℕ → Fin C → Bool) → List (ℕ × (Fin C → ℕ)) → ℕ → ℕ

        The schedule's own error count, mirroring segRun's own (t < Δ) recursion exactly: the count over any horizon is the current segment's own count up to the landing, plus the rest of the schedule's count over what remains — the decomposition Finding 2's price sums over.

        Equations
        Instances For
          theorem ReflectiveSubsystems.segErrorCount_le {C b D : ℕ} {iR : Fin C} {θ : ℚ} (hbudget : 2 * (↑C - 1) ≤ θ * 2 ^ b) (segs : List (ℕ × (Fin C → ℕ))) (e : Fin C → ℕ) (M : ℕ → Fin C → Bool) (n : ℕ) :
          (∀ (t : ℕ), M t iR = false) → (∀ (i : Fin C), e i ≤ b) → Finset.univ.sup e - e iR ≤ D → (∀ p ∈ segs, (∀ (i : Fin C), p.2 i ≤ b) ∧ Finset.univ.sup p.2 - p.2 iR ≤ D) → ↑(segErrorCount b θ e M segs n) * θ ≤ (↑segs.length + 1) * (5 * ↑(D + Nat.log 2 C) + 4)

          The recovery price over a whole schedule ([Inevitability] §6, Finding 2's arithmetic corollary). A candidate iR realizable throughout, every landing (and the start) bounded by b and by a common deficit D against iR: the schedule's error count over any horizon is at most one seeded-start bound (LogMassEvent.floorErrorTimesFrom_card_mul_le) per segment — the undamaged budget for the first, and the same recovery price again for each of the schedule's hits. θ's own positivity is not needed; the bound is LogMassEvent's own, applied once per segment and summed by the recursion itself.

          The recovery price over dRun's own set-indexed schedule #

          The list form above is the corollary's own decomposition — a schedule handed over as a sequence of (gap, landing) pairs, priced by structural recursion. The set-indexed price below is proved directly: no bridge from dRun to segRun is needed, since dWrongMass/dErrorTimes mirror wrongMassFrom/floorErrorTimesFrom over dRun itself.

          def ReflectiveSubsystems.dWrongMass {C : ℕ} (b : ℕ) (M : ℕ → Fin C → Bool) (e₀ : Fin C → ℕ) (H : Finset ℕ) (hit : ℕ → Fin C → ℕ) (t : ℕ) :

          The damaged run's own wrong mass, mirroring wrongMassFrom over dRun on the packed carrier rather than over wRunFrom.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def ReflectiveSubsystems.dErrorTimes {C : ℕ} (b : ℕ) (M : ℕ → Fin C → Bool) (e₀ : Fin C → ℕ) (H : Finset ℕ) (hit : ℕ → Fin C → ℕ) (θ : ℚ) (n : ℕ) :

            The damaged run's own set of error times, mirroring floorErrorTimesFrom: the strict-θ< membership condition, over dWrongMass in place of wrongMassFrom.

            Equations
            Instances For
              theorem ReflectiveSubsystems.dErrorTimes_eq_of_empty {C : ℕ} (b : ℕ) (M : ℕ → Fin C → Bool) (e₀ : Fin C → ℕ) (hit : ℕ → Fin C → ℕ) (θ : ℚ) (n : ℕ) :
              dErrorTimes b M e₀ ∅ hit θ n = floorErrorTimesFrom e₀ M b θ n

              At the empty schedule the damaged error-time objects are the landed ones, so every undamaged-tail argument below reads directly against floorErrorTimesFrom.

              theorem ReflectiveSubsystems.dRun_shift {C : ℕ} (W : ℕ) (M : ℕ → Fin C → Bool) (w₀ : WVec C W) (H : Finset ℕ) (hit : ℕ → WVec C W) {τ : ℕ} (hτmem : τ ∈ H) (hτmin : ∀ s ∈ H, τ ≤ s) (u : ℕ) :
              dRun W M w₀ H hit (τ + 1 + u) = dRun W (fun (k : ℕ) => M (τ + 1 + k)) (hit τ) (Finset.image (fun (x : ℕ) => x - (τ + 1)) (H.erase τ)) (fun (k : ℕ) => hit (τ + 1 + k)) u

              The damaged run restarts at its own minimum hit ([Inevitability] §6, Finding 2's recovery-price corollary — the bookkeeping step the capstone below inducts on). Past the earliest hit τ, the run is again a damaged run in its own right: started from the landing hit τ, over the remaining schedule reindexed by subtracting τ + 1, under the fitness stream shifted the same way. Sound because τ is the minimum of H: every other element of H is at least τ + 1, where the subtraction is injective.

              theorem ReflectiveSubsystems.dWrongMass_shift {C : ℕ} (b : ℕ) (M : ℕ → Fin C → Bool) (e₀ : Fin C → ℕ) (H : Finset ℕ) (hit : ℕ → Fin C → ℕ) {τ : ℕ} (hτmem : τ ∈ H) (hτmin : ∀ s ∈ H, τ ≤ s) (u : ℕ) :
              dWrongMass b M e₀ H hit (τ + 1 + u) = dWrongMass b (fun (k : ℕ) => M (τ + 1 + k)) (hit τ) (Finset.image (fun (x : ℕ) => x - (τ + 1)) (H.erase τ)) (fun (k : ℕ) => hit (τ + 1 + k)) u

              The recursion dRun_shift gives for the seeded, exponent-landed schedule's own wrong mass: past the earliest hit τ, the run's wrong mass is again a damaged wrong mass in its own right, started from the landing's own exponent vector hit τ over the reindexed rest of the schedule.

              theorem ReflectiveSubsystems.dErrorTimes_card_shift {C : ℕ} (b : ℕ) (M : ℕ → Fin C → Bool) (e₀ : Fin C → ℕ) (H : Finset ℕ) (hit : ℕ → Fin C → ℕ) (θ : ℚ) {τ : ℕ} (hτmem : τ ∈ H) (hτmin : ∀ s ∈ H, τ ≤ s) (n : ℕ) :
              (dErrorTimes b M e₀ H hit θ n).card = (floorErrorTimesFrom e₀ M b θ (min n (τ + 1))).card + (dErrorTimes b (fun (k : ℕ) => M (τ + 1 + k)) (hit τ) (Finset.image (fun (x : ℕ) => x - (τ + 1)) (H.erase τ)) (fun (k : ℕ) => hit (τ + 1 + k)) θ (n - (τ + 1))).card

              The error count splits at a schedule's earliest hit — dRun_shift's consequence for dErrorTimes's own cardinality. Below the hit the count is the undamaged one (dWrongMass_eq_of_lt); from it on, dWrongMass_shift reindexes the rest of the schedule to a damaged set of error times in its own right, started from the landing.

              theorem ReflectiveSubsystems.dErrorTimes_card_mul_le {C b D : ℕ} {iR : Fin C} {θ : ℚ} (hbudget : 2 * (↑C - 1) ≤ θ * 2 ^ b) (M : ℕ → Fin C → Bool) (e₀ : Fin C → ℕ) (H : Finset ℕ) (hit : ℕ → Fin C → ℕ) (n : ℕ) (hR : ∀ (t : ℕ), M t iR = false) (he₀ : ∀ (i : Fin C), e₀ i ≤ b) (hDe₀ : Finset.univ.sup e₀ - e₀ iR ≤ D) (hhit : ∀ s ∈ H, (∀ (i : Fin C), hit s i ≤ b) ∧ Finset.univ.sup (hit s) - hit s iR ≤ D) :
              ↑(dErrorTimes b M e₀ H hit θ n).card * θ ≤ (↑H.card + 1) * (5 * ↑(D + Nat.log 2 C) + 4)

              The recovery price over the damaged run's own set-indexed schedule ([Inevitability] §6, Theorem 6.6(iv) — the first paper-level step, closed). The list-schedule corollary (segErrorCount_le) transposed to dRun's own Finset-indexed hits: a candidate iR realizable throughout, the start and every landing bounded by b and by a common deficit D against iR, the schedule's error count over any horizon is at most one seeded-start bound (LogMassEvent.floorErrorTimesFrom_card_mul_le) per hit, plus the undamaged segment's own. Induction on H.card, peeling the earliest hit with dErrorTimes_card_shift: the segment before it is priced directly, the segment after it is a damaged schedule in its own right (dRun_shift/dWrongMass_shift), one hit smaller.

              Which set of error times (DM1) names: a refuting family #

              Proposition 6.1's damage model (DM1) perturbs the guest only at the error times of its predictor at tolerance ε. On this construction that sentence names two different sets — the damaged run's own error times (dErrorTimes) and the undamaged run's (floorErrorTimesFrom) — and neither contains the other in general. dErrorTimes_card_mul_le above already commits to the undamaged reading: its hypothesis is stated over the schedule's own landings, not over the damaged run's own error times. Read on the run it damages instead, (DM1) is not a budget at all — the family below exhibits a schedule of every length whose every hit lands inside dErrorTimes, while the same start and stream cap the undamaged count at 2.

              theorem ReflectiveSubsystems.dErrorTimes_reseed_eq_range (N : ℕ) :
              dErrorTimes 2 (fun (x : ℕ) => ![false, true]) ![0, 2] (Finset.range N) (fun (x : ℕ) => ![0, 2]) (1 / 2) N = Finset.range N

              The damaged reading is not a budget ([Inevitability] §6, Proposition 6.1's damage model, read on the run it damages — IN-25). At C = 2, b = 2, θ = 1/2, candidate 1 missing at every step and every hit re-seeding the run at its own start ![0, 2]: every hit of a schedule of length N lands inside the damaged run's own set of error times, for every N. The budget gate holds here with equality (2·(C−1) = θ·2^b = 2), so this is not the sub-gate blow-up floorErrorTimesFrom_unbounded_below_gate already records — the family sits inside the gate, not below it.

              The undamaged reading, on the same start and stream, is a genuine budget. The orbit ![0,2] → ![1,2] → ![2,2] → ![2,1] → ![2,0] (a fixed point from there on) has wrong mass 4/5, 2/3, 1/2, 1/3, 1/5, so only the first two steps exceed θ = 1/2 and every horizon's error time count is at most 2. So the two readings of (DM1) disagree sharply on this construction: unbounded on the damaged run (dErrorTimes_reseed_eq_range), capped at 2 on the undamaged one.

              Stage B — the P-fold carrier and the verifying decode #

              def ReflectiveSubsystems.verifiers {n₁ C P W : ℕ} [NeZero C] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) (v : Fin P → WVec C W) :

              The verifying copies ([Inevitability] §6, Finding 3): the members of the population whose current prediction of the base matches what the base actually does next. Verification is checkable against the observed transition, which is what a corrupted copy cannot spoof.

              Equations
              Instances For
                def ReflectiveSubsystems.compPredFrame {n₁ C P W : ℕ} [NeZero C] [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) (v : Fin P → WVec C W) :
                Fin n₁

                The composite reading: the least-indexed verifying copy's prediction, falling back to copy 0 when none verifies. Every theorem below arranges a verifying copy to exist, so the fallback never fires in anything this file proves; it is here only to make the frame total.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  theorem ReflectiveSubsystems.compPredFrame_eq_of_mem_verifiers {n₁ C P W : ℕ} [NeZero C] [NeZero P] {S : Fin n₁ → Fin n₁} {dec : Fin C → Fin n₁ → Fin n₁} {x : Fin n₁} {v : Fin P → WVec C W} {i : Fin P} (hi : i ∈ verifiers S dec x v) :
                  compPredFrame S dec x v = S x

                  Value agreement ([Inevitability] §6, Finding 3): any verifying copy decodes the observed transition — trivially, since verification means exactly that — so the composite reading is many-to-one in the copies exactly as the base-reading frame is many-to-one in codewords: a copy corrupt in its weights but correct in its prediction still reads right.

                  The decode, generalized and priced ([Inevitability] Theorem 6.6(vi), the decode half) #

                  compPredFrame's reading, argmax ∘ WVec.raw, is a function of a copy's own state and of nothing else — so the search this section prices is stated over an arbitrary per-copy state space Fin n₂ and an arbitrary reading θ : Fin n₂ → Fin C, folded onto the flat carrier Fin (n₁ * n₂ ^ P) the pricing layer needs a lensCode for. frameVerifiers/redundantCompFrame mirror verifiers/compPredFrame exactly, List-valued rather than Finset-valued: List.finRange P lists the copies in increasing order, so its filter's own head (List.getD · 0 default) is already the least verifying index, without a separate minimality argument, and the same shape is what the Primrec builder below needs.

                  def ReflectiveSubsystems.frameVerifiers {n₁ C P n₂ : ℕ} (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (θ : Fin n₂ → Fin C) (x : Fin n₁) (v : Fin P → Fin n₂) :
                  List (Fin P)

                  The verifying copies, on an arbitrary per-copy reading ([Inevitability] §6, Finding 3, generalized): verifiers, generalized from a raw weight vector's argmax ∘ WVec.raw reading to an arbitrary per-copy state space Fin n₂ and reading θ.

                  Equations
                  Instances For
                    def ReflectiveSubsystems.redundantCompFrame {n₁ C P n₂ : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (θ : Fin n₂ → Fin C) (x : Fin n₁) (v : Fin P → Fin n₂) :
                    Fin n₁

                    The composite reading, on an arbitrary per-copy reading ([Inevitability] §6, Finding 3, generalized): the least-indexed verifying copy's decoded prediction, falling back to copy 0 when none verifies — compPredFrame's own shape, generalized.

                    Equations
                    Instances For
                      theorem ReflectiveSubsystems.redundantCompFrame_eq_of_mem_verifiers {n₁ C P n₂ : ℕ} [NeZero P] {S : Fin n₁ → Fin n₁} {dec : Fin C → Fin n₁ → Fin n₁} {θ : Fin n₂ → Fin C} {x : Fin n₁} {v : Fin P → Fin n₂} {i : Fin P} (hi : i ∈ frameVerifiers S dec θ x v) :
                      redundantCompFrame S dec θ x v = S x

                      Value agreement, generalized — compPredFrame_eq_of_mem_verifiers's own argument, over redundantCompFrame.

                      def ReflectiveSubsystems.compFrameFlat {n₁ C P n₂ : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (θ : Fin n₂ → Fin C) (p : Fin (n₁ * n₂ ^ P)) :
                      Fin n₁

                      The composite decode, on the flat carrier ([Inevitability] §6, Theorem 6.6(vi), the decode half — priced by KE_compFrameFlat_le). redundantCompFrame, folded onto Fin (n₁ * n₂ ^ P): x is the base coordinate and v the P copies, read out of the composite fiber coordinate by finFunctionFinEquiv.

                      Equations
                      Instances For
                        theorem ReflectiveSubsystems.compFrameFlat_eq_of_exists {n₁ C P n₂ : ℕ} [NeZero P] {S : Fin n₁ → Fin n₁} {dec : Fin C → Fin n₁ → Fin n₁} {θ : Fin n₂ → Fin C} {p : Fin (n₁ * n₂ ^ P)} {i : Fin P} (hi : dec (θ (finFunctionFinEquiv.symm (finProdFinEquiv.symm p).2 i)) (finProdFinEquiv.symm p).1 = S (finProdFinEquiv.symm p).1) :
                        compFrameFlat S dec θ p = S (finProdFinEquiv.symm p).1

                        Non-vacuity: a flat state whose i-th copy verifies decodes to the base's own next state — the flat analogue of compPredFrame_eq_of_mem_verifiers, over an arbitrary copy's raw reading rather than membership in frameVerifiers.

                        theorem ReflectiveSubsystems.compFrameFlat_eq_compPredFrame {n₁ C P W : ℕ} [NeZero C] [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x : Fin n₁) (v : Fin P → WVec C W) :

                        The priced flat carrier is the composite guest's own state space ([Inevitability] Theorem 6.6(vi)'s identification, the last residue of clause (vi)): compFrameFlat's generalized decode, instantiated at the per-copy space n₂ := (W + 1) ^ C with θ the fiber-only half of ReflectiveSubsystems.argmaxFrame, agrees with compPredFrame on the composite's own carrier — the flat Fin (n₁ * ((W + 1) ^ C) ^ P) is the population's own Fin P → WVec C W, read digitwise by finFunctionFinEquiv at both levels (per copy, and over the population), exactly as compPredFrame reads it directly. Neither side's tie-breaking order is observable here: every verifying copy decodes to the same value S x (redundantCompFrame_eq_of_mem_verifiers, compPredFrame_eq_of_mem_verifiers), so the two frames agree without needing frameVerifiers's least index and verifiers's Finset.min' to be the same copy.

                        The decode's price: a bounded search over the population #

                        compFrameFlat's search is priced by the same recipe as ReflectiveSubsystems.skewTableFn (weave two tables with one fixed builder) composed with PersistenceCapacity's bounded-search recipe (filter List.range P, select by List.getD, precedented by candList/gradedTableFn): the three ingredient tables and P are packed into one natural number, and one fixed builder — independent of n₁, n₂, C, and P — reads the tables' own lengths to recover the structural sizes, exactly as skewTableFn does. dec's table is fiberFlat dec's, at width n₁ (dec's own shape, Fin C → Fin n₁ → Fin n₁, is fiberFlat's at (C, n₁)), so C is recovered as (lensTable (fiberFlat dec)).length / n₁; n₁, n₂ are the other two tables' own lengths.

                        def ReflectiveSubsystems.compFrameEntry (TS Tdec Tθ : List ℕ) (P q : ℕ) :

                        The composite decode's raw arithmetic, tabulated over one flat state q: x/w split q at n2 ^ P (finProdFinEquiv's own convention), and the decode searches List.range P for the least verifying copy, falling back to copy 0 — List.getD · 0 0 on a filtered List.range, the candList/gradedTableFn recipe.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          The composite decode's table. n1 := TS.length, n2 := Tθ.length are read off the tables, so no size parameter is loaded — only P, which cannot be recovered from any table's length.

                          Equations
                          Instances For

                            The composite decode builder, from ⟨T_S, T_dec, T_θ, P⟩ — ONE fixed function, with P the only loaded numeral.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              theorem ReflectiveSubsystems.compFrameTableFn_eq {n₁ n₂ C P : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (θ : Fin n₂ → Fin C) :

                              The builder's packed correctness law.

                              The fixed composite-decode builder code. One program, independent of the fiber, of n₁, of n₂, of C, and of P.

                              Equations
                              Instances For

                                The composite decode's cheap code: run the three ingredient codes, load P as a binary numeral, hand all four to the fixed builder.

                                Equations
                                Instances For
                                  theorem ReflectiveSubsystems.eval_compFrameCode {n₁ n₂ C P : ℕ} [NeZero P] (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (θ : Fin n₂ → Fin C) (cS cDec cθ : Nat.Partrec.Code) (hS : cS.eval 0 = Part.some (lensCode S)) (hDec : cDec.eval 0 = Part.some (lensCode (fiberFlat dec))) (hθ : cθ.eval 0 = Part.some (lensCode θ)) :
                                  (compFrameCode cS cDec cθ P).eval 0 = Part.some (lensCode (compFrameFlat S dec θ))

                                  The decode's price ([Inevitability] Theorem 6.6(vi), the decode half — the theorem's one remaining paper-level step, now closed). The three ingredient codes' lengths plus one addressing term logarithmic in P (Nat.size P), plus an absolute constant independent of the world, of n₁, n₂, C, and P. Assembled exactly as ReflectiveSubsystems.KE_skewWorldFin_powFiber_le prices "P copies": the composed code runs a bounded search over the population rather than carrying a P-fold table, so P enters through Nat.size P alone. Together with ReflectiveSubsystems.KE_skewWorldFin_powFiber_le, this closes clause (vi) at the same level of identification the rest of §6's pricing already runs at: the composite guest is P copies (there) and the verifying decode (here), and both cost O (log n₁ + log P) over their own ingredients.

                                  Stage C — the intact copy, and per-step survival #

                                  def ReflectiveSubsystems.compRun {C P : ℕ} (W : ℕ) (M : ℕ → Fin C → Bool) (v₀ : Fin P → WVec C W) (H : Finset ℕ) (col : ℕ → Finset (Fin P)) (land : ℕ → Fin P → WVec C W) :
                                  ℕ → Fin P → WVec C W

                                  The P-fold carrier's damaged run ([Inevitability] §6, Finding 3): every copy runs the ordinary weighted-fiber generation under the same fitness stream; at a hit time t ∈ H, the copies named by col t are overridden by land t instead, and every other copy still steps ordinarily. col/land are consulted only at times in H.

                                  Equations
                                  Instances For
                                    theorem ReflectiveSubsystems.compRun_eq_wRunFrom_of_untouched {C P : ℕ} (W : ℕ) (M : ℕ → Fin C → Bool) (v₀ : Fin P → WVec C W) (H : Finset ℕ) (col : ℕ → Finset (Fin P)) (land : ℕ → Fin P → WVec C W) {i₀ : Fin P} (hi₀ : ∀ t ∈ H, i₀ ∉ col t) (t : ℕ) :
                                    compRun W M v₀ H col land t i₀ = wRunFrom W (missFit M) (v₀ i₀) t

                                    An untouched copy's trajectory is the single undamaged run ([Inevitability] §6, Finding 3, Stage C(i) — the definitional identity, stated explicitly). If copy i₀ is never named at any hit time, damage never reaches it, and its own coordinate of the composite run is exactly wRunFrom from its own start.

                                    theorem ReflectiveSubsystems.exists_untouched_copy {P : ℕ} (H : Finset ℕ) (col : ℕ → Finset (Fin P)) (htouch : (H.biUnion col).card < P) :
                                    ∃ (i₀ : Fin P), ∀ t ∈ H, i₀ ∉ col t

                                    Every schedule touching fewer than P distinct copies leaves one untouched — the pigeonhole step behind Stage C(i).

                                    theorem ReflectiveSubsystems.compPredFrame_eq_next_of_touch_bound {n₁ C P W : ℕ} [NeZero C] [NeZero P] {hW : 2 ≤ W} (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x₀ : Fin n₁) {c₀ : Fin C} (hc₀ : ∀ (s : ℕ), dec c₀ (S^[s] x₀) = S (S^[s] x₀)) (v₀ : Fin P → WVec C W) (H : Finset ℕ) (col : ℕ → Finset (Fin P)) (land : ℕ → Fin P → WVec C W) (htouch : (H.biUnion col).card < P) :
                                    ∃ (T : ℕ), ∀ (t : ℕ), T ≤ t → compPredFrame S dec (S^[t] x₀) (compRun W (predMiss S dec x₀) v₀ H col land t) = S (S^[t] x₀)

                                    Per-step survival ([Inevitability] §6, Proposition 6.1(iii)'s invariant-reading regime, assembled from Stages A–C). From a base point whose generating rule is realizable in the guest's class, at any budget of at least two quanta: for any damage schedule touching fewer than P distinct copies in total, the composite's reading agrees with the base's own next state at every step past the intact copy's settling time — for any arrival pattern within the touch bound, since nothing above used one.

                                    theorem ReflectiveSubsystems.compPredFrame_damaged_eq_undamaged_of_touch_bound {n₁ C P W : ℕ} [NeZero C] [NeZero P] {hW : 2 ≤ W} (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x₀ : Fin n₁) {c₀ : Fin C} (hc₀ : ∀ (s : ℕ), dec c₀ (S^[s] x₀) = S (S^[s] x₀)) (v₀ : Fin P → WVec C W) (H : Finset ℕ) (col : ℕ → Finset (Fin P)) (land : ℕ → Fin P → WVec C W) (htouch : (H.biUnion col).card < P) :
                                    ∃ (T : ℕ), ∀ (t : ℕ), T ≤ t → compPredFrame S dec (S^[t] x₀) (compRun W (predMiss S dec x₀) v₀ H col land t) = compPredFrame S dec (S^[t] x₀) (compRun W (predMiss S dec x₀) v₀ ∅ (fun (x : ℕ) => ∅) (fun (x : ℕ) => v₀) t)

                                    The damaged and undamaged composites read the same ([Inevitability] §6, assembling survival against the plain construction): both equal the base's own next state, by the theorem above applied once to the schedule and once to no schedule at all.

                                    theorem ReflectiveSubsystems.compPredFrame_eq_next_of_realizable_budget {n₁ C P W : ℕ} [NeZero C] [NeZero P] {hW : 2 ≤ W} {b : ℕ} (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x₀ : Fin n₁) {c₀ : Fin C} (hc₀ : ∀ (s : ℕ), dec c₀ (S^[s] x₀) = S (S^[s] x₀)) (v₀ : Fin P → WVec C W) {θ : ℚ} (hbudget : 2 * (↑C - 1) ≤ θ * 2 ^ b) (n : ℕ) {c : ℕ} (hP : ↑c * (4 * (↑C - 1)) < ↑P * θ) (hθ0 : 0 < θ) (col : ℕ → Finset (Fin P)) (hcol : ∀ (t : ℕ), (col t).card ≤ c) (land : ℕ → Fin P → WVec C W) :
                                    ∃ (T : ℕ), ∀ (t : ℕ), T ≤ t → compPredFrame S dec (S^[t] x₀) (compRun W (predMiss S dec x₀) v₀ (floorErrorTimes (predMiss S dec x₀) b θ n) col land t) = S (S^[t] x₀)

                                    The budget instantiation ([Inevitability] §6, Finding 4's closing move): on the realizable branch the lifetime-free event count (FlooredMixture.floorErrorTimes_card_mul_le, 4(C-1)/θ) is the touch bound's own source. At P strictly above c times that count, any damage schedule confined to the run's own error times — at most c copies touched per error time — meets the touch hypothesis at every horizon, since the event count does not grow with it. The witness rate's own currency (the noisy branch's η) is not instantiated here; it is the assembly row's remark, not a further theorem, and nothing above needed it.

                                    The touch bound's other side: a schedule that touches every copy #

                                    The synchronizing miss matrix: candidate 0 misses at steps 3, 4 and 5 and nowhere else; candidate 1 never misses.

                                    Equations
                                    Instances For

                                      The synchronizing schedule: copy 0 is hit at step 0 and copy 1 at step 1.

                                      Equations
                                      Instances For

                                        The installed vector: candidate 0 at the cap 4, candidate 1 at the floor.

                                        Equations
                                        Instances For
                                          theorem ReflectiveSubsystems.compRun_synchronized_guard :
                                          (∀ (t : ℕ), t = 3 ∨ t = 4 ∨ t = 5 → ∀ (i : Fin 2), syncMiss t (argmax (compRun 4 syncMiss (fun (x x_1 : Fin 2) => 1) {0, 1} syncCol syncLand t i).raw) = true) ∧ ∀ (i : Fin 2), argmax (compRun 4 syncMiss (fun (x x_1 : Fin 2) => 1) {0, 1} syncCol syncLand 6 i).raw = 1

                                          Guard: a copy's recovery does not rescue a fixed population against a rate ([Inevitability] Theorem 6.6(v), the touch bound's other side — IN-25). Two copies from the uniform start, hit one per step with the same wrong leader installed, on a stream where that leader then misses three steps running: at each of those steps every copy's heaviest candidate is the one that misses, so no copy verifies and the composite reads wrong; at the step after, every copy's heaviest candidate is the truth again — the recovery is real and buys nothing against synchronization, since the copies were made to fail together. The burst is three steps, one more than the budget's two doublings, because argmax keeps the incumbent at a tie.