Documentation

CslibFrontier.Foundations.LinearAlgebra.Matrix.UniformGram

Families with a uniform Gram matrix #

Vectors v i ∈ K^κ whose Gram matrix (v i ⬝ᵥ v j) is (d - c) I + c J, with d on the diagonal and c off it, are linearly independent when d ≠ c and d - c + m c ≠ 0, where m is the number of vectors: these are the two eigenvalues of (d - c) I + c J. So there are at most |κ| such vectors. This is the linear algebra bound behind the oddtown theorem and Fisher's inequality (CslibFrontier.Foundations.Combinatorics.SetFamily.Oddtown). The proof is direct: dotting a vanishing combination ∑ g i • v i with v j gives c ∑ g + (d - c) g j = 0 for every j, and summing over j forces ∑ g = 0.

Main results #

theorem linearIndependent_of_dotProduct_eq_ite {K : Type u_1} {ι : Type u_2} {κ : Type u_3} [Field K] [Fintype ι] [Fintype κ] [DecidableEq ι] (v : ι → κ → K) (d c : K) (hv : ∀ (i j : ι), v i ⬝ᵥ v j = if i = j then d else c) (hdc : d ≠ c) (hm : d - c + ↑(Fintype.card ι) * c ≠ 0) :

Vectors whose Gram matrix is (d - c) I + c J are linearly independent when d ≠ c and d - c + |ι| c ≠ 0.

theorem Fintype.card_le_of_dotProduct_eq_ite {K : Type u_1} {ι : Type u_2} {κ : Type u_3} [Field K] [Fintype ι] [Fintype κ] [DecidableEq ι] (v : ι → κ → K) (d c : K) (hv : ∀ (i j : ι), v i ⬝ᵥ v j = if i = j then d else c) (hdc : d ≠ c) (hm : d - c + ↑(card ι) * c ≠ 0) :
card ι ≤ card κ

The rank bound: a family of vectors in K^κ with Gram matrix (d - c) I + c J, d ≠ c and d - c + |ι| c ≠ 0, has at most |κ| members.