Documentation

ReflectiveSubsystems.BasinSettling

Settling from every initial weight vector ([Inevitability] §6) #

FlooredMixture's settling suite proves the weighted fiber's reading eventually constant from the fiber's own uniform start, on a power-of-two budget, by way of the realizable closed form: the ceiling set is the version space and the reading is its least element. Neither restriction is essential to settling, and neither survives a seeded start. This file removes both.

The run is restarted from an arbitrary carrier vector (wRunFrom), the budget is an arbitrary 1 ≤ W, and the closed form is replaced by three monotonicity facts about the generation itself, none of which mentions a power of two: a never-missing candidate's weight is non-decreasing, its constancy locks the rescale divisor at 2, and under that lock no weight rises.

Main results #

What does not transport, each with its refuting family #

Each family carries its own non-vacuity: seededAlt_realizable, lateHit_realizable and zeroMiss_realizable exhibit the never-missing candidate the settling theorem asks for, so every refutation above drops exactly the one condition it is about and keeps the rest.

Scope #

Settling is what transports, and it transports strengthened — off the power-of-two carrier, off the uniform start, and with realizability weakened to a condition on the tail of the miss record. Everything the uniform-start development proves about which candidate the reading settles on is a privilege of that start, and each failure is exhibited above rather than left open.

What is not here. No rate: the argument is monotone convergence of bounded ℕ-sequences and bounds no settling time. No coverage statement — that hypothesis quantifies over initial states of the base coordinate, and neither condition implies the other. And nothing about the race between discovery and damage, whose survival half is priced elsewhere from a damage model that is a hypothesis. The event and drift bounds are stated from the uniform start on a power-of-two budget and are not re-derived here.

The run from an arbitrary initial weight vector #

def ReflectiveSubsystems.wRunFrom {C : ℕ} (W : ℕ) (F : ℕ → Fin C → ℕ) (w₀ : WVec C W) :
ℕ → WVec C W

The weighted fiber's run from a given initial weight vector. wRun's start — one reserved quantum per candidate — is baked into its definition, so a question about other initial conditions cannot even be posed over it. Here the start is a parameter and the dynamics is unchanged.

Equations
Instances For
    theorem ReflectiveSubsystems.wRunFrom_pack_one {C : ℕ} (W : ℕ) (F : ℕ → Fin C → ℕ) (t : ℕ) :
    wRunFrom W F (pack W fun (x : Fin C) => 1) t = wRun W F t

    The uniform start recovers wRun. The seeded run is a genuine generalization and not a parallel development: at the all-ones vector it is the run every result upstream is stated of.

    theorem ReflectiveSubsystems.wRunFrom_add {C : ℕ} (W : ℕ) (F : ℕ → Fin C → ℕ) (w₀ : WVec C W) (s t : ℕ) :
    wRunFrom W F w₀ (s + t) = wRunFrom W (fun (n : ℕ) => F (s + n)) (wRunFrom W F w₀ s) t

    Restart invariance, exactly. Running s + t steps is running t steps from the state reached at s, under the fitness stream shifted by s. An identity with no hypothesis, and the statement wRun cannot make: it is what turns a hypothesis about the tail of the miss record into one about the whole of a restarted run.

    Settling, at every budget and from every start #

    The three facts the argument runs on, in order.

    One. A candidate that never misses scores 2 at every step, so its weight is multiplied by 2 and then divided by the common rescale divisor, which is 1 or 2 and nothing else — the post-step maximum cannot exceed twice the budget. So its weight either doubles or stands still, and the floor at one quantum can only raise it. It is non-decreasing, and bounded by the budget, hence eventually constant at some V ≥ 1.

    Two. That constancy locks the divisor at 2. Were it 1 at some later step the leader's entry would become 2V, and 2V = V forces V = 0, which the floor has already excluded.

    Three. Under the lock every weight is non-increasing: a hit is 2w/2 = w and a miss is max 1 ⌊w/2⌋ ≤ w. Each coordinate is therefore eventually constant, and — the finitely many coordinates being handled by their sum, which is itself a non-increasing natural number — the whole vector is. The reading of an eventually constant vector is eventually constant.

    None of the three mentions the budget's shape, the start, or a closed form.

    theorem ReflectiveSubsystems.raw_wRunFrom_leader_le_succ {C W : ℕ} (hW : 1 ≤ W) {M : ℕ → Fin C → Bool} {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (w₀ : WVec C W) (t : ℕ) :
    (wRunFrom W (missFit M) w₀ t).raw iR ≤ (wRunFrom W (missFit M) w₀ (t + 1)).raw iR

    A never-missing candidate's weight never falls. It scores 2 at every step, so the exact step doubles it and the rescale halves it back at worst; the floor can only raise it further. Exact, not asymptotic, and with no hypothesis on the start.

    theorem ReflectiveSubsystems.raw_wRunFrom_eventually_const {C W : ℕ} (hW : 1 ≤ W) (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (w₀ : WVec C W) :
    ∃ (T : ℕ), 1 ≤ T ∧ ∀ (t : ℕ), T ≤ t → (wRunFrom W (missFit M) w₀ t).raw = (wRunFrom W (missFit M) w₀ T).raw

    The whole weight vector settles, from every initial vector on the carrier and at every budget — realizability along the observed trajectory is the only hypothesis, and the settling time can be taken past the first step, where the floor has already filled in any zeros the start carried.

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

    Selection settles from every initial weight vector ([Inevitability] §6). The reading is eventually constant at any budget of at least one quantum, from any vector the carrier holds — zeros included — with realizability along the observed trajectory the only hypothesis.

    What it costs relative to the uniform-start statement is precisely the version-space characterization: the settled reading here need not be a candidate that has never missed, and argmax_wRunFrom_lateHit_missCount_ne_zero exhibits one that has. What it buys is the initial condition: the uniform-start theorem describes one trajectory of the fiber, this one describes all of them.

    theorem ReflectiveSubsystems.argmax_wRunFrom_eventually_const_consistent {C W : ℕ} [NeZero C] (hW : 2 ≤ W) (M : ℕ → Fin C → Bool) {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (w₀ : WVec C W) :
    ∃ (T : ℕ), (∀ (t : ℕ), T ≤ t → argmax (wRunFrom W (missFit M) w₀ t).raw = argmax (wRunFrom W (missFit M) w₀ T).raw) ∧ ∀ (t : ℕ), T ≤ t → M t (argmax (wRunFrom W (missFit M) w₀ T).raw) = false

    The settled reading is eventually consistent, at a budget of two quanta or more.

    The version-space characterization does not transport to a seeded start, but this much of it does, and by a different route: on the settled tail the divisor is locked at 2, so the pre-rescale maximum exceeds the budget and the settled maximum is therefore at least two quanta; the reading attains that maximum; and a miss under the lock would halve it, which constancy forbids.

    2 ≤ W is where it lives and is not slack — argmax_wRunFrom_zeroMiss_misses refutes the clause at one quantum, the weight-level form of the uniform-start suite's own b = 0 degeneracy.

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

    Eventual realizability suffices, and it is free: restart the run past the last miss.

    The hypothesis a settling story actually wants is that some candidate misses only finitely often, not that one never misses at all; over wRun, whose start is baked in, that hypothesis cannot even be reduced to the other, because there is no run to restart. wRunFrom_add supplies the reduction, and the settling time translates back by the same shift.

    theorem ReflectiveSubsystems.argmax_wRunFrom_eventually_const_consistent_of_eventually_realizable {C W : ℕ} [NeZero C] (hW : 2 ≤ W) (M : ℕ → Fin C → Bool) {iR : Fin C} {T₀ : ℕ} (hR : ∀ (t : ℕ), T₀ ≤ t → M t iR = false) (w₀ : WVec C W) :
    ∃ (T : ℕ), (∀ (t : ℕ), T ≤ t → argmax (wRunFrom W (missFit M) w₀ t).raw = argmax (wRunFrom W (missFit M) w₀ T).raw) ∧ ∀ (t : ℕ), T ≤ t → M t (argmax (wRunFrom W (missFit M) w₀ T).raw) = false

    The identity clause under eventual realizability, by the same restart.

    The lock shape: which vector the run actually reaches #

    The theorems above settle the reading; none of them says which weight vector the run itself converges to. From the uniform start, under one persistent candidate, the vector is pinned down exactly by two more facts about the generation: the persistent candidate dominates every other coordinate pointwise, so the rescale divisor is a function of its own value alone, and that value climbs by doubling until the budget stops it — landing on the largest power of two the budget holds, not on the budget itself. settled is not this shape in general — the guard family below exhibits budgets where the run's own fixed point is a different vector, at every candidate — but on a power-of-two budget the two coincide, which is the corollary that follows.

    theorem ReflectiveSubsystems.raw_wRunFrom_eventually_lock {C W : ℕ} (hW : 1 ≤ W) {M : ℕ → Fin C → Bool} {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (hOther : ∀ (i : Fin C), i ≠ iR → ∀ (s : ℕ), ∃ (t : ℕ), s ≤ t ∧ M t i = true) :
    ∃ (T : ℕ), ∀ (t : ℕ), T ≤ t → (wRunFrom W (missFit M) (pack W fun (x : Fin C) => 1) t).raw = fun (i : Fin C) => if i = iR then 2 ^ Nat.log 2 W else 1

    The run reaches the lock shape, not merely a settled candidate. Under a persistent candidate and every other candidate missing infinitely often, the run's own weight vector — from the uniform start — is eventually exactly the persistent candidate raised to the largest power of two the budget holds, and every other coordinate at the one-quantum floor. Neither conclusion needs the budget to be a power of two: raw_wRunFrom_eventually_settled below is what that extra hypothesis buys.

    theorem ReflectiveSubsystems.raw_wRunFrom_eventually_settled {C W k : ℕ} {M : ℕ → Fin C → Bool} {iR : Fin C} (hR : ∀ (t : ℕ), M t iR = false) (hOther : ∀ (i : Fin C), i ≠ iR → ∀ (s : ℕ), ∃ (t : ℕ), s ≤ t ∧ M t i = true) (hWk : W = 2 ^ k) :
    ∃ (T : ℕ), ∀ (t : ℕ), T ≤ t → (wRunFrom W (missFit M) (pack W fun (x : Fin C) => 1) t).raw = settled W iR

    At a power-of-two budget the lock shape is settled. The identification the paper's formalization asks for, with the exact hypotheses under which it holds: a persistent candidate, every other candidate missing infinitely often, and a budget that is a power of two.

    The fiber's own reading, from an arbitrary fiber state #

    The settling above is stated of the abstract miss indicator. Here it is read through the frame the pricing assembly uses, over the skew product and at the construction's own predictive fitness — with the fiber coordinate started anywhere on the carrier rather than at the uniform prior.

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

    The skew product's start at a given fiber state: the base at x₀, the fiber at w₀. The uniform-prior start is the special case wStartFrom_pack_one records.

    Equations
    Instances For
      theorem ReflectiveSubsystems.wStartFrom_pack_one {n₁ : ℕ} (C W : ℕ) (x₀ : Fin n₁) :
      wStartFrom W x₀ (pack W fun (x : Fin C) => 1) = wStartAt C W x₀
      theorem ReflectiveSubsystems.iterate_wWorld_wStartFrom {n₁ C W : ℕ} (S : Fin n₁ → Fin n₁) (fit : Fin n₁ → Fin C → ℕ) (x₀ : Fin n₁) (w₀ : WVec C W) (t : ℕ) :
      (wWorld W S fit)^[t] (wStartFrom W x₀ w₀) = finProdFinEquiv (S^[t] x₀, finFunctionFinEquiv (wRunFrom W (fun (s : ℕ) => fit (S^[s] x₀)) w₀ t))

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

      theorem ReflectiveSubsystems.argmaxFrame_iterate_wWorld_wStartFrom {n₁ C W : ℕ} [NeZero C] (S : Fin n₁ → Fin n₁) (fit : Fin n₁ → Fin C → ℕ) (x₀ : Fin n₁) (w₀ : WVec C W) (t : ℕ) :
      argmaxFrame n₁ W ((wWorld W S fit)^[t] (wStartFrom W x₀ w₀)) = argmax (wRunFrom W (fun (s : ℕ) => fit (S^[s] x₀)) w₀ t).raw
      theorem ReflectiveSubsystems.argmaxFrame_wWorld_eventually_const_wStartFrom {n₁ C W : ℕ} [NeZero C] (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₀)) (w₀ : WVec C W) :
      ∃ (T : ℕ) (c : Fin C), (∀ (s : ℕ), T ≤ s → dec c (S^[s] x₀) = S (S^[s] x₀)) ∧ ∀ (t : ℕ), T ≤ t → argmaxFrame n₁ W ((wWorld W S (predFitPos S dec))^[t] (wStartFrom W x₀ w₀)) = c

      The fiber's reading settles from every initial weight vector ([Inevitability] §6).

      Score the candidates by predFitPos against the base's own next state and start the fiber anywhere on the carrier, over any base point. If some candidate decodes to a rule predicting the base correctly at every step of that trajectory, the frame's reading is eventually constant — and, at a budget of two quanta or more, on a candidate that agrees with the base from the settling time on.

      Two differences from the uniform-start statement, and both are forced rather than conceded. The budget is an arbitrary 2 ≤ W where that one needs a power of two, because the argument no longer runs through the exponent automaton. And the settled candidate is consistent along the tail of the trajectory rather than all of it: argmax_wRunFrom_lateHit_missCount_ne_zero exhibits a seeded run settling on a candidate that has already missed, so the global clause is unavailable here and is not a weakness of the proof.

      What does not transport, and what the hypotheses are worth #

      The reading's monotonicity and its change count are uniform-start privileges #

      From the uniform start the reading is the least never-missing candidate, so it never moves back and moves at most C − 1 times. Both statements are about that characterization rather than about settling, and a seeded start refutes both: below, the reading moves back on its second step and changes as often as the budget's exponent allows.

      Three candidates: candidate 0 never misses, candidate 1 misses at the even steps and candidate 2 at the odd ones.

      Equations
      Instances For

        The seeded start: one reserved quantum on the never-missing candidate, the whole budget on each of the alternating pair.

        Equations
        Instances For
          theorem ReflectiveSubsystems.raw_wRunFrom_seededAlt (b t : ℕ) :
          t ≤ 2 * b → (wRunFrom (2 ^ b) (missFit seededAlt) (seededStart (2 ^ b)) t).raw = ![2 ^ (t / 2), 2 ^ (b - t % 2), 2 ^ b]

          The seeded run in closed form, through its alternating phase. The never-missing candidate climbs one doubling every two steps from its single quantum; the pair holding the budget trade the rescale between them, whichever of the two just missed sitting one doubling down.

          theorem ReflectiveSubsystems.argmax_wRunFrom_seededAlt {b t : ℕ} (hb : 1 ≤ b) (ht : t < 2 * b) :
          argmax (wRunFrom (2 ^ b) (missFit seededAlt) (seededStart (2 ^ b)) t).raw = if t % 2 = 0 then 1 else 2

          The reading through the alternating phase: it swings between the two budget-holders at every step, and reaches the never-missing candidate only when that one has caught up.

          The change count is exactly 2b — unbounded in the budget at three candidates. So the uniform start's C − 1 bound is not merely exceeded from a seeded start; no bound in the candidate count alone survives the change of initial condition.

          The reading moves back. It reads candidate 1, then 2, then 1 again — so the uniform start's argmax_wRun_mono is a statement about the least element of an antitone version space, not about the dynamics.

          The C − 1 change count fails at every budget past the first.

          The family read off the kernel at budget 4, independently of the closed form above: the reading walks 1, 2, 1, 2 and then settles on the never-missing candidate.

          The settled reading need not be in the version space #

          Two candidates: the competitor misses once, at the very first step, and never again.

          Equations
          Instances For

            The seeded start: one reserved quantum on the never-missing candidate, the whole budget on the competitor.

            Equations
            Instances For
              theorem ReflectiveSubsystems.raw_wRunFrom_lateHit {W : ℕ} (hW : 3 ≤ W) (t : ℕ) :

              The run freezes after one step, at two quanta on the never-missing candidate and the whole budget on the competitor that missed once.

              The frozen run reads its competitor: at three quanta or more the whole budget outweighs the two the never-missing candidate has collected.

              The settled reading lies outside the version space. From the uniform start the reading is a candidate that has never missed; from this seeded start it is a candidate that has, while a never-missing candidate sits in the pool the whole time.

              The boundary is exact and is why the family is stated at three quanta: at W = 2 the frozen state ties at (2, 2) and the tie-keeping fold reads the never-missing candidate after all.

              The family's own boundary: at two quanta the frozen state ties and the reading is the never-missing candidate, so three is where the refutation starts.

              The identity clause needs two quanta #

              Two candidates: candidate 0 misses at every step, candidate 1 never does.

              Equations
              Instances For

                2 ≤ W is necessary for the identity clause. At one quantum the reading settles — it is constant from the first step — on a candidate that misses at every step, while the pool holds a candidate that never misses. This is the weight-level form of the uniform-start suite's own b = 0 degeneracy, and it holds from every start.

                Realizability is load-bearing: without it the reading need not settle #

                Without a realizable candidate the reading need not settle. On the alternating family both candidates miss infinitely often; past the horizon the pair of weights cycles between level and one doubling apart, so the reading alternates between the two candidates forever. Every other hypothesis of the settling theorem holds, so realizability is what is doing the work there.

                theorem ReflectiveSubsystems.argmax_wRunFrom_altMiss_not_eventually_const {b : ℕ} (hb : 1 ≤ b) (T : ℕ) :
                ∃ (t : ℕ), T ≤ t ∧ argmax (wRunFrom (2 ^ b) (missFit altMiss) (pack (2 ^ b) fun (x : Fin 2) => 1) t).raw ≠ argmax (wRunFrom (2 ^ b) (missFit altMiss) (pack (2 ^ b) fun (x : Fin 2) => 1) T).raw

                The same refutation read at the seeded run, through the start bridge: the settling theorem's realizability hypothesis cannot be dropped there either.

                settled is not the only shape the run reaches #

                Two mechanisms, each at a fixed instance, exhibit a vector the run reaches from the uniform start that is not settled W c for any c — so the lock shape is what transports off a power-of-two budget or off a single persistent candidate, and settled itself does not.

                theorem ReflectiveSubsystems.raw_wRunFrom_zeroMiss_eq (t : ℕ) :
                (wRunFrom 3 (missFit zeroMiss) (pack 3 fun (x : Fin 2) => 1) (t + 1)).raw = ![1, 2]

                The persistent candidate stalls below a non-power-of-two budget. zeroMiss's candidate 1 never misses; at W = 3 the run is already a fixed point one step in, and the persistent candidate has climbed to 2, the last doubling the budget holds — not to 3, the whole budget.

                theorem ReflectiveSubsystems.raw_wRunFrom_zeroMiss_ne_settled (t : ℕ) (c : Fin 2) :
                (wRunFrom 3 (missFit zeroMiss) (pack 3 fun (x : Fin 2) => 1) (t + 1)).raw ≠ settled 3 c

                The fixed point is not settled, at either candidate. settled 3 c puts the whole budget 3 on c; the run above never reaches coordinate 3 at all.

                Both candidates never miss — the weakest realizable instance, and the second mechanism: a candidate that stops missing keeps whatever weight it already holds.

                Equations
                Instances For
                  theorem ReflectiveSubsystems.raw_wRunFrom_bothLead_eq (t : ℕ) :
                  (wRunFrom 4 (missFit bothLead) (pack 4 fun (x : Fin 2) => 1) (t + 2)).raw = ![4, 4]

                  A second candidate that stops missing keeps whatever weight it had. At W = 4, with neither candidate ever missing, the run from the uniform start settles at ![4, 4] — outside the settled family at every budget, since settled never puts the whole budget on more than one coordinate.