introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
606 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
end CirculantHadamard
end OAI