Documentation

CslibFrontier.Foundations.Combinatorics.BrownMatrix

Brown's explicit 3-rectangle-free unit-sphere matrix #

For an odd prime p ≡ 3 (mod 4), -1 is a quadratic non-residue modulo p. W. G. Brown ([Bro66], §2, pp. 282–283, equation (2.1) and Lemma (2.3)) constructed an explicit K_{3,3}-free graph on EG(3, p) = (ℤ/pℤ)^3 by joining points at squared Euclidean distance α for any nonzero quadratic residue α ∈ (ℤ/pℤ)^×. Taking the allowed radius parameter α = 1 and viewing the adjacency relation as an m × m Boolean matrix brownMatrix p (m = p ^ 3), every row has exact weight p ^ 2 - p = p (p - 1) and the whole matrix has exact weight p ^ 5 - p ^ 4 = p ^ 4 (p - 1) = Θ(m ^ {5/3}) (twice Brown's undirected edge count (p ^ 5 - p ^ 4) / 2), matching the Kővári–Sós–Turán O(m ^ {5/3}) upper bound up to a constant factor and supplying the dense 3-free base matrix in Sergeev's OR-complexity separation ([Ser14], Theorem 1(ii), p. 3).

Main definitions #

Main results #

References #

def Cslib.brownMatrix (p : ℕ) :
Matrix (Fin 3 → ZMod p) (Fin 3 → ZMod p) Bool

Brown's unit-sphere matrix over (ℤ/pℤ)^3 ([Bro66], §2, p. 282, equation (2.1) at α = 1; [Ser14], p. 3): entry (x, y) is true iff (x 0 - y 0) ^ 2 + (x 1 - y 1) ^ 2 + (x 2 - y 2) ^ 2 = 1 in ZMod p.

@[simp]
theorem Cslib.brownMatrix_apply (p : ℕ) (x y : Fin 3 → ZMod p) :
brownMatrix p x y = decide ((x 0 - y 0) ^ 2 + (x 1 - y 1) ^ 2 + (x 2 - y 2) ^ 2 = 1)

Entry characterization of brownMatrix.

theorem Cslib.card_row_brownMatrix {p : ℕ} [Fact (Nat.Prime p)] (hp : p % 4 = 3) (x : Fin 3 → ZMod p) :
{y : Fin 3 → ZMod p | brownMatrix p x y = true}.card = p * (p - 1)

Every row of brownMatrix p (p prime, p ≡ 3 (mod 4)) has exact weight p * (p - 1) ([Bro66], §2, p. 282).

theorem Cslib.boolMatrixWeight_brownMatrix {p : ℕ} [Fact (Nat.Prime p)] (hp : p % 4 = 3) :

For prime p ≡ 3 (mod 4), brownMatrix p has exact weight p ^ 4 * (p - 1) (twice the undirected edge count (p ^ 5 - p ^ 4) / 2 of [Bro66], §2, p. 282; [Ser14], p. 3).

Brown's theorem ([Bro66], §2, pp. 282–283, equation (2.1) and Lemma (2.3); [Ser14], p. 3): for prime p ≡ 3 (mod 4), brownMatrix p is 3-rectangle-free (K_{3,3}-free).