The areas / V07. Linear algebra
Mathlib.Algebra.Module.Presentation.Basic
116 declarations. Mathlib docs · Source
def Module.Presentation.ctorIdx E1 #
{A : Type u} →
{inst : Ring A} → {M : Type v} → {inst_1 : AddCommGroup M} → {inst_2 : Module A M} → Module.Presentation A M → ℕ
theorem Module.Relations.mk.inj E1 #
∀ {A : Type u} {inst : Ring A} {G : Type w₀} {R : Type w₁} {relation : R → G →₀ A} {G_1 : Type w₀} {R_1 : Type w₁}
{relation_1 : R_1 → G_1 →₀ A},
{ G := G, R := R, relation := relation } = { G := G_1, R := R_1, relation := relation_1 } →
G = G_1 ∧ R = R_1 ∧ relation ≍ relation_1
def Module.Relations.Solution.ctorIdx E1 #
{A : Type u} →
{inst : Ring A} →
{relations : Module.Relations A} →
{M : Type v} → {inst_1 : AddCommGroup M} → {inst_2 : Module A M} → relations.Solution M → ℕ
theorem Module.Relations.Solution.mk.congr_simp E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (var var_1 : relations.G → M) (e_var : var = var_1)
(linearCombination_var_relation : ∀ (r : relations.R), (Finsupp.linearCombination A var) (relations.relation r) = 0),
{ var := var, linearCombination_var_relation := linearCombination_var_relation } =
{ var := var_1, linearCombination_var_relation := ⋯ }
theorem Module.Presentation.mk.inj E1 #
∀ {A : Type u} {inst : Ring A} {M : Type v} {inst_1 : AddCommGroup M} {inst_2 : Module A M}
{toRelations : Module.Relations A} {toSolution : toRelations.Solution M}
{toIsPresentation : toSolution.IsPresentation} {toRelations_1 : Module.Relations A}
{toSolution_1 : toRelations_1.Solution M} {toIsPresentation_1 : toSolution_1.IsPresentation},
{ toRelations := toRelations, toSolution := toSolution, toIsPresentation := toIsPresentation } =
{ toRelations := toRelations_1, toSolution := toSolution_1, toIsPresentation := toIsPresentation_1 } →
toRelations = toRelations_1 ∧ toSolution ≍ toSolution_1
def Module.Relations.ctorIdx E1 #
{A : Type u} → {inst : Ring A} → Module.Relations A → ℕ
theorem Module.Relations.mk.injEq E0 #
∀ {A : Type u} [inst : Ring A] (G : Type w₀) (R : Type w₁) (relation : R → G →₀ A) (G_1 : Type w₀) (R_1 : Type w₁)
(relation_1 : R_1 → G_1 →₀ A),
({ G := G, R := R, relation := relation } = { G := G_1, R := R_1, relation := relation_1 }) =
(G = G_1 ∧ R = R_1 ∧ relation ≍ relation_1)
theorem Module.Relations.Solution.mk.inj E1 #
∀ {A : Type u} {inst : Ring A} {relations : Module.Relations A} {M : Type v} {inst_1 : AddCommGroup M}
{inst_2 : Module A M} {var : relations.G → M}
{linearCombination_var_relation : ∀ (r : relations.R), (Finsupp.linearCombination A var) (relations.relation r) = 0}
{var_1 : relations.G → M}
{linearCombination_var_relation_1 :
∀ (r : relations.R), (Finsupp.linearCombination A var_1) (relations.relation r) = 0},
{ var := var, linearCombination_var_relation := linearCombination_var_relation } =
{ var := var_1, linearCombination_var_relation := linearCombination_var_relation_1 } →
var = var_1
theorem Module.Presentation.mk.injEq E0 #
∀ {A : Type u} [inst : Ring A] {M : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module A M]
(toRelations : Module.Relations A) (toSolution : toRelations.Solution M)
(toIsPresentation : toSolution.IsPresentation) (toRelations_1 : Module.Relations A)
(toSolution_1 : toRelations_1.Solution M) (toIsPresentation_1 : toSolution_1.IsPresentation),
({ toRelations := toRelations, toSolution := toSolution, toIsPresentation := toIsPresentation } =
{ toRelations := toRelations_1, toSolution := toSolution_1, toIsPresentation := toIsPresentation_1 }) =
(toRelations = toRelations_1 ∧ toSolution ≍ toSolution_1)
theorem Module.Relations.Solution.IsPresentationCore.mk.inj E1 #
∀ {A : Type u} {inst : Ring A} {relations : Module.Relations A} {M : Type v} {inst_1 : AddCommGroup M}
{inst_2 : Module A M} {solution : relations.Solution M}
{desc : {N : Type w'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → relations.Solution N → M →ₗ[A] N}
{postcomp_desc :
∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N),
solution.postcomp (desc s) = s}
{postcomp_injective :
∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] {f f' : M →ₗ[A] N},
solution.postcomp f = solution.postcomp f' → f = f'}
{desc_1 : {N : Type w'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → relations.Solution N → M →ₗ[A] N}
{postcomp_desc_1 :
∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N),
solution.postcomp (desc_1 s) = s}
{postcomp_injective_1 :
∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] {f f' : M →ₗ[A] N},
solution.postcomp f = solution.postcomp f' → f = f'},
{ desc := desc, postcomp_desc := postcomp_desc, postcomp_injective := postcomp_injective } =
{ desc := desc_1, postcomp_desc := postcomp_desc_1, postcomp_injective := postcomp_injective_1 } →
desc = desc_1
theorem Module.Relations.Solution.mk.injEq E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (var : relations.G → M)
(linearCombination_var_relation : ∀ (r : relations.R), (Finsupp.linearCombination A var) (relations.relation r) = 0)
(var_1 : relations.G → M)
(linearCombination_var_relation_1 :
∀ (r : relations.R), (Finsupp.linearCombination A var_1) (relations.relation r) = 0),
({ var := var, linearCombination_var_relation := linearCombination_var_relation } =
{ var := var_1, linearCombination_var_relation := linearCombination_var_relation_1 }) =
(var = var_1)
theorem Module.Relations.Solution.IsPresentation.desc.congr_simp E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution solution_1 : relations.Solution M} (e_solution : solution = solution_1)
(h : solution.IsPresentation) {N : Type v'} [inst_3 : AddCommGroup N] [inst_4 : Module A N]
(s s_1 : relations.Solution N), s = s_1 → h.desc s = ⋯.desc s_1
def Module.Relations.Solution.IsPresentationCore.ctorIdx E1 #
{A : Type u} →
{inst : Ring A} →
{relations : Module.Relations A} →
{M : Type v} →
{inst_1 : AddCommGroup M} →
{inst_2 : Module A M} → {solution : relations.Solution M} → solution.IsPresentationCore → ℕ
theorem Module.Relations.Solution.IsPresentationCore.mk.injEq E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M}
(desc : {N : Type w'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → relations.Solution N → M →ₗ[A] N)
(postcomp_desc :
∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N),
solution.postcomp (desc s) = s)
(postcomp_injective :
∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] {f f' : M →ₗ[A] N},
solution.postcomp f = solution.postcomp f' → f = f')
(desc_1 : {N : Type w'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → relations.Solution N → M →ₗ[A] N)
(postcomp_desc_1 :
∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N),
solution.postcomp (desc_1 s) = s)
(postcomp_injective_1 :
∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] {f f' : M →ₗ[A] N},
solution.postcomp f = solution.postcomp f' → f = f'),
({ desc := desc, postcomp_desc := postcomp_desc, postcomp_injective := postcomp_injective } =
{ desc := desc_1, postcomp_desc := postcomp_desc_1, postcomp_injective := postcomp_injective_1 }) =
(desc = desc_1)
theorem Module.Relations.Solution.ofπ.congr_simp E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (π π_1 : (relations.G →₀ A) →ₗ[A] M) (e_π : π = π_1)
(hπ : ∀ (r : relations.R), π (relations.relation r) = 0),
Module.Relations.Solution.ofπ π hπ = Module.Relations.Solution.ofπ π_1 ⋯
theorem Module.Relations.Solution.IsPresentation.linearEquiv.congr_simp E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution solution_1 : relations.Solution M} (e_solution : solution = solution_1)
(h : solution.IsPresentation), h.linearEquiv = ⋯.linearEquiv
structure Module.Relations E1 #
(A : Type u) → [Ring A] → Type (max (max u (w₀ + 1)) (w₁ + 1))
Given a ring A, this structure involves a family of elements (indexed by a type R)
in a free module G →₀ A. This allows to define an A-module by generators and relations,
see Relations.Quotient.
ctor Module.Relations.mk E0 #
{A : Type u} → [inst : Ring A] → (G : Type w₀) → (R : Type w₁) → (R → G →₀ A) → Module.Relations A
abbrev Module.Relations.G E1 #
{A : Type u} → [inst : Ring A] → Module.Relations A → Type w₀
the index type for generators
abbrev Module.Relations.R E1 #
{A : Type u} → [inst : Ring A] → Module.Relations A → Type w₁
the index type for relations
abbrev Module.Relations.relation E1 #
{A : Type u} → [inst : Ring A] → (self : Module.Relations A) → self.R → self.G →₀ A
the coefficients of the linear relations that are expected between the generators
def Module.Relations.Quotient E1 #
{A : Type u} → [inst : Ring A] → Module.Relations A → Type (max u w₀)
The module that is presented by generators and relations given by relations : Relations A.
This is the quotient of the free A-module on relations.G by the submodule generated by
the given relations.
instance Module.Relations.instAddCommGroupQuotient E0 #
{A : Type u_1} → [inst : Ring A] → (relations : Module.Relations A) → AddCommGroup relations.Quotient
instance Module.Relations.instQuotient E0 #
{A : Type u_1} → [inst : Ring A] → (relations : Module.Relations A) → Module A relations.Quotient
def Module.Relations.toQuotient E1 #
{A : Type u} → [inst : Ring A] → (relations : Module.Relations A) → (relations.G →₀ A) →ₗ[A] relations.Quotient
The canonical (surjective) linear map (relations.G →₀ A) →ₗ[A] relations.Quotient.
theorem Module.Relations.Quotient.linearMap_ext_iff E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {f f' : relations.Quotient →ₗ[A] M},
f = f' ↔ ∀ (g : relations.G), f (relations.toQuotient fun₀ | g => 1) = f' (relations.toQuotient fun₀ | g => 1)
theorem Module.Relations.Quotient.linearMap_ext E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {f f' : relations.Quotient →ₗ[A] M},
(∀ (g : relations.G), f (relations.toQuotient fun₀ | g => 1) = f' (relations.toQuotient fun₀ | g => 1)) → f = f'
theorem Module.Relations.surjective_toQuotient E1 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A), Function.Surjective ⇑relations.toQuotient
theorem Module.Relations.ker_toQuotient E1 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A),
relations.toQuotient.ker = Submodule.span A (Set.range relations.relation)
theorem Module.Relations.toQuotient_relation E0 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A) (r : relations.R),
relations.toQuotient (relations.relation r) = 0
def Module.Relations.map E1 #
{A : Type u} → [inst : Ring A] → (relations : Module.Relations A) → (relations.R →₀ A) →ₗ[A] relations.G →₀ A
The linear map (relations.R →₀ A) →ₗ[A] (relations.G →₀ A) corresponding to the relations
given by relations : Relations A.
theorem Module.Relations.map_single E0 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A) (r : relations.R),
(relations.map fun₀ | r => 1) = relations.relation r
theorem Module.Relations.range_map E0 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A),
relations.map.range = Submodule.span A (Set.range relations.relation)
theorem Module.Relations.toQuotient_map E0 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A), relations.toQuotient ∘ₗ relations.map = 0
theorem Module.Relations.toQuotient_map_apply E0 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A) (x : relations.R →₀ A),
relations.toQuotient (relations.map x) = 0
structure Module.Relations.Solution E1 #
{A : Type u} →
[inst : Ring A] → Module.Relations A → (M : Type v) → [inst_1 : AddCommGroup M] → [Module A M] → Type (max v w₀)
The type of solutions in a module M of the equations given by relations : Relations A.
theorem Module.Relations.Solution.ext_iff E0 #
∀ {A : Type u} {inst : Ring A} {relations : Module.Relations A} {M : Type v} {inst_1 : AddCommGroup M}
{inst_2 : Module A M} {x y : relations.Solution M}, x = y ↔ x.var = y.var
theorem Module.Relations.Solution.ext E1 #
∀ {A : Type u} {inst : Ring A} {relations : Module.Relations A} {M : Type v} {inst_1 : AddCommGroup M}
{inst_2 : Module A M} {x y : relations.Solution M}, x.var = y.var → x = y
ctor Module.Relations.Solution.mk E0 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
(var : relations.G → M) →
(∀ (r : relations.R), (Finsupp.linearCombination A var) (relations.relation r) = 0) → relations.Solution M
abbrev Module.Relations.Solution.var E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} → [inst_1 : AddCommGroup M] → [inst_2 : Module A M] → relations.Solution M → relations.G → M
the image in M of each variable
theorem Module.Relations.Solution.linearCombination_var_relation E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (self : relations.Solution M) (r : relations.R),
(Finsupp.linearCombination A self.var) (relations.relation r) = 0
def Module.Relations.Solution.π E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] → [inst_2 : Module A M] → relations.Solution M → (relations.G →₀ A) →ₗ[A] M
Given relations : Relations A and a solution in relations.Solution M, this is
the linear map (relations.G →₀ A) →ₗ[A] M canonically associated to the solution.
theorem Module.Relations.Solution.π_single E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M) (g : relations.G), (solution.π fun₀ | g => 1) = solution.var g
theorem Module.Relations.Solution.π_relation E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M) (r : relations.R), solution.π (relations.relation r) = 0
theorem Module.Relations.Solution.π_comp_map E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M), solution.π ∘ₗ relations.map = 0
theorem Module.Relations.Solution.π_comp_map_apply E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M) (x : relations.R →₀ A), solution.π (relations.map x) = 0
theorem Module.Relations.Solution.range_π E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M), solution.π.range = Submodule.span A (Set.range solution.var)
theorem Module.Relations.Solution.span_relation_le_ker_π E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M),
Submodule.span A (Set.range relations.relation) ≤ solution.π.ker
def Module.Relations.Solution.fromQuotient E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] → [inst_2 : Module A M] → relations.Solution M → relations.Quotient →ₗ[A] M
Given relations : Relations A and solution : relations.Solution M, this is
the canonical linear map relations.Quotient →ₗ[A] M from the module.
theorem Module.Relations.Solution.fromQuotient_comp_toQuotient E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M), solution.fromQuotient ∘ₗ relations.toQuotient = solution.π
theorem Module.Relations.Solution.fromQuotient_toQuotient E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M) (x : relations.G →₀ A),
solution.fromQuotient (relations.toQuotient x) = solution.π x
def Module.Relations.Solution.postcomp E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
relations.Solution M →
{N : Type v'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → (M →ₗ[A] N) → relations.Solution N
The image of a solution to relations : Relation A by a linear map M →ₗ[A] N.
theorem Module.Relations.Solution.postcomp_var E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M) {N : Type v'} [inst_3 : AddCommGroup N] [inst_4 : Module A N]
(f : M →ₗ[A] N) (g : relations.G), (solution.postcomp f).var g = f (solution.var g)
theorem Module.Relations.Solution.postcomp_comp E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M) {N : Type v'} [inst_3 : AddCommGroup N] [inst_4 : Module A N]
(f : M →ₗ[A] N) {N' : Type v''} [inst_5 : AddCommGroup N'] [inst_6 : Module A N'] (g : N →ₗ[A] N'),
solution.postcomp (g ∘ₗ f) = (solution.postcomp f).postcomp g
theorem Module.Relations.Solution.postcomp_id E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M), solution.postcomp LinearMap.id = solution
theorem Module.Relations.Solution.congr_var E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution solution' : relations.Solution M},
solution = solution' → ∀ (g : relations.G), solution.var g = solution'.var g
theorem Module.Relations.Solution.congr_postcomp E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} {N : Type v'} [inst_3 : AddCommGroup N] [inst_4 : Module A N]
{solution' : relations.Solution M},
solution = solution' → ∀ (f : M →ₗ[A] N), solution.postcomp f = solution'.postcomp f
def Module.Relations.Solution.ofπ E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
(π : (relations.G →₀ A) →ₗ[A] M) →
(∀ (r : relations.R), π (relations.relation r) = 0) → relations.Solution M
Given relations : Relations A and an A-module M, this is a constructor
for relations.Solution M for which the data is given as
a linear map π : (relations.G →₀ A) →ₗ[A] M. (See also ofπ' for an alternate
vanishing criterion.)
theorem Module.Relations.Solution.ofπ_var E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (π : (relations.G →₀ A) →ₗ[A] M) (hπ : ∀ (r : relations.R), π (relations.relation r) = 0)
(g : relations.G), (Module.Relations.Solution.ofπ π hπ).var g = π fun₀ | g => 1
theorem Module.Relations.Solution.ofπ_π E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (π : (relations.G →₀ A) →ₗ[A] M) (hπ : ∀ (r : relations.R), π (relations.relation r) = 0),
(Module.Relations.Solution.ofπ π hπ).π = π
def Module.Relations.Solution.ofπ' E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] → (π : (relations.G →₀ A) →ₗ[A] M) → π ∘ₗ relations.map = 0 → relations.Solution M
Variant of ofπ where the vanishing condition is expressed in terms
of a composition of linear maps.
theorem Module.Relations.Solution.ofπ'_var E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (π : (relations.G →₀ A) →ₗ[A] M) (hπ : π ∘ₗ relations.map = 0) (g : relations.G),
(Module.Relations.Solution.ofπ' π hπ).var g = π fun₀ | g => 1
theorem Module.Relations.Solution.ofπ'_π E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (π : (relations.G →₀ A) →ₗ[A] M) (hπ : π ∘ₗ relations.map = 0),
(Module.Relations.Solution.ofπ' π hπ).π = π
theorem Module.Relations.Solution.injective_fromQuotient_iff_ker_π_eq_span E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M),
Function.Injective ⇑solution.fromQuotient ↔ solution.π.ker = Submodule.span A (Set.range relations.relation)
theorem Module.Relations.Solution.surjective_fromQuotient_iff_surjective_π E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M),
Function.Surjective ⇑solution.fromQuotient ↔ Function.Surjective ⇑solution.π
theorem Module.Relations.Solution.surjective_π_iff_span_eq_top E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M),
Function.Surjective ⇑solution.π ↔ Submodule.span A (Set.range solution.var) = ⊤
structure Module.Relations.Solution.IsPresentation E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} → [inst_1 : AddCommGroup M] → [inst_2 : Module A M] → relations.Solution M → Prop
Given relations : Relations A, an A-module M and solution : relations.Solution M,
this property asserts that solution gives a presentation of M by generators and relations.
ctor Module.Relations.Solution.IsPresentation.mk E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M},
Function.Bijective ⇑solution.fromQuotient → solution.IsPresentation
theorem Module.Relations.Solution.IsPresentation.bijective E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M},
solution.IsPresentation → Function.Bijective ⇑solution.fromQuotient
def Module.Relations.Solution.IsPresentation.linearEquiv E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
{solution : relations.Solution M} → solution.IsPresentation → relations.Quotient ≃ₗ[A] M
When M admits a presentation by generators and relations given
by solution : relations.Solutions M, this is the associated linear equivalence
relations.Quotient ≃ₗ[A] M.
theorem Module.Relations.Solution.IsPresentation.linearEquiv_apply E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) (x : relations.Quotient),
h.linearEquiv x = solution.fromQuotient x
theorem Module.Relations.Solution.IsPresentation.linearEquiv_symm_var E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) (g : relations.G),
h.linearEquiv.symm (solution.var g) = relations.toQuotient fun₀ | g => 1
theorem Module.Relations.Solution.IsPresentation.surjective_π E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M}, solution.IsPresentation → Function.Surjective ⇑solution.π
theorem Module.Relations.Solution.IsPresentation.ker_π E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M},
solution.IsPresentation → solution.π.ker = Submodule.span A (Set.range relations.relation)
theorem Module.Relations.Solution.IsPresentation.exact E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M},
solution.IsPresentation → Function.Exact ⇑relations.map ⇑solution.π
The sequence (relations.R →₀ A) → (relations.G →₀ A) → M → 0 is exact.
def Module.Relations.Solution.IsPresentation.desc E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
{solution : relations.Solution M} →
solution.IsPresentation →
{N : Type v'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → relations.Solution N → M →ₗ[A] N
If M admits a presentation by generators and relations, and we have a solution of the
same equations in a module N, then this is the canonical induced linear map M →ₗ[A] N.
theorem Module.Relations.Solution.IsPresentation.desc_var E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N) (g : relations.G),
(h.desc s) (solution.var g) = s.var g
theorem Module.Relations.Solution.IsPresentation.desc_comp_π E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N), h.desc s ∘ₗ solution.π = s.π
theorem Module.Relations.Solution.IsPresentation.π_desc_apply E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N) (x : relations.G →₀ A),
(h.desc s) (solution.π x) = s.π x
theorem Module.Relations.Solution.IsPresentation.postcomp_desc E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N), solution.postcomp (h.desc s) = s
theorem Module.Relations.Solution.IsPresentation.postcomp_injective E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M},
solution.IsPresentation →
∀ {N : Type v'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] {f f' : M →ₗ[A] N},
solution.postcomp f = solution.postcomp f' → f = f'
def Module.Relations.Solution.IsPresentation.linearMapEquiv E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
{solution : relations.Solution M} →
solution.IsPresentation →
{N : Type v'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → (M →ₗ[A] N) ≃ relations.Solution N
If M admits a presentation by generators and relations, then
linear maps from M can be (naturally) identified to the solutions of
certain linear equations.
theorem Module.Relations.Solution.IsPresentation.linearMapEquiv_apply E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] (f : M →ₗ[A] N), h.linearMapEquiv f = solution.postcomp f
theorem Module.Relations.Solution.IsPresentation.linearMapEquiv_symm_apply E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N), h.linearMapEquiv.symm s = h.desc s
def Module.Relations.Solution.IsPresentation.uniq E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
{solution : relations.Solution M} →
solution.IsPresentation →
{N : Type v'} →
[inst_3 : AddCommGroup N] →
[inst_4 : Module A N] → {solution' : relations.Solution N} → solution'.IsPresentation → M ≃ₗ[A] N
Uniqueness (up to a unique linear equivalence) of the module defined by generators and relations.
theorem Module.Relations.Solution.IsPresentation.postcomp_uniq E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] {solution' : relations.Solution N} (h' : solution'.IsPresentation),
solution.postcomp ↑(h.uniq h') = solution'
theorem Module.Relations.Solution.IsPresentation.postcomp_uniq_symm E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] {solution' : relations.Solution N} (h' : solution'.IsPresentation),
solution'.postcomp ↑(h.uniq h').symm = solution
theorem Module.Relations.Solution.IsPresentation.uniq_var E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] {solution' : relations.Solution N} (h' : solution'.IsPresentation)
(g : relations.G), (h.uniq h') (solution.var g) = solution'.var g
theorem Module.Relations.Solution.IsPresentation.uniq_symm_var E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentation) {N : Type v'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] {solution' : relations.Solution N} (h' : solution'.IsPresentation)
(g : relations.G), (h.uniq h').symm (solution'.var g) = solution.var g
theorem Module.Relations.Solution.IsPresentation.of_linearEquiv E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M},
solution.IsPresentation →
∀ {N : Type v'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] (e : M ≃ₗ[A] N),
(solution.postcomp ↑e).IsPresentation
def Module.Relations.Solution.ofQuotient E1 #
{A : Type u} → [inst : Ring A] → (relations : Module.Relations A) → relations.Solution relations.Quotient
Given relations : Relations A, this is the obvious solution to relations
in the quotient relations.Quotient.
theorem Module.Relations.Solution.ofQuotient_var E0 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A) (g : relations.G),
(Module.Relations.Solution.ofQuotient relations).var g = relations.toQuotient fun₀ | g => 1
theorem Module.Relations.Solution.ofQuotient_π E0 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A),
(Module.Relations.Solution.ofQuotient relations).π = (Submodule.span A (Set.range relations.relation)).mkQ
theorem Module.Relations.Solution.ofQuotient_fromQuotient E0 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A),
(Module.Relations.Solution.ofQuotient relations).fromQuotient = LinearMap.id
theorem Module.Relations.Solution.ofQuotient_isPresentation E1 #
∀ {A : Type u} [inst : Ring A] (relations : Module.Relations A),
(Module.Relations.Solution.ofQuotient relations).IsPresentation
structure Module.Relations.Solution.IsPresentationCore E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] → relations.Solution M → Type (max (max (max u v) (w' + 1)) w₀)
Helper structure in order to prove Module.Relations.Solutions.IsPresentation
by showing the universal property of the module defined by generators and relations.
The universal property is restricted to modules that are in Type w' for
an auxiliary universe w'. See IsPresentationCore.isPresentation.
ctor Module.Relations.Solution.IsPresentationCore.mk E0 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
{solution : relations.Solution M} →
(desc :
{N : Type w'} →
[inst_3 : AddCommGroup N] → [inst_4 : Module A N] → relations.Solution N → M →ₗ[A] N) →
(∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N),
solution.postcomp (desc s) = s) →
(∀ {N : Type w'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] {f f' : M →ₗ[A] N},
solution.postcomp f = solution.postcomp f' → f = f') →
solution.IsPresentationCore
abbrev Module.Relations.Solution.IsPresentationCore.desc E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
{solution : relations.Solution M} →
solution.IsPresentationCore →
{N : Type w'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → relations.Solution N → M →ₗ[A] N
any solution in a module N : Type w' is obtained in a unique way
by postcomposing solution : relations.Solution M by a linear map M →ₗ[A] N.
theorem Module.Relations.Solution.IsPresentationCore.postcomp_desc E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (self : solution.IsPresentationCore) {N : Type w'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N), solution.postcomp (self.desc s) = s
theorem Module.Relations.Solution.IsPresentationCore.postcomp_injective E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (self : solution.IsPresentationCore) {N : Type w'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] {f f' : M →ₗ[A] N},
solution.postcomp f = solution.postcomp f' → f = f'
theorem Module.Relations.Solution.IsPresentationCore.desc_var E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentationCore) {N : Type w'}
[inst_3 : AddCommGroup N] [inst_4 : Module A N] (s : relations.Solution N) (g : relations.G),
(h.desc s) (solution.var g) = s.var g
def Module.Relations.Solution.IsPresentationCore.down E1 #
{A : Type u} →
[inst : Ring A] →
{relations : Module.Relations A} →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
{solution : relations.Solution M} → solution.IsPresentationCore → solution.IsPresentationCore
The structure IsPresentationCore can be shrunk to a lower universe.
theorem Module.Relations.Solution.IsPresentationCore.isPresentation E1 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] {solution : relations.Solution M} (h : solution.IsPresentationCore), solution.IsPresentation
theorem Module.Relations.Solution.isPresentation_iff E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M),
solution.IsPresentation ↔
Submodule.span A (Set.range solution.var) = ⊤ ∧ solution.π.ker = Submodule.span A (Set.range relations.relation)
theorem Module.Relations.Solution.isPresentation_mk E0 #
∀ {A : Type u} [inst : Ring A] {relations : Module.Relations A} {M : Type v} [inst_1 : AddCommGroup M]
[inst_2 : Module A M] (solution : relations.Solution M),
Submodule.span A (Set.range solution.var) = ⊤ →
solution.π.ker = Submodule.span A (Set.range relations.relation) → solution.IsPresentation
structure Module.Presentation E1 #
(A : Type u) →
[inst : Ring A] →
(M : Type v) → [inst_1 : AddCommGroup M] → [Module A M] → Type (max (max (max u v) (w₀ + 1)) (w₁ + 1))
Given an A-module M, a term in this type is a presentation by M by
generators and relations.
abbrev Module.Presentation.toRelations E1 #
{A : Type u} →
[inst : Ring A] →
{M : Type v} → [inst_1 : AddCommGroup M] → [inst_2 : Module A M] → Module.Presentation A M → Module.Relations A
abbrev Module.Presentation.toSolution E1 #
{A : Type u} →
[inst : Ring A] →
{M : Type v} →
[inst_1 : AddCommGroup M] → [inst_2 : Module A M] → (self : Module.Presentation A M) → self.Solution M
theorem Module.Presentation.toIsPresentation E1 #
∀ {A : Type u} [inst : Ring A] {M : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module A M]
(self : Module.Presentation A M), self.IsPresentation
ctor Module.Presentation.mk E0 #
{A : Type u} →
[inst : Ring A] →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
(toRelations : Module.Relations A) →
(toSolution : toRelations.Solution M) → toSolution.IsPresentation → Module.Presentation A M
def Module.Presentation.ofIsPresentation E1 #
{A : Type u} →
[inst : Ring A] →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
{relations : Module.Relations A} →
{solution : relations.Solution M} → solution.IsPresentation → Module.Presentation A M
Constructor for Module.Presentation.
theorem Module.Presentation.ofIsPresentation_toRelations E0 #
∀ {A : Type u} [inst : Ring A] {M : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module A M]
{relations : Module.Relations A} {solution : relations.Solution M} (h : solution.IsPresentation),
(Module.Presentation.ofIsPresentation h).toRelations = relations
theorem Module.Presentation.ofIsPresentation_toSolution E0 #
∀ {A : Type u} [inst : Ring A] {M : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module A M]
{relations : Module.Relations A} {solution : relations.Solution M} (h : solution.IsPresentation),
(Module.Presentation.ofIsPresentation h).toSolution = solution
def Module.Presentation.ofLinearEquiv E1 #
{A : Type u} →
[inst : Ring A] →
{M : Type v} →
[inst_1 : AddCommGroup M] →
[inst_2 : Module A M] →
Module.Presentation A M →
{N : Type v'} → [inst_3 : AddCommGroup N] → [inst_4 : Module A N] → (M ≃ₗ[A] N) → Module.Presentation A N
The presentation of an A-module N that is deduced from a presentation of
a module M and a linear equivalence e : M ≃ₗ[A] N.
theorem Module.Presentation.ofLinearEquiv_toSolution E0 #
∀ {A : Type u} [inst : Ring A] {M : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module A M]
(pres : Module.Presentation A M) {N : Type v'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] (e : M ≃ₗ[A] N),
(pres.ofLinearEquiv e).toSolution = pres.postcomp ↑e
theorem Module.Presentation.ofLinearEquiv_toRelations E0 #
∀ {A : Type u} [inst : Ring A] {M : Type v} [inst_1 : AddCommGroup M] [inst_2 : Module A M]
(pres : Module.Presentation A M) {N : Type v'} [inst_3 : AddCommGroup N] [inst_4 : Module A N] (e : M ≃ₗ[A] N),
(pres.ofLinearEquiv e).toRelations = pres.toRelations