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 / V07. Linear algebra

Mathlib.LinearAlgebra.Matrix.Determinant.TotallyNonneg

13 declarations. Mathlib docs · Source

Totally nonnegative matrices

This file defines totally nonnegative matrices and provides basic API for them.

Main definitions

  • Matrix.IsTotallyNonneg: a matrix is totally nonnegative if all its finite minors have nonnegative determinant.

Main results

  • Matrix.IsTotallyNonneg.submatrix: any submatrix (with strictly monotonic row/column indices) of a totally nonnegative matrix is totally nonnegative.
  • Matrix.IsTotallyNonneg.nonneg: any entry of a totally nonnegative matrix is nonnegative.
  • Matrix.IsTotallyNonneg.zero: the zero matrix is totally nonnegative.
  • Matrix.IsTotallyNonneg.one: the identity matrix is totally nonnegative.
  • Matrix.IsTotallyNonneg.diagonal: a diagonal matrix with nonnegative diagonal entries is totally nonnegative.
  • Matrix.IsTotallyNonneg.smul: a nonnegative scalar multiple of a totally nonnegative matrix is totally nonnegative.
  • Matrix.IsTotallyNonneg.transpose: the transpose of a totally nonnegative matrix is totally nonnegative.
  • Matrix.IsTotallyNonneg.conjTranspose: the conjugate transpose of a totally nonnegative matrix is totally nonnegative.

def Matrix.IsTotallyNonneg E3 #

{ι : Type u_1} → {R : Type u_3} → [PartialOrder ι] → [CommRing R] → [PartialOrder R] → Matrix ι ι R → Prop

A matrix is totally nonnegative if all its finite minors have nonnegative determinant.

theorem Matrix.IsTotallyNonneg.submatrix E3 #

∀ {ι : Type u_1} {κ : Type u_2} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : PartialOrder κ] [inst_2 : CommRing R]
  [inst_3 : PartialOrder R] {M : Matrix ι ι R} {f g : κ → ι},
  M.IsTotallyNonneg → StrictMono f → StrictMono g → (M.submatrix f g).IsTotallyNonneg

theorem Matrix.IsTotallyNonneg.nonneg E3 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  {M : Matrix ι ι R}, M.IsTotallyNonneg → ∀ (i j : ι), 0 ≤ M i j

theorem Matrix.IsTotallyNonneg.transpose E3 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  {M : Matrix ι ι R}, M.IsTotallyNonneg → M.transpose.IsTotallyNonneg

theorem Matrix.isTotallyNonneg_transpose_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  {M : Matrix ι ι R}, M.transpose.IsTotallyNonneg ↔ M.IsTotallyNonneg

theorem Matrix.IsTotallyNonneg.conjTranspose E3 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  {M : Matrix ι ι R} [inst_3 : StarRing R] [StarOrderedRing R], M.IsTotallyNonneg → M.conjTranspose.IsTotallyNonneg

theorem Matrix.isTotallyNonneg_conjTranspose_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  {M : Matrix ι ι R} [inst_3 : StarRing R] [StarOrderedRing R], M.conjTranspose.IsTotallyNonneg ↔ M.IsTotallyNonneg

theorem Matrix.IsTotallyNonneg.zero E3 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  [IsOrderedRing R], Matrix.IsTotallyNonneg 0

theorem Matrix.IsTotallyNonneg.diagonal E3 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  [IsOrderedRing R] [inst_4 : DecidableEq ι] {f : ι → R}, 0 ≤ f → (Matrix.diagonal f).IsTotallyNonneg

A diagonal matrix with nonnegative diagonal entries is totally nonnegative.

theorem Matrix.isTotallyNonneg_diagonal_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  [IsOrderedRing R] [inst_4 : DecidableEq ι] {f : ι → R}, (Matrix.diagonal f).IsTotallyNonneg ↔ 0 ≤ f

theorem Matrix.IsTotallyNonneg.one E3 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  [IsOrderedRing R] [inst_4 : DecidableEq ι], Matrix.IsTotallyNonneg 1

theorem Matrix.IsTotallyNonneg.smul E3 #

∀ {ι : Type u_1} {R : Type u_3} [inst : PartialOrder ι] [inst_1 : CommRing R] [inst_2 : PartialOrder R]
  [IsOrderedRing R] {M : Matrix ι ι R}, M.IsTotallyNonneg → ∀ {c : R}, 0 ≤ c → (c • M).IsTotallyNonneg

theorem Matrix.isTotallyNonneg_smul_iff E0 #

∀ {ι : Type u_1} [inst : PartialOrder ι] {R : Type u_4} [inst_1 : CommRing R] [inst_2 : LinearOrder R]
  [IsStrictOrderedRing R] {M : Matrix ι ι R} {c : R}, 0 < c → ((c • M).IsTotallyNonneg ↔ M.IsTotallyNonneg)