AFTD Auto-Formalizing Theoretical Domains

HermitianMat.instIsStrictOrderedModuleReal

instanceimported Lean

HermitianMat.instIsStrictOrderedModuleReal

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open HermitianMat in
open ComplexOrder in
variable {π•œ : Type*} [RCLike π•œ] in
variable {n m ΞΉ : Type*} [Fintype n] [Fintype m] [Fintype ΞΉ] in
variable {A B C : HermitianMat n π•œ} in
variable {M : Matrix m n π•œ} {N : Matrix n n π•œ} in
instance HermitianMat.instIsStrictOrderedModuleReal : IsStrictOrderedModule ℝ (HermitianMat n π•œ)
Defined in
QuantumInfo, `HermitianMat.instIsStrictOrderedModuleReal`
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
16 Oct 2026
Axioms
none listed
Built on 120
Used by 38

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open HermitianMat in
open ComplexOrder in
variable {π•œ : Type*} [RCLike π•œ] in
variable {n m ΞΉ : Type*} [Fintype n] [Fintype m] [Fintype ΞΉ] in
variable {A B C : HermitianMat n π•œ} in
variable {M : Matrix m n π•œ} {N : Matrix n n π•œ} in
instance HermitianMat.instIsStrictOrderedModuleReal : IsStrictOrderedModule ℝ (HermitianMat n π•œ) where
  smul_lt_smul_of_pos_left a ha b bβ‚‚ hb := by
    rw [HermitianMat.lt_iff_posdef] at hb ⊒
    simp only [← smul_sub, ne_eq, smul_right_inj ha.ne']
    exact ⟨hb.left.smul ha.le, hb.right⟩
  smul_lt_smul_of_pos_right a ha b b2 hb := by
    rw [HermitianMat.lt_iff_posdef] at ha ⊒
    rw [sub_zero] at ha
    rw [← sub_pos] at hb
    convert And.intro (ha.left.smul hb.le) ha.right using 1
    Β· simp [← sub_smul]
    simp only [ne_eq, not_iff_not]
    constructor
    Β· intro h
      rw [eq_comm, ← sub_eq_zero, ← sub_smul] at h
      simpa [eq_comm, hb.ne'] using h
    Β· rintro rfl; simp
See it in the graphDiscuss this resultChallenge it