The areas / V07. Linear algebra
Mathlib.Data.Matrix.Basis
64 declarations and 1 deprecated aliases. Mathlib docs · Source
Matrices with a single non-zero element.
This file provides Matrix.single. The matrix Matrix.single i j c has c
at position (i, j), and zeroes elsewhere.
theorem Matrix.single.congr_simp E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} {inst : DecidableEq m} [inst_1 : DecidableEq m] {inst_2 : DecidableEq n}
[inst_3 : DecidableEq n] [inst_4 : Zero α] (i i_1 : m),
i = i_1 →
∀ (j j_1 : n),
j = j_1 →
∀ (a a_1 : α),
a = a_1 →
∀ (a_2 a_3 : m),
a_2 = a_3 → ∀ (a_4 a_5 : n), a_4 = a_5 → Matrix.single i j a a_2 a_4 = Matrix.single i_1 j_1 a_1 a_3 a_5
def Matrix.single E1 #
{m : Type u_2} →
{n : Type u_3} → {α : Type u_7} → [DecidableEq m] → [DecidableEq n] → [Zero α] → m → n → α → Matrix m n α
single i j a is the matrix with a in the i-th row, j-th column,
and zeroes elsewhere.
theorem Matrix.single_apply_same E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α] (i : m)
(j : n) (c : α), Matrix.single i j c i j = c
theorem Matrix.single_apply_of_ne E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α] (i : m)
(j : n) (c : α) (i' : m) (j' : n), ¬(i = i' ∧ j = j') → Matrix.single i j c i' j' = 0
theorem Matrix.single_apply_of_row_ne E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α]
{i i' : m}, i ≠ i' → ∀ (j j' : n) (a : α), Matrix.single i j a i' j' = 0
theorem Matrix.single_apply_of_col_ne E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α]
(i i' : m) {j j' : n}, j ≠ j' → ∀ (a : α), Matrix.single i j a i' j' = 0
theorem Matrix.single_apply E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α] (i : m)
(j : n) (c : α) (i' : m) (j' : n), Matrix.single i j c i' j' = if i = i' ∧ j = j' then c else 0
theorem Matrix.single_eq_of_single_single E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α] (i : m)
(j : n) (a : α), Matrix.single i j a = Matrix.of (Pi.single i (Pi.single j a))
See also single_eq_updateRow_zero and single_eq_updateCol_zero.
theorem Matrix.row_single E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α] (i : m)
(j : n) (a : α), (Matrix.single i j a).row = Pi.single i (Pi.single j a)
theorem Matrix.smul_single E0 #
∀ {m : Type u_2} {n : Type u_3} {R : Type u_5} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : Zero α] [inst_3 : SMulZeroClass R α] (r : R) (i : m) (j : n) (a : α),
r • Matrix.single i j a = Matrix.single i j (r • a)
theorem Matrix.single_zero E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α] (i : m)
(j : n), Matrix.single i j 0 = 0
theorem Matrix.transpose_single E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α] (i : m)
(j : n) (a : α), (Matrix.single i j a).transpose = Matrix.single j i a
theorem Matrix.map_single E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α] (i : m)
(j : n) (a : α) {β : Type u_9} [inst_3 : Zero β] {F : Type u_10} [inst_4 : FunLike F α β] [ZeroHomClass F α β]
(f : F), (Matrix.single i j a).map ⇑f = Matrix.single i j (f a)
theorem Matrix.single_mem_matrix E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Zero α]
{S : Set α}, 0 ∈ S → ∀ {i : m} {j : n} {a : α}, Matrix.single i j a ∈ S.matrix ↔ a ∈ S
theorem Matrix.diagonal_single E1 #
∀ {m : Type u_2} {α : Type u_7} [inst : DecidableEq m] [inst_1 : Zero α] (i : m) (r : α),
Matrix.diagonal (Pi.single i r) = Matrix.single i i r
theorem Matrix.submatrix_single_equiv E0 #
∀ {l : Type u_1} {m : Type u_2} {n : Type u_3} {o : Type u_4} {α : Type u_7} [inst : DecidableEq l]
[inst_1 : DecidableEq m] [inst_2 : DecidableEq n] [inst_3 : DecidableEq o] [inst_4 : Zero α] (f : l ≃ n) (g : m ≃ o)
(i : n) (j : o) (r : α), (Matrix.single i j r).submatrix ⇑f ⇑g = Matrix.single (f.symm i) (g.symm j) r
theorem Matrix.single_add E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : AddZeroClass α]
(i : m) (j : n) (a b : α), Matrix.single i j (a + b) = Matrix.single i j a + Matrix.single i j b
theorem Matrix.single_neg E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : NegZeroClass α]
(i : m) (j : n) (b : α), -Matrix.single i j b = Matrix.single i j (-b)
theorem Matrix.single_mulVec E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : NonUnitalNonAssocSemiring α] [inst_3 : Fintype m] (i : n) (j : m) (c : α) (x : m → α),
(Matrix.single i j c).mulVec x = Function.update 0 i (c * x j)
theorem Matrix.single_mulVec_eq E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Fintype n]
[inst_3 : NonAssocSemiring α] (i : m) (j : n) (b : α) (w : n → α),
(Matrix.single i j b).mulVec w = (b * w j) • Pi.single i 1
theorem Matrix.sum_single_eq_diagonal E1 #
∀ {m : Type u_2} {α : Type u_7} [inst : DecidableEq m] [inst_1 : AddCommMonoid α] [inst_2 : Fintype m] (f : m → α),
∑ i, Matrix.single i i (f i) = Matrix.diagonal f
theorem Matrix.sum_single_one E1 #
∀ {m : Type u_2} {α : Type u_7} [inst : DecidableEq m] [inst_1 : AddCommMonoid α] [inst_2 : One α] [inst_3 : Fintype m],
∑ i, Matrix.single i i 1 = 1
theorem Matrix.sum_single_natCast E1 #
∀ {m : Type u_2} {α : Type u_7} [inst : DecidableEq m] [inst_1 : AddCommMonoidWithOne α] [inst_2 : Fintype m] (n : ℕ),
∑ i, Matrix.single i i ↑n = ↑n
theorem Matrix.sum_single_ofNat E1 #
∀ {m : Type u_2} {α : Type u_7} [inst : DecidableEq m] [inst_1 : AddCommMonoidWithOne α] [inst_2 : Fintype m] (n : ℕ)
[inst_3 : n.AtLeastTwo], ∑ i, Matrix.single i i (OfNat.ofNat n) = OfNat.ofNat n
theorem Matrix.sum_single_intCast E1 #
∀ {m : Type u_2} {α : Type u_7} [inst : DecidableEq m] [inst_1 : AddCommGroupWithOne α] [inst_2 : Fintype m] (z : ℤ),
∑ i, Matrix.single i i ↑z = ↑z
theorem Matrix.sum_sum_single E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : AddCommMonoid α] [inst_3 : Fintype m] [inst_4 : Fintype n] (x : m → n → α),
∑ i, ∑ j, Matrix.single i j (x i j) = Matrix.of x
theorem Matrix.matrix_eq_sum_single E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : AddCommMonoid α] [inst_3 : Fintype m] [inst_4 : Fintype n] (x : Matrix m n α),
x = ∑ i, ∑ j, Matrix.single i j (x i j)
theorem Matrix.single_eq_single_vecMulVec_single E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : MulZeroOneClass α] (i : m) (j : n), Matrix.single i j 1 = Matrix.vecMulVec (Pi.single i 1) (Pi.single j 1)
theorem Matrix.induction_on' E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : AddCommMonoid α] [Finite m] [Finite n] {P : Matrix m n α → Prop} (M : Matrix m n α),
P 0 → (∀ (p q : Matrix m n α), P p → P q → P (p + q)) → (∀ (i : m) (j : n) (x : α), P (Matrix.single i j x)) → P M
theorem Matrix.induction_on E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : AddCommMonoid α] [Finite m] [Finite n] [Nonempty m] [Nonempty n] {P : Matrix m n α → Prop}
(M : Matrix m n α),
(∀ (p q : Matrix m n α), P p → P q → P (p + q)) → (∀ (i : m) (j : n) (x : α), P (Matrix.single i j x)) → P M
def Matrix.singleAddMonoidHom E1 #
{m : Type u_2} →
{n : Type u_3} →
{α : Type u_7} → [DecidableEq m] → [DecidableEq n] → [inst : AddCommMonoid α] → m → n → α →+ Matrix m n α
Matrix.single as a bundled additive map.
theorem Matrix.singleAddMonoidHom_apply E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : AddCommMonoid α] (i : m) (j : n) (a : α), (Matrix.singleAddMonoidHom i j) a = Matrix.single i j a
def Matrix.singleLinearMap E1 #
{m : Type u_2} →
{n : Type u_3} →
(R : Type u_5) →
{α : Type u_7} →
[DecidableEq m] →
[DecidableEq n] →
[inst : Semiring R] → [inst_1 : AddCommMonoid α] → [inst_2 : Module R α] → m → n → α →ₗ[R] Matrix m n α
Matrix.single as a bundled linear map.
theorem Matrix.singleLinearMap_apply E0 #
∀ {m : Type u_2} {n : Type u_3} (R : Type u_5) {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : Semiring R] [inst_3 : AddCommMonoid α] [inst_4 : Module R α] (i : m) (j : n) (a : α),
(Matrix.singleLinearMap R i j) a = Matrix.single i j a
theorem Matrix.ext_addMonoidHom E1 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} {β : Type u_8} [inst : DecidableEq m] [inst_1 : DecidableEq n] [Finite m]
[Finite n] [inst_4 : AddCommMonoid α] [inst_5 : AddCommMonoid β] ⦃f g : Matrix m n α →+ β⦄,
(∀ (i : m) (j : n), f.comp (Matrix.singleAddMonoidHom i j) = g.comp (Matrix.singleAddMonoidHom i j)) → f = g
Additive maps from finite matrices are equal if they agree on the standard basis.
See note [partially-applied ext lemmas].
theorem Matrix.ext_addMonoidHom_iff E0 #
∀ {m : Type u_2} {n : Type u_3} {α : Type u_7} {β : Type u_8} [inst : DecidableEq m] [inst_1 : DecidableEq n] [Finite m]
[Finite n] [inst_4 : AddCommMonoid α] [inst_5 : AddCommMonoid β] {f g : Matrix m n α →+ β},
f = g ↔ ∀ (i : m) (j : n), f.comp (Matrix.singleAddMonoidHom i j) = g.comp (Matrix.singleAddMonoidHom i j)
theorem Matrix.ext_linearMap E1 #
∀ {m : Type u_2} {n : Type u_3} (R : Type u_5) {α : Type u_7} {β : Type u_8} [inst : DecidableEq m]
[inst_1 : DecidableEq n] [Finite m] [Finite n] [inst_4 : Semiring R] [inst_5 : AddCommMonoid α]
[inst_6 : AddCommMonoid β] [inst_7 : Module R α] [inst_8 : Module R β] ⦃f g : Matrix m n α →ₗ[R] β⦄,
(∀ (i : m) (j : n), f ∘ₗ Matrix.singleLinearMap R i j = g ∘ₗ Matrix.singleLinearMap R i j) → f = g
Linear maps from finite matrices are equal if they agree on the standard basis.
See note [partially-applied ext lemmas].
theorem Matrix.ext_linearMap_iff E0 #
∀ {m : Type u_2} {n : Type u_3} {R : Type u_5} {α : Type u_7} {β : Type u_8} [inst : DecidableEq m]
[inst_1 : DecidableEq n] [Finite m] [Finite n] [inst_4 : Semiring R] [inst_5 : AddCommMonoid α]
[inst_6 : AddCommMonoid β] [inst_7 : Module R α] [inst_8 : Module R β] {f g : Matrix m n α →ₗ[R] β},
f = g ↔ ∀ (i : m) (j : n), f ∘ₗ Matrix.singleLinearMap R i j = g ∘ₗ Matrix.singleLinearMap R i j
def Matrix.liftLinear E1 #
{m : Type u_2} →
{n : Type u_3} →
{R : Type u_5} →
(S : Type u_6) →
{α : Type u_7} →
{β : Type u_8} →
[DecidableEq m] →
[DecidableEq n] →
[Fintype m] →
[Fintype n] →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid α] →
[inst_3 : AddCommMonoid β] →
[inst_4 : Module R α] →
[inst_5 : Module R β] →
[inst_6 : Module S β] →
[inst_7 : SMulCommClass R S β] → (m → n → α →ₗ[R] β) ≃ₗ[S] Matrix m n α →ₗ[R] β
Families of linear maps acting on each element are equivalent to linear maps from a matrix.
This can be thought of as the matrix version of LinearMap.lsum.
theorem Matrix.liftLinear_apply E0 #
∀ {m : Type u_2} {n : Type u_3} {R : Type u_5} (S : Type u_6) {α : Type u_7} {β : Type u_8} [inst : DecidableEq m]
[inst_1 : DecidableEq n] [inst_2 : Fintype m] [inst_3 : Fintype n] [inst_4 : Semiring R] [inst_5 : Semiring S]
[inst_6 : AddCommMonoid α] [inst_7 : AddCommMonoid β] [inst_8 : Module R α] [inst_9 : Module R β]
[inst_10 : Module S β] [inst_11 : SMulCommClass R S β] (f : m → n → α →ₗ[R] β) (M : Matrix m n α),
((Matrix.liftLinear S) f) M = ∑ i, ∑ j, (f i j) (M i j)
theorem Matrix.liftLinear_single E0 #
∀ {m : Type u_2} {n : Type u_3} {R : Type u_5} (S : Type u_6) {α : Type u_7} {β : Type u_8} [inst : DecidableEq m]
[inst_1 : DecidableEq n] [inst_2 : Fintype m] [inst_3 : Fintype n] [inst_4 : Semiring R] [inst_5 : Semiring S]
[inst_6 : AddCommMonoid α] [inst_7 : AddCommMonoid β] [inst_8 : Module R α] [inst_9 : Module R β]
[inst_10 : Module S β] [inst_11 : SMulCommClass R S β] (f : m → n → α →ₗ[R] β) (i : m) (j : n) (a : α),
((Matrix.liftLinear S) f) (Matrix.single i j a) = (f i j) a
theorem Matrix.liftLinear_comp_singleLinearMap E0 #
∀ {m : Type u_2} {n : Type u_3} {R : Type u_5} (S : Type u_6) {α : Type u_7} {β : Type u_8} [inst : DecidableEq m]
[inst_1 : DecidableEq n] [inst_2 : Fintype m] [inst_3 : Fintype n] [inst_4 : Semiring R] [inst_5 : Semiring S]
[inst_6 : AddCommMonoid α] [inst_7 : AddCommMonoid β] [inst_8 : Module R α] [inst_9 : Module R β]
[inst_10 : Module S β] [inst_11 : SMulCommClass R S β] (f : m → n → α →ₗ[R] β) (i : m) (j : n),
(Matrix.liftLinear S) f ∘ₗ Matrix.singleLinearMap R i j = f i j
theorem Matrix.liftLinear_singleLinearMap E0 #
∀ {m : Type u_2} {n : Type u_3} {R : Type u_5} (S : Type u_6) {α : Type u_7} [inst : DecidableEq m]
[inst_1 : DecidableEq n] [inst_2 : Fintype m] [inst_3 : Fintype n] [inst_4 : Semiring R] [inst_5 : Semiring S]
[inst_6 : AddCommMonoid α] [inst_7 : Module R α] [inst_8 : Module S α] [inst_9 : SMulCommClass R S α],
(Matrix.liftLinear S) (Matrix.singleLinearMap R) = LinearMap.id
theorem Matrix.diag_single_of_ne E0 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Zero α] (i j : n) (c : α),
i ≠ j → (Matrix.single i j c).diag = 0
theorem Matrix.diag_single_same E0 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Zero α] (i : n) (c : α),
(Matrix.single i i c).diag = Pi.single i c
theorem Matrix.single_mul_apply_same E0 #
∀ {l : Type u_1} {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq l] [inst_1 : DecidableEq m]
[inst_2 : Fintype m] [inst_3 : NonUnitalNonAssocSemiring α] (c : α) (i : l) (j : m) (b : n) (M : Matrix m n α),
(Matrix.single i j c * M) i b = c * M j b
theorem Matrix.mul_single_apply_same E0 #
∀ {l : Type u_1} {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : Fintype m] [inst_3 : NonUnitalNonAssocSemiring α] (c : α) (i : m) (j : n) (a : l) (M : Matrix l m α),
(M * Matrix.single i j c) a j = M a i * c
theorem Matrix.single_mul_apply_of_ne E0 #
∀ {l : Type u_1} {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq l] [inst_1 : DecidableEq m]
[inst_2 : Fintype m] [inst_3 : NonUnitalNonAssocSemiring α] (c : α) (i : l) (j : m) (a : l) (b : n),
a ≠ i → ∀ (M : Matrix m n α), (Matrix.single i j c * M) a b = 0
theorem Matrix.mul_single_apply_of_ne E0 #
∀ {l : Type u_1} {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq m] [inst_1 : DecidableEq n]
[inst_2 : Fintype m] [inst_3 : NonUnitalNonAssocSemiring α] (c : α) (i : m) (j : n) (a : l) (b : n),
b ≠ j → ∀ (M : Matrix l m α), (M * Matrix.single i j c) a b = 0
theorem Matrix.single_mul_single_same E0 #
∀ {l : Type u_1} {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq l] [inst_1 : DecidableEq m]
[inst_2 : DecidableEq n] [inst_3 : Fintype m] [inst_4 : NonUnitalNonAssocSemiring α] (c : α) (i : l) (j : m) (k : n)
(d : α), Matrix.single i j c * Matrix.single j k d = Matrix.single i k (c * d)
theorem Matrix.single_mul_mul_single E0 #
∀ {l : Type u_1} {m : Type u_2} {n : Type u_3} {o : Type u_4} {α : Type u_7} [inst : DecidableEq l]
[inst_1 : DecidableEq m] [inst_2 : DecidableEq n] [inst_3 : DecidableEq o] [inst_4 : Fintype m]
[inst_5 : NonUnitalNonAssocSemiring α] [inst_6 : Fintype n] (i : l) (i' : m) (j' : n) (j : o) (a : α)
(x : Matrix m n α) (b : α), Matrix.single i i' a * x * Matrix.single j' j b = Matrix.single i j (a * x i' j' * b)
theorem Matrix.single_mul_single_of_ne E0 #
∀ {l : Type u_1} {m : Type u_2} {n : Type u_3} {α : Type u_7} [inst : DecidableEq l] [inst_1 : DecidableEq m]
[inst_2 : DecidableEq n] [inst_3 : Fintype m] [inst_4 : NonUnitalNonAssocSemiring α] (c : α) (i : l) (j k : m)
{l_1 : n}, j ≠ k → ∀ (d : α), Matrix.single i j c * Matrix.single k l_1 d = 0
theorem Matrix.row_eq_zero_of_commute_single E1 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α] {i j k : n}
{M : Matrix n n α}, Commute (Matrix.single i j 1) M → k ≠ j → M j k = 0
theorem Matrix.col_eq_zero_of_commute_single E1 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α] {i j k : n}
{M : Matrix n n α}, Commute (Matrix.single i j 1) M → k ≠ i → M k i = 0
theorem Matrix.diag_eq_of_commute_single E1 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α] {i j : n}
{M : Matrix n n α}, Commute (Matrix.single i j 1) M → M i i = M j j
theorem Matrix.mem_range_scalar_of_commute_single E0 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α] {M : Matrix n n α},
(Pairwise fun i j ↦ Commute (Matrix.single i j 1) M) → M ∈ Set.range ⇑(Matrix.scalar n)
M is a scalar matrix if it commutes with every non-diagonal single.
theorem Matrix.mem_range_scalar_iff_commute_single E0 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α] {M : Matrix n n α},
M ∈ Set.range ⇑(Matrix.scalar n) ↔ ∀ (i j : n), i ≠ j → Commute (Matrix.single i j 1) M
theorem Matrix.mem_range_scalar_iff_commute_single' E0 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α] {M : Matrix n n α},
M ∈ Set.range ⇑(Matrix.scalar n) ↔ ∀ (i j : n), Commute (Matrix.single i j 1) M
M is a scalar matrix if and only if it commutes with every single.
theorem Matrix.center_eq_scalar_image E1 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α],
Set.center (Matrix n n α) = ⇑(Matrix.scalar n) '' Set.center α
The center of Matrix n n α is equal to the image of the center of α under scalar n.
theorem Matrix.submonoidCenter_eq_scalar_map E1 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α],
Submonoid.center (Matrix n n α) = Submonoid.map (Matrix.scalar n) (Submonoid.center α)
theorem Matrix.subsemigroupCenter_eq_scalar_map E1 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α],
Subsemigroup.center (Matrix n n α) = Subsemigroup.map (↑↑(Matrix.scalar n)) (Subsemigroup.center α)
theorem Matrix.subsemiringCenter_eq_scalar_map E1 #
∀ {n : Type u_3} {α : Type u_7} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring α],
Subsemiring.center (Matrix n n α) = Subsemiring.map (Matrix.scalar n) (Subsemiring.center α)
theorem Matrix.subringCenter_eq_scalar_map E1 #
∀ {n : Type u_3} (R : Type u_5) [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Ring R],
Subring.center (Matrix n n R) = Subring.map (Matrix.scalar n) (Subring.center R)
theorem Matrix.center_eq_range E0 #
∀ {n : Type u_3} (R : Type u_5) [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : CommSemiring R],
Set.center (Matrix n n R) = Set.range ⇑(Matrix.scalar n)
For a commutative semiring R, the center of Matrix n n R is the range of scalar n
(i.e., the span of {1}).
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Matrix.of_symm_single | 2026-10-23 |