Documentation

CslibFrontier.Computability.LogSpaceDerandomization.PairwiseIndependentHash.AtomChannels

Dense atoms over affine channels at two rates #

A dense atom (Matrix.denseAtom) ranks its row over a channel at the atom's scale f and is masked by a usage channel at a lower rate t ≤ f [OpenAI2026LogSpace, (5.11)]. For the affine retention channels over 𝔽_P both are one seed with two boxes: the usage channel has a smaller side L_t ≤ ⌈P a⌉. So it retains a subset (Cslib.Probability.affineRetains_of_le). Given that the usage channel retains y, another identifier w is retained at rate f = a ^ H with probability at most 2 ^ H f, by pairwise independence at two rates (Cslib.Probability.card_affineRetains_and_affineRetains_le). This is the cross-rate pair bound of [OpenAI2026LogSpace, Lemma 3.1] used in the proof of Lemma 5.1. With it, the dense atom identity holds for these channels at two rates (Cslib.Probability.expect_denseAtom_affineRetains).

Main results #

References #

theorem Cslib.Probability.card_filter_and_le_of_dens_le {Ω : Type u_2} [Fintype Ω] {A B : Ω → Prop} [DecidablePred A] [DecidablePred B] {q : ℝ} (h : ↑{t : Ω | B t ∧ A t}.dens ≤ q * ↑{t : Ω | A t}.dens) :
↑{t : Ω | A t ∧ B t}.card ≤ q * ↑{t : Ω | A t}.card

A conditional probability bound as a count: if Pr[B ∧ A] ≤ q Pr[A] for uniform seeds, then among the seeds satisfying A, at most a q fraction also satisfy B.

theorem Cslib.Probability.card_affineRetains_and_affineRetains_le {V : Type u_1} {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) {w y : V} (hwy : w ≠ y) :
↑{s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P) | affineRetains P H Lt s (ident y) ∧ affineRetains P H ⌈↑P * a⌉₊ s (ident w)}.card ≤ 2 ^ H * a ^ H * ↑{s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P) | affineRetains P H Lt s (ident y)}.card

The cross-rate pair bound for affine channels. Let ident : V → ZMod P be injective, 1 ≤ P a, a ≤ 1, and L_t ≤ P. Among the seeds whose box of side L_t retains y, those whose box of side ⌈P a⌉ also retains w ≠ y form at most a 2 ^ H a ^ H fraction.

theorem Cslib.Probability.expect_denseAtom_affineRetains {V : Type u_1} {P H : ℕ} [Fact (Nat.Prime P)] [Fintype V] {ident : V → ZMod P} (hident : Function.Injective ident) {a : ℝ} (hPa : 1 ≤ ↑P * a) (ha : a ≤ 1) {Lt : ℕ} (hLt0 : 0 < Lt) (hLt : Lt ≤ ⌈↑P * a⌉₊) {k h ρ : ℝ → ℝ} {K : ℕ} {G : Matrix V V ℝ} {x y : V} (hkh : ∀ (d : ℝ), k d ≠ 0 → h d = 1) (hρ0 : ∀ (r : ℝ), 0 ≤ ρ r) (hρ1 : ∀ (r : ℝ), ρ r ≤ 1) {η : ℝ} (hη : 0 < η) (hρη : ∀ r ≤ η, ρ r = 1) (hG0 : ∀ (w : V), 0 ≤ G x w) {M : ℝ} (hGM : ∑ w : V, G x w ≤ M) (hK : 2 * (1 + 2 ^ H * M / η) ≤ ↑K) :
({s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P) | affineRetains P H Lt s (ident y)}.expect fun (s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P)) => Matrix.denseAtom (fun (s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P)) (v : V) => affineRetains P H ⌈↑P * a⌉₊ s (ident v)) (fun (s : Matrix (Fin H) (Fin 1) (ZMod P) × (Fin H → ZMod P)) (v : V) => affineRetains P H Lt s (ident v)) k h ρ K (a ^ H) G s x y) = k (G x y / a ^ H)

The dense atom identity for affine channels at two rates [OpenAI2026LogSpace, Lemma 5.1]. The rank channel retains with side ⌈P a⌉ (rate f = a ^ H), the usage channel with a side 0 < L_t ≤ ⌈P a⌉. For every nonnegative row of mass at most M, the conditional mean of the dense atom given the usage channel is k (G x y / f), once K ≥ 2 (1 + 2 ^ H M / η).