Documentation

CslibFrontier.Computability.LogSpaceDerandomization.NormalizedAtomRows.Moment

Uniform actual-output moments from endpoint prefix budgets #

actualNoiseEntry is relative first-channel noise on full terminal rank and absolute second-channel noise on usage. actualNoiseMax_budget derives its row-maximum moment from an endpoint row moment. raw_prefix_row_budget combines the two clipped mean and two noise budgets, preserving actual second-channel zero extension. uniform_moment_capacity then assembles final error, preloss, actual heavy tails and false-event charges for any capacity sequence above the dyadic lower bound (and the hierarchy rank).

This conditional fourth-moment adaptation of §8.2, Proposition 8.5 (printed pp. 45–49), of [OAI26e], revision 7ef5c0cc, does not derive the lower-child input budgets or recursive reserve choices. The H4 specialization is Christian Reitwiessner's; compression and norm proof patterns are adapted from Samuel Schlesinger.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualNoiseEntry {P J : ℕ} [Fact (Nat.Prime P)] (s t : Fin J) (Ls La Lt : ℕ) (D : ZMod P) (sourceSuffix suffix : List (ZMod P)) (k : ℕ) (G : Matrix (ZMod P) (ZMod P) ℝ) (Δ : Environment P J → ZMod P → ℕ → ZMod P → Fin 2 → ℝ) (raw : Environment P J → ZMod P → ZMod P → Fin 2 → ℝ) (ν : Fin 2) (i : ℕ) (σ : Environment P J) (x y : ZMod P) :

Scope-correct row-noise input: relative first coordinate on full rank, absolute second on usage. These are prefix noise moments, never compressed-output assumptions.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualNoiseMax_budget {P J : ℕ} [Fact (Nat.Prime P)] (s t : Fin J) (Ls La Lt : ℕ) (D : ZMod P) (sourceSuffix suffix : List (ZMod P)) (k : ℕ) (G : Matrix (ZMod P) (ZMod P) ℝ) (hG : ∀ (x y : ZMod P), 0 ≤ G x y) (Δ : Environment P J → ZMod P → ℕ → ZMod P → Fin 2 → ℝ) (raw : Environment P J → ZMod P → ZMod P → Fin 2 → ℝ) {N u e : ℝ} (hNu : 0 ≤ N * u) (ν : Fin 2) (i : ℕ) (hb : Cslib.rowNormPow 4 N u (retainedMask s Ls D sourceSuffix) (retainedMask t (if ν = 0 then La else Lt) D suffix) (actualNoiseEntry s t Ls La Lt D sourceSuffix suffix k G Δ raw ν i) ≤ e ^ 4) :
Cslib.vertexNormPow 4 N u (retainedMask s Ls D sourceSuffix) (actualNoiseMax s t Ls La Lt D sourceSuffix suffix k G Δ raw ν i) ≤ e ^ 4
theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.raw_prefix_row_budget {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (s t : Fin J) (Ls La Lt : ℕ) (D : ZMod P) (sourceSuffix suffix : List (ZMod P)) (k : ℕ) (G : Matrix (ZMod P) (ZMod P) ℝ) (hG : ∀ (x y : ZMod P), 0 ≤ G x y) (ζ : ℝ) (Δ : Environment P J → ZMod P → ℕ → ZMod P → Fin 2 → ℝ) (raw : Environment P J → ZMod P → ZMod P → Fin 2 → ℝ) (m i : ℕ) (hz : ∀ (σ : Environment P J) (x y : ZMod P), ¬retainedMask t Lt D suffix σ y → actualPrefix Δ raw i σ x y 1 = 0) (hsub : ∀ (σ : Environment P J) (y : ZMod P), retainedMask t Lt D suffix σ y → retainedMask t La D suffix σ y) {N u e : ℝ} (hNu : 0 ≤ N * u) (he : 0 ≤ e) (hmean : ∀ (ν : Fin 2), (Cslib.rowNormPow 4 N u (retainedMask s Ls D sourceSuffix) (retainedMask t (if ν = 0 then La else Lt) D suffix) fun (x : Environment P J) (x_1 y : ZMod P) => actualClippedMean HP s t Ls La Lt D sourceSuffix suffix k G ζ Δ raw ν i x_1 y) ≤ (e * 2 ^ Cslib.RowCompression.dyadicSlack m i) ^ 4) (hnoise : ∀ (ν : Fin 2), Cslib.rowNormPow 4 N u (retainedMask s Ls D sourceSuffix) (retainedMask t (if ν = 0 then La else Lt) D suffix) (actualNoiseEntry s t Ls La Lt D sourceSuffix suffix k G Δ raw ν i) ≤ (e * (1 / 64) ^ Cslib.RowCompression.dyadicSlack m i) ^ 4) :
(Cslib.rowNormPow 4 N u (retainedMask s Ls D sourceSuffix) (retainedMask t La D suffix) fun (σ : Environment P J) (x y : ZMod P) => Cslib.RowCompression.clippedError (G x y / rate k) (genuineTarget HP s t Ls Lt D sourceSuffix suffix k G ζ σ x y 1) (actualPrefix Δ raw i σ x y)) ≤ (4 * e * 2 ^ Cslib.RowCompression.dyadicSlack m i) ^ 4

The two-scope clipped mean/noise inputs give the full-rank raw-prefix moment. Second-coordinate inputs are charged only on usage, by actual zero extension.

theorem Matrix.FourthRootHierarchyParams.NormalizedRow.uniform_moment_capacity (HP : FourthRootHierarchyParams 16 1 16 32 8) (ζ : ℝ) (hζ : 0 < ζ) {scale : ℝ} (hs : 0 < scale) (hmargin : scale ≤ HP.η) (hcapscale : scale ≤ HP.atomCap / 10000) :
∃ (C : ℝ), 0 ≤ C ∧ ∀ (η : ℝ), 0 < η → η ≤ scale → η ≤ 1 → ∃ (A : ℝ), 0 ≤ A ∧ ∀ {Ω : Type u_1} {V : Type u_2} [inst : Fintype Ω] [inst_1 : Fintype V] (N u : ℝ), 0 ≤ N * u → ∀ (X Y : Ω → V → Prop) (m : ℕ), 0 < m → ∀ (n : ℕ → ℕ), (∀ i < m, 2 ^ (64 * Cslib.RowCompression.dyadicSlack m i) ≤ n i) → ∀ (Δ : Ω → V → ℕ → V → Fin 2 → ℝ) (raw truth : Ω → V → V → Fin 2 → ℝ), have S := fun (σ : Ω) => {y : V | Y σ y}; have e := fun (i : ℕ) (σ : Ω) (x : V) => Finset.kthLargest 1 (S σ) fun (y : V) => Cslib.RowCompression.clippedError (truth σ x y 0) (truth σ x y 1) (Cslib.RowCompression.uncompressedRow (Δ σ x) (raw σ x) (i + 1) y); (∀ i < m, HP.K ≤ n i) → (∀ (σ : Ω) (x y : V), X σ x → Y σ y → 0 ≤ truth σ x y 0) → (∀ (σ : Ω) (x y : V), X σ x → Y σ y → |truth σ x y 1| ≤ scale / 2) → (∀ j < m, ∀ (σ : Ω) (x y : V), X σ x → Y σ y → truth σ x y 0 ≤ Cslib.RowCompression.dyadicFloor η m j / 4 → truth σ x y 1 = 0) → ∀ (ε T : ℝ), 0 ≤ ε → 0 ≤ T → (∀ i < m, (Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => Cslib.RowCompression.clippedError (truth σ x y 0) (truth σ x y 1) (Cslib.RowCompression.uncompressedRow (Δ σ x) (raw σ x) (i + 1) y)) ≤ (ε * 2 ^ Cslib.RowCompression.dyadicSlack m i) ^ 4) → (Cslib.vertexNormPow 4 N u X fun (σ : Ω) (x : V) => ∑ j ∈ Finset.range m, if Cslib.RowCompression.IsFirstOverflow (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) { defaultValue := 0, row := raw σ x } j ∧ Cslib.Probability.heavyCountEvent Y Finset.univ (fun (y : V) => truth σ x y 0) (Cslib.RowCompression.dyadicFloor η m j) (n j) σ then ∑ i ∈ Finset.Ico j m, 28 ^ (m - i) * e i σ x else 0) ≤ (T * ε) ^ 4 → (Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => Cslib.RowCompression.stateRootError (output HP ζ) (S σ) HP.K (Cslib.RowCompression.iterate (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) { defaultValue := 0, row := raw σ x } m) { defaultValue := 0, row := truth σ x } y) ≤ (128 * ↑HP.K * (A ^ 4 * (η / 511) ^ 4 + C ^ 4 * 2 ^ 4 + C ^ 4 * T ^ 4) + 64 * ↑HP.K * rangeBound HP ^ 4 / η ^ 4 / 63) * ε ^ 4

Uniform assembly with raw-prefix input moments, not final-output certificates. C is fixed before η, and A after η. The full-rank error is stronger than usage error.