Documentation

CslibFrontier.Computability.LogSpaceDerandomization.PairwiseIndependentHash.HeavyCount

Heavy-count rarity for affine retention channels #

The conditional heavy-count bound applies to the actual affine retention channels with nominal rate a ^ H and box side ⌈P * a⌉. Conditioning on a specified endpoint retained by any narrower box of side L_t preserves the off-diagonal pair bound 2 ^ H * a ^ H. Thus a nonnegative row of nominal mass at most M retains at least half of a positive capacity n above floor ρ / 4 on at most a 2 * (1 + 4 * 2 ^ H * M) / (n * ρ) fraction of these conditional draws.

The result concerns the true heavy-count event on the actual shared seed. It assumes neither independence among retained endpoints nor a rarity hypothesis. An empty conditioning slice is allowed. This supplies the affine-channel instance of [OpenAI2026LogSpace, Lemma 8.4].

Main results #

References #

theorem Cslib.Probability.card_heavyCountEvent_affineRetains_le {V : Type u_1} (S : Finset V) {P H : ℕ} [Fact (Nat.Prime P)] {ident : V → ZMod P} (hident : Function.Injective ident) {a : ℝ} (hPa : 1 ≤ ↑P * a) (ha : a ≤ 1) {Lt : ℕ} (hLt : Lt ≤ ⌈↑P * a⌉₊) {d : V → ℝ} {ρ M : ℝ} (hρ : 0 < ρ) (hρ1 : ρ ≤ 1) (hd : ∀ w ∈ S, 0 ≤ d w) (hmass : a ^ H * ∑ w ∈ S, d w ≤ M) {n : ℕ} (hn : 0 < n) (y : V) :
↑{s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P) | affineRetains P H Lt s (ident y) ∧ heavyCountEvent (fun (s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P)) (w : V) => affineRetains P H ⌈↑P * a⌉₊ s (ident w)) S d ρ n s}.card ≤ 2 * (1 + 4 * 2 ^ H * M) / (↑n * ρ) * ↑{s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P) | affineRetains P H Lt s (ident y)}.card

The true heavy count for the actual affine channel is rare even after conditioning on a hit at a narrower rate. Its nominal row-mass scale is a ^ H, not the box side a.

theorem Cslib.Probability.card_heavyCountEvent_affineRetains_div_card_le {V : Type u_1} (S : Finset V) {P H : ℕ} [Fact (Nat.Prime P)] {ident : V → ZMod P} (hident : Function.Injective ident) {a : ℝ} (hPa : 1 ≤ ↑P * a) (ha : a ≤ 1) {Lt : ℕ} (hLt : Lt ≤ ⌈↑P * a⌉₊) {d : V → ℝ} {ρ M : ℝ} (hρ : 0 < ρ) (hρ1 : ρ ≤ 1) (hd : ∀ w ∈ S, 0 ≤ d w) (hmass : a ^ H * ∑ w ∈ S, d w ≤ M) {n : ℕ} (hn : 0 < n) (y : V) :
↑{s ∈ {s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P) | affineRetains P H Lt s (ident y)} | heavyCountEvent (fun (s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P)) (w : V) => affineRetains P H ⌈↑P * a⌉₊ s (ident w)) S d ρ n s}.card / ↑{s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P) | affineRetains P H Lt s (ident y)}.card ≤ 2 * (1 + 4 * 2 ^ H * M) / (↑n * ρ)

The actual affine heavy-count frequency after a narrower endpoint hit. This is obtained from the count bound above, with zero frequency when the conditioning slice is empty.