Documentation

CslibFrontier.Probability.BilinearFingerprint

Bilinear fingerprints over finite fields #

For independent uniform vectors, a nonzero rectangular matrix has nonzero bilinear fingerprint with probability at least (1 - 1 / |F|)^2. This is Exercise 9.22 of [Gol07d], printed page 452 (PDF page 70). The source states the prime-field case. We allow every finite field and arbitrary finite row and column types. No running-time or matrix-rank formula is asserted.

Main results #

References #

theorem Cslib.Probability.toOuterMeasure_bilinear_ne_zero_eq {m n F : Type} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n] [Field F] [Fintype F] (M : Matrix m n F) :
(PMF.uniformOfFintype ((n → F) × (m → F))).toOuterMeasure {p : (n → F) × (m → F) | ∑ i : m, p.2 i * M.mulVec p.1 i ≠ 0} = (1 - (↑(Fintype.card F))⁻¹) * (PMF.uniformOfFintype (n → F)).toOuterMeasure {s : n → F | M.mulVec s ≠ 0}

Exact success probability, with independent uniform sampling represented by the uniform law on the product of the column-vector and row-vector spaces.

theorem Cslib.Probability.toOuterMeasure_bilinear_ne_zero_ge {m n F : Type} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n] [Field F] [Fintype F] {M : Matrix m n F} (hM : M ≠ 0) :
(1 - (↑(Fintype.card F))⁻¹) ^ 2 ≤ (PMF.uniformOfFintype ((n → F) × (m → F))).toOuterMeasure {p : (n → F) × (m → F) | ∑ i : m, p.2 i * M.mulVec p.1 i ≠ 0}

A nonzero rectangular matrix is detected by two independent uniform vectors with probability at least (1 - 1 / |F|)^2.

theorem Cslib.Probability.toOuterMeasure_bilinear_zmod_ne_zero_ge {m n : Type} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n] (p : ℕ) [Fact (Nat.Prime p)] {M : Matrix m n (ZMod p)} (hM : M ≠ 0) :
(1 - (↑p)⁻¹) ^ 2 ≤ (PMF.uniformOfFintype ((n → ZMod p) × (m → ZMod p))).toOuterMeasure {rs : (n → ZMod p) × (m → ZMod p) | ∑ i : m, rs.2 i * M.mulVec rs.1 i ≠ 0}

The prime-field specialization stated in Goldreich's Exercise 9.22.

theorem Cslib.Probability.toOuterMeasure_bilinear_vecMulVec {m n F : Type} [Fintype m] [Fintype n] [DecidableEq m] [DecidableEq n] [Field F] [Fintype F] {u : m → F} {v : n → F} (hu : u ≠ 0) (hv : v ≠ 0) :
(PMF.uniformOfFintype ((n → F) × (m → F))).toOuterMeasure {p : (n → F) × (m → F) | ∑ i : m, p.2 i * (Matrix.vecMulVec u v).mulVec p.1 i ≠ 0} = (1 - (↑(Fintype.card F))⁻¹) ^ 2

The lower bound is sharp for every outer product of two nonzero vectors, including in characteristic two. This is a rank-one presentation, without a rank API hypothesis.