Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RootMetric.AbsoluteError

Absolute row errors and conditional maximum envelopes #

Conditional Jensen preserves the actual joint slice density. Repeating a full-rank maximum at usage endpoints costs the explicit ambient width. The masks and errors can all depend on the same environment; no independence or target range bound is used. The two-array fourth-power estimate splits raw centered noise from absolute mean error. These are original finite bounds adapting Samuel Schlesinger's row norm API.

theorem Cslib.rowNormPow_add_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {N u : ℝ} {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (hNu : 0 ≤ N * u) (A B : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => A σ x y + B σ x y) ≤ 8 * (rowNormPow 4 N u X Y A + rowNormPow 4 N u X Y B)

Two actual arrays pay the fourth moment with constant eight.

theorem Cslib.rowNormPow_le_three {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {N u : ℝ} {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (hNu : 0 ≤ N * u) (D A B C : Ω → V → V → ℝ) (hA : ∀ (σ : Ω) (x y : V), 0 ≤ A σ x y) (hB : ∀ (σ : Ω) (x y : V), 0 ≤ B σ x y) (hC : ∀ (σ : Ω) (x y : V), 0 ≤ C σ x y) (hD : ∀ (σ : Ω) (x y : V), X σ x → Y σ y → |D σ x y| ≤ A σ x y + B σ x y + C σ x y) :
rowNormPow 4 N u X Y D ≤ 64 * (rowNormPow 4 N u X Y A + rowNormPow 4 N u X Y B + rowNormPow 4 N u X Y C)

Three nonnegative error envelopes pay a fourth moment with constant 64.

theorem Cslib.rowNormPow_sub_le_centered {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {N u : ℝ} {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (hNu : 0 ≤ N * u) (A : Ω → V → V → ℝ) (μ G : V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => A σ x y - G x y) ≤ 8 * ((rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => A σ x y - μ x y) + rowNormPow 4 N u X Y fun (x : Ω) (x_1 y : V) => μ x_1 y - G x_1 y)

Centered RAW noise and deterministic ABSOLUTE mean error pay the completed error. The mean need not be a desired target or an independent random variable.

theorem Cslib.rowNormPow_le_fullRank_max {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {N u : ℝ} {X Y U : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [(σ : Ω) → (y : V) → Decidable (U σ y)] (hNu : 0 ≤ N * u) (D E : Ω → V → V → ℝ) {c : ℝ} (hc : 0 ≤ c) (hE : ∀ (σ : Ω) (x y : V), X σ x → U σ y → |E σ x y| ≤ c * Finset.kthLargest 1 {w : V | Y σ w} fun (w : V) => |D σ x w|) :
rowNormPow 4 N u X U E ≤ ↑(Fintype.card V) * c ^ 4 * rowNormPow 4 N u X Y D

A pointwise full-rank maximum envelope integrates with an explicit width cost. Usage may be narrower than rank. In particular the maximum is never taken over usage.

theorem Cslib.rowNormPow_rectangle_max_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {N u : ℝ} {X Y : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (hNu : 0 ≤ N * u) (D : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x x_1 : V) => Finset.kthLargest 1 {z : V | X σ z} fun (z : V) => Finset.kthLargest 1 {w : V | Y σ w} fun (w : V) => |D σ z w|) ≤ ↑(Fintype.card V) ^ 2 * rowNormPow 4 N u X Y D

Repeating a maximum over the same source by terminal rank rectangle costs two explicit ambient widths. The input payment remains the original masked row norm.

theorem Cslib.rowNormPow_usage_mask {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {N u : ℝ} {X Y U : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [(σ : Ω) → (y : V) → Decidable (U σ y)] (hUY : ∀ (σ : Ω) (y : V), U σ y → Y σ y) (F : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => if U σ y then F σ x y else 0) = rowNormPow 4 N u X U F

Zero extension from usage to a larger rank domain preserves the exact integrated row norm. This identity uses inclusion of masks, without a density estimate.

theorem Cslib.rowNormPow_usage_conditional_abs_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {N u : ℝ} {X Y U : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [(σ : Ω) → (y : V) → Decidable (U σ y)] (hNu : 0 ≤ N * u) (hUY : ∀ (σ : Ω) (y : V), U σ y → Y σ y) (D : Ω → V → V → ℝ) :
(rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => if U σ y then rowSliceMean X U (fun (τ : Ω) (a b : V) => |D τ a b|) x y else 0) ≤ rowNormPow 4 N u X U D

The actual conditional absolute preparation error pays only its original source and usage row error. Zero extension keeps the full terminal rank domain on the left.

theorem Cslib.rowNormPow_clipped_conditional_le_fullRank {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {N u : ℝ} {X Y U : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [(σ : Ω) → (y : V) → Decidable (U σ y)] (hNu : 0 ≤ N * u) (D E : Ω → V → V → ℝ) {c ζ : ℝ} (hc : 0 ≤ c) (hE0 : ∀ (σ : Ω) (x y : V), 0 ≤ E σ x y) (hE : ∀ (σ : Ω) (x y : V), X σ x → U σ y → E σ x y ≤ c * Finset.kthLargest 1 {w : V | Y σ w} fun (w : V) => |D σ x w|) :
(rowNormPow 4 N u X U fun (x : Ω) (x_1 y : V) => min 1 (|ζ| * rowSliceMean X U E x_1 y)) ≤ ↑(Fintype.card V) * (|ζ| * c) ^ 4 * rowNormPow 4 N u X Y D

Actual conditional averaging followed by clipping does not lose Jensen's density cancellation. The remaining width comes solely from repeating the rank maximum.