Title:Weighing matrices and the Geramita–Seberry conjecture
Statement:Weighing matrix conjecture (Wallis 1972; Geramita–Seberry [GS79]): for every positive integer and every weight , there exists a weighing matrix of order and weight .
At , this specializes to Hadamard's conjecture.
| Subjects: | Combinatorics (math.CO); Rings and Algebras (math.RA) |
| MSC classes: | 05, 15 |
| Cite as: | NS.08628 [math.CO] · NS.08628v1 for this version |
| Declaration: | WeighingMatrix.weighing_matrix_conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | c76532464e84a981af4ee3d008997c9c349ed44de2aa3335b12f2236d515287a |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/Wikipedia/WeighingMatrix.lean |
Formal statement
theorem weighing_matrix_conjecture (m w : ℕ) (hm : 1 ≤ m) (hw : w ≤ 4 * m) :
∃ W, IsWeighingMatrix (n := 4 * m) w WShow the full Challenge.lean (112 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Weighing matrices and the Geramita–Seberry conjecture
A *weighing matrix* $W(n, w)$ of order $n$ and weight $w$ is an $n \times n$ matrix with entries in
$\{-1, 0, 1\}$ satisfying $W W^{\mathsf{T}} = w I_n$. At $w = n$, this recovers Hadamard matrices.
*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Weighing_matrix)
- [Ea76] Eades, P. (1976). *Some asymptotic existence results for orthogonal designs*, Ars Combin.
1, 109--118.
- [GS79] Geramita, A. V. and Seberry, J. (1979). *Orthogonal Designs: Quadratic Forms and Hadamard
Matrices*, Lecture Notes in Pure and Applied Mathematics 45, Marcel Dekker, New York.
-/
@[expose] public section
namespace WeighingMatrix
/-- `W` is a **weighing matrix** $W(n, w)$ of order $n$ and weight $w$ if its entries lie in
$\{-1, 0, 1\}$ and $W W^{\mathsf{T}} = w I_n$.
At $n = 0$, `Matrix (Fin 0) (Fin 0) ℤ` is a subsingleton, so the empty matrix trivially satisfies
`IsWeighingMatrix (n := 0) w 0` for every $w$; existence statements below restrict to $n \ge 1$. -/
def IsWeighingMatrix {n : ℕ} (w : ℕ) (W : Matrix (Fin n) (Fin n) ℤ) : Prop :=
(∀ i j, W i j = -1 ∨ W i j = 0 ∨ W i j = 1) ∧
W * W.transpose = (w : ℤ) • 1
/-- For every order $n$, the zero matrix is a weighing matrix $W(n, 0)$ of weight $0$. -/
@[category API, AMS 5 15]
theorem isWeighingMatrix_zero (n : ℕ) : IsWeighingMatrix (n := n) 0 0 :=
⟨fun _ _ => .inr (.inl rfl), by simp⟩
/-- For every order $n$, the identity matrix is a weighing matrix $W(n, 1)$ of weight $1$. -/
@[category API, AMS 5 15]
theorem isWeighingMatrix_one (n : ℕ) : IsWeighingMatrix (n := n) 1 1 := by
refine ⟨fun i j => ?_, by simp⟩
by_cases hij : i = j <;> simp [Matrix.one_apply, hij]
/-- Negating a weighing matrix $W(n, w)$ yields a weighing matrix of the same order and weight. -/
@[category API, AMS 5 15]
theorem IsWeighingMatrix.neg {n w : ℕ} {W : Matrix (Fin n) (Fin n) ℤ}
(hW : IsWeighingMatrix w W) :
IsWeighingMatrix w (-W) := by
refine ⟨fun i j => ?_, ?_⟩
· rcases hW.1 i j with h | h | h <;> simp [h]
· rw [Matrix.transpose_neg, neg_mul_neg, hW.2]
/-- The $2 \times 2$ Sylvester matrix $\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}$ is a weighing
matrix $W(2, 2)$. -/
@[category test, AMS 5 15]
theorem isWeighingMatrix_two_two : IsWeighingMatrix (n := 2) 2 !![1, 1; 1, -1] := by
refine ⟨fun i j => ?_, ?_⟩
· fin_cases i <;> fin_cases j <;> decide
· ext i j
fin_cases i <;> fin_cases j <;> decide
/-- No weighing matrix $W(2, 3)$ exists because each row of length $2$ over $\{-1, 0, 1\}$ has
squared norm at most $2$. -/
@[category test, AMS 5 15]
theorem not_exists_isWeighingMatrix_two_three : ¬ ∃ W, IsWeighingMatrix (n := 2) 3 W := by
rintro ⟨W, hent, hmul⟩
have h00 := congrArg (fun M => M 0 0) hmul
simp [Matrix.mul_apply, Fin.sum_univ_two] at h00
have hsq0 : W 0 0 * W 0 0 ≤ 1 := by
rcases hent 0 0 with h | h | h <;> rw [h] <;> norm_num
have hsq1 : W 0 1 * W 0 1 ≤ 1 := by
rcases hent 0 1 with h | h | h <;> rw [h] <;> norm_num
linarith
/--
**Weighing matrix conjecture** (Wallis 1972; Geramita–Seberry [GS79]): for every positive integer
$m \ge 1$ and every weight $0 \le w \le 4m$, there exists a weighing matrix $W(4m, w)$ of order
$4m$ and weight $w$.
At $w = 4m$, this specializes to Hadamard's conjecture.
-/
@[category research open, AMS 5 15]
theorem weighing_matrix_conjecture (m w : ℕ) (hm : 1 ≤ m) (hw : w ≤ 4 * m) :
∃ W, IsWeighingMatrix (n := 4 * m) w W := by
sorry
/--
**Asymptotic existence of weighing matrices** (Eades [Ea76]; Geramita–Seberry [GS79], Thm. 7.17):
for every fixed weight $w$, a weighing matrix $W(4m, w)$ exists for all sufficiently large multiples
$4m$.
-/
@[category research solved, AMS 5 15]
theorem weighing_matrix_conjecture.variants.asymptotic (w : ℕ) :
∀ᶠ m in Filter.atTop, ∃ W, IsWeighingMatrix (n := 4 * m) w W := by
sorry
end WeighingMatrix
To prove it: keep every definition of Challenge.lean unchanged and prove WeighingMatrix.weighing_matrix_conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_weighing_matrix_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch wikipedia-weighingmatrix nosorry submit wikipedia-weighingmatrix nosorry/wikipedia-weighingmatrix/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- weighing-matrix-conjecture-variants-asymptotic — known result
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.