Download data/lean/OAI/Analysis/HyperbolicCones/FormBasic.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.83 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HyperbolicCones/FormBasic.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/HyperbolicCones/FormBasic.lean
-
curl -L -o FormBasic.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/HyperbolicCones/FormBasic.lean
3.83 kB
| import OAI.Analysis.HyperbolicCones.Model | |
| namespace OAI | |
| /-! Exact identities for the ChoiβLam form. -/ | |
| noncomputable section | |
| open scoped Matrix.Norms.L2Operator | |
| open Matrix | |
| universe u | |
| namespace Paper256 | |
| theorem choiLam_expand {R : Type u} [CommRing R] (z y : Fin 3 β R) : | |
| choiLam z y = | |
| z 0 ^ 2 * y 0 ^ 2 + z 1 ^ 2 * y 1 ^ 2 + z 2 ^ 2 * y 2 ^ 2 - | |
| 2 * (z 0 * y 0 * z 1 * y 1 + z 0 * y 0 * z 2 * y 2 + | |
| z 1 * y 1 * z 2 * y 2) + | |
| (z 0 ^ 2 * y 1 ^ 2 + z 1 ^ 2 * y 2 ^ 2 + z 2 ^ 2 * y 0 ^ 2) := by | |
| simp [choiLam, Fin.sum_univ_succ] | |
| ring | |
| theorem qMatrix_isHermitian (y : Fin 3 β β) : (qMatrix y).IsHermitian := by | |
| show (qMatrix y)α΄΄ = qMatrix y | |
| ext i j | |
| by_cases hij : i = j | |
| Β· subst j | |
| simp [qMatrix, Matrix.conjTranspose_apply] | |
| Β· simp [qMatrix, Matrix.conjTranspose_apply, hij, Ne.symm hij, mul_comm] | |
| theorem zMatrix_isHermitian (z : Fin 3 β β) : (zMatrix z).IsHermitian := by | |
| show (zMatrix z)α΄΄ = zMatrix z | |
| ext i j | |
| by_cases hij : i = j | |
| Β· subst j | |
| simp [zMatrix, Matrix.conjTranspose_apply] | |
| Β· simp [zMatrix, Matrix.conjTranspose_apply, hij, Ne.symm hij, mul_comm] | |
| theorem qMatrix_quadratic (z y : Fin 3 β β) : | |
| dotProduct z (qMatrix y *α΅₯ z) = choiLam z y := by | |
| simp [dotProduct, Matrix.mulVec, qMatrix, choiLam, Fin.sum_univ_succ] | |
| ring | |
| theorem zMatrix_quadratic (z y : Fin 3 β β) : | |
| dotProduct y (zMatrix z *α΅₯ y) = choiLam z y := by | |
| simp [dotProduct, Matrix.mulVec, zMatrix, choiLam, Fin.sum_univ_succ] | |
| ring | |
| theorem zMatrix_diag_nonnegative (z : Fin 3 β β) (i : Fin 3) : | |
| 0 β€ zMatrix z i i := by | |
| simp only [zMatrix, βreduceIte] | |
| positivity | |
| theorem zMatrix_principal_minor_two (z : Fin 3 β β) (i : Fin 3) : | |
| Matrix.det ((zMatrix z).submatrix | |
| (fun j : Fin 2 => if j = 0 then i else i + 1) | |
| (fun j : Fin 2 => if j = 0 then i else i + 1)) = | |
| (z i ^ 2) ^ 2 + z (i + 2) ^ 2 * (z i ^ 2 + z (i + 1) ^ 2) := by | |
| fin_cases i <;> simp [Matrix.det_fin_two, Matrix.submatrix, zMatrix, | |
| Fin.reduceAdd, Fin.reduceEq] <;> ring | |
| theorem zMatrix_principal_minor_two_nonnegative (z : Fin 3 β β) (i : Fin 3) : | |
| 0 β€ Matrix.det ((zMatrix z).submatrix | |
| (fun j : Fin 2 => if j = 0 then i else i + 1) | |
| (fun j : Fin 2 => if j = 0 then i else i + 1)) := by | |
| rw [zMatrix_principal_minor_two] | |
| positivity | |
| theorem zMatrix_det (z : Fin 3 β β) : | |
| Matrix.det (zMatrix z) = | |
| (z 0 ^ 2) ^ 2 * z 1 ^ 2 + (z 1 ^ 2) ^ 2 * z 2 ^ 2 + | |
| (z 2 ^ 2) ^ 2 * z 0 ^ 2 - 3 * z 0 ^ 2 * z 1 ^ 2 * z 2 ^ 2 := by | |
| simp [Matrix.det_fin_three, zMatrix] | |
| ring | |
| theorem choiLam_nonzero : | |
| choiLam (![1, 0, 0] : Fin 3 β β) (![1, 0, 0] : Fin 3 β β) = 1 := by | |
| simp [choiLam_expand, Matrix.cons_val] | |
| theorem choiLam_cyclic_zero (i : Fin 3) : | |
| choiLam (Pi.single i 1 : Fin 3 β β) (Pi.single (i + 2) 1) = 0 := by | |
| fin_cases i <;> simp [choiLam_expand, Fin.reduceAdd, Fin.reduceEq] | |
| theorem choiLam_sign_zero (Ο : Fin 3 β β) | |
| (hΟ : β i, Ο i = 1 β¨ Ο i = -1) : choiLam Ο Ο = 0 := by | |
| rcases hΟ 0 with h0 | h0 <;> rcases hΟ 1 with h1 | h1 <;> | |
| rcases hΟ 2 with h2 | h2 <;> norm_num [choiLam_expand, h0, h1, h2] | |
| theorem choiLam_curve (i : Fin 3) (s : β) : | |
| choiLam ((Pi.single i 1 : Fin 3 β β) + s β’ Pi.single (i + 2) 1) | |
| (Pi.single (i + 2) 1 + s β’ Pi.single i 1) = s ^ 4 := by | |
| fin_cases i <;> simp [choiLam_expand, Fin.reduceAdd, Fin.reduceEq] <;> ring | |
| theorem choiLam_smul_left (z y : Fin 3 β β) (s : β) : | |
| choiLam (s β’ z) y = s ^ 2 * choiLam z y := by | |
| simp only [choiLam_expand, Pi.smul_apply, smul_eq_mul] | |
| ring | |
| theorem choiLam_smul_right (z y : Fin 3 β β) (s : β) : | |
| choiLam z (s β’ y) = s ^ 2 * choiLam z y := by | |
| simp only [choiLam_expand, Pi.smul_apply, smul_eq_mul] | |
| ring | |
| end Paper256 | |
| end | |
| end OAI | |