Documentation

CslibFrontier.Computability.LogSpaceDerandomization.NormalizedAtomRows.MeanTail

Summable actual mean tails at arbitrary capacities #

The actual H4 environment and uncentered hierarchy decoder are preserved. This fourth-moment adaptation of §8.2, Proposition 8.5 (printed pp. 45–49), of [OAI26e], revision 7ef5c0cc, retains explicit lower-child contracts; it does not establish recursive induction or native resource bounds. Christian Reitwiessner supplied the H4 specialization; the compression and norm proof patterns are adapted from Samuel Schlesinger.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.retainedMask {P J : ℕ} [Fact (Nat.Prime P)] (t : Fin J) (Lt : ℕ) (D : ZMod P) (suffix : List (ZMod P)) (σ : Environment P J) (y : ZMod P) :

Actual narrower endpoint usage mask; rank sampling remains at the terminal rate.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.meanRowTail {P J : ℕ} [Fact (Nat.Prime P)] (t : Fin J) (Lt : ℕ) (D : ZMod P) (suffix : List (ZMod P)) (m j : ℕ) (μ : ℕ → Matrix (ZMod P) (ZMod P) ℝ) (σ : Environment P J) (x : ZMod P) :

Weighted sum of the raw-prefix row maxima over the prefixes j ≤ i < m, with weight 28 ^ (m - i), allowing a different maximizing endpoint at each prefix.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.meanRowTail_le {P J : ℕ} [Fact (Nat.Prime P)] (t : Fin J) (Lt : ℕ) (D : ZMod P) (suffix : List (ZMod P)) (m j : ℕ) (hj : j < m) (μ : ℕ → Matrix (ZMod P) (ZMod P) ℝ) (B : Matrix (ZMod P) (ZMod P) ℝ) (hB : ∀ (x y : ZMod P), 0 ≤ B x y) (hμ : ∀ i < m, ∀ (x y : ZMod P), |μ i x y| ≤ B x y * 2 ^ Cslib.RowCompression.dyadicSlack m i) (σ : Environment P J) (x : ZMod P) :
meanRowTail t Lt D suffix m j μ σ x ≤ 128 ^ Cslib.RowCompression.dyadicSlack m j * Finset.kthLargest 1 {y : ZMod P | retainedMask t Lt D suffix σ y} fun (y : ZMod P) => |B x y|

A common deterministic endpoint envelope controls the weighted sum of adaptively chosen row maxima.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.meanFirstEvent {P J : ℕ} [Fact (Nat.Prime P)] (t : Fin J) (D : ZMod P) (suffix : List (ZMod P)) (k m j : ℕ) (η : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (n K : ℕ → ℕ) (Δ : Environment P J → ZMod P → ℕ → ZMod P → Fin 2 → ℝ) (raw : Environment P J → ZMod P → ZMod P → Fin 2 → ℝ) (σ : Environment P J) (x : ZMod P) :

The actual first-overflow mask, intersected with the genuine first-channel heavy event. No rare-event discount for correlated noise is built into this definition.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.integrated_mean_tail_capacity {P J : ℕ} [Fact (Nat.Prime P)] (s t : Fin J) (hst : t ≠ s) (Ls Lt : ℕ) (D : ZMod P) (hD : D ≠ 0) (sourceSuffix suffix : List (ZMod P)) (H : Horizon P) {k : ℕ} (hk : k ≤ H.maxExponent) (hLt : Lt ≤ P) (G : Matrix (ZMod P) (ZMod P) ℝ) (hG : ∀ (x y : ZMod P), 0 ≤ G x y) {η M ε N u : ℝ} (hη : 0 < η) (hε : 0 ≤ ε) (hNu : 0 ≤ N * u) (hmass : ∀ (x : ZMod P), ∑ y : ZMod P, G x y ≤ M) (m : ℕ) (n K : ℕ → ℕ) (hn : ∀ j < m, 2 ^ (64 * Cslib.RowCompression.dyadicSlack m j) ≤ n j) (Δ : Environment P J → ZMod P → ℕ → ZMod P → Fin 2 → ℝ) (raw : Environment P J → ZMod P → ZMod P → Fin 2 → ℝ) (μ : ℕ → Matrix (ZMod P) (ZMod P) ℝ) (B : Matrix (ZMod P) (ZMod P) ℝ) (hB : ∀ (x y : ZMod P), 0 ≤ B x y) (hμ : ∀ i < m, ∀ (x y : ZMod P), |μ i x y| ≤ B x y * 2 ^ Cslib.RowCompression.dyadicSlack m i) (hbudget : (Cslib.rowNormPow 4 N u (retainedMask s Ls D sourceSuffix) (retainedMask t Lt D suffix) fun (x : Environment P J) (x_1 y : ZMod P) => B x_1 y) ≤ ε ^ 4) :
(Cslib.vertexNormPow 4 N u (retainedMask s Ls D sourceSuffix) fun (σ : Environment P J) (x : ZMod P) => ∑ j ∈ Finset.range m, if meanFirstEvent t D suffix k m j η G n K Δ raw σ x then meanRowTail t Lt D suffix m j μ σ x else 0) ≤ ((2 + 256 * M / η) * ε * (1 / 63)) ^ 4

Actual rarity-weighted first-overflow deterministic mean tail. Means are deterministic conditional discrepancies; their lower-child derivation remains an input. The row maximum may choose an endpoint using the same environment as the overflow event.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.correlated_noise_tail {P J : ℕ} [Fact (Nat.Prime P)] (s t : Fin J) (Ls : ℕ) (D : ZMod P) (sourceSuffix suffix : List (ZMod P)) (k m : ℕ) (η : ℝ) (n K : ℕ → ℕ) (Δ : Environment P J → ZMod P → ℕ → ZMod P → Fin 2 → ℝ) (raw : Environment P J → ZMod P → ZMod P → Fin 2 → ℝ) {N u ε : ℝ} (hNu : 0 ≤ N * u) (hε : 0 ≤ ε) (γ : ℕ → Environment P J → ZMod P → ℝ) (hγ : ∀ i < m, ∀ (σ : Environment P J) (x : ZMod P), retainedMask s Ls D sourceSuffix σ x → 0 ≤ γ i σ x) (hbudget : ∀ i < m, Cslib.vertexNormPow 4 N u (retainedMask s Ls D sourceSuffix) (γ i) ≤ (ε * (1 / 64) ^ Cslib.RowCompression.dyadicSlack m i) ^ 4) :
(Cslib.vertexNormPow 4 N u (retainedMask s Ls D sourceSuffix) fun (σ : Environment P J) (x : ZMod P) => Cslib.RowCompression.firstOverflowNoiseTail {y : ZMod P | retainedMask t (side P k) D suffix σ y} n K (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) { defaultValue := 0, row := raw σ x } m (fun (i : ℕ) => 28 ^ (m - i)) fun (i : ℕ) => γ i σ x) ≤ (ε * (7 / 9)) ^ 4

The correlated noise tail in the same actual terminal row and full environment. Unlike deterministic mean tails, noise gets no heavy-event rarity discount.