The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Basis.Fin
12 declarations. Mathlib docs · Source
def Module.Basis.mkFinCons E1 #
{R : Type u_3} →
{M : Type u_5} →
[inst : Ring R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] →
{n : ℕ} →
{N : Submodule R M} →
(y : M) →
Module.Basis (Fin n) R ↥N →
(∀ (c : R), ∀ x ∈ N, c • y + x = 0 → c = 0) →
(∀ (z : M), ∃ c, z + c • y ∈ N) → Module.Basis (Fin (n + 1)) R M
Let b be a basis for a submodule N of M. If y : M is linear independent of N
and y and N together span the whole of M, then there is a basis for M
whose basis vectors are given by Fin.cons y b.
theorem Module.Basis.coe_mkFinCons E0 #
∀ {R : Type u_3} {M : Type u_5} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {n : ℕ}
{N : Submodule R M} (y : M) (b : Module.Basis (Fin n) R ↥N) (hli : ∀ (c : R), ∀ x ∈ N, c • y + x = 0 → c = 0)
(hsp : ∀ (z : M), ∃ c, z + c • y ∈ N), ⇑(Module.Basis.mkFinCons y b hli hsp) = Fin.cons y (Subtype.val ∘ ⇑b)
def Module.Basis.mkFinConsOfLE E1 #
{R : Type u_3} →
{M : Type u_5} →
[inst : Ring R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] →
{n : ℕ} →
{N O : Submodule R M} →
(y : M) →
y ∈ O →
Module.Basis (Fin n) R ↥N →
N ≤ O →
(∀ (c : R), ∀ x ∈ N, c • y + x = 0 → c = 0) →
(∀ z ∈ O, ∃ c, z + c • y ∈ N) → Module.Basis (Fin (n + 1)) R ↥O
Let b be a basis for a submodule N ≤ O. If y ∈ O is linear independent of N
and y and N together span the whole of O, then there is a basis for O
whose basis vectors are given by Fin.cons y b.
theorem Module.Basis.coe_mkFinConsOfLE E0 #
∀ {R : Type u_3} {M : Type u_5} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {n : ℕ}
{N O : Submodule R M} (y : M) (yO : y ∈ O) (b : Module.Basis (Fin n) R ↥N) (hNO : N ≤ O)
(hli : ∀ (c : R), ∀ x ∈ N, c • y + x = 0 → c = 0) (hsp : ∀ z ∈ O, ∃ c, z + c • y ∈ N),
⇑(Module.Basis.mkFinConsOfLE y yO b hNO hli hsp) = Fin.cons ⟨y, yO⟩ (⇑(Submodule.inclusion hNO) ∘ ⇑b)
def Module.Basis.mkFinSnoc E1 #
{R : Type u_3} →
{M : Type u_5} →
[inst : Ring R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] →
{n : ℕ} →
{N : Submodule R M} →
Module.Basis (Fin n) R ↥N →
(y : M) →
(∀ (c : R), ∀ x ∈ N, c • y + x = 0 → c = 0) →
(∀ (z : M), ∃ c, z + c • y ∈ N) → Module.Basis (Fin (n + 1)) R M
Let b be a basis for a submodule N of M. If y : M is linear independent of N
and y and N together span the whole of M, then there is a basis for M
whose basis vectors are given by Fin.snoc b y.
theorem Module.Basis.coe_mkFinSnoc E0 #
∀ {R : Type u_3} {M : Type u_5} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {n : ℕ}
{N : Submodule R M} (b : Module.Basis (Fin n) R ↥N) (y : M) (hli : ∀ (c : R), ∀ x ∈ N, c • y + x = 0 → c = 0)
(hsp : ∀ (z : M), ∃ c, z + c • y ∈ N), ⇑(b.mkFinSnoc y hli hsp) = Fin.snoc (Subtype.val ∘ ⇑b) y
def Module.Basis.mkFinSnocOfLE E1 #
{R : Type u_3} →
{M : Type u_5} →
[inst : Ring R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] →
{n : ℕ} →
{N O : Submodule R M} →
Module.Basis (Fin n) R ↥N →
N ≤ O →
(y : M) →
y ∈ O →
(∀ (c : R), ∀ x ∈ N, c • y + x = 0 → c = 0) →
(∀ z ∈ O, ∃ c, z + c • y ∈ N) → Module.Basis (Fin (n + 1)) R ↥O
Let b be a basis for a submodule N ≤ O. If y ∈ O is linear independent of N
and y and N together span the whole of O, then there is a basis for O
whose basis vectors are given by Fin.snoc b y.
theorem Module.Basis.coe_mkFinSnocOfLE E0 #
∀ {R : Type u_3} {M : Type u_5} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {n : ℕ}
{N O : Submodule R M} (b : Module.Basis (Fin n) R ↥N) (hNO : N ≤ O) (y : M) (yO : y ∈ O)
(hli : ∀ (c : R), ∀ x ∈ N, c • y + x = 0 → c = 0) (hsp : ∀ z ∈ O, ∃ c, z + c • y ∈ N),
⇑(b.mkFinSnocOfLE hNO y yO hli hsp) = Fin.snoc (⇑(Submodule.inclusion hNO) ∘ ⇑b) ⟨y, yO⟩
def Module.Basis.finTwoProd E1 #
(R : Type u_7) → [inst : Semiring R] → Module.Basis (Fin 2) R (R × R)
The basis of R × R given by the two vectors (1, 0) and (0, 1).
theorem Module.Basis.finTwoProd_zero E0 #
∀ (R : Type u_7) [inst : Semiring R], (Module.Basis.finTwoProd R) 0 = (1, 0)
theorem Module.Basis.finTwoProd_one E0 #
∀ (R : Type u_7) [inst : Semiring R], (Module.Basis.finTwoProd R) 1 = (0, 1)
theorem Module.Basis.coe_finTwoProd_repr E0 #
∀ {R : Type u_7} [inst : Semiring R] (x : R × R), ⇑((Module.Basis.finTwoProd R).repr x) = ![x.1, x.2]