The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V16. Normed spaces and functional analysis

Mathlib.Analysis.Matrix.PosDef

13 declarations. Mathlib docs ยท Source

Spectrum of positive (semi)definite matrices

This file proves that eigenvalues of positive (semi)definite matrices are (nonnegative) positive.

Main definitions

  • Matrix.toInnerProductSpace: the pre-inner product space on n โ†’ ๐•œ induced by a positive semi-definite matrix M, and is given by โŸชx, yโŸซ = xแดดMy.

Positive semidefinite matrices

Positive definite matrices

theorem Matrix.IsHermitian.posSemidef_iff_eigenvalues_nonneg E1 #

โˆ€ {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype n] [inst_1 : RCLike ๐•œ] {A : Matrix n n ๐•œ} [inst_2 : DecidableEq n]
  (hA : A.IsHermitian), A.PosSemidef โ†” 0 โ‰ค hA.eigenvalues

A Hermitian matrix is positive semi-definite if and only if its eigenvalues are non-negative.

theorem Matrix.PosSemidef.eigenvalues_nonneg E1 #

โˆ€ {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype n] [inst_1 : RCLike ๐•œ] {A : Matrix n n ๐•œ} [inst_2 : DecidableEq n]
  (hA : A.PosSemidef) (i : n), 0 โ‰ค โ‹ฏ.eigenvalues i

The eigenvalues of a positive semi-definite matrix are non-negative

theorem Matrix.PosSemidef.re_dotProduct_nonneg E1 #

โˆ€ {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype n] [inst_1 : RCLike ๐•œ] {A : Matrix n n ๐•œ},
  A.PosSemidef โ†’ โˆ€ (x : n โ†’ ๐•œ), 0 โ‰ค RCLike.re (star x โฌแตฅ A.mulVec x)

theorem Matrix.PosSemidef.det_nonneg E1 #

โˆ€ {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype n] [inst_1 : RCLike ๐•œ] {A : Matrix n n ๐•œ} [inst_2 : DecidableEq n],
  A.PosSemidef โ†’ 0 โ‰ค A.det

theorem Matrix.PosSemidef.trace_eq_zero_iff E0 #

โˆ€ {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype n] [inst_1 : RCLike ๐•œ] {A : Matrix n n ๐•œ},
  A.PosSemidef โ†’ (A.trace = 0 โ†” A = 0)

theorem Matrix.eigenvalues_conjTranspose_mul_self_nonneg E1 #

โˆ€ {m : Type u_1} {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype m] [inst_1 : Fintype n] [inst_2 : RCLike ๐•œ]
  (A : Matrix m n ๐•œ) [inst_3 : DecidableEq n] (i : n), 0 โ‰ค โ‹ฏ.eigenvalues i

theorem Matrix.eigenvalues_self_mul_conjTranspose_nonneg E1 #

โˆ€ {m : Type u_1} {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype m] [inst_1 : Fintype n] [inst_2 : RCLike ๐•œ]
  (A : Matrix m n ๐•œ) [inst_3 : DecidableEq m] (i : m), 0 โ‰ค โ‹ฏ.eigenvalues i

theorem Matrix.IsHermitian.posDef_iff_eigenvalues_pos E1 #

โˆ€ {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype n] [inst_1 : RCLike ๐•œ] {A : Matrix n n ๐•œ} [inst_2 : DecidableEq n]
  (hA : A.IsHermitian), A.PosDef โ†” โˆ€ (i : n), 0 < hA.eigenvalues i

A Hermitian matrix is positive-definite if and only if its eigenvalues are positive.

theorem Matrix.PosDef.re_dotProduct_pos E1 #

โˆ€ {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype n] [inst_1 : RCLike ๐•œ] {A : Matrix n n ๐•œ},
  A.PosDef โ†’ โˆ€ {x : n โ†’ ๐•œ}, x โ‰  0 โ†’ 0 < RCLike.re (star x โฌแตฅ A.mulVec x)

theorem Matrix.PosDef.eigenvalues_pos E1 #

โˆ€ {n : Type u_2} {๐•œ : Type u_3} [inst : Fintype n] [inst_1 : RCLike ๐•œ] {A : Matrix n n ๐•œ} [inst_2 : DecidableEq n]
  (hA : A.PosDef) (i : n), 0 < โ‹ฏ.eigenvalues i

The eigenvalues of a positive definite matrix are positive.

abbrev Matrix.toSeminormedAddCommGroup E1 #

{n : Type u_2} โ†’
  {๐•œ : Type u_3} โ†’ [Fintype n] โ†’ [inst : RCLike ๐•œ] โ†’ (M : Matrix n n ๐•œ) โ†’ M.PosSemidef โ†’ SeminormedAddCommGroup (n โ†’ ๐•œ)

A positive semi-definite matrix M induces a norm โ€–xโ€– = sqrt (re xแดดMx).

abbrev Matrix.toNormedAddCommGroup E1 #

{n : Type u_2} โ†’
  {๐•œ : Type u_3} โ†’ [Fintype n] โ†’ [inst : RCLike ๐•œ] โ†’ (M : Matrix n n ๐•œ) โ†’ M.PosDef โ†’ NormedAddCommGroup (n โ†’ ๐•œ)

A positive definite matrix M induces a norm โ€–xโ€– = sqrt (re xแดดMx).

def Matrix.toInnerProductSpace E3 #

{n : Type u_2} โ†’
  {๐•œ : Type u_3} โ†’
    [inst : Fintype n] โ†’ [inst_1 : RCLike ๐•œ] โ†’ (M : Matrix n n ๐•œ) โ†’ (hM : M.PosSemidef) โ†’ InnerProductSpace ๐•œ (n โ†’ ๐•œ)

A positive semi-definite matrix M induces an inner product โŸชx, yโŸซ = xแดดMy.