Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyEstimatedInput

Actual finite estimated residual input #

The input sums real positive bins and subtracts one negative correction. Structural requests remain at HP.k; precision indexes only the earlier estimates. Bounds use the actual selected correction support, dense cutoff ranges, and rounded frame marginals. No independence or final input-moment premise is assumed. This original finite payment does not establish recursive reserves or copy routing. Range arguments adapt Samuel Schlesinger’s normalized-row APIs.

theorem Matrix.HierarchyParams.H4RankEnvironment.normalizedRequest_mem_Icc {P J : ℕ} [Fact (Nat.Prime P)] {q : ℕ} (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (r : HierarchyTask.Request q (Fin J) (ZMod P)) (binCutoff : ℝ → ℝ) {CB : ℝ} (hCB : 0 ≤ CB) (hbin : ∀ (d : ℝ), binCutoff d ∈ Set.Icc 0 CB) (raw prep : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (σ : Environment P J) (x y : ZMod P) :
normalizedRequest D id r binCutoff HP.ρ HP.K raw prep σ x y ∈ Set.Icc 0 (2 * CB)

Arbitrary bin cutoffs need an explicit bound. The clipped denominator doubles it.

Top-bin cap and fine-bin adjacent ratio are kept separate in the finite scale sum.

theorem Matrix.HierarchyParams.H4RankEnvironment.boundedRoutedBinCutoff_grid_range (χ : ℝ → ℝ) (kb : ℕ → ℕ) {cap : ℝ} (hcap : 0 ≤ cap) (hχ : Monotone χ) (hχ0 : ∀ v ≤ 1 / 2, χ v = 0) (hχ1 : ∀ (v : ℝ), 1 ≤ v → χ v = 1) (hχrange : ∀ (v : ℝ), χ v ∈ Set.Icc 0 1) (hanti : Antitone fun (i : ℕ) => rate (kb i)) (hratio : ∀ (i : ℕ), rate (kb i) / rate (kb (i + 1)) ≤ 16) (i : ℕ) (d : ℝ) :
boundedRoutedBinCutoff χ (fun (i : ℕ) => rate (kb i)) cap i (fun (x : ℝ) => 1) d ∈ Set.Icc 0 (estimatedBinCap cap i)

Actual bounded routed cutoffs satisfy the top cap or the adjacent-16 cap, independently of the sizes of arbitrary earlier estimates.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.estimatedResidualInput {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) (R : RoleProfile J) (l ks km kt n : ℕ) (ss sm st : List (ZMod P)) (kb : ℕ → ℕ) (Kc : ℕ) (cutoff : ℕ → ℝ → ℝ) (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 → ℝ) (precision : ℕ) (σ : Environment P J) (x y : V) :

Actual once-negative finite residual, with independent statistical precision.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.estimatedResidualBound (HP : FourthRootHierarchyParams 16 1 16 32 8) (P km kt n : ℕ) (kb : ℕ → ℕ) (CB : ℕ → ℝ) :

Finite scale sum with literal importance ratios and midpoint density. The product uses row support K rather than ambient width P.

theorem Matrix.HierarchyParams.H4RankEnvironment.estimatedPositiveSample_abs_le {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (l bin ks km kt kb : ℕ) (ss sm st : List (ZMod P)) (Kc : ℕ) (cutoff : ℝ → ℝ) {CB : ℝ} (hCB : 0 ≤ CB) (hcut : ∀ (v : ℝ), cutoff v ∈ Set.Icc 0 CB) (raw prep : HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (maximum : HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → ZMod P → ℝ) (σ : Environment P J) (x y : ZMod P) :
|HierarchyTask.rawPositiveSample (channels D) l bin HierarchyTask.RawTask.residual (gridChannel R.source ks ss) (gridChannel R.midpoint km sm) (gridChannel R.terminal kt st) (rate kb) (fun (r : HierarchyTask.Request HP.k (Fin J) (ZMod P)) => incomingChildren HP D id Kc cutoff raw prep maximum r σ) x y| ≤ rate kb * (gridMass P kt / gridMass P (max kt kb)) * (2 * CB) * (1 + ↑HP.K * (2 * HP.Q HP.atomCap) * rate km / gridMass P km)

Actual positive-bin range. The left support is at most K and vanishes off its midpoint usage channel, so the product pays K, not P.

theorem Matrix.HierarchyParams.H4RankEnvironment.estimatedResidualInput_abs_le {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (l ks km kt n : ℕ) (ss sm st : List (ZMod P)) (kb : ℕ → ℕ) (Kc : ℕ) (cutoff : ℕ → ℝ → ℝ) (CB : ℕ → ℝ) (hCB : ∀ (i : ℕ), 0 ≤ CB i) (hcut : ∀ (i : ℕ) (v : ℝ), cutoff i v ∈ Set.Icc 0 (CB i)) (raw prep : ℕ → ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (maximum : ℕ → ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → ZMod P → ℝ) (precision : ℕ) (σ : Environment P J) (x y : ZMod P) :
|estimatedResidualInput HP D id R l ks km kt n ss sm st kb Kc cutoff raw prep maximum precision σ x y| ≤ estimatedResidualBound HP P km kt n kb CB

Pointwise finite input bound for arbitrary earlier estimates. Width occurs only in the rounded marginals; the midpoint product uses actual row support.

theorem Matrix.HierarchyParams.H4RankEnvironment.estimatedResidualBound_nonneg (HP : FourthRootHierarchyParams 16 1 16 32 8) (P km kt n : ℕ) (kb : ℕ → ℕ) (CB : ℕ → ℝ) (hCB : ∀ (i : ℕ), 0 ≤ CB i) :
0 ≤ estimatedResidualBound HP P km kt n kb CB

Nonnegative finite payment; zero cutoffs and empty slices need no exceptional rule.

theorem Matrix.HierarchyParams.H4RankEnvironment.estimatedResidualInput_moment_le {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (H : Horizon P) (l ks km kt n : ℕ) (hks : ks ≤ H.maxExponent) (ss sm st : List (ZMod P)) (kb : ℕ → ℕ) (Kc : ℕ) (cutoff : ℕ → ℝ → ℝ) (CB : ℕ → ℝ) (hCB : ∀ (i : ℕ), 0 ≤ CB i) (hcut : ∀ (i : ℕ) (v : ℝ), cutoff i v ∈ Set.Icc 0 (CB i)) (raw prep : ℕ → ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (maximum : ℕ → ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → ZMod P → ℝ) (precision : ℕ) :
Cslib.rowNormPow 4 (↑P) (rate ks) (NormalizedMoments.retainedMask R.source (side P ks) D ss) (NormalizedMoments.retainedMask R.terminal (side P kt) D st) (estimatedResidualInput HP D id R l ks km kt n ss sm st kb Kc cutoff raw prep maximum precision) ≤ 16 * ↑P * estimatedResidualBound HP P km kt n kb CB ^ 4

Fourth moment of the shared actual finite input, paid before walking.

theorem Matrix.HierarchyParams.H4RankEnvironment.estimatedResidualInput_noise_le {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (H : Horizon P) (l ks km kt n : ℕ) (hks : ks ≤ H.maxExponent) (ss sm st : List (ZMod P)) (kb : ℕ → ℕ) (Kc : ℕ) (cutoff : ℕ → ℝ → ℝ) (CB : ℕ → ℝ) (hCB : ∀ (i : ℕ), 0 ≤ CB i) (hcut : ∀ (i : ℕ) (v : ℝ), cutoff i v ∈ Set.Icc 0 (CB i)) (raw prep : ℕ → ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (maximum : ℕ → ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → ZMod P → ℝ) (precision steps : ℕ) :
have input := estimatedResidualInput HP D id R l ks km kt n ss sm st kb Kc cutoff raw prep maximum precision; have F := Cslib.conditionalWalk (NormalizedMoments.retainedMask R.source (side P ks) D ss) (NormalizedMoments.retainedMask R.terminal (side P kt) D st) (graph R.source R.terminal ⋯ (side P ks) (side P kt) ⋯ ⋯ (fun (x : ZMod P) => CopyPadding.identifier D ss x) fun (y : ZMod P) => CopyPadding.identifier D st y) (fun (x x_1 : ZMod P) => steps) (estimatedResidualInput HP D id R l ks km kt n ss sm st kb Kc cutoff raw prep maximum precision); (Cslib.rowNormPow 4 (↑P) (rate ks) (NormalizedMoments.retainedMask R.source (side P ks) D ss) (NormalizedMoments.retainedMask R.terminal (side P kt) D st) fun (σ : Environment P J) (x y : ZMod P) => F σ x y - Cslib.rowSliceMean (NormalizedMoments.retainedMask R.source (side P ks) D ss) (NormalizedMoments.retainedMask R.terminal (side P kt) D st) input x y) ≤ 32 * (1 - 1 / (155648 * (↑J + 1) * 4 ^ 4)) ^ (2 * steps) * (16 * ↑P * estimatedResidualBound HP P km kt n kb CB ^ 4)

Centered RAW noise of the actual finite input, paid by its actual output ranges.

theorem Matrix.HierarchyParams.H4RankEnvironment.estimatedResidualInput_scaled_noise_le_dyadic {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (H : Horizon P) (l ks km kt n : ℕ) (hks : ks ≤ H.maxExponent) (ss sm st : List (ZMod P)) (kb : ℕ → ℕ) (Kc : ℕ) (cutoff : ℕ → ℝ → ℝ) (CB : ℕ → ℝ) (hCB : ∀ (i : ℕ), 0 ≤ CB i) (hcut : ∀ (i : ℕ) (v : ℝ), cutoff i v ∈ Set.Icc 0 (CB i)) (raw prep : ℕ → ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (maximum : ℕ → ℕ → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Environment P J → ZMod P → ℝ) (precision steps : ℕ) {amplification ε : ℝ} (ha : 0 ≤ amplification) (hε : 0 < ε) (slack : ℕ) (hsteps : Cslib.Probability.spectralWalkLength (1 - 1 / (155648 * (↑J + 1) * 4 ^ 4)) (amplification * 32 * (16 * ↑P * estimatedResidualBound HP P km kt n kb CB ^ 4)) ε slack ≤ steps) :
have input := estimatedResidualInput HP D id R l ks km kt n ss sm st kb Kc cutoff raw prep maximum precision; have F := Cslib.conditionalWalk (NormalizedMoments.retainedMask R.source (side P ks) D ss) (NormalizedMoments.retainedMask R.terminal (side P kt) D st) (graph R.source R.terminal ⋯ (side P ks) (side P kt) ⋯ ⋯ (fun (x : ZMod P) => CopyPadding.identifier D ss x) fun (y : ZMod P) => CopyPadding.identifier D st y) (fun (x x_1 : ZMod P) => steps) (estimatedResidualInput HP D id R l ks km kt n ss sm st kb Kc cutoff raw prep maximum precision); (amplification * Cslib.rowNormPow 4 (↑P) (rate ks) (NormalizedMoments.retainedMask R.source (side P ks) D ss) (NormalizedMoments.retainedMask R.terminal (side P kt) D st) fun (σ : Environment P J) (x y : ZMod P) => F σ x y - Cslib.rowSliceMean (NormalizedMoments.retainedMask R.source (side P ks) D ss) (NormalizedMoments.retainedMask R.terminal (side P kt) D st) input x y) ≤ (ε * 64⁻¹ ^ slack) ^ 4

Positive tolerance pays scaled centered RAW noise, for any factor amplification ≥ 0 and at least spectralWalkLength steps. One admissible factor is the second-envelope amplification P * (|ζ| * (Lh + Lρ) / rate kt)^4, for any reals ζ, Lh and Lρ; no RAW units are canceled.