The areas / V16. Normed spaces and functional analysis
Mathlib.Analysis.Matrix.Order
28 declarations and 1 deprecated aliases. Mathlib docs Β· Source
The partial order on matrices
This file constructs the partial order and star ordered instances on matrices on π.
This allows us to use more general results from Cβ-algebras, like CFC.sqrt.
Main results
Matrix.instPartialOrder: the partial order on matrices given byx β€ y := (y - x).PosSemidef.Matrix.toMatrixInnerProductSpace: the inner product on matrices induced by a positive semi-definite matrixM:βͺx, yβ« = (y * M * xα΄΄).trace.
Implementation notes
Note that the partial order instance is scoped to MatrixOrder.
Please open scoped MatrixOrder to use this.
abbrev Matrix.instPreOrder E1 #
{π : Type u_1} β {n : Type u_3} β [RCLike π] β Preorder (Matrix n n π)
The preorder on matrices given by A β€ B := (B - A).PosSemidef.
theorem Matrix.le_iff E0 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] {A B : Matrix n n π}, A β€ B β (B - A).PosSemidef
theorem Matrix.nonneg_iff_posSemidef E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] {A : Matrix n n π}, 0 β€ A β A.PosSemidef
theorem Matrix.LE.le.posSemidef E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] {A : Matrix n n π}, 0 β€ A β A.PosSemidef
Alias of the forward direction of Matrix.nonneg_iff_posSemidef.
theorem Matrix.PosSemidef.nonneg E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] {A : Matrix n n π}, A.PosSemidef β 0 β€ A
Alias of the reverse direction of Matrix.nonneg_iff_posSemidef.
abbrev Matrix.instPartialOrder E3 #
{π : Type u_1} β {n : Type u_3} β [RCLike π] β PartialOrder (Matrix n n π)
The partial order on matrices given by A β€ B := (B - A).PosSemidef.
theorem Matrix.instIsOrderedAddMonoid E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π], IsOrderedAddMonoid (Matrix n n π)
theorem Matrix.instOrderClosedTopology E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π], OrderClosedTopology (Matrix n n π)
theorem Matrix.instNonnegSpectrumClass E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n], NonnegSpectrumClass β (Matrix n n π)
theorem Matrix.instStarOrderedRing E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n], StarOrderedRing (Matrix n n π)
theorem Matrix.PosSemidef.inv_sqrt E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : Matrix n n π},
A.PosSemidef β (CFC.sqrt A)β»ΒΉ = CFC.sqrt Aβ»ΒΉ
theorem Matrix.PosSemidef.det_sqrt E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : Matrix n n π},
A.PosSemidef β (CFC.sqrt A).det = RCLike.sqrt A.det
theorem Matrix.IsHermitian.det_abs E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : Matrix n n π},
A.IsHermitian β (CFC.abs A).det = ββA.detβ
theorem Matrix.posSemidef_iff_isHermitian_and_spectrum_nonneg E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {A : Matrix n n π},
A.PosSemidef β A.IsHermitian β§ spectrum π A β {a | 0 β€ a}
theorem Matrix.isStrictlyPositive_iff_posDef E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {x : Matrix n n π},
IsStrictlyPositive x β x.PosDef
theorem Matrix.PosDef.isStrictlyPositive E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {x : Matrix n n π},
x.PosDef β IsStrictlyPositive x
Alias of the reverse direction of Matrix.isStrictlyPositive_iff_posDef.
theorem Matrix.IsStrictlyPositive.posDef E1 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {x : Matrix n n π},
IsStrictlyPositive x β x.PosDef
Alias of the forward direction of Matrix.isStrictlyPositive_iff_posDef.
theorem Matrix.PosSemidef.kronecker E1 #
β {π : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π] {x : Matrix n n π} {y : Matrix m m π},
x.PosSemidef β y.PosSemidef β (Matrix.kroneckerMap (fun x1 x2 β¦ x1 * x2) x y).PosSemidef
The kronecker product of two positive semi-definite matrices is positive semi-definite.
theorem Matrix.PosDef.kronecker E1 #
β {π : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π] {x : Matrix n n π} {y : Matrix m m π},
x.PosDef β y.PosDef β (Matrix.kroneckerMap (fun x1 x2 β¦ x1 * x2) x y).PosDef
The kronecker of two positive definite matrices is positive definite.
theorem Matrix.PosSemidef.hadamard E1 #
β {π : Type u_1} [inst : RCLike π] {ΞΉ : Type u_4} {A B : Matrix ΞΉ ΞΉ π},
A.PosSemidef β B.PosSemidef β (A.hadamard B).PosSemidef
[Schur product theorem][schur1911] (positive semidefinite version): the Hadamard (entrywise) product of positive semidefinite matrices is positive semidefinite.
theorem Matrix.PosDef.hadamard E1 #
β {π : Type u_1} [inst : RCLike π] {ΞΉ : Type u_4} {A B : Matrix ΞΉ ΞΉ π}, A.PosDef β B.PosDef β (A.hadamard B).PosDef
Schur product theorem: the Hadamard (entrywise) product of positive definite matrices is positive definite.
def Matrix.tracePositiveLinearMap E1 #
(n : Type u_4) β
(Ξ± : Type u_5) β
(π : Type u_6) β
[Fintype n] β [inst : Semiring Ξ±] β [inst_1 : RCLike π] β [inst_2 : Module Ξ± π] β Matrix n n π ββ[Ξ±] π
Matrix.trace as a positive linear map.
theorem Matrix.toLinearMap_tracePositiveLinearMap E0 #
β (n : Type u_4) (Ξ± : Type u_5) (π : Type u_6) [inst : Fintype n] [inst_1 : Semiring Ξ±] [inst_2 : RCLike π]
[inst_3 : Module Ξ± π], (Matrix.tracePositiveLinearMap n Ξ± π).toLinearMap = Matrix.traceLinearMap n Ξ± π
theorem Matrix.tracePositiveLinearMap_apply E0 #
β (n : Type u_4) (Ξ± : Type u_5) (π : Type u_6) [inst : Fintype n] [inst_1 : Semiring Ξ±] [inst_2 : RCLike π]
[inst_3 : Module Ξ± π] (x : Matrix n n π), (Matrix.tracePositiveLinearMap n Ξ± π) x = x.trace
def Matrix.toMatrixSeminormedAddCommGroup E1 #
{π : Type u_1} β
(m : Type u_2) β
{n : Type u_3} β
[inst : RCLike π] β
[Fintype m] β [Fintype n] β (M : Matrix n n π) β M.PosSemidef β SeminormedAddCommGroup (Matrix m n π)
A positive definite matrix M induces a norm on Matrix m n π
βxβ = sqrt (x * M * xα΄΄).trace.
def Matrix.toMatrixNormedAddCommGroup E1 #
{π : Type u_1} β
(m : Type u_2) β
{n : Type u_3} β
[inst : RCLike π] β [Fintype m] β [Fintype n] β (M : Matrix n n π) β M.PosDef β NormedAddCommGroup (Matrix m n π)
A positive definite matrix M induces a norm on Matrix m n π:
βxβ = sqrt (x * M * xα΄΄).trace.
def Matrix.toMatrixInnerProductSpace E3 #
{π : Type u_1} β
(m : Type u_2) β
{n : Type u_3} β
[inst : RCLike π] β
[inst_1 : Fintype m] β
[inst_2 : Fintype n] β (M : Matrix n n π) β (hM : M.PosSemidef) β InnerProductSpace π (Matrix m n π)
A positive semi-definite matrix M induces an inner product on Matrix m n π:
βͺx, yβ« = (y * M * xα΄΄).trace.
instance Matrix.instIsometricContinuousFunctionalCalculus E0 #
β {π : Type u_1} {n : Type u_3} [inst : RCLike π] [inst_1 : Fintype n] [inst_2 : DecidableEq n],
IsometricContinuousFunctionalCalculus β (Matrix n n π) IsSelfAdjoint
The isometric continuous functional calculus on Matrix n n π arising from the operator norm
given by the identification with (continuous) linear endomorphisms of EuclideanSpace π n.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Matrix.posSemidef_is_closed | isClosed_setOfPred_posSemidef | 2026-10-28 |