AFTD Auto-Formalizing Theoretical Domains

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.
Verified
17 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1

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⟩
See it in the graphDiscuss this resultChallenge it