Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyEstimatedMean

Estimated-child mean error against the genuine finite residual #

Actual bounded incoming children are compared to canonical requests, after proving that bounded routed cutoffs preserve their true inputs. The top cap and adjacent ratio 16 provide the genuine dense range; the actual correction range pays the other coefficient. The joint source × terminal mean subtracts the proved canonical residual mean, with positive bins summed and exactly one negative error. No independence or desired-reference field is used. Finite coverage, narrower source, all suffixes and horizons remain explicit, bundled through CutoffProfile, BinSchedule, and ResidualStage. This original finite absolute theorem does not establish recursive budgets or copy routing.

theorem Matrix.HierarchyParams.H4RankEnvironment.estimated_residual_bins_mean_error {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) (hD : D ≠ 0) (hid : Function.Injective ident) (H : Horizon P) (R : RoleProfile J) (l ks km kt : ℕ) (ksH : ks ≤ H.maxExponent) (hms : km ≤ ks) (ss sm st : List (ZMod P)) (c : CutoffProfile) (b : BinSchedule) (hbH : ∀ i ∈ b.activeBins, b.binExponent i ≤ H.maxExponent) (hkh : ∀ i ∈ b.activeBins, ∀ (v : ℝ), b.cutoff c i v ≠ 0 → b.preparationCutoff i v = 1) (C : Matrix V V ℝ) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ rate km) (hCcap : ∀ (z w : V), C z w ≤ b.densityCap * rate (b.binExponent 0)) (Kc : ℕ) (raw prep : ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → Matrix V V ℝ) (maximum : ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → V → ℝ) (x y : V) (hcover : ∀ (z : V), C z y = 0 ∨ rate (b.binExponent b.lastBin) ≤ C z y) :
have source := gridChannel R.source ks ss; have mid := gridChannel R.midpoint km sm; have terminal := gridChannel R.terminal kt st; have estimated := fun (i : ℕ) (σ : Environment P J) (r : HierarchyTask.Request HP.k (Fin J) (ZMod P)) => incomingChildren HP D ident Kc (b.bounded c i) (raw i) (prep i) (maximum i) r σ; have canonical := fun (i : ℕ) (σ : Environment P J) (r : HierarchyTask.Request HP.k (Fin J) (ZMod P)) => canonicalRequestChild HP D ident C (b.cutoff c i) (b.preparationCutoff i) c.requestGate c.requestRank r σ; let channelsV := fun (role : Fin J) (b : ℝ) (suffix : List (ZMod P)) (σ : Environment P J) (v : V) => channels D role b suffix σ (ident v); have S := {σ : Environment P J | CorrectionRowTask.Channel.retains source (channels D) σ (ident x) ∧ CorrectionRowTask.Channel.retains terminal (channels D) σ (ident y)}; |(S.expect fun (σ : Environment P J) => estimatedResidualInput HP D ident R l ks km kt b.lastBin ss sm st b.binExponent Kc (b.bounded c) (fun (x : ℕ) => raw) (fun (x : ℕ) => prep) (fun (x : ℕ) => maximum) 0 σ x y) - HP.residual (canonicalChannel ident (rate km)) (canonicalChannel ident (rate km)) (rate km) C x y| ≤ S.expect fun (σ : Environment P J) => ∑ i ∈ b.activeBins, HierarchyTask.positiveChildError channelsV l i HierarchyTask.RawTask.residual source mid terminal (b.rates i) (2 * HP.Q HP.atomCap) (2 * max b.densityCap 16) (estimated i σ) (canonical i σ) x y + HierarchyTask.negativeChildError channelsV l 0 HierarchyTask.RawTask.residual source mid terminal (b.rates 0) (estimated 0 σ) (canonical 0 σ) x y

Actual finite absolute propagation from four per-request errors under a CutoffProfile and BinSchedule. The special negative payment occurs once, and the target is the genuine residual.

theorem Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.mean_sub_le {P J : ℕ} [Fact (Nat.Prime P)] {HP : FourthRootHierarchyParams 16 1 16 32 8} (s : ResidualStage HP P J) (children : ReserveOutputChildren HP P J) (j : ℕ) (x y : ZMod P) :
|Cslib.rowSliceMean s.sourceMask s.terminalMask (s.input children (j + 1)) x y - s.residual x y| ≤ s.cost children j x y

Pointwise slice-mean error of s.input children (j + 1) against s.residual, bounded by s.cost children j.