Hadamard Conjecture — Quadratic Character Sums and the Jacobsthal Matrix #
This file develops the character-sum machinery behind the Paley construction of Hadamard matrices.
For a finite field F of odd cardinality q, let χ be the quadratic
character of F (χ(0) = 0, χ(x) = 1 for nonzero squares, -1
otherwise). The Jacobsthal matrix is the q × q integer matrix
Q x y = χ(x - y). The results proved here:
quadraticChar_sum_shift_mul(Jacobsthal's lemma): forc ≠ 0,∑ x, χ(x) χ(x + c) = -1. The proof substitutesx = (-c) · t, which identifies the sum withχ(-1) * J(χ, χ)for the Jacobi sumJ, and then uses Mathlib'sjacobiSum_nontrivial_inv : J(χ, χ⁻¹) = -χ(-1)together with the fact that the quadratic character is its own inverse.jacobsthal_row_sum,jacobsthal_col_sum: rows and columns ofQsum to zero (since∑ χ = 0).jacobsthal_mul_transpose_apply:Q Qᵀ = q I - Jentrywise, i.e. rowxdotted with rowyisq - 1ifx = yand-1otherwise.jacobsthal_transpose: whenq ≡ 3 (mod 4),Qis skew-symmetric (χ(-1) = -1).
These are the standard properties from Paley's 1933 paper On orthogonal matrices; the Jacobi-sum route follows Ireland–Rosen, A Classical Introduction to Modern Number Theory, Chapter 8.
Character sums #
A finite field of cardinality ≡ 3 (mod 4) has odd characteristic.
If #F ≡ 3 (mod 4), the quadratic character of F is odd:
χ(-1) = -1.
Jacobsthal's lemma: over a finite field of odd characteristic, the
shifted product of quadratic-character values sums to -1 for any nonzero
shift c: ∑ x, χ(x) χ(x + c) = -1.
The substitution x = (-c) · t turns the left-hand side into
χ(-1) * ∑ t, χ(t) χ(1 - t) = χ(-1) * jacobiSum χ χ, and
jacobiSum χ χ = jacobiSum χ χ⁻¹ = -χ(-1) by Mathlib's Jacobi-sum
evaluation, so the total is -χ(-1)² = -1.
The Jacobsthal matrix #
The Jacobsthal matrix of a finite field F: the square matrix
indexed by F whose (x, y) entry is χ(x - y), where χ is the
quadratic character of F. Its diagonal is 0 and all other entries
are ±1.
Equations
- Hadamard.jacobsthal F = Matrix.of fun (x y : F) => (quadraticChar F) (x - y)
Instances For
Rows of the Jacobsthal matrix sum to zero.
Columns of the Jacobsthal matrix sum to zero.
Inner products of rows of the Jacobsthal matrix: row x dotted with
row y is q - 1 on the diagonal and -1 off it. Equivalently,
Q Qᵀ = q I - J where J is the all-ones matrix.
When #F ≡ 3 (mod 4), the Jacobsthal matrix is skew-symmetric:
Qᵀ = -Q.