Buckets:
| import Mathlib | |
| import OAI.Analysis.MatrixSigning.Matrices.TraceCLM | |
| namespace OAI | |
| open Matrix | |
| namespace CurrentKS.Hermitian | |
| noncomputable section | |
| open Matrix | |
| open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.Frobenius | |
| variable {d : ℕ} | |
| lemma realTrace_sum {ι : Type*} (s : Finset ι) (A : ι → H d) : | |
| realTrace (∑ i ∈ s, A i) = ∑ i ∈ s, realTrace (A i) := by | |
| simp only [← inner_one, inner_sum] | |
| lemma psd_sum {ι : Type*} (s : Finset ι) (A : ι → H d) (hA : ∀ i ∈ s, A i ∈ psdCone d) : | |
| (∑ i ∈ s, A i) ∈ psdCone d := by | |
| exact (mem_psd_iff_nonneg _).mpr (Finset.sum_nonneg fun i hi => (mem_psd_iff_nonneg _).mp (hA i hi)) | |
| lemma smul_order {A B : H d} (h : A ≤ B) {r : ℝ} (hr : 0 ≤ r) : r • A ≤ r • B := by | |
| apply sub_nonneg.mp | |
| rw [← smul_sub r B A] | |
| exact (mem_psd_iff_nonneg _).mp (psd_smul ((mem_psd_iff_nonneg _).mpr (sub_nonneg.mpr h)) hr) | |
| lemma scalar_mono_psd {A : H d} (hA : A ∈ psdCone d) {r s : ℝ} (hrs : r ≤ s) : r • A ≤ s • A := by | |
| apply sub_nonneg.mp | |
| rw [← sub_smul s r A] | |
| exact (mem_psd_iff_nonneg _).mp (psd_smul hA (sub_nonneg.mpr hrs)) | |
| lemma invH_scalar (a : ℝ) : invH (a • (Hermitian.one : H d)) = a⁻¹ • (Hermitian.one : H d) := by | |
| apply Subtype.ext | |
| change (a • (1 : Mat d))⁻¹ = a⁻¹ • (1 : Mat d) | |
| have h (r : ℝ) : r • (1 : Mat d) = (r : ℂ) • (1 : Mat d) := by | |
| ext i j | |
| exact Complex.real_smul | |
| rw [h a, h a⁻¹, Complex.ofReal_inv] | |
| exact scalar_inv a | |
| end | |
| end CurrentKS.Hermitian | |
| end OAI | |
Xet Storage Details
- Size:
- 1.55 kB
- Xet hash:
- 24812d0dd53362f508a8c7416c68c9374f5a9aa78d8a2be9282908dcc33c939f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.