MatrixResolvent.lean
1module23public import Mathlib.Analysis.Matrix.Order4public import Mathlib.Analysis.CStarAlgebra.ContinuousFunctionalCalculus.Order5import Mathlib.Topology.Instances.Matrix67/-! Order and continuity of the resolvent factor in the spatial sign covariance integral. -/8@[expose] public section9noncomputable section10open Matrix Set11open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator1213namespace SubentropyCertificates.ConditionalContinuity1415variable {D : Type*} [Fintype D] [DecidableEq D]1617/-- The matrix factor M(I+tM)⁻¹. -/18def signResolvent (M : Matrix D D ℂ) (t : ℝ) := M * (1 + t • M)⁻¹1920omit [Fintype D] in21theorem shifted_posDef {M : Matrix D D ℂ} (hM : M.PosSemidef) {t : ℝ} (ht : 0 ≤ t) :22 (1 + t • M).PosDef := Matrix.PosDef.one.add_posSemidef (hM.smul ht)2324private theorem inverse_antitone {A B : Matrix D D ℂ} (ha : A.PosDef) (hb : B.PosDef)25 (hab : A ≤ B) : B⁻¹ ≤ A⁻¹ := by26 have h := CStarAlgebra.inv_le_inv (a := ha.isUnit.unit) (b := hb.isUnit.unit)27 (by simpa only [IsUnit.unit_spec] using ha.posSemidef.nonneg)28 (by simpa only [IsUnit.unit_spec] using hab)29 simpa only [Matrix.coe_units_inv, IsUnit.unit_spec] using h3031theorem signResolvent_eq {M : Matrix D D ℂ} (hM : M.PosSemidef) {t : ℝ} (ht : 0 < t) :32 signResolvent M t = t⁻¹ • (1 - (1 + t • M)⁻¹) := by33 have hi := Matrix.mul_nonsing_inv (1 + t • M)34 ((Matrix.isUnit_iff_isUnit_det _).mp (shifted_posDef hM ht.le).isUnit)35 rw [Matrix.add_mul, Matrix.one_mul, Matrix.smul_mul] at hi36 have hh : t • signResolvent M t = 1 - (1 + t • M)⁻¹ := by37 rw [eq_sub_iff_add_eq, add_comm]38 exact hi39 rw [← hh, inv_smul_smul₀ ht.ne']4041/-- The resolvent is operator monotone on positive semidefinite matrices for t ≥ 0. -/42theorem signResolvent_mono {A B : Matrix D D ℂ} (ha : A.PosSemidef) (hb : B.PosSemidef)43 (hab : A ≤ B) {t : ℝ} (ht : 0 ≤ t) : signResolvent A t ≤ signResolvent B t := by44 rcases ht.eq_or_lt with rfl | ht45 · simpa [signResolvent] using hab46 rw [signResolvent_eq ha ht, signResolvent_eq hb ht]47 apply smul_le_smul_of_nonneg_left _ (inv_nonneg.mpr ht.le)48 apply sub_le_sub_left49 exact inverse_antitone (shifted_posDef ha ht.le) (shifted_posDef hb ht.le)50 (add_le_add_right (smul_le_smul_of_nonneg_left hab ht.le) 1)5152/-- The resolvent is positive, and at positive parameters is bounded above by I/t. -/53theorem signResolvent_bounds {M : Matrix D D ℂ} (hM : M.PosSemidef) {t : ℝ} (ht : 0 < t) :54 0 ≤ signResolvent M t ∧ signResolvent M t ≤ t⁻¹ • 1 := by55 refine ⟨?_, ?_⟩56 · simpa [signResolvent] using signResolvent_mono Matrix.PosSemidef.zero hM hM.nonneg ht.le57 · rw [signResolvent_eq hM ht]58 exact smul_le_smul_of_nonneg_left59 (sub_le_self _ (shifted_posDef hM ht.le).inv.posSemidef.nonneg) (inv_nonneg.mpr ht.le)6061theorem signResolvent_continuousAt {M : Matrix D D ℂ} (hM : M.PosSemidef) {t : ℝ} (ht : 0 ≤ t) :62 ContinuousAt (signResolvent M) t := by63 have hdet := (Matrix.isUnit_iff_isUnit_det _).mp (shifted_posDef hM ht).isUnit64 apply continuousAt_const.mul65 apply (continuousAt_matrix_inv _ ?_).comp66 · fun_prop67 · simpa only [Ring.inverse_eq_inv'] using continuousAt_inv₀ hdet.ne_zero6869end SubentropyCertificates.ConditionalContinuity
Axioms used
Choose a statement to see which axioms its proof uses.