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

6 declarations. Mathlib docs · Source

theorem Matrix.proj_diagonal E1 #

∀ {n : Type u_1} [inst : Fintype n] [inst_1 : DecidableEq n] {R : Type v} [inst_2 : CommSemiring R] (i : n) (w : n → R),
  LinearMap.proj i ∘ₗ Matrix.toLin' (Matrix.diagonal w) = w i • LinearMap.proj i

theorem Matrix.diagonal_comp_single E1 #

∀ {n : Type u_1} [inst : Fintype n] [inst_1 : DecidableEq n] {R : Type v} [inst_2 : CommSemiring R] (w : n → R) (i : n),
  Matrix.toLin' (Matrix.diagonal w) ∘ₗ LinearMap.single R (fun x ↦ R) i = w i • LinearMap.single R (fun x ↦ R) i

theorem Matrix.diagonal_toLin' E1 #

∀ {n : Type u_1} [inst : Fintype n] [inst_1 : DecidableEq n] {R : Type v} [inst_2 : CommSemiring R] (w : n → R),
  Matrix.toLin' (Matrix.diagonal w) = LinearMap.pi fun i ↦ w i • LinearMap.proj i

theorem Matrix.ker_diagonal_toLin' E1 #

∀ {m : Type u_1} [inst : Fintype m] {K : Type u} [inst_1 : Semifield K] [inst_2 : DecidableEq m] (w : m → K),
  (Matrix.toLin' (Matrix.diagonal w)).ker = ⨆ i ∈ {i | w i = 0}, (LinearMap.single K (fun x ↦ K) i).range

theorem Matrix.range_diagonal E1 #

∀ {m : Type u_1} [inst : Fintype m] {K : Type u} [inst_1 : Semifield K] [inst_2 : DecidableEq m] (w : m → K),
  (Matrix.toLin' (Matrix.diagonal w)).range = ⨆ i ∈ {i | w i ≠ 0}, (LinearMap.single K (fun x ↦ K) i).range

theorem LinearMap.rank_diagonal E1 #

∀ {m : Type u_1} [inst : Fintype m] {K : Type u} [inst_1 : Field K] [inst_2 : DecidableEq m] [inst_3 : DecidableEq K]
  (w : m → K), (Matrix.toLin' (Matrix.diagonal w)).rank = ↑(Fintype.card { i // w i ≠ 0 })