Pratik Patil

MixedMarginalNorm.lean

1module23public import SubentropyCertificates.SpatialSignSupport45/-! A mixed marginal has spatial sign norm strictly less than one. -/6@[expose] public section7noncomputable section8open Matrix9open scoped BigOperators ComplexOrder MatrixOrder Matrix.Norms.L2Operator1011namespace SubentropyCertificates.ConditionalContinuity1213variable {D : Type*} [Fintype D] [DecidableEq D]1415/-- A normalized positive semidefinite matrix of rank at least two has spectral norm below one. -/16theorem norm_lt_one_of_trace_one_of_rank {M : Matrix D D ℂ} (hM : M.PosSemidef)17    (ht : M.trace = 1) (hr : 1 < M.rank) : ‖M‖ < 1 := by18  let w := hM.isHermitian.eigenvalues19  have hc : 1 < Fintype.card {i // w i ≠ 0} := hM.isHermitian.rank_eq_card_non_zero_eigs ▸ hr20  obtain ⟨a, b, hab⟩ := Fintype.one_lt_card_iff.mp hc21  have : Nonempty D := ⟨a.val⟩22  have hm := CStarAlgebra.norm_mem_spectrum_of_nonneg M hM.nonneg23  rw [hM.isHermitian.spectrum_real_eq_range_eigenvalues] at hm24  obtain ⟨i, hi⟩ := hm25  obtain ⟨j, hji, hj⟩ : ∃ j, j ≠ i ∧ 0 < w j := by26    by_cases ha : a.val = i27    · refine ⟨b.val, fun h ↦ hab (Subtype.ext (ha.trans h.symm)), ?_⟩28      exact lt_of_le_of_ne (hM.eigenvalues_nonneg b.val) b.property.symm29    · exact ⟨a.val, ha, lt_of_le_of_ne (hM.eigenvalues_nonneg a.val) a.property.symm⟩30  have hs : ∑ k, w k = 1 := by31    have h := hM.isHermitian.trace_eq_sum_eigenvalues32    rw [ht] at h33    simpa [w] using congrArg Complex.re h.symm34  have hle : w j ≤ ∑ k ∈ Finset.univ.erase i, w k :=35    Finset.single_le_sum (fun k _ ↦ hM.eigenvalues_nonneg k)36      (Finset.mem_erase.mpr ⟨hji, Finset.mem_univ j⟩)37  have he := Finset.sum_erase_add Finset.univ w (Finset.mem_univ i)38  change w i = ‖M‖ at hi39  linarith4041/-- The spatial sign covariance of every matrix with at least two positive eigenvalues42has operator norm strictly less than one, including when the covariance is singular. -/43theorem spatialSign_norm_lt_one_of_rank {M : Matrix D D ℂ} (hM : M.PosSemidef)44    (hr : 1 < M.rank) : ‖spatialSign M‖ < 1 := by45  have hn : M ≠ 0 := by46    rintro rfl47    simp at hr48  exact norm_lt_one_of_trace_one_of_rank (spatialSign_posSemidef hM)49    (spatialSign_trace_one hM hn) ((spatialSign_rank hM).symm ▸ hr)5051end SubentropyCertificates.ConditionalContinuity

Axioms used

Choose a statement to see which axioms its proof uses.