Buckets:
| import Mathlib.Algebra.Order.Star.Real | |
| import Mathlib.Data.Matrix.Basic | |
| import Mathlib.LinearAlgebra.Matrix.PosDef | |
| import Mathlib.Tactic.NormNum | |
| namespace OAI | |
| namespace Laughlin.Certificate | |
| open scoped Matrix | |
| theorem rational_ldl_positive {n : ℕ} (A L : Matrix (Fin n) (Fin n) ℚ) | |
| (d : Fin n → ℚ) (h : A = L * Matrix.diagonal d * L.transpose) | |
| (hd : ∀ i, 0 ≤ d i) : (A.map (Rat.castHom ℝ)).PosSemidef := by | |
| rw [h, Matrix.map_mul, Matrix.map_mul] | |
| have hdiag : (Matrix.diagonal d).map (Rat.castHom ℝ) = | |
| Matrix.diagonal (fun i => (d i : ℝ)) := by | |
| ext i j | |
| by_cases hij : i = j <;> simp [Matrix.diagonal, hij] | |
| have htrans : L.transpose.map (Rat.castHom ℝ) = | |
| (L.map (Rat.castHom ℝ)).conjTranspose := by | |
| ext i j | |
| simp | |
| rw [hdiag, htrans] | |
| apply Matrix.PosSemidef.mul_mul_conjTranspose_same | |
| apply Matrix.PosSemidef.diagonal | |
| intro i | |
| change (0 : ℝ) ≤ (d i : ℝ) | |
| exact_mod_cast hd i | |
| end Laughlin.Certificate | |
| end OAI | |
Xet Storage Details
- Size:
- 986 Bytes
- Xet hash:
- 062b1e96e86e05c2eae3a9826873723c41f28aaca4fe613dc53dbd568ae2577c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.