c0ea08d2 / statements / Hadamard.lean

1/-
2Ported from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7,
3file FormalConjectures/Wikipedia/Hadamard.lean, declaration Hadamard.HadamardConjecture.
4Copyright 2025 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0
5(https://www.apache.org/licenses/LICENSE-2.0).
6Port: `public import FormalConjecturesUtil` replaced by specific Mathlib imports; the
7`@[category …, AMS …]` attributes and the doc comments dropped; only `IsHadamard` and the target
8kept (not `IsHadamard'`, the equivalence lemma, `hadamardConstant`, `H12` or the variants).
9The definition and the proposition are unchanged.
10-/
11module
12
13public import Mathlib.LinearAlgebra.Matrix.Determinant.Basic
14public import Mathlib.Analysis.SpecialFunctions.Pow.Real
15
16@[expose] public section
17
18namespace Hadamard
19
20/-- A square `±1` matrix `M` with `|det M| = n ^ (n / 2)`: a Hadamard matrix. -/
21def IsHadamard {n : ℕ} (M : Matrix (Fin n) (Fin n) ℝ) : Prop :=
22 (∀ (i j : Fin n), M i j ∈ ({1, -1} : Finset ℝ)) ∧
23 |M.det| = n ^ ((n : ℝ) / 2)
24
25theorem HadamardConjecture (k : ℕ) : ∃ M, IsHadamard (n := 4 * k) M := by
26 sorry
27
28end Hadamard
29
30/-- The family's target (decision 0100), under the family's name: its type is taken from upstream's
31`Hadamard.HadamardConjecture` above, so the two cannot differ. Upstream's declaration is kept for provenance; it is not a
32target. -/
33theorem Hadamard : type_of% @Hadamard.HadamardConjecture := by
34 sorry