Documentation

ReflectiveSubsystems.QuantizationRate

The quantization rate ([Inevitability] §6) #

ReflectiveSubsystems.weighted_fiber_not_exactly_bayes shows the carrier projection is not the identity: on a two-candidate, budget-2 instance the projected step discards an entire update the exact replicator step would have made. This file answers the question that boundary opened — in what sense, and how fast, does the finite fiber approach the exact Bayes run?

Main results #

Scope #

The rate bounds one generation against the exact posterior it approximates; it does not telescope into a bound on n generations run against n generations of Bayes, because Bayesian update is not non-expansive in total variation. A multi-step accumulation and a sharper miss-count-based rate (the rescale is free when candidates agree; the floor only bites on candidates already below one quantum) are both left open.

The exactness horizon #

def ReflectiveSubsystems.bayesRun {C : ℕ} (F : ℕ → Fin C → ℕ) :
ℕ → Fin C → ℕ

The exact replicator run: no carrier, no projection, weights free to grow. Step n receives the fitness F n, so the run tracks a base trajectory feeding a different likelihood into each generation, as the real fiber does.

Equations
Instances For
    def ReflectiveSubsystems.wRun {C : ℕ} (W : ℕ) (F : ℕ → Fin C → ℕ) :
    ℕ → WVec C W

    The finite run: one projected wGen generation per step, under the same varying fitness.

    Equations
    Instances For
      theorem ReflectiveSubsystems.raw_wRun_eq_bayesRun {C W κ : ℕ} (hW : 1 ≤ W) (F : ℕ → Fin C → ℕ) (hF1 : ∀ (n : ℕ) (i : Fin C), 1 ≤ F n i) (hFκ : ∀ (n : ℕ) (i : Fin C), F n i ≤ κ) (n : ℕ) :
      κ ^ n ≤ W → (wRun W F n).raw = bayesRun F n

      The exactness horizon: while the fitness ceiling's n-th power stays inside the budget, the finite run is not merely close to the exact one, it is equal to it — the carrier projection has nothing to do, because the exact vector already fits. κ bounds the per-step fitness; predFitPos uses κ = 2.

      theorem ReflectiveSubsystems.toDist_wRun_eq_bayes {C W κ : ℕ} (hW : 1 ≤ W) (F : ℕ → Fin C → ℕ) (hF1 : ∀ (n : ℕ) (i : Fin C), 1 ≤ F n i) (hFκ : ∀ (n : ℕ) (i : Fin C), F n i ≤ κ) (n : ℕ) (hn : κ ^ n ≤ W) :
      toDist (wRun W F n).raw = toDist (bayesRun F n)

      The distribution form, composed from raw_wRun_eq_bayesRun: the finite run's reading is exactly the n-step Bayes posterior, below the horizon. Unfolding bayesRun one step at a time via toDist_bayesStep recovers the iterated form bayesPost (⋯ bayesPost (toDist (fun _ => 1)) (F 0) ⋯) (F (n-1)) explicitly; the identity is carried once, at the level of the run, rather than re-derived at every step.

      theorem ReflectiveSubsystems.wRun_ne_bayesRun_witness :
      (wRun 2 (fun (x : ℕ) (x_1 : Fin 4) => 2) 2).raw ≠ bayesRun (fun (x : ℕ) (x_1 : Fin 4) => 2) 2

      The horizon is sharp. At budget 2 the raw finite run has already diverged from the exact run by step 2 — one step past where raw_wRun_eq_bayesRun guarantees equality (2 ^ 1 ≤ 2 but 2 ^ 2 > 2), confirming the exponent in the horizon condition is not an artifact of the proof.

      The per-step residual rate #

      theorem ReflectiveSubsystems.l1_normalize_le {C : ℕ} (a b : Fin C → ℚ) (ha : ∀ (i : Fin C), 0 ≤ a i) (_hb : ∀ (i : Fin C), 0 ≤ b i) (hA : 0 < ∑ i : Fin C, a i) (hB : 0 < ∑ i : Fin C, b i) :
      ∑ i : Fin C, |a i / ∑ j : Fin C, a j - b i / ∑ j : Fin C, b j| ≤ (2 * ∑ i : Fin C, |a i - b i|) / ∑ j : Fin C, b j

      A general ℚ fact about normalization, mentioning nothing about fibers: the L¹ distance between two normalized nonnegative vectors is controlled by the L¹ distance of the vectors themselves, over the second one's mass. The reusable core of every projection-residual bound below.

      theorem ReflectiveSubsystems.toDist_project_close {C W : ℕ} (_hW : 1 ≤ W) (v : Fin C → ℕ) (hv : 0 < ∑ j : Fin C, v j) :
      ∑ i : Fin C, |toDist (project W v) i - toDist v i| ≤ 2 * ↑C / ∑ i : Fin C, ↑(project W v i)

      The projection stays close to the exact ray, in total variation. No side hypothesis on the budget: the bound is honest even when the projection has to do real work, and it degrades gracefully as ∑ project W v shrinks. l1_normalize_le applied to the un-normalized ray v / scaleDiv W v (whose normalization is toDist v, by ray-invariance) against the projected vector itself.

      theorem ReflectiveSubsystems.sum_project_ge {C W : ℕ} (hW : 1 ≤ W) (v : Fin C → ℕ) (hmax : W < wMax v) :
      W ≤ 2 * ∑ i : Fin C, project W v i

      The budget binds through the leader alone. Past the horizon (W < wMax v) the projection does real work, and the heaviest candidate's projected weight is already at least half the budget — stated multiplicatively to keep ℕ division out of the bound entirely.

      theorem ReflectiveSubsystems.toDist_project_rate {C W : ℕ} (hW : 1 ≤ W) (v : Fin C → ℕ) (hv : 0 < ∑ j : Fin C, v j) (hmax : W < wMax v) :
      ∑ i : Fin C, |toDist (project W v) i - toDist v i| ≤ 4 * ↑C / ↑W

      The rate, binding once the budget is spent past the horizon. Composes toDist_project_close (the general closeness bound) with sum_project_ge (the projected mass is at least half the budget) to eliminate the projected mass from the denominator in favour of W itself — the form IN-8 cites.

      theorem ReflectiveSubsystems.wGen_bayes_rate {C W : ℕ} (hW : 1 ≤ W) (f w : Fin C → ℕ) (hw : 0 < ∑ j : Fin C, w j) (hf : ∀ (i : Fin C), 0 < f i) (hmax : W < wMax (bayesStep f w)) :
      ∑ i : Fin C, |toDist (project W (bayesStep f w)) i - bayesPost (toDist w) f i| ≤ 4 * ↑C / ↑W

      The composed statement against exact Bayes — IN-8's citation form: one projected generation stays within 4C/W of the exact posterior it approximates, past the horizon.

      Reconciling the rate with the exhibited annihilation #

      weighted_fiber_not_exactly_bayes is not a counterexample to wGen_bayes_rate — it sits in the regime the rate has nothing to say about. Total variation between any two readings is capped at 2 (toDist_sub_le_two, universally, no fiber structure involved), while wGen_bayes_rate's bound 4 * C / W at the witness's own C = 2, W = 2 reads 4, already above that universal cap. The rate only binds once it undercuts 2, i.e. once W > 2 * C: the annihilation regime is W ≲ C and the rate bites only once W ≫ C, so the two facts occupy disjoint budgets rather than contradicting each other.

      theorem ReflectiveSubsystems.toDist_sub_le_two {C : ℕ} (w1 w2 : Fin C → ℕ) (h1 : 0 < ∑ j : Fin C, w1 j) (h2 : 0 < ∑ j : Fin C, w2 j) :
      ∑ i : Fin C, |toDist w1 i - toDist w2 i| ≤ 2

      A universal cap, no fiber structure involved: two readings never disagree by more than 2 in total variation, because each coordinate's disagreement is at most the sum of the two masses there, and each reading's own mass sums to exactly 1.

      The witness lies in the rate's own vacuity zone. At C = 2, W = 2 — exactly weighted_fiber_not_exactly_bayes's instance — wGen_bayes_rate's bound is 4, already above the universal cap toDist_sub_le_two puts on any total-variation discrepancy. The total discarding of a step there is consistent with the rate precisely because the rate is silent at that budget.