Documentation

CslibFrontier.Computability.LogSpaceDerandomization.RootMetric.FiniteEnvelope

Common envelopes for finitely many row tables #

The zero-padded maximum of scaled absolute prefix envelopes dominates each prefix. Its fourth moment costs the sum of the scaled prefix fourth moments. Empty prefix sets give zero. The masks and all tables may share one finite environment.

Main definitions #

Main results #

noncomputable def Cslib.finiteEnvelope {I : Type u_1} {V : Type u_2} (S : Finset I) (a : I → ℝ) (E : I → V → V → ℝ) (x y : V) :

A common deterministic envelope, with zero padding for an empty prefix set.

theorem Cslib.finiteEnvelope_nonneg {I : Type u_1} {V : Type u_2} (S : Finset I) (a : I → ℝ) (E : I → V → V → ℝ) (x y : V) :
0 ≤ finiteEnvelope S a E x y

Zero padding makes every common envelope nonnegative.

@[simp]
theorem Cslib.finiteEnvelope_empty {I : Type u_1} {V : Type u_2} (a : I → ℝ) (E : I → V → V → ℝ) (x y : V) :
finiteEnvelope ∅ a E x y = 0

No prefixes means zero, including at the zero horizon.

theorem Cslib.le_finiteEnvelope_mul {I : Type u_1} {V : Type u_2} (S : Finset I) (a : I → ℝ) (E : I → V → V → ℝ) {i : I} (hi : i ∈ S) (ha : 0 < a i) (x y : V) :
|E i x y| ≤ finiteEnvelope S a E x y * a i

Each actual prefix is below the common envelope times its positive scale.

theorem Cslib.finiteEnvelope_pow_four_le {I : Type u_1} {V : Type u_2} (S : Finset I) (a : I → ℝ) (E : I → V → V → ℝ) (x y : V) :
|finiteEnvelope S a E x y| ^ 4 ≤ ∑ i ∈ S, |E i x y / a i| ^ 4

Max fourth power is at most the sum of scaled actual prefix powers.

theorem Cslib.rowNormPow_finiteEnvelope_le {I : Type u_1} {Ω : Type u_2} {V : Type u_3} [Fintype Ω] [Fintype V] (S : Finset I) (a : I → ℝ) (E : I → V → V → ℝ) (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] {N u : ℝ} (hNu : 0 ≤ N * u) :
(rowNormPow 4 N u X Y fun (x : Ω) => finiteEnvelope S a E) ≤ ∑ i ∈ S, rowNormPow 4 N u X Y fun (x : Ω) (x_1 y : V) => E i x_1 y / a i

Integrating a finite common envelope preserves every prefix's actual mask density.

theorem Cslib.rowNormPow_finiteEnvelope_le_card_mul {I : Type u_1} {Ω : Type u_2} {V : Type u_3} [Fintype Ω] [Fintype V] (S : Finset I) (a : I → ℝ) (E : I → V → V → ℝ) (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] {N u budget : ℝ} (hNu : 0 ≤ N * u) (ha : ∀ i ∈ S, 1 ≤ a i) (hE : ∀ i ∈ S, (rowNormPow 4 N u X Y fun (x : Ω) => E i) ≤ budget) :
(rowNormPow 4 N u X Y fun (x : Ω) => finiteEnvelope S a E) ≤ ↑S.card * budget

A finite uniform allocation suffices when every divisor is at least one. The explicit factor is the number of prefixes; no horizon-independent growth is claimed.