Documentation

CslibFrontier.Foundations.Combinatorics.Design.OrthogonalSignDesign

Sign-Orthogonal Matrices and Designs from Finite Affine Planes #

This module develops sign-orthogonal {0, 1, -1} matrices (IsSignOrthogonalMatrix), their row-normalized unitaries (normalizedRowMatrix), and two explicit geometric constructions of pairwise orthogonal {0, 1, -1}-vectors whose supports form combinatorial (ℓ, p)-designs:

  1. Paired-lines construction: over any finite field F equipped with an equipartition Equipartition F (|F| = q even, in particular GaloisField 2 n), the q ^ 2 / 2 vectors pairedLinesVec supported on parallel line pairs in F × F are pairwise orthogonal and their supports form a (2q, 4)-design (isDesign_pairedLinesSupport).
  2. Punctured-plane all-rows construction: over any finite field F of odd cardinality q with a half-set Q ⊆ Fˣ (Q ∩ (-Q) = ∅, Q ∪ (-Q) = Fˣ), the q ^ 2 - 1 vectors allRowsVec on (F × F) \ {(0, 0)} are pairwise orthogonal, their supports form a (q, 2)-design (isDesign_allRowsSupport), and their row-normalized matrix forms a full (q ^ 2 - 1) × (q ^ 2 - 1) unitary (allRowsUnitary).

Main definitions #

Main results #

def Cslib.rowSupport {ι : Type u_1} [Fintype ι] (A : Matrix ι ι ℤ) (i : ι) :

Support S(A, i) = {j | A_{i,j} ≠ 0} of row i of a matrix A.

theorem Cslib.mem_rowSupport {ι : Type u_1} [Fintype ι] (A : Matrix ι ι ℤ) (i j : ι) :
j ∈ rowSupport A i ↔ A i j ≠ 0
structure Cslib.IsSignOrthogonalMatrix {ι : Type u_1} [Fintype ι] (A : Matrix ι ι ℤ) :

An N × N matrix A with entries in {0, 1, -1} whose rows are nonzero and pairwise orthogonal.

  • entries (i j : ι) : A i j = 0 ∨ A i j = 1 ∨ A i j = -1

    Every entry lies in {0, 1, -1}.

  • row_nonempty (i : ι) : (rowSupport A i).Nonempty

    Every row has nonempty support (needed to scale by 1 / √|S(A, i)|).

  • rows_orthogonal (i j : ι) : i ≠ j → ∑ k : ι, A i k * A j k = 0

    Distinct rows are pairwise orthogonal.

noncomputable def Cslib.normalizedRowMatrix {ι : Type u_1} [Fintype ι] [DecidableEq ι] (A : Matrix ι ι ℤ) (hA : IsSignOrthogonalMatrix A) :

Row-normalized matrix Ā obtained by scaling row i of A by 1 / √|S(A, i)|, shown to be unitary.

theorem Cslib.normalizedRowMatrix_apply {ι : Type u_1} [Fintype ι] [DecidableEq ι] (A : Matrix ι ι ℤ) (hA : IsSignOrthogonalMatrix A) (i j : ι) :
↑(normalizedRowMatrix A hA) i j = ↑↑(A i j) / ↑√↑(rowSupport A i).card

The Paired-Lines Construction #

structure Cslib.Equipartition (F : Type u_1) [Fintype F] [DecidableEq F] :
Type u_1

An equipartition (B₁, B₂) of a finite type F together with a bijection φ : B₁ ≃ B₂.

theorem Cslib.Equipartition.ne_bij {F : Type u_1} [Fintype F] [DecidableEq F] (P : Equipartition F) (b : ↥P.first) :
↑b ≠ ↑(P.bij b)
noncomputable def Cslib.equipartitionOfEven {α : Type u_1} [Fintype α] [DecidableEq α] (h : Even (Fintype.card α)) :

Every finite type of even cardinality admits an equipartition.

def Cslib.pairedLinesVec {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (P : Equipartition F) (a : F) (b : ↥P.first) (p : F × F) :

The paired-lines vector v_{a, b} on 𝔽_q × 𝔽_q: -1 on the line y = ax + b, +1 on the line y = ax + φ(b), and 0 elsewhere.

theorem Cslib.pairedLinesVec_entries {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (P : Equipartition F) (a : F) (b : ↥P.first) (p : F × F) :
pairedLinesVec P a b p = 0 ∨ pairedLinesVec P a b p = 1 ∨ pairedLinesVec P a b p = -1
def Cslib.pairedLinesSupport {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (P : Equipartition F) (a : F) (b : ↥P.first) :
Finset (F × F)

Support of v_{a, b} in 𝔽_q × 𝔽_q.

theorem Cslib.mem_pairedLinesSupport {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (P : Equipartition F) (a : F) (b : ↥P.first) (p : F × F) :
p ∈ pairedLinesSupport P a b ↔ p.2 = a * p.1 + ↑b ∨ p.2 = a * p.1 + ↑(P.bij b)
theorem Cslib.card_pairedLinesSupport {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (P : Equipartition F) (a : F) (b : ↥P.first) :
theorem Cslib.card_pairedLinesSupport_inter_le {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (P : Equipartition F) {a a' : F} {b b' : ↥P.first} (hne : (a, b) ≠ (a', b')) :

Paired-lines intersection bound: distinct paired-lines vectors share either 0 (same slope) or 4 (distinct slopes) support elements, and in particular at most 4.

theorem Cslib.pairedLinesVec_orthogonal {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (P : Equipartition F) {a a' : F} {b b' : ↥P.first} (hne : (a, b) ≠ (a', b')) :
∑ p : F × F, pairedLinesVec P a b p * pairedLinesVec P a' b' p = 0

Paired-lines orthogonality: distinct paired-lines vectors are pairwise orthogonal over ℤ.

theorem Cslib.isDesign_pairedLinesSupport {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (P : Equipartition F) :
IsDesign (fun (i : F × ↥P.first) => pairedLinesSupport P i.1 i.2) (2 * Fintype.card F) 4

The paired-lines supports form a foundational (2q, 4)-design (Cslib.IsDesign).

theorem Cslib.exists_pairedLines_design_gf2 (n : ℕ) (hn : 0 < n) :
have q := 2 ^ n; ∃ (x : Fintype (GaloisField 2 n)) (x_1 : DecidableEq (GaloisField 2 n)) (P : Equipartition (GaloisField 2 n)), Fintype.card (GaloisField 2 n) = q ∧ Fintype.card (GaloisField 2 n) * P.first.card = q ^ 2 / 2 ∧ (∀ (a a' : GaloisField 2 n) (b b' : ↥P.first), (a, b) ≠ (a', b') → ∑ p : GaloisField 2 n × GaloisField 2 n, pairedLinesVec P a b p * pairedLinesVec P a' b' p = 0) ∧ IsDesign (fun (i : GaloisField 2 n × ↥P.first) => pairedLinesSupport P i.1 i.2) (2 * q) 4

Concrete instantiation for 𝔽_q = GaloisField 2 n (q = 2^n, n > 0): there exists a (2q, 4)-design with q^2 / 2 blocks in a universe of size q^2 arising from pairwise orthogonal {0, 1, -1}-vectors.

A Unitary in Which All Rows Participate #

structure Cslib.OddFieldHalfSet (F : Type u_2) [Field F] [Fintype F] [DecidableEq F] :
Type u_2

A half-set Q ⊆ 𝔽_q^* satisfying Q ∩ (-Q) = ∅ and Q ∪ (-Q) = 𝔽_q^*.

  • set : Finset F

    The subset Q ⊆ 𝔽_q^*.

  • zero_notMem : 0 ∉ self.set

    0 ∉ Q.

  • disjoint_neg (x : F) : x ∈ self.set → -x ∉ self.set

    Q ∩ (-Q) = ∅.

  • mem_or_neg_mem (x : F) : x ≠ 0 → x ∈ self.set ∨ -x ∈ self.set

    Every nonzero element lies in Q or -Q.

theorem Cslib.OddFieldHalfSet.ne_zero_of_mem {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) {x : F} (hx : x ∈ Q.set) :
x ≠ 0
theorem Cslib.OddFieldHalfSet.two_ne_zero {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) (hnonempty : Q.set.Nonempty) :
2 ≠ 0
theorem Cslib.odd_card_two_ne_zero {F : Type u_1} [Field F] [Fintype F] (hodd : Odd (Fintype.card F)) :
2 ≠ 0
noncomputable def Cslib.oddFieldHalfSetOfOdd {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (hodd : Odd (Fintype.card F)) :

Every finite field of odd cardinality admits a half-set Q ⊆ 𝔽_q^*.

@[reducible, inline]
abbrev Cslib.PuncturedPlane (F : Type u_2) [Zero F] :
Type u_2

The punctured affine plane P = (𝔽_q × 𝔽_q) \ {(0, 0)}.

inductive Cslib.AllRowsIndex (F : Type u_2) [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) :
Type u_2

Row index set for the q^2 - 1 vectors of the punctured-plane construction: q(q-1)/2 Type-1 vectors, q(q-1)/2 Type-2 vectors, and q-1 Type-3 vectors.

def Cslib.allRowsIndexEquivSum {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) :
AllRowsIndex F Q ≃ F × ↥Q.set ⊕ F × ↥Q.set ⊕ { x : F // x ≠ 0 }

Equivalence expressing AllRowsIndex F Q as a disjoint sum of finite types.

@[instance_reducible]

Decidable equality on AllRowsIndex F Q, transported along allRowsIndexEquivSum.

@[instance_reducible]
noncomputable def Cslib.instFintypeAllRowsIndex {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) :

Fintype instance on AllRowsIndex F Q, transported along allRowsIndexEquivSum.

The q^2 - 1 vectors of the punctured-plane construction, indexed by AllRowsIndex F Q on PuncturedPlane F.

theorem Cslib.allRowsVec_entries {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) (i : AllRowsIndex F Q) (p : PuncturedPlane F) :
allRowsVec Q i p = 0 ∨ allRowsVec Q i p = 1 ∨ allRowsVec Q i p = -1

Support of row i in PuncturedPlane F.

Every row in the punctured-plane construction has support cardinality q = |𝔽_q|.

theorem Cslib.allRowsVec_inter_and_orthogonal {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) (hodd : Odd (Fintype.card F)) {i j : AllRowsIndex F Q} (hij : i ≠ j) :
(allRowsSupport Q i ∩ allRowsSupport Q j).card ≤ 2 ∧ ∑ p : PuncturedPlane F, allRowsVec Q i p * allRowsVec Q j p = 0

the q^2 - 1 vectors on the punctured plane (2), (3), and (4) are pairwise orthogonal and their supports have pairwise intersections of cardinality at most 2.

theorem Cslib.allRowsVec_orthogonal {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) (hodd : Odd (Fintype.card F)) {i j : AllRowsIndex F Q} (hij : i ≠ j) :
∑ p : PuncturedPlane F, allRowsVec Q i p * allRowsVec Q j p = 0

orthogonality corollary.

The punctured-plane supports form a foundational (q, 2)-design (Cslib.IsDesign).

noncomputable def Cslib.allRowsMatrix {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) :
Matrix (Fin (Fintype.card F ^ 2 - 1)) (Fin (Fintype.card F ^ 2 - 1)) ℤ

The square (q^2 - 1) × (q^2 - 1) sign-orthogonal matrix from the punctured-plane construction in which all rows participate.

allRowsMatrix Q is a sign-orthogonal matrix (and hence normalizedRowMatrix gives a (q^2 - 1) × (q^2 - 1) unitary matrix whose every row has support size q and pairwise intersection at most 2).

noncomputable def Cslib.allRowsUnitary {F : Type u_1} [Field F] [Fintype F] [DecidableEq F] (Q : OddFieldHalfSet F) (hodd : Odd (Fintype.card F)) :

The (q^2 - 1) × (q^2 - 1) unitary matrix of the punctured-plane construction in which all rows participate.