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.Symmetrizable

22 declarations. Mathlib docs · Source

Symmetrizable Matrices

A matrix M is symmetrizable if there exists a diagonal matrix D such that D * M is symmetric. If furthermore the diagonal entries of D are positive, M is said to be positively symmetrizable.

def Matrix.IsSymmetrizable E1 #

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

A matrix is symmetrizable if it is symmetric when multiplied by a diagonal matrix of diagonal entries that do not divide zero.

theorem Matrix.IsSymmetrizable.of_isEmpty E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : Semiring R] [IsEmpty ι], M.IsSymmetrizable

theorem Matrix.IsSymm.isSymmetrizable E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : MonoidWithZero R], M.IsSymm → M.IsSymmetrizable

theorem Matrix.isSymmetrizable_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : DecidableEq ι] [inst_1 : Fintype ι] [inst_2 : Semiring R],
  M.IsSymmetrizable ↔ ∃ d, (∀ (i : ι), d i ∈ nonZeroDivisors R) ∧ (Matrix.diagonal d * M).IsSymm

theorem Matrix.isSymmetrizable_iff' E1 #

∀ {ι : Type u_1} {R : Type u_3} [inst : Field R] [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] (M : Matrix ι ι R),
  M.IsSymmetrizable ↔ ∃ d, IsUnit (Matrix.diagonal d) ∧ (Matrix.diagonal d * M).IsSymm

theorem Matrix.IsSymmetrizable.transpose E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [Finite ι] [inst : CommMonoidWithZero R],
  M.IsSymmetrizable → M.transpose.IsSymmetrizable

theorem Matrix.isSymmetrizable_transpose_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [Finite ι] [inst : CommMonoidWithZero R],
  M.transpose.IsSymmetrizable ↔ M.IsSymmetrizable

theorem Matrix.IsSymmetrizable.submatrix E1 #

∀ {ι : Type u_1} {κ : Type u_2} {R : Type u_3} {M : Matrix ι ι R} [inst : MonoidWithZero R] (f : κ → ι),
  M.IsSymmetrizable → (M.submatrix f f).IsSymmetrizable

theorem Matrix.IsSymmetrizable.apply_eq_zero_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : MonoidWithZero R],
  M.IsSymmetrizable → ∀ {i j : ι}, M i j = 0 ↔ M j i = 0

theorem Matrix.isSymmetrizable_iff_of_pairwise_eq E0 #

∀ {ι : Type u_1} {R : Type u_3} {M N : Matrix ι ι R} [inst : MonoidWithZero R],
  (Pairwise fun i j ↦ M i j = N i j) → (M.IsSymmetrizable ↔ N.IsSymmetrizable)

theorem Matrix.isSymmetrizable_add_diagonal_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : DecidableEq ι] [inst_1 : Semiring R] (d : ι → R),
  (M + Matrix.diagonal d).IsSymmetrizable ↔ M.IsSymmetrizable

def Matrix.IsPosSymmetrizable E1 #

{ι : Type u_1} → {R : Type u_3} → [Semiring R] → [LT R] → Matrix ι ι R → Prop

A matrix is positively symmetrizable if it is symmetric when multiplied by a diagonal matrix of positive diagonal entries.

theorem Matrix.IsPosSymmetrizable.of_isEmpty E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : Semiring R] [inst_1 : LT R] [IsEmpty ι], M.IsPosSymmetrizable

theorem Matrix.IsPosSymmetrizable.isSymmetrizable E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : Semiring R] [IsDomain R] [inst_2 : Preorder R],
  M.IsPosSymmetrizable → M.IsSymmetrizable

theorem Matrix.IsSymm.isPosSymmetrizable E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : Semiring R] [IsDomain R] [inst_2 : PartialOrder R]
  [ZeroLEOneClass R], M.IsSymm → M.IsPosSymmetrizable

theorem Matrix.isPosSymmetrizable_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : DecidableEq ι] [inst_1 : Fintype ι] [inst_2 : Semiring R]
  [inst_3 : LT R], M.IsPosSymmetrizable ↔ ∃ d, (∀ (i : ι), 0 < d i) ∧ (Matrix.diagonal d * M).IsSymm

theorem Matrix.IsPosSymmetrizable.transpose E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [Finite ι] [inst : CommSemiring R] [IsDomain R]
  [inst_2 : PartialOrder R] [ZeroLEOneClass R] [PosMulStrictMono R],
  M.IsPosSymmetrizable → M.transpose.IsPosSymmetrizable

theorem Matrix.isPosSymmetrizable_transpose_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [Finite ι] [inst : CommSemiring R] [IsDomain R]
  [inst_2 : PartialOrder R] [IsStrictOrderedRing R], M.transpose.IsPosSymmetrizable ↔ M.IsPosSymmetrizable

theorem Matrix.IsPosSymmetrizable.submatrix E1 #

∀ {ι : Type u_1} {κ : Type u_2} {R : Type u_3} {M : Matrix ι ι R} [inst : Semiring R] [inst_1 : Preorder R] (f : κ → ι),
  M.IsPosSymmetrizable → (M.submatrix f f).IsPosSymmetrizable

theorem Matrix.isPosSymmetrizable_iff_of_pairwise_eq E0 #

∀ {ι : Type u_1} {R : Type u_3} {M N : Matrix ι ι R} [inst : Semiring R] [inst_1 : LT R],
  (Pairwise fun i j ↦ M i j = N i j) → (M.IsPosSymmetrizable ↔ N.IsPosSymmetrizable)

theorem Matrix.isPosSymmetrizable_add_diagonal_iff E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} [inst : DecidableEq ι] [inst_1 : Semiring R] [inst_2 : LT R]
  (d : ι → R), (M + Matrix.diagonal d).IsPosSymmetrizable ↔ M.IsPosSymmetrizable

theorem Matrix.IsPosSymmetrizable.mk_of_forall_ne E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Matrix ι ι R} {k : ι} [inst : Semiring R] [inst_1 : PartialOrder R]
  [IsStrictOrderedRing R] (e : ι → R),
  (∀ (i : ι), 0 < e i) →
    (∀ (i : ι), i ≠ k → ∀ (j : ι), j ≠ k → e i * M i j = e j * M j i) →
      (∃ a > 0, ∃ b > 0, ∀ (j : ι), j ≠ k → b * M k j = a * e j * M j k) → M.IsPosSymmetrizable

Extends positive symmetry from the complement of an index v to the full matrix, given a positive symmetry condition on the entries with v.