Download lean/OAI/LinearAlgebra/CirculantHadamard/Model.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 606 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/LinearAlgebra/CirculantHadamard/Model.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/LinearAlgebra/CirculantHadamard/Model.lean
-
curl -L -o Model.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/LinearAlgebra/CirculantHadamard/Model.lean
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 | |