Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HeavyCountRarity

Conditional rarity and deterministic mean errors #

A rare row event reduces the integrated contribution of a deterministic endpoint error by its conditional probability, even when endpoint retention events are dependent. The conditioning slice includes both the source and the endpoint. Empty slices and empty environments are allowed: the hypotheses use cardinalities instead of conditional division.

The error table b x y is independent of the environment. The row quantity may depend on which endpoints were retained, provided its power is bounded by the sum of endpoint error powers. This includes the retained-row supremum used in the compression argument. Arbitrary random noise cannot use the same rarity factor, since it may be concentrated on the rare event.

These are the integrated, exponent-parametric assertions in the proof of [OpenAI2026LogSpace, Lemma 8.4, Section 8.4], at revision 7ef5c0cc. They apply in particular to fourth moments. They do not assert the recursive estimator's induction or space bound.

Main results #

References #

theorem Cslib.rowNormPow_event_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {s : ℕ} {N u : ℝ} {X Y Θ : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [(σ : Ω) → (x : V) → Decidable (Θ σ x)] (hs : s ≠ 0) (hNu : 0 ≤ N * u) {q : ℝ} (hrare : ∀ (x y : V), ↑{σ : Ω | X σ x ∧ Y σ y ∧ Θ σ x}.card ≤ q * ↑{σ : Ω | X σ x ∧ Y σ y}.card) (b : V → V → ℝ) :
(rowNormPow s N u X Y fun (σ : Ω) (x y : V) => if Θ σ x then b x y else 0) ≤ q * rowNormPow s N u X Y fun (x : Ω) (x_1 y : V) => b x_1 y

Conditional rarity on each source/endpoint slice contracts the integrated power norm of a deterministic error table. The exponent is positive; zero powers do not preserve masking. No independence between the two masks or the row event is required.

theorem Cslib.vertexNormPow_event_le_rowNormPow {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {s : ℕ} {N u : ℝ} {X Y Θ : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [(σ : Ω) → (x : V) → Decidable (Θ σ x)] (hs : s ≠ 0) (hNu : 0 ≤ N * u) {q : ℝ} (hrare : ∀ (x y : V), ↑{σ : Ω | X σ x ∧ Y σ y ∧ Θ σ x}.card ≤ q * ↑{σ : Ω | X σ x ∧ Y σ y}.card) (b : V → V → ℝ) (v : Ω → V → ℝ) (hv : ∀ (σ : Ω) (x : V), X σ x → |v σ x| ^ s ≤ ∑ y : V with Y σ y, |b x y| ^ s) :
(vertexNormPow s N u X fun (σ : Ω) (x : V) => if Θ σ x then v σ x else 0) ≤ q * rowNormPow s N u X Y fun (x : Ω) (x_1 y : V) => b x_1 y

A retained-row supremum, or any row error dominated by the sum of deterministic endpoint error powers, gains the same conditional rarity factor. Dependence of the row quantity on the retained set is allowed; the endpoint magnitudes b x y are fixed.

theorem Cslib.vertexNormPow_kthLargest_event_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {s : ℕ} {N u : ℝ} {X Y Θ : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] [(σ : Ω) → (x : V) → Decidable (Θ σ x)] (hs : s ≠ 0) (hNu : 0 ≤ N * u) {q : ℝ} (hrare : ∀ (x y : V), ↑{σ : Ω | X σ x ∧ Y σ y ∧ Θ σ x}.card ≤ q * ↑{σ : Ω | X σ x ∧ Y σ y}.card) (b : V → V → ℝ) :
(vertexNormPow s N u X fun (σ : Ω) (x : V) => if Θ σ x then Finset.kthLargest 1 {y : V | Y σ y} fun (y : V) => |b x y| else 0) ≤ q * rowNormPow s N u X Y fun (x : Ω) (x_1 y : V) => b x_1 y

Conditional rarity controls the maximum deterministic error magnitude among retained endpoints, with zero as the maximum of an empty row.

theorem Cslib.vertexNormPow_heavyCountEvent_le {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {s : ℕ} {N u : ℝ} (hs : s ≠ 0) (hNu : 0 ≤ N * u) (X Y Yt : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Yt σ y)] {a ρ c M : ℝ} {n : ℕ} (ha : 0 ≤ a) (hρ : 0 < ρ) (hρ1 : ρ ≤ 1) (hc : 0 ≤ c) (hn : 0 < n) (d : V → V → ℝ) (hd : ∀ (x y : V), 0 ≤ d x y) (hmass : ∀ (x : V), a * ∑ y : V, d x y ≤ M) (hpair : ∀ (x y w : V), ρ / 4 < d x w → w ≠ y → ↑{σ : Ω | X σ x ∧ Yt σ y ∧ Y σ w}.card ≤ c * a * ↑{σ : Ω | X σ x ∧ Yt σ y}.card) (b : V → V → ℝ) :
(vertexNormPow s N u X fun (σ : Ω) (x : V) => if Probability.heavyCountEvent Y Finset.univ (d x) ρ n σ then Finset.kthLargest 1 {y : V | Yt σ y} fun (y : V) => |b x y| else 0) ≤ 2 * (1 + 4 * c * M) / (↑n * ρ) * rowNormPow s N u X Yt fun (x : Ω) (x_1 y : V) => b x_1 y

The heavy-count rarity gain for a retained-row mean error. The pair bound is stated on the actual source/usage-endpoint slice. The rank channel Y may have a wider rate than Yt; only the explicit conditional bound is used. This is the mean-error portion of [OpenAI2026LogSpace, Lemma 8.4], with an explicit constant and arbitrary positive exponent.