Matrix.PosSemidef.diagonal_le_iff
theoremverifiedformalizationimported Lean
Matrix.PosSemidef.diagonal_le_iff
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix Matrix.PosSemidef in open BigOperators in variable {n π : Type*} in variable [RCLike π] [DecidableEq n] in open scoped ComplexOrder MatrixOrder in open scoped ComplexOrder in open scoped MatrixOrder in variable {n m π : Type*} in variable [Fintype n] [Fintype m] [RCLike π] [DecidableEq m] in variable {A : Matrix n n π} {B : Matrix n n π} in variable (hA : A.IsHermitian) (hB : B.IsHermitian) in variable [DecidableEq n] in omit [Fintype n] in theorem Matrix.PosSemidef.diagonal_le_iff {dβ dβ : n β π} : dβ β€ dβ β diagonal dβ β€ diagonal dβ
- Formalizes
- QuantumInfo, `Matrix.PosSemidef.diagonal_le_iff`
- Lean proof
- By Alex Meiburg, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Alex Meiburg. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.Matrix.PosSemidef.diagonal_le_iff← Matrix.PosSemidef.diagonal_le_iff (QuantumInfo/ForMathlib/Matrix.lean:414): verbatim
- Verified
- 17 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- Matrix.PosSemidef.diagonal_monoMatrix.PosSemidef.diagonal_mono
- Used by 1
- Matrix.PosSemidef.le_smul_one_of_eigenvalues_iffMatrix.PosSemidef.le_smul_one_of_eigenvalues_iff
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix Matrix.PosSemidef in open BigOperators in variable {n π : Type*} in variable [RCLike π] [DecidableEq n] in open scoped ComplexOrder MatrixOrder in open scoped ComplexOrder in open scoped MatrixOrder in variable {n m π : Type*} in variable [Fintype n] [Fintype m] [RCLike π] [DecidableEq m] in variable {A : Matrix n n π} {B : Matrix n n π} in variable (hA : A.IsHermitian) (hB : B.IsHermitian) in variable [DecidableEq n] in omit [Fintype n] in theorem Matrix.PosSemidef.diagonal_le_iff {dβ dβ : n β π} : dβ β€ dβ β diagonal dβ β€ diagonal dβ := β¨diagonal_mono, by intro hd rw [Matrix.le_iff, diagonal_sub, posSemidef_diagonal_iff] at hd simp only [sub_nonneg] at hd exact hdβ©