Documentation

ReflectiveSubsystems.DamageGate

A noise-gated damage schedule, and the absorption it buys ([Inevitability] §6, IN-25) #

Proposition 6.1's damage model (DM1) says the guest's code is perturbed only at the error times of its predictor at tolerance ε. Read literally on this construction, that condition names the damaged run's own set of error times, and RedundantFiber.lean records why that reading fails to be a budget at all — a schedule can land on every one of its own error times, at every length. This file states a different, weaker gate: one on the substrate's own noise stream directly, with no run, no weight vector and no schedule anywhere in its statement, so it names the same set of times before and after any damage. That is NoiseGated, and noiseGated_iff_witMiss is the reason it is worth a name at all — it is exactly the noisy witness's own miss condition (ReflectiveSubsystems.witMiss_zero), read as a schedule constraint rather than a run property.

A schedule confined to a noise-gated set inherits ReflectiveSubsystems.noiseCount's own bound (NoiseGated.card_le), and confining a P-fold carrier's damage that way is enough to guarantee an untouched copy, by the same pigeonhole step RedundantFiber.lean already proves (NoiseGated.exists_untouched_copy). The same route closes Theorem 6.6(v)'s own conclusion directly (NoiseGated.compPredFrame_eq_next), reusing RedundantFiber.lean's touch-bound argument rather than duplicating it.

Between the noise-free branch and one merely bounded per horizon sits a third class: a stream that fires at most m times in total (QuietFrom). Its noise count is capped by the same m at every horizon at once (QuietFrom.noiseCount_le), so a single redundancy condition — not one per horizon — already buys the composite's survival there (QuietFrom.exists_untouched_copy, QuietFrom.compPredFrame_eq_next): a lifetime statement on a branch strictly between the two Theorem 6.6(iii) names ([Inevitability] §6, Theorem 6.6(v″)). quietStream packages a designed instance of this class, and sourceStep/sourceOut package a counter automaton emitting it, so the class is witnessed rather than merely named.

Main results #

Scope #

None of this moves Theorem 6.6's own hypothesis. The theorem still names (DM1)/(DM2) as stated, and whether a host's damage in fact takes the noise-gated shape is not a question this file answers — it is a further, and strictly narrower, reading than the paper's own. What this file supplies is a gate stated on the noise stream itself, its count, and the precise sense in which it is weaker than what (DM1) buys: NoiseGated.eq_empty_of_quiet shows the gate has no content on the very branch the lifetime-free bound covers, so this is a variant repair, not a strengthening, of Theorem 6.6(v). NoiseGated.compPredFrame_eq_next inherits that same boundary: it is a parallel route to the theorem's own conclusion, honestly per-horizon rather than lifetime-free, not a replacement for the realizable branch's.

The eventually-quiet material carries the identical boundary, one level up: QuietFrom is stated on the stream alone, still names nothing about a run or a schedule, and its uniformization is a reading of NoiseGated.exists_untouched_copy/NoiseGated.compPredFrame_eq_next, not a new argument. What it does not supply is the composition this file's own uniform bound and a designed instance's own realizability are stitched together into a single per-horizon-free survival statement over an arbitrary eventually-quiet stream and an arbitrary gated schedule on it — that composition, and the instantiation of quietStream/sourceStep at this construction's own substrate, stay paper-level, exactly the sense in which (v″) names its own remaining seam.

The gate #

A noise-gated hit schedule. Every time in H sits on a fired noise bit, k steps ahead of itself — the same offset the noisy window witness's own miss condition reads at. Nothing here mentions a run, a weight vector or a schedule's landings, so the same set H is gated or not before and after any damage a host applies.

Equations
Instances For
    theorem ReflectiveSubsystems.noiseGated_iff_witMiss {k : ℕ} [NeZero k] (ξ : ℕ → Bool) (H : Finset ℕ) :
    NoiseGated k ξ H ↔ ∀ s ∈ H, witMiss k ξ s 0 = true

    The gate is the witness's own miss condition ([Inevitability] §6, IN-25). witMiss_zero says the true candidate's miss at s is the noise bit at s + k, so NoiseGated is exactly the schedule confined to that candidate's own misses — the point of naming it: a set defined this way is the same set whether read before or after damage, where the damaged run's own set of error times is not.

    theorem ReflectiveSubsystems.NoiseGated.card_le {k : ℕ} (ξ : ℕ → Bool) {H : Finset ℕ} {n : ℕ} (hH : H ⊆ Finset.range n) (hgate : NoiseGated k ξ H) :

    A gated schedule is no larger than the noise count. Every element of H inside the horizon n is a fired noise bit there, so H embeds into the noise-count set directly.

    The absorption bound, and its boundary #

    theorem ReflectiveSubsystems.NoiseGated.exists_untouched_copy {P : ℕ} [NeZero P] {k n c : ℕ} (ξ : ℕ → Bool) {H : Finset ℕ} (hH : H ⊆ Finset.range n) (hgate : NoiseGated k ξ H) (col : ℕ → Finset (Fin P)) (hcol : ∀ (t : ℕ), (col t).card ≤ c) (hP : c * noiseCount ξ k n < P) :
    ∃ (i₀ : Fin P), ∀ t ∈ H, i₀ ∉ col t

    A P-fold carrier survives a noise-gated schedule of bounded per-event reach ([Inevitability] §6, IN-25 — the gate's own absorption bound). At most c copies touched per hit, confined to a noise-gated schedule inside the horizon n: once P exceeds c times the noise count there, the union of touched copies is too small to cover every slot, and some copy is never touched. Routed through RedundantFiber.exists_untouched_copy via NoiseGated.card_le, the same pigeonhole step Stage C already proves.

    theorem ReflectiveSubsystems.NoiseGated.compPredFrame_eq_next {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) {k n c : ℕ} (ξ : ℕ → Bool) {H : Finset ℕ} (hH : H ⊆ Finset.range n) (hgate : NoiseGated k ξ H) (col : ℕ → Finset (Fin P)) (hcol : ∀ (t : ℕ), (col t).card ≤ c) (hP : c * noiseCount ξ k n < P) (land : ℕ → Fin P → WVec C W) :
    ∃ (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₀)

    The same absorption conclusion, reached from the noise gate ([Inevitability] §6, Theorem 6.6(v), IN-28). RedundantFiber.compPredFrame_eq_next_of_realizable_budget reaches RedundantFiber.compPredFrame_eq_next_of_touch_bound's touch bound from the realizable branch's error count; this reaches the identical touch bound from NoiseGated instead, via NoiseGated.card_le, and calls the same touch-bound theorem to close — the argument neither route duplicates. The bound is over noiseCount ξ k n, a quantity of the horizon n itself rather than a schedule-independent constant, so what this route delivers is honestly per-horizon — the shape the noisy branch's own rate takes (clause (iii)), not the realizable branch's lifetime-free anchor. Not a strengthening of the damage model: NoiseGated.eq_empty_of_quiet already shows the gate is empty on a noise-free stream, so this capstone has no content there — a parallel route to Theorem 6.6(v), not a better one.

    theorem ReflectiveSubsystems.NoiseGated.eq_empty_of_quiet {k n : ℕ} {ξ : ℕ → Bool} {H : Finset ℕ} (hquiet : ∀ t < n, ξ (t + k) = false) (hH : H ⊆ Finset.range n) (hgate : NoiseGated k ξ H) :
    H = ∅

    The gate's own boundary — a noise-free stream gates nothing ([Inevitability] §6, IN-25). On a stream quiet throughout the horizon, the only schedule confined to it that is also noise-gated is the empty one: a noise-gated host does no damage at all there. That noise-free stream is exactly the branch whose error count is the lifetime-free anchor 4(C−1)/θ (ReflectiveSubsystems.witness_floorErrorTimes_card_mul_le at noiseCount = 0), so the gate and that bound have content on disjoint branches — this is a variant repair of Theorem 6.6(v), not a strengthening of it.

    The eventually-quiet class, and its lifetime-free redundancy #

    Between the noise-free branch NoiseGated.eq_empty_of_quiet covers and the honestly per-horizon NoiseGated.compPredFrame_eq_next sits a third class: streams that fire finitely often overall rather than not at all. QuietFrom names it directly on the stream, with no run and no schedule, exactly as NoiseGated does — QuietFrom.noiseCount_le is the uniform-in-horizon bound that makes a single redundancy condition serve every horizon at once ([Inevitability] §6, Theorem 6.6(v″)).

    A stream that has fired at most m times in total, at offset k. Every firing sits below m, so the same bound m caps how often the stream has fired by any horizon — the class between a noise-free stream (m = 0) and one merely bounded within each horizon separately ([Inevitability] §6, Theorem 6.6(v″)).

    Equations
    Instances For
      theorem ReflectiveSubsystems.QuietFrom.noiseCount_le {k m : ℕ} {ξ : ℕ → Bool} (hq : QuietFrom k m ξ) (n : ℕ) :
      noiseCount ξ k n ≤ m

      The uniform count. Under QuietFrom, the noise count at every horizon n is capped by the same m — the fired times all sit below m, so extending the horizon past m never grows the count further ([Inevitability] §6, Theorem 6.6(v″), IN-13).

      theorem ReflectiveSubsystems.QuietFrom.exists_untouched_copy {P : ℕ} [NeZero P] {k m c : ℕ} {ξ : ℕ → Bool} (hq : QuietFrom k m ξ) (hP : c * m < P) {n : ℕ} {H : Finset ℕ} (hH : H ⊆ Finset.range n) (hgate : NoiseGated k ξ H) (col : ℕ → Finset (Fin P)) (hcol : ∀ (t : ℕ), (col t).card ≤ c) :
      ∃ (i₀ : Fin P), ∀ t ∈ H, i₀ ∉ col t

      The composite survives a gated schedule under QuietFrom, at one redundancy for every horizon at once. c * m < P already covers c * noiseCount ξ k n < P at every n (QuietFrom.noiseCount_le), so NoiseGated.exists_untouched_copy's conclusion holds uniformly — the fixed redundancy is a lifetime statement, not a per-horizon one ([Inevitability] §6, Theorem 6.6(v″)).

      theorem ReflectiveSubsystems.QuietFrom.compPredFrame_eq_next {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) {k m c : ℕ} {ξ : ℕ → Bool} (hq : QuietFrom k m ξ) (hP : c * m < P) {n : ℕ} {H : Finset ℕ} (hH : H ⊆ Finset.range n) (hgate : NoiseGated k ξ H) (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₀ H col land t) = S (S^[t] x₀)

      The same uniformization of NoiseGated.compPredFrame_eq_next — one redundancy condition, c * m < P, serving every horizon's conclusion at once, exactly (v)'s form reached from the eventually-quiet class rather than from a per-horizon noise count ([Inevitability] §6, Theorem 6.6(v″)).

      A designed instance, strictly between the two named branches #

      quietStream is a concrete eventually-quiet stream: it fires on exactly the window [k, k + m). At 0 < m it is not the noise-free branch (witMiss_quietStream_zero_of_pos — it misses immediately, at s = 0), yet its total miss set is finite (finite_setOf_witMiss_quietStream) — the two boundary facts placing it in the class QuietFrom names and neither of Theorem 6.6(iii)'s two branches covers on its own.

      The designed eventually-quiet stream at parameters k, m. Fires on exactly the window [k, k + m) and is silent everywhere else ([Inevitability] §6, Theorem 6.6(v″)).

      Equations
      Instances For

        quietStream is eventually-quiet at its own parameter m. Every one of its firings, read at offset k, sits below m by construction ([Inevitability] §6, Theorem 6.6(v″)).

        The designed candidate's misses are exactly the designed prefix. witMiss_zero reads the noise bit directly, and quietStream fires there exactly below m ([Inevitability] §6, Theorem 6.6(v″)).

        The gate on quietStream is exactly confinement to the designed prefix. Composing noiseGated_iff_witMiss with witMiss_quietStream_zero_iff reads NoiseGated on this stream as a plain range containment ([Inevitability] §6, Theorem 6.6(v″), IN-28).

        Not immediately realizable, at 0 < m. The designed candidate misses at s = 0 — the first boundary fact placing quietStream off the noise-free branch.

        Eventually realizable. The designed candidate's total miss set is finite — the second boundary fact, placing quietStream off the noisy branch that never settles.

        A source automaton emitting the designed instance #

        sourceStep is a saturating counter on Fin (k + m + 1): it increments until it reaches the top and then holds there. Read through sourceOut, the state it reaches after u steps from 0 emits exactly quietStream k m u — a host packaging for the designed instance, confining its own non-invertibility to the source (sourceStep_not_injective) rather than to anything downstream.

        def ReflectiveSubsystems.sourceStep (k m : ℕ) :
        Fin (k + m + 1) → Fin (k + m + 1)

        The saturating counter. Increments by one short of the top, k + m, and holds there — the source sourceOut reads against.

        Equations
        Instances For
          def ReflectiveSubsystems.sourceOut (k m : ℕ) (i : Fin (k + m + 1)) :

          The source's output. Fires exactly while the counter sits in [k, k + m), mirroring quietStream's own window.

          Equations
          Instances For
            theorem ReflectiveSubsystems.val_iterate_sourceStep (k m t : ℕ) (i : Fin (k + m + 1)) :
            ↑((sourceStep k m)^[t] i) = min (↑i + t) (k + m)

            The counter's value after t steps from any start, in closed form: it advances by t and saturates at k + m. Every fact about sourceStep's orbit below reduces to this one arithmetic identity.

            The source emits quietStream from state 0 ([Inevitability] §6, Theorem 6.6(v″)): the output read off the counter after u steps from 0 is the designed stream's own value at u.

            theorem ReflectiveSubsystems.sourceStep_iterate_eq_last (k m : ℕ) (i : Fin (k + m + 1)) :
            (sourceStep k m)^[k + m] i = Fin.last (k + m)

            The counter saturates by k + m steps, from every start. Not just from 0 — the top is reached from anywhere in the type within k + m steps, since no start sits further than k + m below it.

            The saturated state is a fixed point. Once at the top, the counter stays there.

            The step map is not injective, at 1 ≤ m. The saturated top and its immediate predecessor both land on the top — the host's own non-invertibility, confined to the source and nowhere claimed of the guest it drives.