The areas / V07. Linear algebra
Mathlib.LinearAlgebra.Finsupp.VectorSpace
26 declarations. Mathlib docs · Source
Linear structures on function with finite support ι →₀ M
This file contains results on the R-module structure on functions of finite support from a type
ι to an R-module M, in particular in the case that R is a field.
TODO: move this section to an earlier file.
theorem LinearMap.linearProjOfIsCompl.congr_simp E1 #
∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (q q_1 : Submodule R E)
(e_q : q = q_1) {F : Type u_7} [inst_3 : AddCommGroup F] [inst_4 : Module R F] (i i_1 : F →ₗ[R] E) (e_i : i = i_1)
(hi : Function.Injective ⇑i) (h : IsCompl i.range q),
LinearMap.linearProjOfIsCompl q i hi h = LinearMap.linearProjOfIsCompl q_1 i_1 ⋯ ⋯
theorem Finsupp.lcomapDomain.congr_simp E1 #
∀ {α : Type u_1} {M : Type u_2} {R : Type u_5} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{β : Type u_8} (f f_1 : α → β) (e_f : f = f_1) (hf : Function.Injective f),
Finsupp.lcomapDomain f hf = Finsupp.lcomapDomain f_1 ⋯
def DFinsupp.basis E1 #
{ι : Type u_1} →
{R : Type u_2} →
{M : ι → Type u_3} →
[inst : Semiring R] →
[inst_1 : (i : ι) → AddCommMonoid (M i)] →
[inst_2 : (i : ι) → Module R (M i)] →
{η : ι → Type u_4} →
((i : ι) → Module.Basis (η i) R (M i)) → Module.Basis ((i : ι) × η i) R (Π₀ (i : ι), M i)
The direct sum of free modules is free.
Note that while this is stated for DFinsupp not DirectSum, the types are defeq.
instance Module.Free.dfinsupp E0 #
∀ {ι : Type u_1} (R : Type u_2) (M : ι → Type u_3) [inst : Semiring R] [inst_1 : (i : ι) → AddCommMonoid (M i)]
[inst_2 : (i : ι) → Module R (M i)] [∀ (i : ι), Module.Free R (M i)], Module.Free R (Π₀ (i : ι), M i)
theorem DFinsupp.linearIndependent_single E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : ι → Type u_3} [inst : Semiring R] [inst_1 : (i : ι) → AddCommMonoid (M i)]
[inst_2 : (i : ι) → Module R (M i)] [inst_3 : DecidableEq ι] {φ : ι → Type u_4} (f : (i : ι) → φ i → M i),
(∀ (i : ι), LinearIndependent R (f i)) → LinearIndependent R fun ix ↦ fun₀ | ix.fst => f ix.fst ix.snd
theorem DFinsupp.linearIndependent_single_iff E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : ι → Type u_3} [inst : Semiring R] [inst_1 : (i : ι) → AddCommMonoid (M i)]
[inst_2 : (i : ι) → Module R (M i)] [inst_3 : DecidableEq ι] {φ : ι → Type u_4} (f : (i : ι) → φ i → M i),
(LinearIndependent R fun ix ↦ fun₀ | ix.fst => f ix.fst ix.snd) ↔ ∀ (i : ι), LinearIndependent R (f i)
theorem Finsupp.linearIndependent_single E1 #
∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{φ : ι → Type u_4} (f : (i : ι) → φ i → M),
(∀ (i : ι), LinearIndependent R (f i)) → LinearIndependent R fun ix ↦ fun₀ | ix.fst => f ix.fst ix.snd
theorem Finsupp.linearIndependent_single_iff E0 #
∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{φ : ι → Type u_4} {f : (i : ι) → φ i → M},
(LinearIndependent R fun ix ↦ fun₀ | ix.fst => f ix.fst ix.snd) ↔ ∀ (i : ι), LinearIndependent R (f i)
def Finsupp.basis E1 #
{R : Type u_1} →
{M : Type u_2} →
{ι : Type u_3} →
[inst : Semiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
{φ : ι → Type u_4} → ((i : ι) → Module.Basis (φ i) R M) → Module.Basis ((i : ι) × φ i) R (ι →₀ M)
The basis on ι →₀ M with basis vectors fun ⟨i, x⟩ ↦ single i (b i x).
theorem Finsupp.basis_repr E0 #
∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{φ : ι → Type u_4} (b : (i : ι) → Module.Basis (φ i) R M) (g : ι →₀ M) (ix : (i : ι) × φ i),
((Finsupp.basis b).repr g) ix = ((b ix.fst).repr (g ix.fst)) ix.snd
theorem Finsupp.coe_basis E0 #
∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{φ : ι → Type u_4} (b : (i : ι) → Module.Basis (φ i) R M),
⇑(Finsupp.basis b) = fun ix ↦ fun₀ | ix.fst => (b ix.fst) ix.snd
instance Module.Free.finsupp E0 #
∀ (R : Type u_1) (M : Type u_2) (ι : Type u_3) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[Module.Free R M], Module.Free R (ι →₀ M)
def Finsupp.basisSingleOne E1 #
{R : Type u_1} → {ι : Type u_3} → [inst : Semiring R] → Module.Basis ι R (ι →₀ R)
The basis on ι →₀ R with basis vectors fun i ↦ single i 1.
theorem Finsupp.basisSingleOne_repr E0 #
∀ {R : Type u_1} {ι : Type u_3} [inst : Semiring R], Finsupp.basisSingleOne.repr = LinearEquiv.refl R (ι →₀ R)
theorem Finsupp.coe_basisSingleOne E0 #
∀ {R : Type u_1} {ι : Type u_3} [inst : Semiring R], ⇑Finsupp.basisSingleOne = fun i ↦ fun₀ | i => 1
theorem Finsupp.linearIndependent_single_one E1 #
∀ (R : Type u_1) (ι : Type u_3) [inst : Semiring R], LinearIndependent R fun i ↦ fun₀ | i => 1
theorem Finsupp.isCompl_range_lmapDomain_span E1 #
∀ {R : Type u_1} {ι : Type u_3} [inst : Semiring R] {α : Type u_4} {β : Type u_5} {u : α → ι} {v : β → ι},
IsCompl (Set.range u) (Set.range v) →
IsCompl (Finsupp.lmapDomain R R u).range (Submodule.span R (Set.range fun x ↦ fun₀ | v x => 1))
theorem Finsupp.linearIndependent_single_of_ne_zero E1 #
∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : Ring R] [inst_1 : AddCommGroup M] [IsDomain R]
[inst_3 : Module R M] [Module.IsTorsionFree R M] {v : ι → M},
(∀ (i : ι), v i ≠ 0) → LinearIndependent R fun i ↦ fun₀ | i => v i
theorem Finsupp.lcomapDomain_eq_linearProjOfIsCompl E1 #
∀ {R : Type u_1} {ι : Type u_3} [inst : Ring R] {α : Type u_4} {β : Type u_5} {u : α → ι} {v : β → ι}
(hu : Function.Injective u) (h : IsCompl (Set.range u) (Set.range v)),
Finsupp.lcomapDomain u hu =
LinearMap.linearProjOfIsCompl (Submodule.span R (Set.range fun x ↦ fun₀ | v x => 1)) (Finsupp.lmapDomain R R u) ⋯ ⋯
theorem Module.Free.trans E1 #
∀ {R : Type u_1} {S : Type u_2} {M : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Algebra R S]
[inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : Module S M] [IsScalarTower R S M] [Module.Free S M]
[Module.Free R S], Module.Free R M
theorem Finset.sum_single_ite E1 #
∀ {R : Type u_1} {n : Type u_3} [inst : DecidableEq n] [inst_1 : Semiring R] [inst_2 : Fintype n] (a : R) (i : n),
(∑ x, fun₀ | x => if i = x then a else 0) = fun₀ | i => a
theorem Basis.equivFun_symm_single E0 #
∀ {R : Type u_1} {M : Type u_2} {n : Type u_3} [inst : DecidableEq n] [inst_1 : Semiring R] [inst_2 : AddCommMonoid M]
[inst_3 : Module R M] [inst_4 : Finite n] (b : Module.Basis n R M) (i : n), b.equivFun.symm (Pi.single i 1) = b i
theorem Module.Basis.repr_smul' E1 #
∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : Ring S] [inst_2 : Algebra R S] {ι : Type u_3}
(B : Module.Basis ι R S) (i : ι) (r : R) (s : S), (B.repr ((algebraMap R S) r * s)) i = r * (B.repr s) i
For any r : R, s : S, we have
B.repr ((algebra_map R S r) * s) i = r * (B.repr s i) .
instance FreeAddCommGroup.instFreeInt E0 #
∀ {σ : Type u_1}, Module.Free ℤ (FreeAddCommGroup σ)
instance AddMonoidAlgebra.instFree E0 #
∀ {M : Type u_1} {R : Type u_2} {S : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
[Module.Free R S], Module.Free R (AddMonoidAlgebra S M)
instance MonoidAlgebra.instFree E0 #
∀ {M : Type u_1} {R : Type u_2} {S : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : Module R S]
[Module.Free R S], Module.Free R (MonoidAlgebra S M)