Paley's second construction of Hadamard matrices from finite fields
ProvedPaley_construction_IIThis is Paley's second (1933) construction of Hadamard matrices from finite fields, complementary to Paley_construction_I.
Let be a finite field of odd characteristic whose cardinality satisfies . Then there exists a real matrix with every entry equal to or , satisfying the Hadamard orthogonality identity
Construction. As in Paley_construction_I, let be the quadratic residue character of and form the bordered Jacobsthal matrix indexed by , but now with a symmetric border (, matching the fact that gives , making itself symmetric: ). The same character-sum computation as in Paley I gives , i.e. (using symmetry) .
Set and (each with entries , both symmetric). Since is already scalar, and commute, and . The block matrix
is then symmetric with , giving the required Hadamard matrix of order .
Combined with Paley_construction_I, Hadamard_matrix_kronecker_product, and Sylvester's doubling construction, this gives Hadamard matrices for further orders not reachable by the earlier constructions alone — for instance give orders .
Formalization Note The statement is given in orthogonality form, matching Paley_construction_I. The two source matrices of order are combined into the order- result via Matrix.fromBlocks, transported at the end from the natural index type Option F ⊕ Option F to Fin (2*(Fintype.card F + 1)).
import Mathlib open Matrix
theorem Paley_construction_II {F : Type} [Field F] [Fintype F] [DecidableEq F]
(hchar : ringChar F ≠ 2) (hmod : Fintype.card F % 4 = 1) :
∃ M : Matrix (Fin (2 * (Fintype.card F + 1))) (Fin (2 * (Fintype.card F + 1))) ℝ,
(∀ i j, M i j = 1 ∨ M i j = -1) ∧
M * Mᵀ = ((2 * (Fintype.card F + 1) : ℕ) : ℝ) •
(1 : Matrix (Fin (2 * (Fintype.card F + 1))) (Fin (2 * (Fintype.card F + 1))) ℝ) := by sorry