cfahlgren1/math / lean /ComparatorChallenges /CirculantHadamard.lean
cfahlgren1's picture
download
raw
737 Bytes
import Mathlib
namespace OAI
namespace CirculantHadamard
universe u
def IsSign {R : Type u} [One R] [Neg R] (x : R) : Prop :=
x = 1 ∨ x = -1
abbrev RealMatrix (n : ℕ) := Matrix (Fin n) (Fin n) ℝ
def IsCirculant {n : ℕ} (H : RealMatrix n) : Prop :=
∃ h : Fin n → ℝ, ∀ i j, H i j = h (j - i)
def IsSignHadamard {n : ℕ} (H : RealMatrix n) : Prop :=
(∀ i j, IsSign (H i j)) ∧
H * H.transpose = (n : ℝ) • (1 : RealMatrix n)
def ExistsRealCirculantHadamard (n : ℕ) : Prop :=
∃ H : RealMatrix n, IsCirculant H ∧ IsSignHadamard H
theorem exists_iff_order_one_or_four (n : ℕ) (hn : 0 < n) :
ExistsRealCirculantHadamard n ↔ n = 1 ∨ n = 4 := by
sorry
end CirculantHadamard
end OAI

Xet Storage Details

Size:
737 Bytes
·
Xet hash:
259a312fa3edd1ad4140a95f99732b44a8a5ba5f6bd53ac9da7820636aa1ecff

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.