Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RowCompression.FourthMoment

Fourth-moment row bounds and zero extension #

Two-mask clipped-error splitting, row maxima, Minkowski and mask restriction let compression clients pass from endpoint moments to row envelopes without an independence assumption. Zero extension is preserved by conditional walks, telescoping prefixes and compression. These elementary bounds are shared by the actual normalized-atom moment client.

theorem Cslib.RowCompression.min_triangle (w a d : ℝ) :
min 1 |w - d| ≤ min 1 |a - d| + |w - a|

Clipping is retained on the deterministic mean; no absolute mean-error budget is inferred.

theorem Cslib.RowCompression.clipped_two_mean_split (w : Fin 2 → ℝ) (a b d v : ℝ) (hd : 0 ≤ d) :
clippedError d v w ≤ min 1 (|a - d| / (1 + d)) + min 1 |b - v| + |w 0 - a| / (1 + d) + |w 1 - b|

Relative first-coordinate mean discrepancy and absolute second-coordinate discrepancy use independent conditioning masks. Noise remains uncentered in the common environment.

theorem Cslib.RowCompression.conditionalWalk_zero_off {Ω : Type u_1} {V : Type u_2} {E : Type u_3} [Fintype Ω] [Fintype E] (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (graph : (x y : V) → RotationMap (RetainedPairSlice X Y x y) E) (times : V → V → ℕ) (F : Ω → V → V → ℝ) (σ : Ω) (x y : V) (hy : ¬Y σ y) :
conditionalWalk X Y graph times F σ x y = 0

A conditional walk is actually zero off its own endpoint mask.

theorem Cslib.RowCompression.secondChannel_zero_off {Γ : Type u_1} {Ζ : Type u_2} {V : Type u_3} [Fintype Γ] [Fintype Ζ] (X : Γ → V → Prop) (Y : Ζ → V → Prop) [(σ : Γ) → (x : V) → Decidable (X σ x)] [(σ : Ζ) → (y : V) → Decidable (Y σ y)] (ζ : ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (σ : Γ × Ζ) (x y : V) (hy : ¬Y σ.2 y) :

Actual secondChannel zero extension, independent of its normalizer or source slice.

theorem Cslib.RowCompression.uncompressed_second_telescope {ι : Type u_1} (pref first : ℕ → ι → ℝ) (raw : ι → Fin 2 → ℝ) (hzero : ∀ (y : ι), raw y 1 = 0) (i : ℕ) (y : ι) :
uncompressedRow (fun (j : ℕ) (y : ι) (ν : Fin 2) => if ν = 0 then first j y else pref (j + 1) y - if j = 0 then 0 else pref j y) raw (i + 1) y 1 = pref (i + 1) y

Telescoping schedule with a genuinely zero initial second coordinate. This is an identity for the raw prefix, before any clipping or compression.

theorem Cslib.RowCompression.iterate_second_zero_off {ι : Type u_1} (S : Finset ι) (n K : ℕ → ℕ) (ρ : ℕ → ℝ) (Δ : ℕ → ι → Fin 2 → ℝ) (raw : ι → Fin 2 → ℝ) (y : ι) (hr : raw y 1 = 0) (hΔ : ∀ (i : ℕ), Δ i y 1 = 0) (m : ℕ) :
(iterate S n K ρ Δ { defaultValue := 0, row := raw } m).row y 1 = 0

Zero-extension survives compression: defaults affect only coordinate zero.

theorem Cslib.RowCompression.full_rank_four_max {ι : Type u_1} (Ya Yt : Finset ι) (e b₀ b₁ z₀ z₁ : ι → ℝ) (h : ∀ y ∈ Ya, e y ≤ (|b₀ y| + if y ∈ Yt then |b₁ y| else 0) + |z₀ y| + if y ∈ Yt then |z₁ y| else 0) :
Finset.kthLargest 1 Ya e ≤ (((Finset.kthLargest 1 Ya fun (y : ι) => |b₀ y|) + Finset.kthLargest 1 Yt fun (y : ι) => |b₁ y|) + Finset.kthLargest 1 Ya fun (y : ι) => |z₀ y|) + Finset.kthLargest 1 Yt fun (y : ι) => |z₁ y|

Four scope-correct maxima bound the actual full-rank clipped error. The second coordinate vanishes off usage; no independence is imposed on the maximizing endpoint.

theorem Cslib.RowCompression.vertex_add_budget {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] (X : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] {N u a b : ℝ} (hNu : 0 ≤ N * u) (ha : 0 ≤ a) (hb : 0 ≤ b) (f g : Ω → V → ℝ) (hf : vertexNormPow 4 N u X f ≤ a ^ 4) (hg : vertexNormPow 4 N u X g ≤ b ^ 4) :
(vertexNormPow 4 N u X fun (σ : Ω) (x : V) => f σ x + g σ x) ≤ (a + b) ^ 4

Two-array Minkowski, without independence.

theorem Cslib.RowCompression.vertex_mono_nonneg {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] (X : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] {N u : ℝ} (hNu : 0 ≤ N * u) (f g : Ω → V → ℝ) (hf : ∀ (σ : Ω) (x : V), 0 ≤ f σ x) (hfg : ∀ (σ : Ω) (x : V), f σ x ≤ g σ x) :
vertexNormPow 4 N u X f ≤ vertexNormPow 4 N u X g

Monotonicity for nonnegative actual row envelopes in the same source environment.

theorem Cslib.RowCompression.row_as_vertex {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] (X Y : Ω → V → Prop) (N u : ℝ) (f : Ω → V → V → ℝ) :
rowNormPow 4 N u X Y f = vertexNormPow 4 N u (fun (σ : Ω) (z : V × V) => X σ z.1 ∧ Y σ z.2) fun (σ : Ω) (z : V × V) => f σ z.1 z.2
theorem Cslib.RowCompression.row_add_budget {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] (X Y : Ω → V → Prop) {N u a b : ℝ} (hNu : 0 ≤ N * u) (ha : 0 ≤ a) (hb : 0 ≤ b) (f g : Ω → V → V → ℝ) (hf : rowNormPow 4 N u X Y f ≤ a ^ 4) (hg : rowNormPow 4 N u X Y g ≤ b ^ 4) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => f σ x y + g σ x y) ≤ (a + b) ^ 4
theorem Cslib.RowCompression.row_mono_abs {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] (X Y : Ω → V → Prop) {N u : ℝ} (hNu : 0 ≤ N * u) (f g : Ω → V → V → ℝ) (h : ∀ (σ : Ω) (x y : V), X σ x → Y σ y → |f σ x y| ≤ |g σ x y|) :
rowNormPow 4 N u X Y f ≤ rowNormPow 4 N u X Y g
theorem Cslib.RowCompression.row_const_mul {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] (X Y : Ω → V → Prop) (N u w : ℝ) (f : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => w * f σ x y) = |w| ^ 4 * rowNormPow 4 N u X Y f
theorem Cslib.RowCompression.vertex_row_max {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] (X Y : Ω → V → Prop) {N u : ℝ} (hNu : 0 ≤ N * u) (f : Ω → V → V → ℝ) :
(vertexNormPow 4 N u X fun (σ : Ω) (x : V) => Finset.kthLargest 1 {y : V | Y σ y} fun (y : V) => |f σ x y|) ≤ rowNormPow 4 N u X Y f
theorem Cslib.RowCompression.row_mask_subset {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] (X Ya Yt : Ω → V → Prop) (hsub : ∀ (σ : Ω) (y : V), Yt σ y → Ya σ y) (N u : ℝ) (f : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Ya fun (σ : Ω) (x y : V) => if Yt σ y then f σ x y else 0) = rowNormPow 4 N u X Yt f