Documentation

CslibFrontier.Probability.PairwiseIndependentHash.SliceGap

The spectral gap of the affine walk on slice coordinates #

On the slice coordinates (F, w) ∈ Frame P H 1 × ZMod L ^ H of a retention slice (Cslib.Probability.sliceEquiv), the affine moves (affineMove) are the moves coordMove of the elementary matrices 1 + E_ab of SL_H(ℤ), a ≠ b, and of the unit translations e_i:

(F, w) ↦ ((1 + E_ab) F, (1 + E_ab) w), (F, w) ↦ (F, w + e_i).

For a prime P and H ≥ 3, the lazy walk on these H ^ 2 moves and their inverses has spectral expansion at most 1 - 1 / (155648 H ^ 4), uniformly in P and L (spectralExpansion_lazy_ofPerms_affineMove_le). This is the gap hypothesis of conditional averaging (expect_walk_pow_sliceGraph_sub_expect_sq_le) for frames of length one, which is thereby discharged (expect_walk_pow_sliceGraph_affineMove_sub_expect_sq_le).

The proof is a Poincaré inequality (expect_sq_le_affineMove) assembled from two parts. Write g F = 𝔼 w, f (F, w), so that 𝔼 f² = 𝔼 g² + 𝔼 (f - g)² for f of mean zero.

The second eigenvalue then follows from secondEigenvalue_ofPerms_le, and the lazy walk halves the gap.

This is the uniform gap of Lemma 6.1 of the OpenAI preprint on derandomizing logarithmic space [OAI26e], for its action on the coordinates (F, w) of the proof of its Lemma 6.2, in the case of frames of length one (h₀ = 2). The preprint derives the gap from Shalom's property (T) of SL_H(ℤ) ⋉ ℤ^H and its transitive action. The elementary route, from the uniform two-dimensional gap through the coordinate pairs to the frames, follows OpenAI's Lean development, the file AffineSampling.lean at revision 7ef5c0cc (ExactDerandomization.Analysis.Square.square_gap, slice_frame, frame_gap, slice_gap). The statements and the proofs here are independent of that code, which was not consulted.

Main definitions #

Main results #

References #

@[simp]
theorem Cslib.Probability.Frame.mapSL_one {P H r : ℕ} (F : Frame P H r) :
(mapSL 1) F = F

The integer matrix 1 acts trivially on frames.

Frames of length one #

def Cslib.Probability.Frame.equivNeZero {P H : ℕ} [Fact (Nat.Prime P)] :
Frame P H 1 ≃ { v : Fin H → ZMod P // v ≠ 0 }

A frame of length one is a nonzero vector.

@[simp]
theorem Cslib.Probability.Frame.equivNeZero_apply {P H : ℕ} [Fact (Nat.Prime P)] (F : Frame P H 1) :
↑(equivNeZero F) = ↑F 0

There are P ^ H - 1 frames of length one.

The elementary matrix 1 + E_ab acts on a frame of length one by the elementary move F ↦ F + F b • e a.

theorem Cslib.Probability.Frame.sum_one_eq {P H : ℕ} [Fact (Nat.Prime P)] {M : Type u_1} [AddCommMonoid M] (Φ : (Fin H → ZMod P) → M) :
∑ F : Frame P H 1, Φ (↑F 0) = ∑ v : Fin H → ZMod P, if v = 0 then 0 else Φ v

A sum over the frames of length one is a sum over the nonzero vectors.

theorem Cslib.Probability.exists_expect_sq_sub_le_mapSL_transvection {P H : ℕ} [Fact (Nat.Prime P)] (hH : 3 ≤ H) (g : Frame P H 1 → ℝ) :
∃ (m : ℝ), (Finset.univ.expect fun (F : Frame P H 1) => (g F - m) ^ 2) ≤ 36864 * ↑H ^ 2 * ∑ p : { p : Fin H × Fin H // p.1 ≠ p.2 }, Finset.univ.expect fun (F : Frame P H 1) => (g ((Frame.mapSL (Matrix.SpecialLinearGroup.transvection ⋯ 1)) F) - g F) ^ 2

The Poincaré inequality for the elementary matrices on frames of length one, for a prime P and H ≥ 3, uniformly in P: every real function g on the frames has, about some constant, a second moment at most 36864 H² times its total squared change along the elementary matrices 1 + E_ab, a ≠ b.

The affine moves #

The generators of the affine walk: the elementary matrices 1 + E_ab for a ≠ b, and the unit translations by e_i.

def Cslib.Probability.affineMove (P H L r : ℕ) (k : { p : Fin H × Fin H // p.1 ≠ p.2 } ⊕ Fin H) :
Equiv.Perm (Frame P H r × (Fin H → ZMod L))

The affine moves on slice coordinates (F, w): the moves coordMove of the generators, (F, w) ↦ ((1 + E_ab) F, (1 + E_ab) w) and (F, w) ↦ (F, w + e_i).

@[simp]
theorem Cslib.Probability.affineMove_inl {P H L r : ℕ} (p : { p : Fin H × Fin H // p.1 ≠ p.2 }) (q : Frame P H r × (Fin H → ZMod L)) :
(affineMove P H L r (Sum.inl p)) q = ((Frame.mapSL (Matrix.SpecialLinearGroup.transvection ⋯ 1)) q.1, Function.update q.2 (↑p).1 (q.2 (↑p).1 + q.2 (↑p).2))
@[simp]
theorem Cslib.Probability.affineMove_inr {P H L r : ℕ} (i : Fin H) (q : Frame P H r × (Fin H → ZMod L)) :
(affineMove P H L r (Sum.inr i)) q = (q.1, Function.update q.2 i (q.2 i + 1))

There are H ^ 2 generators: H (H - 1) elementary matrices and H translations.

theorem Cslib.Probability.expect_sq_le_affineMove {P H L : ℕ} [Fact (Nat.Prime P)] [NeZero L] (hH : 3 ≤ H) (f : Frame P H 1 × (Fin H → ZMod L) → ℝ) (hf : (Finset.univ.expect fun (p : Frame P H 1 × (Fin H → ZMod L)) => f p) = 0) :
(Finset.univ.expect fun (p : Frame P H 1 × (Fin H → ZMod L)) => f p ^ 2) ≤ 38912 * ↑H ^ 2 * ∑ k : { p : Fin H × Fin H // p.1 ≠ p.2 } ⊕ Fin H, Finset.univ.expect fun (p : Frame P H 1 × (Fin H → ZMod L)) => (f ((affineMove P H L 1 k) p) - f p) ^ 2

The Poincaré inequality for the affine walk on slice coordinates Frame P H 1 × ZMod L ^ H, for a prime P and H ≥ 3, uniformly in P and L: every real function f of mean zero has second moment at most 38912 H² times its total squared change along the affine moves.

The second eigenvalue of the affine walk on slice coordinates Frame P H 1 × ZMod L ^ H is at most 1 - 1 / (77824 H ^ 4), for a prime P and H ≥ 3, uniformly in P and L.

The spectral gap of the lazy affine walk on slice coordinates Frame P H 1 × ZMod L ^ H: its spectral expansion is at most 1 - 1 / (155648 H ^ 4), for a prime P and H ≥ 3, uniformly in P and L.

theorem Cslib.Probability.expect_walk_pow_sliceGraph_affineMove_sub_expect_sq_le {P H L : ℕ} [Fact (Nat.Prime P)] [NeZero L] (hH : 3 ≤ H) (hL : L ≤ P) (y : ZMod P) (f : RetentionSlice P H 1 L y → ℝ) (t : ℕ) :
(Finset.univ.expect fun (A : RetentionSlice P H 1 L y) => (((sliceGraph L hL y (RotationMap.ofPerms (affineMove P H L 1)).lazy).walk ^ t) f A - Finset.univ.expect fun (B : RetentionSlice P H 1 L y) => f B) ^ 2) ≤ (1 - 1 / (155648 * ↑H ^ 4)) ^ (2 * t) * Finset.univ.expect fun (A : RetentionSlice P H 1 L y) => (f A - Finset.univ.expect fun (B : RetentionSlice P H 1 L y) => f B) ^ 2

Conditional averaging with the affine walk: on the retention slice of every identifier y, t steps of the lazy affine walk contract the conditional variance by (1 - 1 / (155648 H ^ 4)) ^ (2 t), for a prime P, H ≥ 3 and 1 ≤ L ≤ P, uniformly in P, L and y. This discharges the gap hypothesis of expect_walk_pow_sliceGraph_sub_expect_sq_le for frames of length one.