Documentation

ReflectiveSubsystems.FlooredMixture

The floored mixture: normal form, event bound, no accumulation, convergence ([Inevitability] §6) #

QuantizationRate prices one projected generation against the exact Bayes step it approximates, and leaves two questions open: what the error budget of [Discovery] §3.3 becomes for a process that reserves a quantum per candidate, and what the residual does over a whole run. The fixed-mixture redundancy argument does not transfer verbatim to either — the floor leaks mass off the truth at every step, and the rescale projection can drop an update entirely. Both questions are answered here, in one named regime, off a single exact description of the dynamics.

A third question is answered off that same description, and it is about the fiber's reading rather than its distribution: whether selection under predictive fitness reaches a settled state at all. Under realizability it does — and by the fitness alone, the weighted fiber carrying no variation rule to impose one.

The regime #

Budget W = 2 ^ b; the 2-vs-1 fitness shape of predFitPos, driven by an abstract miss indicator M : ℕ → Fin C → Bool; and wRun's own all-ones start. The normal form assumes nothing beyond that, and neither does the event bound in the tracking form that counts the error times against an arbitrary reference candidate's own errors. Two results add realizability — a candidate iR that never misses — and there the hypothesis is load-bearing rather than convenient: the lifetime-free event count and the no-accumulation bound are both refuted without it, by families satisfying every other condition. The base dynamics, the decoder and the candidates' predictions are all abstracted into M, so the results hold of any instantiation.

Main results #

Scope #

The regime above is the whole of what is claimed. General W is not covered here: the exactness of the normal form is what a power-of-two budget buys, and outside it the rounding residual returns and the per-step rate of QuantizationRate remains the only tool. (The one thing that does hold at a general budget is the settling of the reading, which needs no closed form — BasinSettling.) Neither is a general fitness ceiling, nor stochastic candidates. The event bound's constant is linear in the candidate count where [Discovery] §3.3's is the description length of the truth; that is the price of the uniform prior wRun starts from, and no sharpening of it is attempted. The miss-count coefficient is likewise linear in C where the logarithmic potential argument gives one free of it: that is the price of an additive accounting in ℚ, and the sharpness readings above bound how much is being given away. The tracking form of the accumulation bound reaches only the comparator restarted at a co-leader point: what is false against exact Bayes from the beginning of time stays false, and the restarted form's own guards say what is false without each of its hypotheses. No bound against a comparator restarted at an arbitrary time is claimed, and the two families show why one is not available. The floored process is treated abstractly through M, and [Discovery] §3.3's own fixed-mixture bound is untouched, exported exactly as before.

The convergence at the end is the discovery half only, and it is pathwise: the reading settles on a candidate consistent with the observed trajectory, at every trajectory that carries one. It is stated from the fiber's own all-ones start, and everything it says about which candidate the reading settles on is a privilege of that start — BasinSettling carries settling to every initial weight vector and every budget, and refutes the version-space characterization, the reading's monotonicity and the C − 1 change count there. What neither gives is the race: which initial conditions let discovery outrun damage turns on the survival half, priced elsewhere; nothing here covers the winner-take-all fiber, whose fixed pool is not this dynamics, nor a noisy base, where even the best candidate misses and realizability fails. Nor is any of it a coverage statement: the pricing assembly's hypothesis quantifies over initial states of the base coordinate, and neither condition implies the other.

Both statements are in ℚ wrong-mass form rather than squared-Hellinger form. For deterministic point-predicting candidates the translation is arithmetic — the mixture's probability of the realized symbol is 1 − the wrong mass — and keeping it out of the Lean statement avoids a real square root for no added content, at the same abstraction level at which [Inevitability] §6 consumes the fixed-mixture set of error times.

The rotation family sits inside the same below-the-horizon regime as the general normal form: its closed forms hold for t ≤ b, and no claim is made past it. What it claims is exactly the separation of two repair counters this file already carries — nothing about observer synchronization, stored structure, or program-running-time depth, none of which any result here characterizes, contrasts with, or bears on.

def ReflectiveSubsystems.missFit {C : ℕ} (M : ℕ → Fin C → Bool) :
ℕ → Fin C → ℕ

The 2-vs-1 fitness of predFitPos, driven by an abstract miss indicator.

Equations
Instances For
    def ReflectiveSubsystems.missCount {C : ℕ} (M : ℕ → Fin C → Bool) (i : Fin C) (t : ℕ) :

    How often candidate i has missed strictly before time t.

    Equations
    Instances For
      theorem ReflectiveSubsystems.missCount_eq_zero {C : ℕ} (M : ℕ → Fin C → Bool) {i : Fin C} (h : ∀ (t : ℕ), M t i = false) (t : ℕ) :
      missCount M i t = 0
      theorem ReflectiveSubsystems.eq_false_of_missCount_eq_zero {C : ℕ} {M : ℕ → Fin C → Bool} {i : Fin C} {t s : ℕ} (h : missCount M i t = 0) (hs : s < t) :
      M s i = false

      The converse, read at one step: a zero miss count over a horizon means no miss inside it.

      The exponent automaton #

      The floored run's whole state is one exponent per candidate. expStep is the transition, and it carries no hypothesis: a hit adds one to the candidate's exponent, and the common rescale subtracts one from every exponent exactly when some candidate already at the ceiling hits. That last clause is the entire content of the budget projection — the rescale tracks the weight vector's maximum, so a step costs the whole population one doubling precisely when the leader would otherwise overflow.

      def ReflectiveSubsystems.expStep {C : ℕ} (b : ℕ) (m : Fin C → Bool) (e : Fin C → ℕ) :
      Fin C → ℕ

      One step of the exponent automaton: a hit adds one, and the common rescale subtracts one exactly when some candidate at the ceiling hits. ℕ-subtraction carries the floor.

      Equations
      Instances For
        def ReflectiveSubsystems.expRun {C : ℕ} (M : ℕ → Fin C → Bool) (b : ℕ) :
        ℕ → Fin C → ℕ

        The floored run's exponent vector, from the all-ones start.

        Equations
        Instances For
          theorem ReflectiveSubsystems.expRun_le {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) (i : Fin C) :
          expRun M b t i ≤ b

          The exponents never leave the budget. The ceiling b is an invariant of the automaton, and proving it needs nothing about the miss sequence: the only way to reach b + 1 is from b on a hit, and a candidate hitting at the ceiling is exactly what triggers the rescale.

          theorem ReflectiveSubsystems.wRun_eq_pow_expRun {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) (i : Fin C) :
          (wRun (2 ^ b) (missFit M) t).raw i = 2 ^ expRun M b t i

          The general normal form — the floored run, in closed form, with no hypothesis at all.

          At a power-of-two budget and the 2-vs-1 fitness shape, raw (wRun (2^b) (missFit M) t) is exactly 2 ^ expRun M b t: every weight is a power of two at every step, and the whole run is the exponent automaton above. Realizability plays no part — it enters the closed form below only through the divisor, and the divisor is leader-relative to begin with.

          The proof is the two divisor computations. A candidate at the ceiling that hits pushes the post-step maximum to 2 ^ (b+1), where the rescale divisor is exactly 2; otherwise the maximum stays inside the budget and the divisor is exactly 1. Because every weight is a power of two, dividing by 2 subtracts one exponent — and the projection's floor at one quantum is precisely the ℕ-subtraction's clip at exponent 0.

          The running leader #

          The rescale is driven by the largest exponent in play. Under realizability that leader is frozen at the truth; in general it is still a well-behaved object, and the two facts the automaton needs are theorems rather than hypotheses.

          def ReflectiveSubsystems.expMax {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) :

          The running leader's exponent: the largest exponent any candidate holds at time t.

          Equations
          Instances For
            theorem ReflectiveSubsystems.expMax_le {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) :
            expMax M b t ≤ b
            theorem ReflectiveSubsystems.sup_le_sup_expStep {C : ℕ} (b : ℕ) (m : Fin C → Bool) (e : Fin C → ℕ) (he : ∀ (i : Fin C), e i ≤ b) :

            The one-step fact behind both leader theorems. When no ceiling candidate hits, every coordinate is non-decreasing; when one does, that candidate itself lands back on the ceiling, which already dominates the pre-step maximum.

            theorem ReflectiveSubsystems.expMax_mono {C : ℕ} (M : ℕ → Fin C → Bool) (b : ℕ) {t t' : ℕ} (h : t ≤ t') :
            expMax M b t ≤ expMax M b t'

            The leader never falls back. The largest exponent in play is non-decreasing in time — no hypothesis, no realizability.

            theorem ReflectiveSubsystems.expMax_absorbing {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) (h : expMax M b t = b) (s : ℕ) :
            expMax M b (t + s) = b

            The ceiling absorbs. Once any candidate reaches the budget exponent, some candidate holds it forever after: the leader is non-decreasing and can never exceed b.

            def ReflectiveSubsystems.expDef {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) (i : Fin C) :

            A candidate's deficit against the running leader: how many doublings behind the largest exponent in play it sits. This is the general form of the geometric charge: under realizability the leader is the truth and the deficit is the miss count clipped at the budget exponent, but the reading is controlled by the deficit whether or not the leader is frozen.

            Equations
            Instances For
              theorem ReflectiveSubsystems.expDef_le {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) (i : Fin C) :
              expDef M b t i ≤ b

              The realizable closed form #

              theorem ReflectiveSubsystems.expRun_eq_deficit {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b t : ℕ) (i : Fin C) :
              expRun M b t i = min t b - missCount M i t

              Realizability collapses the automaton to a clipped deficit. A candidate that never misses sits at the ceiling from time b onwards, so from then on every step triggers the rescale and the leader is frozen: a hit pays nothing, a miss costs one exponent, and the exponent is the clipped deficit min t b − missCount M i t.

              theorem ReflectiveSubsystems.wRun_eq_pow_deficit {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b t : ℕ) (i : Fin C) :
              (wRun (2 ^ b) (missFit M) t).raw i = 2 ^ (min t b - missCount M i t)

              The saturation normal form — the floored run, in closed form.

              At a power-of-two budget, with the 2-vs-1 fitness shape and a candidate that never misses, the projected run is exactly a clipped-deficit automaton: candidate i carries 2 ^ (min t b - missCount M i t), the ℕ-subtraction carrying the clip. This is an identity, not an approximation, and that is what the regime buys. Realizability holds the truth at the ceiling, so past the horizon the post-step maximum is exactly twice the budget and the common divisor is exactly 2; a hit then pays ·2/2 and costs nothing, a miss pays ·1/2 and costs one exponent, floored at one quantum. Every weight stays a power of two and the rounding residual — the whole subject of QuantizationRate's per-step rate — vanishes identically here.

              Both sides of the horizon are covered by the one formula: below it min t b is t and the exponent is the hit count, which is raw_wRun_eq_bayesRun's regime.

              This is wRun_eq_pow_expRun read at a frozen leader: the hub is hypothesis-free, and realizability buys exactly the collapse of the exponent automaton to a clipped deficit.

              theorem ReflectiveSubsystems.bayesRun_missFit {C : ℕ} (M : ℕ → Fin C → Bool) (t : ℕ) (i : Fin C) :
              bayesRun (missFit M) t i = 2 ^ (t - missCount M i t)

              The exact-run analogue of the normal form: with no carrier there is no clip, so the exponent is the plain hit count and grows without bound. The difference between this and wRun_eq_pow_deficit is the whole of what the finite carrier costs.

              theorem ReflectiveSubsystems.raw_wRun_eq_bayesRun_missFit {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) {b t : ℕ} (ht : t ≤ b) (i : Fin C) :
              (wRun (2 ^ b) (missFit M) t).raw i = bayesRun (missFit M) t i

              Below the horizon the normal form is the known regime. One formula covers both sides of the horizon: while t ≤ b the clip has not bitten, the two exponents coincide, and the floored run is the exact run — raw_wRun_eq_bayesRun's conclusion, recovered here from the normal form alone for the {1,2}-fitness family.

              theorem ReflectiveSubsystems.expRun_eq_sub_missCount_of_le {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) :
              t ≤ b → ∀ (i : Fin C), expRun M b t i = t - missCount M i t

              Below the horizon, realizability was never needed. The clip has not bitten while t ≤ b, so no candidate — realizable or not — can yet sit at the ceiling and trigger a rescale: the exponent is the plain hit count for any miss indicator. raw_wRun_eq_bayesRun_missFit is this fact composed with bayesRun_missFit's own closed form; realizability only starts to matter once some candidate could be at the ceiling, i.e. past the horizon.

              The restarted normal form #

              Everything above reads the run from its own start. The tracking question reads it from an arbitrary time s: how does the floored run at t compare with exact Bayes continued from the state the floored run itself held at s? Two facts answer it, and neither needs a realizable candidate. The first is that co-leadership persists while its holder keeps hitting. The second is that under that hypothesis the window [s, t) is again one exponent automaton, run from the state at s: each candidate's exponent is its restarted hit count less the rescales the window paid, and the rescale count is determined by the co-leader's own distance from the ceiling.

              def ReflectiveSubsystems.hitCount {C : ℕ} (M : ℕ → Fin C → Bool) (i : Fin C) (s t : ℕ) :

              How often candidate i has hit over the window [s, t): the window's length, less the misses inside it. At s = 0 it is the whole run's hit count t − missCount M i t.

              Equations
              Instances For
                theorem ReflectiveSubsystems.coleader_persists {C : ℕ} (M : ℕ → Fin C → Bool) (b : ℕ) {iL : Fin C} {s t : ℕ} (hlead : ∀ (j : Fin C), expRun M b s j ≤ expRun M b s iL) (hiL : ∀ (u : ℕ), s ≤ u → u < t → M u iL = false) (u : ℕ) :
                s ≤ u → u ≤ t → ∀ (j : Fin C), expRun M b u j ≤ expRun M b u iL

                Co-leadership persists while its holder keeps hitting. If iL carries a maximal exponent at time s and misses at no step of [s, t), then it carries a maximal exponent throughout [s, t]. One induction does it, and it needs nothing else about the run: the rescale is charged to everyone alike, a hit adds at most one exponent to anyone, and iL collects that one at every step.

                theorem ReflectiveSubsystems.expRun_eq_hitCount_sub {C : ℕ} (M : ℕ → Fin C → Bool) (b : ℕ) {iL : Fin C} {s t : ℕ} (hst : s ≤ t) (hlead : ∀ (j : Fin C), expRun M b s j ≤ expRun M b s iL) (hiL : ∀ (u : ℕ), s ≤ u → u < t → M u iL = false) (i : Fin C) :
                expRun M b t i = expRun M b s i + hitCount M i s t - (t - s - (b - expRun M b s iL))

                The restarted normal form, read at the window's far end.

                The event bound #

                def ReflectiveSubsystems.wrongMass {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) :

                The mixture's mass on the candidates that miss at time t — the reading's own probability of being wrong at that step. For deterministic point-predicting candidates this is 1 − the probability the mixture assigns the realized symbol, which is why the bounds below can stay in ℚ rather than reaching for a square root.

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

                  The steps, before n, at which the wrong mass strictly exceeds the threshold θ. The membership condition is strict, as in BayesRedundancy.errorTimes.

                  Equations
                  Instances For

                    The leader-relative charge #

                    The realizable argument charged each candidate against the truth, which holds the ceiling from time b onwards. With no realizable candidate there is no fixed reference — but there is still a running leader, and expMax makes it a proved object rather than an assumption. What controls the reading is expDef, the deficit against that leader, the general form of the realizable charge.

                    theorem ReflectiveSubsystems.toDist_wRun_le_expDef {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) (i : Fin C) :
                    toDist (wRun (2 ^ b) (missFit M) t).raw i ≤ (1 / 2) ^ expDef M b t i

                    The share, against the running leader. A candidate's posterior mass is at most (1/2) ^ expDef, because the leader alone accounts for 2 ^ expMax of the total weight. No hypothesis, in particular no realizable candidate — under realizability the leader is the truth and this is the realizable geometric charge, the deficit being the clipped miss count.

                    theorem ReflectiveSubsystems.wrongMass_le_one {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) :
                    wrongMass M b t ≤ 1

                    The wrong mass is a probability. The reading is a distribution, so the mass on candidates that miss never exceeds 1 — no hypothesis, and wrongMass_everyMiss attains the value. wrongMass_lt_one_of_hit is the strict form, and it needs some candidate to hit.

                    The tracking potential #

                    The realizable argument's lifetime total was a geometric series: a candidate's miss count is strictly monotone at every charged step, so it pays each charge at most once and the total is below 2. That argument is exactly what the reflection breaks — the clip discards debt beyond the ceiling, so a candidate returns to a deficit it has already paid and the charge falls due again.

                    What survives is that a re-payment has to be paid for: each one needs the reference candidate's exponent to have fallen back relative to the candidate's, and that happens only at a step where the reference itself misses. The bookkeeping is a potential in the two exponents. leadGap x y is 2 · 2 ^ −(x−y) above the diagonal and 2 + (y−x) below it — decreasing in x − y, 2 on the diagonal, never negative. A step at which the reference hits and the candidate misses shifts x − y up by one and so releases exactly the charge; a step at which the reference misses can push it back down, at a cost of at most 1.

                    The guard: below its own condition there is no n-free bound #

                    The all-miss family's refutation runs at θ·(2^b + C − 1) < C − 1, strictly stronger than the budget threshold's mere failure — LogMassEvent.lean's floorErrorTimesFrom_card_add_le_capacity is bounded at exactly this condition negated, so the threshold used above is a sufficient condition for both bounds' constants and not the boundary of either.

                    def ReflectiveSubsystems.allMiss {C : ℕ} (iR : Fin C) :
                    ℕ → Fin C → Bool

                    The all-miss family: every candidate but iR misses at every step.

                    Equations
                    Instances For
                      theorem ReflectiveSubsystems.floorErrorTimes_unbounded_below_budget {C : ℕ} {iR : Fin C} (b : ℕ) (θ : ℚ) (hθ : θ * (2 ^ b + (↑C - 1)) < ↑C - 1) (n : ℕ) :
                      (floorErrorTimes (allMiss iR) b θ n).card = n

                      The guard. At its own condition θ·(2^b + C − 1) < C − 1 — strictly stronger than the budget threshold's mere failure — the n-free bound is false: on the all-miss family every single step is an error time, so the error count grows without bound. This is what makes floorErrorTimes_card_mul_le's budget hypothesis load-bearing rather than decorative — delete it and this family refutes what remains; and it is exactly floorErrorTimesFrom_card_add_le_capacity's own hypothesis negated, so the budget threshold is a sufficient condition for both bounds' constants and not the boundary of either.

                      The refutation, concretely. Three candidates, budget 2, threshold 1/4: every step is a error time, so no n-free bound on the error count exists — while the budget hypothesis of floorErrorTimes_card_mul_le reads 4 ≤ 1/2 and fails.

                      The guard on realizability: the event bound is false without it #

                      The budget gate above is not the only load-bearing hypothesis. Realizability is too, and in the stronger sense: the two families below satisfy the budget gate and still make every step a error time, so a lifetime-free right-hand side is unavailable in general — floorErrorTimes_card_mul_le is not a theorem waiting for a weaker hypothesis.

                      The mechanism is the one sum_unsatCharge_le_two depends on. Its argument is that a candidate pays each geometric charge at most once, its miss count being strictly monotone at every charged step. Without a frozen leader the clip discards debt beyond the ceiling, a candidate returns to a deficit it has already paid, and the same charge falls due again and again. Positively: the floor buys tracking — the floored mixture follows the recent leader where the exact mixture aggregates all history, which is why the exact-Bayes comparison is available only under realizability.

                      The degenerate refuting family: every candidate misses at every step.

                      Equations
                      Instances For

                        No candidate is realizable here — which is what puts the family outside floorErrorTimes_card_mul_le's hypothesis rather than in contradiction with it.

                        theorem ReflectiveSubsystems.expRun_everyMiss (C b t : ℕ) (i : Fin C) :
                        expRun (everyMiss C) b t i = 0

                        Nobody ever hits, so the rescale never fires and the exponents never move: the weights stay at the all-ones start forever.

                        theorem ReflectiveSubsystems.raw_wRun_everyMiss (C b t : ℕ) (i : Fin C) :
                        (wRun (2 ^ b) (missFit (everyMiss C)) t).raw i = 1

                        The wrong mass is exactly 1 at every step, whatever the budget. Every candidate misses, so the whole uniform reading sits on candidates that are wrong.

                        wrongMass_lt_one's hypothesis is not decorative either, and its honest general form is per-step: the wrong mass reaches 1 exactly when the observation lies outside the candidates' span at that step. See wrongMass_lt_one_of_hit for the repair.

                        theorem ReflectiveSubsystems.floorErrorTimes_unbounded_everyMiss {C : ℕ} [NeZero C] (b : ℕ) {θ : ℚ} (hθ : θ < 1) (n : ℕ) :

                        The event bound is refutable without realizability. On the every-candidate-misses family the wrong mass is 1 at every step, so for any threshold below 1 the error count equals the horizon — and the budget gate is untouched, being a condition on θ, C and b alone.

                        theorem ReflectiveSubsystems.floorErrorTimes_card_mul_gt_everyMiss_witness :
                        2 * (↑2 - 1) ≤ 1 / 2 * 2 ^ 3 ∧ 4 * (↑2 - 1) < ↑(floorErrorTimes (everyMiss 2) 3 (1 / 2) 16).card * (1 / 2)

                        The refutation, concretely and hand-checkably. Two candidates, θ = 1/2, budget 2^3: the gate 2(C−1) ≤ θ·2^b reads 2 ≤ 4 and holds, yet over a horizon of 16 steps the error time count times the threshold is 8, twice floorErrorTimes_card_mul_le's 4(C−1) = 4. So realizability is load-bearing in that theorem, not slack.

                        The non-degenerate refuting family: two candidates missing alternately, so each hits exactly half the time. Candidate i misses at the steps t with t % 2 = i.

                        Equations
                        Instances For

                          Neither candidate is realizable: each misses at every other step.

                          theorem ReflectiveSubsystems.expRun_altMiss (b t : ℕ) :
                          expRun altMiss b t 0 = min (t / 2) (b - t % 2) ∧ expRun altMiss b t 1 = min ((t + 1) / 2) b

                          The alternating family's exponents in closed form. They climb in step to the ceiling and then cycle: at even times both candidates sit at min (t/2) b, at odd times the hitter is one doubling ahead. The b − t % 2 on the first coordinate is the reflection — the candidate the rescale charges drops back below the ceiling and climbs again on its next hit.

                          The wrong mass never drops below 1/2, at any budget and any time. At even steps the two candidates are level and the misser holds exactly half the mass; at odd steps the misser is the one that just hit, so it holds at least half.

                          theorem ReflectiveSubsystems.floorErrorTimes_unbounded_altMiss (b : ℕ) {θ : ℚ} (hθ : θ < 1 / 2) (n : ℕ) :

                          The refutation without the degeneracy. Each candidate hits half the time, so the family is not open to the objection that nobody ever learns anything — and still every step is an error time for any threshold below 1/2.

                          theorem ReflectiveSubsystems.floorErrorTimes_card_mul_gt_altMiss_witness :
                          2 * (↑2 - 1) ≤ 4 / 2 ^ 6 * 2 ^ 6 ∧ 4 * (↑2 - 1) < ↑(floorErrorTimes altMiss 6 (4 / 2 ^ 6) 128).card * (4 / 2 ^ 6)

                          The non-degenerate refutation, concretely. Two candidates, budget 2^6, threshold θ = 4/2^6: the gate reads 2 ≤ 4 and holds, and over 128 steps the error count times the threshold is 8, twice floorErrorTimes_card_mul_le's 4(C−1) = 4.

                          The event bound, gated by the budget #

                          theorem ReflectiveSubsystems.floorErrorTimes_card_mul_le_missCount {C : ℕ} (M : ℕ → Fin C → Bool) (b : ℕ) (θ : ℚ) (hbudget : 2 * (↑C - 1) ≤ θ * 2 ^ b) (i₀ : Fin C) (n : ℕ) :
                          ↑(floorErrorTimes M b θ n).card * θ ≤ 4 * (↑C - 1) + 2 * ↑C * ↑(missCount M i₀ n)

                          The floored event bound, agnostic. Once the budget clears the error time threshold (2(C−1) ≤ θ·2^b), the steps at which the floored mixture's wrong mass exceeds θ are bounded over the whole run by a right-hand side that mentions the horizon only through one candidate's miss count — and that candidate is arbitrary, quantified over the whole pool rather than chosen as an argmin. The horizon never occurs on the right by itself, the same product-form presentation as BayesRedundancy.errorTimes_card_mul_le; a consumer instantiates at whichever candidate misses least.

                          This is the mixture-currency instance of the agnostic weighted-majority bound: Littlestone & Warmuth, The weighted majority algorithm, Information and Computation 108 (1994), Corollary 2.1 and §3 (WML), whose floored variant already carries a tracking bound of this shape. What is proved here rather than imported is the exact constant on the quantized power-of-two carrier — where the floor is the budget projection's own clip rather than a weight threshold applied by hand — together with the specialization to the realizable regime, floorErrorTimes_card_mul_le being this bound read at a never-missing reference.

                          Three accountings meet. The floor's own noise is uniformly sub-threshold at a step where the reference hits: the saturated candidates together carry at most (C−1)/2^b ≤ θ/2, so they can never complete an error time on their own, which is exactly what the budget hypothesis buys — and floorErrorTimes_unbounded_below_budget shows that without it the conclusion is false rather than unproved. The surplus therefore comes from candidates still inside the budget, and their charges are paid out of leadPot, which only the reference's own misses refill. The steps at which the reference itself misses carry no charge at all: they are counted directly, one per miss.

                          The miss-count coefficient is 2C, where a share-potential argument in the logarithm gives one free of C. That C is the price of an additive accounting in ℚ: each of the C−1 competitors keeps its own potential, and a single miss of the reference can refill all of them at once. The families below read in the other direction and force the coefficient to be at least θ, and at least 2θ on the alternating family, so what separates the proved constant from a necessary one is a factor in C rather than the shape.

                          theorem ReflectiveSubsystems.floorErrorTimes_card_mul_le {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b : ℕ) (θ : ℚ) (hbudget : 2 * (↑C - 1) ≤ θ * 2 ^ b) (n : ℕ) :
                          ↑(floorErrorTimes M b θ n).card * θ ≤ 4 * (↑C - 1)

                          The floored event bound in the realizable regime — the agnostic bound above read at a candidate that never misses, whose miss count is 0 at every horizon, so the right-hand side is free of the horizon altogether: at most 4(C−1)/θ error times over the whole run, n occurring only inside the set of error times. This is the form [Inevitability] §6 consumes. The families below show that realizability cannot simply be dropped from this statement: what replaces it is the tracking form above, not a weaker hypothesis.

                          Sharpness: the refutation families read against the tracking bound #

                          The families that refute the lifetime-free count are inside the tracking bound's hypotheses — it asks nothing of them — so they read there as sharpness witnesses rather than refutations. Both of the two below pin the miss-count term from the other side: it cannot be dropped, its coefficient cannot fall below θ in general, and on the alternating family not below 2θ. mirrorMiss is covered by the tracking bound too, unconditionally; what that family says is toDist_wRun_sub_bayesRun_not_le_mirrorMiss, about accumulation against exact Bayes, and no tracking form of that is attempted here.

                          Every candidate misses at every step, so each one's miss count is the horizon.

                          theorem ReflectiveSubsystems.le_of_card_mul_le_missCount_everyMiss {C : ℕ} [NeZero C] (b : ℕ) {θ κ : ℚ} (hθ : θ < 1) (_hbudget : 2 * (↑C - 1) ≤ θ * 2 ^ b) (i₀ : Fin C) (h : ∀ (n : ℕ), ↑(floorErrorTimes (everyMiss C) b θ n).card * θ ≤ 4 * (↑C - 1) + κ * ↑(missCount (everyMiss C) i₀ n)) :
                          θ ≤ κ

                          Sharpness on everyMiss: the miss-count term is necessary, and its coefficient cannot go below θ. Every candidate misses at every step, so the error count is the horizon and is every candidate's miss count. Any κ for which card · θ ≤ 4(C−1) + κ · missCount i₀ n holds at every horizon therefore satisfies θ ≤ κ: at κ = 0 this is floorErrorTimes_card_mul_gt_everyMiss_witness's refutation of the lifetime-free form, and floorErrorTimes_card_mul_le_missCount supplies κ = 2C.

                          Candidate 0 of the alternating family misses at the even steps: its miss count is ⌈n/2⌉.

                          theorem ReflectiveSubsystems.two_mul_le_of_card_mul_le_missCount_altMiss (b : ℕ) {θ κ : ℚ} (hθ : θ < 1 / 2) (_hbudget : 2 * (↑2 - 1) ≤ θ * 2 ^ b) (h : ∀ (n : ℕ), ↑(floorErrorTimes altMiss b θ n).card * θ ≤ 4 * (↑2 - 1) + κ * ↑(missCount altMiss 0 n)) :
                          2 * θ ≤ κ

                          Sharpness on altMiss: the coefficient cannot fall below 2θ. Two candidates missing alternately: every step is an error time for any threshold below 1/2, while each candidate misses only half the time, so the horizon enters the left side at full rate and the right at half. Any κ for which the tracking bound holds at every horizon therefore satisfies 2θ ≤ κ, and as θ approaches 1/2 that forces κ ≥ 1. So the coefficient 2C of floorErrorTimes_card_mul_le_missCount is within a factor of C of necessary, not of a different shape.

                          Reconciliation: where the budget hypothesis leaves the bound silent #

                          theorem ReflectiveSubsystems.wrongMass_lt_one_of_hit {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) {i₀ : Fin C} (h₀ : M t i₀ = false) :
                          wrongMass M b t < 1

                          The wrong mass stays below 1, and the honest hypothesis is per-step. Some candidate hitting at that step — the observation lying inside the candidates' span there — is enough, and it is also necessary: wrongMass_everyMiss puts the mass at exactly 1 when nobody hits. Every weight is a power of two by wRun_eq_pow_expRun, so the hitter's own mass is positive and unaccounted for.

                          theorem ReflectiveSubsystems.wrongMass_lt_one {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b t : ℕ) :
                          wrongMass M b t < 1

                          The truth always retains mass, so the wrong mass never reaches 1. Realizability is more than this needs — wrongMass_lt_one_of_hit asks only that someone hits at the step in question.

                          theorem ReflectiveSubsystems.floorErrorTimes_eq_empty_of_one_le {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b : ℕ) {θ : ℚ} (hθ : 1 ≤ θ) (n : ℕ) :

                          Above threshold 1 there are no error times at all: the wrong mass cannot get there.

                          theorem ReflectiveSubsystems.floorErrorTimes_vacuous_at_badW_budget {M : ℕ → Fin 2 → Bool} {iR : Fin 2} (hR : ∀ (t : ℕ), M t iR = false) {θ : ℚ} (hbudget : 2 * (↑2 - 1) ≤ θ * 2 ^ 1) (n : ℕ) :

                          The event bound's own vacuity zone. At C = W = 2 — weighted_fiber_not_exactly_bayes's instance — the budget hypothesis already forces θ ≥ 1, where no wrong mass can reach the threshold and the set of error times is empty for every horizon. So the annihilating instance and the event bound occupy disjoint budgets rather than contradicting each other, exactly as toDist_sub_le_two reconciled that instance with the per-step rate.

                          The annihilated update is the clip in action. weighted_fiber_not_exactly_bayes's two-candidate, budget-2 instance is the all-miss family at b = 1: from step 1 onwards the floored run sits at badW = (2,1) forever, the competitor's every miss absorbed by the floor. project_bayesStep_badFit_eq_badW is that fixed point exhibited one step at a time; the normal form gives it for all t ≥ 1 at once.

                          The accumulated residual #

                          theorem ReflectiveSubsystems.toDist_mul_left {C a : ℕ} (ha : 0 < a) (v : Fin C → ℕ) :
                          (toDist fun (i : Fin C) => a * v i) = toDist v

                          Normalization forgets a common scalar. The reading depends on the weight vector only through its ray, so scaling every coordinate by the same positive natural leaves it fixed.

                          The restarted comparator #

                          def ReflectiveSubsystems.bayesFrom {C : ℕ} (M : ℕ → Fin C → Bool) (b s t : ℕ) (i : Fin C) :

                          Exact Bayes restarted at time s, from the floored run's own state there: the weights the floored run holds at s, updated by the exact rule — no carrier, no projection — over [s, t). At s = 0 this is bayesRun itself, the all-ones start being the floored run's own.

                          Equations
                          Instances For
                            theorem ReflectiveSubsystems.bayesFrom_eq_pow {C : ℕ} (M : ℕ → Fin C → Bool) (b s t : ℕ) (i : Fin C) :
                            bayesFrom M b s t i = 2 ^ (expRun M b s i + hitCount M i s t)

                            The restarted comparator in exponent form, off the general normal form.

                            theorem ReflectiveSubsystems.bayesFrom_zero {C : ℕ} (M : ℕ → Fin C → Bool) (b t : ℕ) (i : Fin C) :
                            bayesFrom M b 0 t i = bayesRun (missFit M) t i

                            At s = 0 the restarted comparator is the exact run. The floored run's state at time 0 is the uniform start the exact run also begins from, so nothing has been restarted yet.

                            theorem ReflectiveSubsystems.toDist_wRun_sub_bayesFrom_le {C : ℕ} (M : ℕ → Fin C → Bool) (b : ℕ) {iL : Fin C} {s t : ℕ} (hst : s ≤ t) (hlead : ∀ (j : Fin C), expRun M b s j ≤ expRun M b s iL) (hiL : ∀ (u : ℕ), s ≤ u → u < t → M u iL = false) :
                            ∑ i : Fin C, |toDist (wRun (2 ^ b) (missFit M) t).raw i - toDist (bayesFrom M b s t) i| ≤ 2 * (↑C - 1) / 2 ^ b

                            The tracking form of the accumulation bound, and it asks for no realizable candidate.

                            Compare the floored run at t not with exact Bayes from the beginning of time — which toDist_wRun_sub_bayesRun_not_le_mirrorMiss refutes outright without realizability — but with exact Bayes restarted at s from the floored run's own state there. Then the same 2(C−1)/2^b holds, uniformly in the elapsed time, under two hypotheses carried by one candidate over the window alone: iL is a running co-leader at s, and it misses at no step of [s, t). Nothing is assumed about the run before s, nothing about the other candidates, and nothing about whether any candidate is consistent with the whole history.

                            The proof splits at the first time the co-leader reaches the ceiling. Before it no candidate is at the ceiling, so no step rescales and the floored run is the restarted exact run, coordinate for coordinate. From it the co-leader sits at the ceiling and hits at every step, so every step rescales, and the argument is toDist_wRun_sub_bayesRun_le's: scaled up by the common factor the clip cost it, the two runs agree except on the candidates the clip has floored, of which there are at most C−1, and each is off by at most the scale factor itself.

                            This is the mixture-currency instance of the tracking bounds of the weighted-majority and fixed-share family — Littlestone and Warmuth (1994) §3 for the floored variant's weight floor, recovery invariant and per-segment accounting, and Herbster and Warmuth (1998) for bounds against a shifting comparator. That a weight floor buys recovery, that the weight ratios stay bounded, and that a shifting comparator is trackable at all are theirs and are not claimed here. What is machine-checked here is the comparator: exact Bayes restarted at a co-leader point, in total variation on the quantized carrier, at the exact constant 2(C−1)/2^b.

                            theorem ReflectiveSubsystems.toDist_wRun_sub_bayesRun_le {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b t : ℕ) :
                            ∑ i : Fin C, |toDist (wRun (2 ^ b) (missFit M) t).raw i - toDist (bayesRun (missFit M) t) i| ≤ 2 * (↑C - 1) / 2 ^ b

                            The drift does not accumulate. In the saturating regime the floored run's reading stays within 2(C−1)/2^b of the exact Bayes run's, uniformly in t: the right-hand side mentions no horizon at all.

                            The per-step rate of toDist_project_rate provably does not telescope — Bayesian update is not non-expansive in total variation — so this is a different argument, not a tighter constant. What replaces the telescope is the normal form: scaled up by the common factor the clip cost it, the floored run agrees with the exact run exactly on every candidate whose miss count is still inside the budget exponent, and differs only on the saturated ones, of which there are at most C−1. So the residual measures the spread of the candidates' miss counts beyond log₂ W, and nothing about elapsed time.

                            The guard on realizability: no accumulation is false without it #

                            The bound above vanishes in the budget. The family below holds the discrepancy at 7/9 for every budget, so realizability is not slack there either — and the mechanism is the same clip. The exact run aggregates all history and ends symmetric; the floored run has discarded every debt beyond the ceiling and ends 1 : 8.

                            The mirror family: candidate 0 hits for b + 3 steps while candidate 1 misses, then the two swap. By time 2b + 6 their miss counts are equal, so the exact run is symmetric — while the floored run remembers only the last b steps of it.

                            Equations
                            Instances For

                              Neither candidate is realizable: each misses throughout one of the two phases.

                              theorem ReflectiveSubsystems.toDist_wRun_sub_bayesRun_mirrorMiss (k : ℕ) :
                              ∑ i : Fin 2, |toDist (wRun (2 ^ (k + 3)) (missFit (mirrorMiss (k + 3))) (2 * k + 12)).raw i - toDist (bayesRun (missFit (mirrorMiss (k + 3))) (2 * k + 12)) i| = 7 / 9

                              The discrepancy on the mirror family, exactly: 7/9, at every budget b ≥ 3. The exact run reads (1/2, 1/2) — equal miss counts, so no history distinguishes the two candidates — while the floored run reads (1/9, 8/9): the clip has thrown away everything beyond the last b steps, and what survives is a ratio of 2 ^ 3 fixed by the phase length, not by the budget.

                              theorem ReflectiveSubsystems.toDist_wRun_sub_bayesRun_not_le_mirrorMiss (k : ℕ) :
                              ¬∑ i : Fin 2, |toDist (wRun (2 ^ (k + 3)) (missFit (mirrorMiss (k + 3))) (2 * k + 12)).raw i - toDist (bayesRun (missFit (mirrorMiss (k + 3))) (2 * k + 12)) i| ≤ 2 * (↑2 - 1) / 2 ^ (k + 3)

                              No accumulation is refutable without realizability. The floored run's reading stays 7/9 away from the exact run's on the mirror family, at every budget b = k + 3 — while toDist_wRun_sub_bayesRun_le bounds that distance by 2(C−1)/2^b, which falls below 1/4 already at b = 3 and vanishes thereafter. The bound is not a theorem awaiting a weaker hypothesis: what the floor buys is tracking the recent leader, and tracking is not approximating exact Bayes.

                              The refutation at the smallest budget where it bites. At b = 2 the clip has less history to discard, so the surviving ratio is 1 : 4 rather than 1 : 8 — and the discrepancy 3/5 still exceeds the bound's 2(C−1)/2^b = 1/2. Below this the bound is large enough to absorb the gap, which is the only reason b = 2 needs its own arithmetic.

                              The guards on the tracking hypotheses: both are load-bearing #

                              toDist_wRun_sub_bayesFrom_le asks two things of one candidate over the window [s, t): that it is a running co-leader at s, and that it misses at no step inside. Neither is slack. The two families below satisfy every other condition of the theorem — a power-of-two budget, the 2-vs-1 fitness, the all-ones start — and each drops exactly one hypothesis; each then holds the discrepancy above a fixed positive constant while the bound vanishes in the budget.

                              The mechanism is the same clip in both, read at the restart point. preAbsorption gives the window a candidate that never misses, but one whose earlier debt the ceiling has already erased: the restarted comparator credits it from a floor it did not earn, while the run credits the incumbent. sinkRecover gives the window a co-leader, but one that later quits; the candidate that recovers does so from a floor that has swallowed its own misses, and the restarted comparator, starting from that floor, cannot see them either.

                              The pre-absorption family (C = 3): candidate 0 climbs alone to the ceiling over b steps; then for 8 steps candidate 1 hits alongside it and candidate 2 misses, both pinned at the floor, so that everything those 8 steps decide is erased; then for b + 2 steps candidate 0 quits and 1 and 2 climb together. Read from s = b, candidate 1 is the window's only never-missing candidate — and it is exactly b exponents short of being a co-leader there.

                              Equations
                              Instances For

                                Candidate 1 misses at no step from b on: it hits through the middle phase and the last.

                                theorem ReflectiveSubsystems.preAbsorption_misses_of_ne_one (b : ℕ) (i : Fin 3) (hi : i ≠ 1) :
                                ∃ (u : ℕ), b ≤ u ∧ u < 2 * b + 10 ∧ preAbsorption b u i = true

                                And it is the window's only never-missing candidate: 0 quits at b + 8, 2 misses from the start. So no other choice of co-leader is available to rescue the theorem here.

                                theorem ReflectiveSubsystems.preAbsorption_not_coleader (b : ℕ) (hb : 1 ≤ b) :
                                ¬∀ (j : Fin 3), expRun (preAbsorption b) b b j ≤ expRun (preAbsorption b) b b 1

                                Co-leadership fails at the restart point, and it fails by the whole budget: at s = b the window's only never-missing candidate sits at exponent 0 against the incumbent's b.

                                theorem ReflectiveSubsystems.toDist_wRun_sub_bayesFrom_preAbsorption (k : ℕ) :
                                ∑ i : Fin 3, |toDist (wRun (2 ^ (k + 3)) (missFit (preAbsorption (k + 3))) (2 * k + 16)).raw i - toDist (bayesFrom (preAbsorption (k + 3)) (k + 3) (k + 3) (2 * k + 16)) i| = 850 / 963

                                The discrepancy without co-leadership: 850/963, at every budget b = k + 3. The floored run reads (1/9, 4/9, 4/9) — the incumbent has been charged for quitting, and the two climbers are level. The comparator restarted at s = b reads (64/321, 256/321, 1/321): it starts from the same floored state, but it then credits every one of the window's hits, including the eight the ceiling erased for candidate 1 and the eight misses it erased for candidate 2. The gap does not move with the budget, and the ratios are fixed by the phase lengths alone.

                                theorem ReflectiveSubsystems.toDist_wRun_sub_bayesFrom_not_le_preAbsorption (k : ℕ) :
                                ¬∑ i : Fin 3, |toDist (wRun (2 ^ (k + 3)) (missFit (preAbsorption (k + 3))) (2 * k + 16)).raw i - toDist (bayesFrom (preAbsorption (k + 3)) (k + 3) (k + 3) (2 * k + 16)) i| ≤ 2 * (↑3 - 1) / 2 ^ (k + 3)

                                The tracking bound is refutable without co-leadership. With iL = 1 — the window's only never-missing candidate — every other hypothesis of toDist_wRun_sub_bayesFrom_le holds and the conclusion fails at every budget b = k + 3, the discrepancy staying at 850/963 against a bound that is already 1/2 at b = 3. preAbsorption_misses_of_ne_one closes the escape: no other candidate could have been taken as iL.

                                The sink-and-recover family (C = 2): candidate 0 climbs to the ceiling and holds it for b + 6 steps while candidate 1 is pinned at the floor, its every miss absorbed there; then 0 quits for b steps and 1 climbs back to the ceiling. Read from s = b, candidate 0 is a co-leader — and it is the six steps of debt the floor swallowed for 1, invisible from the restart state, that the comparator then cannot price.

                                Equations
                                Instances For
                                  theorem ReflectiveSubsystems.sinkRecover_no_survivor (b : ℕ) (hb : 1 ≤ b) (i : Fin 2) :
                                  ∃ (u : ℕ), b ≤ u ∧ u < 2 * b + 6 ∧ sinkRecover b u i = true

                                  No candidate survives the window: 1 misses through the middle phase, 0 through the last. So the never-missing hypothesis fails for every choice of iL, and it is the only hypothesis that does.

                                  Co-leadership does hold at the restart point here: candidate 0 is at the ceiling at s = b, so it is the never-missing hypothesis alone that the family drops.

                                  theorem ReflectiveSubsystems.toDist_wRun_sub_bayesFrom_sinkRecover (k : ℕ) :
                                  ∑ i : Fin 2, |toDist (wRun (2 ^ (k + 2)) (missFit (sinkRecover (k + 2))) (2 * k + 10)).raw i - toDist (bayesFrom (sinkRecover (k + 2)) (k + 2) (k + 2) (2 * k + 10)) i| = 63 / 65

                                  The discrepancy without a surviving candidate: 63/65, at every budget b = k + 2. The floored run ends symmetric — 1 has climbed all the way back, and 0 was never charged for quitting, because no rescale fires until 1 arrives. The comparator restarted at s = b reads (64/65, 1/65): it inherits 0's ceiling and 1's floor as the prior, then credits 0 the six hits it takes before quitting and holds 1's six misses against it — misses the floor had already absorbed, so the run itself has forgotten them.

                                  theorem ReflectiveSubsystems.toDist_wRun_sub_bayesFrom_not_le_sinkRecover (k : ℕ) :
                                  ¬∑ i : Fin 2, |toDist (wRun (2 ^ (k + 2)) (missFit (sinkRecover (k + 2))) (2 * k + 10)).raw i - toDist (bayesFrom (sinkRecover (k + 2)) (k + 2) (k + 2) (2 * k + 10)) i| ≤ 2 * (↑2 - 1) / 2 ^ (k + 2)

                                  The tracking bound is refutable without a never-missing candidate. Co-leadership at s holds — sinkRecover_coleader — and the conclusion still fails at every budget b = k + 2, the discrepancy staying at 63/65 against a bound already 1/2 at b = 2. So the two hypotheses of toDist_wRun_sub_bayesFrom_le are independent, and neither can be dropped.

                                  The reading settles #

                                  Everything above prices the distribution the floored run carries. This section is about its reading — argmax of the weight vector, which is what the frame of [Inevitability] §6 hands the guest — and it needs no new estimate: it is the saturation normal form, read through argmax's own tie-breaking.

                                  In one line: under realizability the closed form's maximum 2 ^ min t b is attained exactly at the candidates whose miss count is zero, so the ceiling set is the version space, and the reading is the least-indexed candidate that has never missed. The version space is antitone in t and never empty, so that index is non-decreasing and bounded by the candidate count — the reading changes at most C − 1 times and is eventually constant, on a candidate consistent with the whole trajectory.

                                  What drives it is fitness alone. The weighted fiber's generation is pack ∘ project ∘ bayesStep: selection, with the floor as its mutation kernel and no variation rule whatever. The settled populations elsewhere in the development are imposed — a rule overwrites every slot and the fitness is never consulted — where here the misses eliminate competitors from the ceiling and nothing else does.

                                  The scope is the same realizability the drift bound needs and the agnostic event bound does not: a candidate that never misses along the observed trajectory. Where even the best candidate misses — a noisy base — none of this applies, and floorErrorTimes_card_mul_le_missCount is the instrument there instead.

                                  theorem ReflectiveSubsystems.wMax_wRun_realizable {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b t : ℕ) :
                                  wMax (wRun (2 ^ b) (missFit M) t).raw = 2 ^ min t b

                                  The ceiling of a realizable run. The heaviest weight at time t is 2 ^ min t b: no candidate can be above the clipped horizon, and the never-missing one sits exactly on it.

                                  theorem ReflectiveSubsystems.raw_wRun_eq_wMax_iff {C : ℕ} (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) {b t : ℕ} (ht : 1 ≤ min t b) (i : Fin C) :
                                  (wRun (2 ^ b) (missFit M) t).raw i = wMax (wRun (2 ^ b) (missFit M) t).raw ↔ missCount M i t = 0

                                  The ceiling set is the version space. A candidate carries the maximum weight exactly when it has never missed — an identity holding at every time, not an asymptotic statement, and on both sides of the horizon.

                                  The guard 1 ≤ min t b is where the content sits: at min t b = 0 every weight is 2 ^ 0, the whole pool ties at the ceiling, and the equivalence degenerates.

                                  theorem ReflectiveSubsystems.argmax_wRun_eq_least_consistent {C : ℕ} [NeZero C] (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) {b t : ℕ} (ht : 1 ≤ min t b) :
                                  missCount M (argmax (wRun (2 ^ b) (missFit M) t).raw) t = 0 ∧ ∀ (j : Fin C), missCount M j t = 0 → argmax (wRun (2 ^ b) (missFit M) t).raw ≤ j

                                  The reading is the least never-missing candidate, in the characterization pair a consumer wants: the reading has itself never missed, and it is at or below every candidate that has not.

                                  theorem ReflectiveSubsystems.argmax_wRun_of_min_eq_zero {C : ℕ} [NeZero C] (M : ℕ → Fin C → Bool) {b t : ℕ} (h : min t b = 0) :
                                  argmax (wRun (2 ^ b) (missFit M) t).raw = 0

                                  Before the first rescale — at t = 0, or on a budget of one quantum — every weight is 2 ^ 0 and the pool ties, so the tie-keeping fold returns the first candidate. No realizability is involved, and this is what lets the two convergence statements below carry no guard on b or t.

                                  theorem ReflectiveSubsystems.argmax_wRun_mono {C : ℕ} [NeZero C] (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b : ℕ) {t t' : ℕ} (h : t ≤ t') :
                                  ↑(argmax (wRun (2 ^ b) (missFit M) t).raw) ≤ ↑(argmax (wRun (2 ^ b) (missFit M) t').raw)

                                  The reading never moves back. The version space is antitone in the horizon, so its least element is non-decreasing — and with no guard: before the first rescale the reading sits at 0.

                                  theorem ReflectiveSubsystems.exists_eventually_const_of_monotone {K : ℕ} (g : ℕ → ℕ) (hmono : ∀ {t t' : ℕ}, t ≤ t' → g t ≤ g t') (hlt : ∀ (t : ℕ), g t < K) :
                                  ∃ (T : ℕ), ∀ (t : ℕ), T ≤ t → g t = g T

                                  A non-decreasing ℕ-valued sequence below a fixed bound is eventually constant. The bound is what makes the supremum attained; without it ℕ's sSup would answer 0.

                                  Stated of a bare sequence and used twice: here for the reading's index, bounded by the candidate count, and in BasinSettling for a never-missing candidate's weight, bounded by the budget.

                                  theorem ReflectiveSubsystems.argmax_wRun_eventually_const {C : ℕ} [NeZero C] (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b : ℕ) :
                                  ∃ (T : ℕ), ∀ (t : ℕ), T ≤ t → argmax (wRun (2 ^ b) (missFit M) t).raw = argmax (wRun (2 ^ b) (missFit M) T).raw

                                  Selection settles. The reading is eventually constant — pathwise, from the run's own all-ones start, with realizability along the observed trajectory the only hypothesis.

                                  The proof is the two facts above and nothing else: the reading is the least element of the version space, which is antitone, so the reading's index is a non-decreasing natural number below C.

                                  theorem ReflectiveSubsystems.argmax_wRun_card_changes_le {C : ℕ} [NeZero C] (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (b n : ℕ) :
                                  {t ∈ Finset.range n | argmax (wRun (2 ^ b) (missFit M) (t + 1)).raw ≠ argmax (wRun (2 ^ b) (missFit M) t).raw}.card ≤ C - 1

                                  At most C − 1 changes. The reading is a non-decreasing index in Fin C, so over any horizon the steps at which it moves are at most one short of the candidate count — the version space can shed its least element only that often.

                                  The (P)/(I) separation: the least-recently-wrong rotation #

                                  Two repair counters have read the same trajectory throughout this file without ever being compared: argmax_wRun_card_changes_le's count of reading changes, and floorErrorTimes's count of wrong-mass error times. Nothing proved above ties them together, and the family below is the witness that they are not tied — a run whose reading is dethroned at every step while the set of error times stays empty, so no bound in one counter transfers to the other.

                                  The construction: C candidates on a round-robin, candidate i missing exactly at the times t ≡ i (mod C). At every step the heaviest candidate is the one that missed longest ago — which is exactly the one about to miss next — so the reading changes every step; and because the wrong mass is spread over one candidate among C near-uniform weights, it never climbs past a fixed floor. The two counters read the same run and disagree completely: C − 1 reading changes forced into T, and a wrong-mass error count forced to 0.

                                  The reading is the classical follow-the-leader rule, and its oscillation under an adversarial, round-robin schedule is textbook — the reason online prediction is done with the mixture rather than the leader — already cited in-corpus via Lattimore–Hutter–Sunehag ([Discovery] §3.3). What is new here is not the reading but the pairing: one family exhibiting both counters at their opposite extremes simultaneously, where the families already in this file (everyMiss, allMiss) each move only one counter.

                                  The least-recently-wrong rotation. Candidate i misses exactly at the times t with t ≡ i (mod C), so no candidate is realizable (rotMiss_not_realizable) and every candidate misses on a period of exactly C.

                                  Equations
                                  Instances For
                                    theorem ReflectiveSubsystems.missCount_rotMiss {C : ℕ} [NeZero C] (i : Fin C) (t : ℕ) :
                                    missCount (rotMiss C) i t = t / C + if ↑i < t % C then 1 else 0

                                    The rotation's miss count, in closed form. Candidate i has missed ⌊t/C⌋ times by time t, plus one more exactly when its own residue has already come up in the current partial period — the general-C analogue of expRun_altMiss's exponents, one level down.

                                    theorem ReflectiveSubsystems.expRun_rotMiss_of_le {C : ℕ} [NeZero C] (b : ℕ) {t : ℕ} (ht : t ≤ b) (i : Fin C) :
                                    expRun (rotMiss C) b t i = t - (t / C + if ↑i < t % C then 1 else 0)

                                    The rotation's exponents below the horizon. Composes the hypothesis-free hub (expRun_eq_sub_missCount_of_le) with the miss count above: candidate i sits one doubling behind the leader exactly while its own residue has already come up this period.

                                    theorem ReflectiveSubsystems.wMax_wRun_rotMiss {C : ℕ} [NeZero C] (b : ℕ) {t : ℕ} (ht : t ≤ b) :
                                    wMax (wRun (2 ^ b) (missFit (rotMiss C)) t).raw = 2 ^ (t - t / C)

                                    The running ceiling, below the horizon. Every candidate whose residue has not yet come up this period ties for the maximum, at t − ⌊t/C⌋ — in particular the candidate about to miss, whose own residue is exactly t % C and so is never < t % C.

                                    theorem ReflectiveSubsystems.argmax_wRun_rotMiss {C : ℕ} [NeZero C] (b : ℕ) {t : ℕ} (ht : t ≤ b) :
                                    argmax (wRun (2 ^ b) (missFit (rotMiss C)) t).raw = ⟨t % C, ⋯⟩

                                    The reading is the candidate about to miss. Among the tied ceiling-holders argmax's own tie-break keeps the least index, and that index is exactly t % C — the maximum weight sits on whoever missed longest ago, which is precisely who misses next.

                                    theorem ReflectiveSubsystems.argmax_wRun_rotMiss_ne_succ {C : ℕ} [NeZero C] (hC2 : 2 ≤ C) (b : ℕ) {t : ℕ} (ht : t + 1 ≤ b) :
                                    argmax (wRun (2 ^ b) (missFit (rotMiss C)) (t + 1)).raw ≠ argmax (wRun (2 ^ b) (missFit (rotMiss C)) t).raw

                                    The (I) side: the reading is dethroned at every single step. Consecutive residues mod C never coincide once C ≥ 2, so the least-recently-wrong index moves at every step — the change count argmax_wRun_card_changes_le bounds by C − 1 is realized maximally on any horizon inside the budget, one change per step rather than merely a nonzero rate.

                                    theorem ReflectiveSubsystems.sum_raw_wRun_rotMiss {C : ℕ} [NeZero C] (b : ℕ) {t : ℕ} (ht : t ≤ b) :
                                    ∑ i : Fin C, (wRun (2 ^ b) (missFit (rotMiss C)) t).raw i = t % C * 2 ^ (t - t / C - 1) + (C - t % C) * 2 ^ (t - t / C)

                                    The sum of weights, below the horizon. The t % C candidates whose residue has already come up this period hold one doubling less than the rest.

                                    theorem ReflectiveSubsystems.wrongMass_rotMiss {C : ℕ} [NeZero C] (b : ℕ) {t : ℕ} (ht : t ≤ b) :
                                    wrongMass (rotMiss C) b t = 2 / (2 * ↑C - ↑(t % C))

                                    The (P) side, in closed form. The candidate about to miss carries the whole ceiling weight, so the wrong mass at time t is exactly 2 / (2C − t % C) — bounded, uniformly in t, well below 1.

                                    theorem ReflectiveSubsystems.floorErrorTimes_rotMiss_eq_empty {C : ℕ} [NeZero C] (b : ℕ) {θ : ℚ} (hθ : 2 / (↑C + 1) ≤ θ) {n : ℕ} (hn : n ≤ b) :

                                    The (P) side: the set of error times stays empty. The wrong mass peaks at 2/(C+1) — attained when the candidate about to miss is the highest-indexed one, t % C = C − 1 — so any threshold at or above that floor never sees an error time, on any horizon inside the budget.

                                    theorem ReflectiveSubsystems.rotMiss_prediction_identification_separation {C : ℕ} [NeZero C] (hC2 : 2 ≤ C) (b n : ℕ) (hn : n ≤ b) {θ : ℚ} (hθ : 2 / (↑C + 1) ≤ θ) :
                                    (∀ t < n, argmax (wRun (2 ^ b) (missFit (rotMiss C)) (t + 1)).raw ≠ argmax (wRun (2 ^ b) (missFit (rotMiss C)) t).raw) ∧ floorErrorTimes (rotMiss C) b θ n = ∅

                                    The separation, as one theorem. At any horizon inside the budget, the identification counter increments at every step while the prediction-repair set stays empty — so no functional bound in either currency of [Discovery] §3.3's product form transfers to the other, agnostically. Compare everyMiss/allMiss above, each of which moves only one of the two counters.

                                    The witness, non-vacuous, at the gate-satisfying parameters C = 8, b = 6, θ = 1/4. The reading changes at both ends of the six-step window shown, and — by rotMiss_prediction_identification_separation — at every step in between, so the rotation genuinely rotates over this range; the set of error times is empty for the reason the theorem above gives, the wrong mass bounded away from 1/4 by the pricing, not because the range itself is empty.

                                    The fiber's reading along a base trajectory #

                                    The settling above is stated of the abstract miss indicator. Here it is instantiated at the construction's own fitness — predFitPos, scored against the base's next state — and read through the frame the pricing assembly uses, so what converges is the guest's reading rather than an auxiliary sequence.

                                    def ReflectiveSubsystems.wStartAt (C W : ℕ) {n₁ : ℕ} (x₀ : Fin n₁) :
                                    Fin (n₁ * (W + 1) ^ C)

                                    The skew product's start over a base point: the base at x₀, the fiber at its own all-ones vector. Nothing is written into the fiber — one reserved quantum per candidate is the uniform prior — which is what makes the convergence below need no hypothesis on the initial state.

                                    Equations
                                    Instances For
                                      def ReflectiveSubsystems.predMiss {n₁ C : ℕ} (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x₀ : Fin n₁) :
                                      ℕ → Fin C → Bool

                                      The predictive fiber's miss indicator: candidate c misses at step t when the rule it decodes to mispredicts where the base actually goes, along the trajectory from x₀.

                                      Equations
                                      Instances For
                                        theorem ReflectiveSubsystems.missFit_predMiss {n₁ C : ℕ} (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x₀ : Fin n₁) (t : ℕ) :
                                        missFit (predMiss S dec x₀) t = predFitPos S dec (S^[t] x₀)

                                        The bridge: the abstract 2-vs-1 fitness driven by predMiss is predictive fitness read along the base trajectory. Every result above therefore applies to the fiber at the cost of this one rewrite — the base dynamics, the decoder and the candidates' predictions having been abstracted into the indicator in the first place.

                                        theorem ReflectiveSubsystems.iterate_wWorld_wStartAt {n₁ C W : ℕ} (S : Fin n₁ → Fin n₁) (fit : Fin n₁ → Fin C → ℕ) (x₀ : Fin n₁) (t : ℕ) :
                                        (wWorld W S fit)^[t] (wStartAt C W x₀) = finProdFinEquiv (S^[t] x₀, finFunctionFinEquiv (wRun W (fun (s : ℕ) => fit (S^[s] x₀)) t))

                                        The fiber coordinate of the skew run is the abstract run. The base drives the fiber and never reads it, so t steps of wWorld from the all-ones start leave the base at S^[t] x₀ and the fiber at wRun's own t-th vector under the fitness sampled along that trajectory.

                                        theorem ReflectiveSubsystems.argmaxFrame_iterate_wWorld {n₁ C W : ℕ} [NeZero C] (S : Fin n₁ → Fin n₁) (fit : Fin n₁ → Fin C → ℕ) (x₀ : Fin n₁) (t : ℕ) :
                                        argmaxFrame n₁ W ((wWorld W S fit)^[t] (wStartAt C W x₀)) = argmax (wRun W (fun (s : ℕ) => fit (S^[s] x₀)) t).raw

                                        The frame's reading of the skew run, in the abstract run's own terms.

                                        theorem ReflectiveSubsystems.argmaxFrame_wWorld_eventually_const {n₁ C : ℕ} [NeZero C] {b : ℕ} (hb : 1 ≤ 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₀)) :
                                        ∃ (T : ℕ) (c : Fin C), (∀ (s : ℕ), dec c (S^[s] x₀) = S (S^[s] x₀)) ∧ ∀ (t : ℕ), T ≤ t → argmaxFrame n₁ (2 ^ b) ((wWorld (2 ^ b) S (predFitPos S dec))^[t] (wStartAt C (2 ^ b) x₀)) = c

                                        The fittest reading settles, along the base trajectory ([Inevitability] §6).

                                        Score the candidates by predFitPos against the base's own next state and start the fiber from its all-ones vector over any base point x₀. If some candidate decodes to a rule that predicts the base correctly at every step of that trajectory, then the frame's reading is eventually constant, at a candidate that agrees with the base at every step of the trajectory.

                                        Three readings the statement supports. It is pathwise: hypothesis and conclusion both live on one trajectory and there is no hypothesis on x₀ at all, so this half of the question asks for no basin and no measure. It is driven by fitness alone: the fiber's generation is the projected replicator step and carries no variation rule, so nothing imposes the settled shape that the misses do not. And it says nothing about coverage — the pricing assembly's hypothesis is a condition over initial states of the base coordinate, discharged separately by the base-reading frame, and neither condition implies the other.

                                        The budget must hold at least two quanta, and 1 ≤ b is not slack: at b = 0 every weight is one quantum forever and the reading is pinned at candidate 0 whether or not it predicts anything.

                                        theorem ReflectiveSubsystems.argmaxFrame_wWorld_eventually_const_of_faithful {n₁ C : ℕ} [NeZero C] {b : ℕ} (hb : 1 ≤ b) (S : Fin n₁ → Fin n₁) (dec : Fin C → Fin n₁ → Fin n₁) (x₀ : Fin n₁) {c₀ : Fin C} (hc₀ : ∀ (y : Fin n₁), dec c₀ y = S y) :
                                        ∃ (T : ℕ) (c : Fin C), (∀ (s : ℕ), dec c (S^[s] x₀) = S (S^[s] x₀)) ∧ ∀ (t : ℕ), T ≤ t → argmaxFrame n₁ (2 ^ b) ((wWorld (2 ^ b) S (predFitPos S dec))^[t] (wStartAt C (2 ^ b) x₀)) = c

                                        The same conclusion from the clean sufficient condition — some codeword decodes to the base rule itself — which is the premise surjective_predFrame_of_faithful discharges the pricing assembly's coverage from. The two halves of [Inevitability] §6's frame question are then stated against one hypothesis, on one dynamics, with neither derived from the other.