The areas / V10. Commutative algebra II: valuations, Dedekind domains, local algebra
Mathlib.RingTheory.Extension.Presentation.Basic
63 declarations. Mathlib docs · Source
Presentations of algebras
A presentation of an R-algebra S is a distinguished family of generators and relations.
Main definition
Algebra.Presentation: A presentation of anR-algebraSis a family of generators withrels: The type of relations.relation : relations → MvPolynomial vars R: The assignment of each relation to a polynomial in the generators.
Algebra.Presentation.IsFinite: A presentation is called finite if both variables and relations are finite.Algebra.Presentation.dimension: The dimension of a presentation is the number of generators minus the number of relations.Algebra.Presentation.mvPolynomial: The canonicalR-presentation of the polynomial algebraMvPolynomial ι R, with generators the variablesX ifori : ιand no relations.
We also give constructors for localization, base change and composition.
TODO
- Define
Homs of presentations.
Notes
This contribution was created as part of the AIM workshop "Formalizing algebraic geometry" in June 2024.
Composition of presentations
Let S be an R-algebra with presentation P and T be an S-algebra with
presentation Q. In this section we construct a presentation of T as an R-algebra.
For the underlying generators see Algebra.Generators.comp. The family of relations is
indexed by σ' ⊕ σ.
We have two canonical maps:
MvPolynomial ι R →ₐ[R] MvPolynomial (ι' ⊕ ι) R induced by Sum.inr
and aux : MvPolynomial (ι' ⊕ ι) R →ₐ[R] MvPolynomial ι' S induced by
the evaluation MvPolynomial ι R →ₐ[R] S (see below).
Now i : σ is mapped to the image of P.relation i under the first map and
j : σ' is mapped to a pre-image under aux of Q.relation j (see comp_relation_aux
for the construction of the pre-image and comp_relation_aux_map for a proof that it is indeed
a pre-image).
The evaluation map factors as:
MvPolynomial (ι' ⊕ ι) R →ₐ[R] MvPolynomial ι' S →ₐ[R] T, where
the first map is aux. The goal is to compute that the kernel of this composition
is spanned by the relations indexed by σ' ⊕ σ (span_range_relation_eq_ker_comp).
One easily sees that this kernel is the pre-image under aux of the kernel of the evaluation
of Q, where the latter is by assumption spanned by the relations Q.relation j.
Since aux is surjective (aux_surjective), the pre-image is the sum of the ideal spanned
by the constructed pre-images of the Q.relation j and the kernel of aux. It hence
remains to show that the kernel of aux is spanned by the image of the P.relation i
under the canonical map MvPolynomial ι R →ₐ[R] MvPolynomial (ι' ⊕ ι) R. By
assumption this span is the kernel of the evaluation map of P. For this, we use the isomorphism
MvPolynomial (ι' ⊕ ι) R ≃ₐ[R] MvPolynomial ι' (MvPolynomial ι R) and
MvPolynomial.ker_map.
theorem Algebra.Presentation.localizationAway.congr_simp E1 #
∀ {R : Type u} (S : Type v) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (r r_1 : R) (e_r : r = r_1)
[inst_3 : IsLocalization.Away r S],
Algebra.Presentation.localizationAway S r = Algebra.Presentation.localizationAway S r_1
theorem Algebra.Presentation.mk.inj E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} {inst : CommRing R} {inst_1 : CommRing S} {inst_2 : Algebra R S}
{toGenerators : Algebra.Generators R S ι} {relation : σ → toGenerators.Ring}
{span_range_relation_eq_ker : Ideal.span (Set.range relation) = toGenerators.ker}
{toGenerators_1 : Algebra.Generators R S ι} {relation_1 : σ → toGenerators_1.Ring}
{span_range_relation_eq_ker_1 : Ideal.span (Set.range relation_1) = toGenerators_1.ker},
{ toGenerators := toGenerators, relation := relation, span_range_relation_eq_ker := span_range_relation_eq_ker } =
{ toGenerators := toGenerators_1, relation := relation_1,
span_range_relation_eq_ker := span_range_relation_eq_ker_1 } →
toGenerators = toGenerators_1 ∧ relation = relation_1
theorem Algebra.Generators.localizationAway.congr_simp E1 #
∀ {R : Type u} (S : Type v) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (r r_1 : R) (e_r : r = r_1)
[inst_3 : IsLocalization.Away r S],
Algebra.Generators.localizationAway S r = Algebra.Generators.localizationAway S r_1
theorem Algebra.Generators.naive.congr_simp E1 #
∀ {R : Type u} [inst : CommRing R] {σ : Type u_2} {I : Ideal (MvPolynomial σ R)}
(s s_1 : MvPolynomial σ R ⧸ I → MvPolynomial σ R) (e_s : s = s_1)
(hs : ∀ (x : MvPolynomial σ R ⧸ I), (Ideal.Quotient.mk I) (s x) = x),
Algebra.Generators.naive s hs = Algebra.Generators.naive s_1 ⋯
theorem Algebra.Presentation.mk.injEq E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(toGenerators : Algebra.Generators R S ι) (relation : σ → toGenerators.Ring)
(span_range_relation_eq_ker : Ideal.span (Set.range relation) = toGenerators.ker)
(toGenerators_1 : Algebra.Generators R S ι) (relation_1 : σ → toGenerators_1.Ring)
(span_range_relation_eq_ker_1 : Ideal.span (Set.range relation_1) = toGenerators_1.ker),
({ toGenerators := toGenerators, relation := relation, span_range_relation_eq_ker := span_range_relation_eq_ker } =
{ toGenerators := toGenerators_1, relation := relation_1,
span_range_relation_eq_ker := span_range_relation_eq_ker_1 }) =
(toGenerators = toGenerators_1 ∧ relation = relation_1)
theorem IsLocalization.Away.mvPolynomialQuotientEquiv.congr_simp E1 #
∀ {R : Type u_2} [inst : CommRing R] (S : Type u_3) [inst_1 : CommRing S] [inst_2 : Algebra R S] (r : R)
[inst_3 : IsLocalization.Away r S],
IsLocalization.Away.mvPolynomialQuotientEquiv S r = IsLocalization.Away.mvPolynomialQuotientEquiv S r
def Algebra.Presentation.ctorIdx E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
{inst : CommRing R} → {inst_1 : CommRing S} → {inst_2 : Algebra R S} → Algebra.Presentation R S ι σ → ℕ
structure Algebra.Presentation E3 #
(R : Type u) →
(S : Type v) →
Type w → Type t → [inst : CommRing R] → [inst_1 : CommRing S] → [Algebra R S] → Type (max (max (max t u) v) w)
A presentation of an R-algebra S is a family of
generators with σ → MvPolynomial ι R: The assignment of
each relation to a polynomial in the generators.
ctor Algebra.Presentation.mk E0 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] →
(toGenerators : Algebra.Generators R S ι) →
(relation : σ → toGenerators.Ring) →
Ideal.span (Set.range relation) = toGenerators.ker → Algebra.Presentation R S ι σ
abbrev Algebra.Presentation.toGenerators E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] → [inst_2 : Algebra R S] → Algebra.Presentation R S ι σ → Algebra.Generators R S ι
abbrev Algebra.Presentation.relation E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] → [inst_2 : Algebra R S] → (self : Algebra.Presentation R S ι σ) → σ → self.Ring
The assignment of each relation to a polynomial in the generators.
theorem Algebra.Presentation.span_range_relation_eq_ker E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(self : Algebra.Presentation R S ι σ), Ideal.span (Set.range self.relation) = self.ker
The relations span the kernel of the canonical map.
theorem Algebra.Presentation.aeval_val_relation E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) (i : σ), (MvPolynomial.aeval P.val) (P.relation i) = 0
theorem Algebra.Presentation.relation_mem_ker E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) (i : σ), P.relation i ∈ P.ker
abbrev Algebra.Presentation.Quotient E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] → [inst_2 : Algebra R S] → Algebra.Presentation R S ι σ → Type (max w u)
The polynomial algebra w.r.t. a family of generators modulo a family of relations.
def Algebra.Presentation.quotientEquiv E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] → [inst_2 : Algebra R S] → (P : Algebra.Presentation R S ι σ) → P.Quotient ≃ₐ[P.Ring] S
P.Quotient is P.Ring-isomorphic to S and in particular R-isomorphic to S.
theorem Algebra.Presentation.quotientEquiv_mk E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) (p : P.Ring),
P.quotientEquiv ((Ideal.Quotient.mk P.ker) p) = (algebraMap P.Ring S) p
theorem Algebra.Presentation.quotientEquiv_symm E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) (x : S), P.quotientEquiv.symm x = (Ideal.Quotient.mk P.ker) (P.σ x)
def Algebra.Presentation.dimension E3 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] → [inst_1 : CommRing S] → [inst_2 : Algebra R S] → Algebra.Presentation R S ι σ → ℕ
Dimension of a presentation defined as the cardinality of the generators minus the cardinality of the relations.
Note: this definition is completely non-sensical for non-finite presentations and even then for this to make sense, you should assume that the presentation is a complete intersection.
theorem Algebra.Presentation.fg_ker E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) [Finite σ], P.ker.FG
instance Algebra.Presentation.instFinitePresentationQuotientOfFinite E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) [Finite σ] [Finite ι], Algebra.FinitePresentation R P.Quotient
If a presentation is finite, the corresponding quotient is of finite presentation.
theorem Algebra.Presentation.finitePresentation_of_isFinite E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
[Finite σ] [Finite ι] (P : Algebra.Presentation R S ι σ), Algebra.FinitePresentation R S
theorem Algebra.Presentation.exists_presentation_fin E1 #
∀ (R : Type u) (S : Type v) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
[Algebra.FinitePresentation R S], ∃ n m, Nonempty (Algebra.Presentation R S (Fin n) (Fin m))
def Algebra.Presentation.ofFinitePresentationVars E1 #
(R : Type u) →
(S : Type v) →
[inst : CommRing R] → [inst_1 : CommRing S] → [inst_2 : Algebra R S] → [Algebra.FinitePresentation R S] → ℕ
The index of generators to ofFinitePresentation.
def Algebra.Presentation.ofFinitePresentationRels E1 #
(R : Type u) →
(S : Type v) →
[inst : CommRing R] → [inst_1 : CommRing S] → [inst_2 : Algebra R S] → [Algebra.FinitePresentation R S] → ℕ
The index of relations to ofFinitePresentation.
def Algebra.Presentation.ofFinitePresentation E1 #
(R : Type u) →
(S : Type v) →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] →
[inst_3 : Algebra.FinitePresentation R S] →
Algebra.Presentation R S (Fin (Algebra.Presentation.ofFinitePresentationVars R S))
(Fin (Algebra.Presentation.ofFinitePresentationRels R S))
An arbitrary choice of a finite presentation of a finitely presented algebra.
def Algebra.Presentation.ofAlgEquiv E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] →
Algebra.Presentation R S ι σ →
{T : Type u_1} →
[inst_3 : CommRing T] → [inst_4 : Algebra R T] → (S ≃ₐ[R] T) → Algebra.Presentation R T ι σ
Transport a presentation along an algebra isomorphism.
theorem Algebra.Presentation.ofAlgEquiv_relation E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) {T : Type u_1} [inst_3 : CommRing T] [inst_4 : Algebra R T] (e : S ≃ₐ[R] T)
(i : σ), (P.ofAlgEquiv e).relation i = P.relation i
theorem Algebra.Presentation.ofAlgEquiv_toGenerators E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) {T : Type u_1} [inst_3 : CommRing T] [inst_4 : Algebra R T] (e : S ≃ₐ[R] T),
(P.ofAlgEquiv e).toGenerators = P.ofAlgEquiv e
theorem Algebra.Presentation.dimension_ofAlgEquiv E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) {T : Type u_1} [inst_3 : CommRing T] [inst_4 : Algebra R T] (e : S ≃ₐ[R] T),
(P.ofAlgEquiv e).dimension = P.dimension
def Algebra.Presentation.ofBijectiveAlgebraMap E1 #
{R : Type u} →
{S : Type v} →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] →
Function.Bijective ⇑(algebraMap R S) → Algebra.Presentation R S PEmpty.{w + 1} PEmpty.{t + 1}
If algebraMap R S is bijective, the empty generators are a presentation with no relations.
theorem Algebra.Presentation.ofBijectiveAlgebraMap_dimension E1 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(h : Function.Bijective ⇑(algebraMap R S)), (Algebra.Presentation.ofBijectiveAlgebraMap h).dimension = 0
def Algebra.Presentation.id E1 #
(R : Type u) → [inst : CommRing R] → Algebra.Presentation R R PEmpty.{w + 1} PEmpty.{t + 1}
The canonical R-presentation of R with no generators and no relations.
theorem Algebra.Presentation.id_dimension E1 #
∀ {R : Type u} [inst : CommRing R], (Algebra.Presentation.id R).dimension = 0
def Algebra.Presentation.mvPolynomial E3 #
(R : Type u) → (ι : Type w) → [inst : CommRing R] → Algebra.Presentation R (MvPolynomial ι R) ι PEmpty.{t + 1}
The canonical R-presentation of the polynomial algebra MvPolynomial ι R,
with generators X indexed by ι and no relations.
theorem Algebra.Presentation.mvPolynomial_relation E0 #
∀ (R : Type u) (ι : Type w) [inst : CommRing R], (Algebra.Presentation.mvPolynomial R ι).relation = PEmpty.elim
theorem Algebra.Presentation.dimension_mvPolynomial E0 #
∀ {R : Type u} {ι : Type w} [inst : CommRing R], (Algebra.Presentation.mvPolynomial R ι).dimension = Nat.card ι
theorem Algebra.Generators.ker_localizationAway E1 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (r : R)
[inst_3 : IsLocalization.Away r S],
(Algebra.Generators.localizationAway S r).ker = Ideal.span {MvPolynomial.C r * MvPolynomial.X () - 1}
def Algebra.Presentation.localizationAway E1 #
{R : Type u} →
(S : Type v) →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] → (r : R) → [IsLocalization.Away r S] → Algebra.Presentation R S Unit Unit
If S is the localization of R away from r, we can construct a natural
presentation of S as R-algebra with a single generator X and the relation r * X - 1 = 0.
theorem Algebra.Presentation.localizationAway_relation E0 #
∀ {R : Type u} (S : Type v) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (r : R)
[inst_3 : IsLocalization.Away r S] (x : Unit),
(Algebra.Presentation.localizationAway S r).relation x = MvPolynomial.C r * MvPolynomial.X () - 1
theorem Algebra.Presentation.localizationAway_dimension_zero E0 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (r : R)
[inst_3 : IsLocalization.Away r S], (Algebra.Presentation.localizationAway S r).dimension = 0
theorem Algebra.Generators.C_mul_X_sub_one_mem_ker E1 #
∀ {R : Type u} {S : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (r : R)
[inst_3 : IsLocalization.Away r S],
MvPolynomial.C r * MvPolynomial.X () - 1 ∈ (Algebra.Generators.localizationAway S r).ker
theorem Algebra.Presentation.span_range_relation_eq_ker_baseChange E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(T : Type u_1) [inst_3 : CommRing T] [inst_4 : Algebra R T] (P : Algebra.Presentation R S ι σ),
Ideal.span (Set.range fun i ↦ (MvPolynomial.map (algebraMap R T)) (P.relation i)) =
RingHom.ker (MvPolynomial.aeval (Algebra.Generators.baseChange T P.toGenerators).val)
def Algebra.Presentation.baseChange E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] →
(T : Type u_1) →
[inst_3 : CommRing T] →
[inst_4 : Algebra R T] →
Algebra.Presentation R S ι σ → Algebra.Presentation T (TensorProduct R T S) ι σ
If P is a presentation of S over R and T is an R-algebra, we
obtain a natural presentation of T ⊗[R] S over T.
theorem Algebra.Presentation.baseChange_relation E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(T : Type u_1) [inst_3 : CommRing T] [inst_4 : Algebra R T] (P : Algebra.Presentation R S ι σ) (i : σ),
(Algebra.Presentation.baseChange T P).relation i = (MvPolynomial.map (algebraMap R T)) (P.relation i)
theorem Algebra.Presentation.baseChange_toGenerators E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(T : Type u_1) [inst_3 : CommRing T] [inst_4 : Algebra R T] (P : Algebra.Presentation R S ι σ),
(Algebra.Presentation.baseChange T P).toGenerators = Algebra.Generators.baseChange T P.toGenerators
def Algebra.Presentation.compRelationAux E0 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] →
{ι' : Type u_1} →
{σ' : Type u_2} →
{T : Type u_3} →
[inst_3 : CommRing T] →
[inst_4 : Algebra S T] →
Algebra.Presentation S T ι' σ' → Algebra.Presentation R S ι σ → σ' → MvPolynomial (ι' ⊕ ι) R
A choice of pre-image of Q.relation r under the canonical
map MvPolynomial (ι' ⊕ ι) R →ₐ[R] MvPolynomial ι' S given by the evaluation of P.
theorem Algebra.Presentation.span_range_relation_eq_ker_comp E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
{ι' : Type u_1} {σ' : Type u_2} {T : Type u_3} [inst_3 : CommRing T] [inst_4 : Algebra S T]
(Q : Algebra.Presentation S T ι' σ') (P : Algebra.Presentation R S ι σ) [inst_5 : Algebra R T]
[inst_6 : IsScalarTower R S T],
Ideal.span (Set.range (Sum.elim (Q.compRelationAux P) fun rp ↦ (MvPolynomial.rename Sum.inr) (P.relation rp))) =
(Q.comp P.toGenerators).ker
def Algebra.Presentation.comp E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] →
{ι' : Type u_1} →
{σ' : Type u_2} →
{T : Type u_3} →
[inst_3 : CommRing T] →
[inst_4 : Algebra S T] →
Algebra.Presentation S T ι' σ' →
Algebra.Presentation R S ι σ →
[inst_5 : Algebra R T] → [IsScalarTower R S T] → Algebra.Presentation R T (ι' ⊕ ι) (σ' ⊕ σ)
Given presentations of T over S and of S over R,
we may construct a presentation of T over R.
theorem Algebra.Presentation.comp_relation E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
{ι' : Type u_1} {σ' : Type u_2} {T : Type u_3} [inst_3 : CommRing T] [inst_4 : Algebra S T]
(Q : Algebra.Presentation S T ι' σ') (P : Algebra.Presentation R S ι σ) [inst_5 : Algebra R T]
[inst_6 : IsScalarTower R S T] (a : σ' ⊕ σ),
(Q.comp P).relation a = Sum.elim (Q.compRelationAux P) (fun rp ↦ (MvPolynomial.rename Sum.inr) (P.relation rp)) a
theorem Algebra.Presentation.toGenerators_comp E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
{ι' : Type u_1} {σ' : Type u_2} {T : Type u_3} [inst_3 : CommRing T] [inst_4 : Algebra S T]
(Q : Algebra.Presentation S T ι' σ') (P : Algebra.Presentation R S ι σ) [inst_5 : Algebra R T]
[inst_6 : IsScalarTower R S T], (Q.comp P).toGenerators = Q.comp P.toGenerators
theorem Algebra.Presentation.comp_relation_inr E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
{ι' : Type u_1} {σ' : Type u_2} {T : Type u_3} [inst_3 : CommRing T] [inst_4 : Algebra S T]
(Q : Algebra.Presentation S T ι' σ') (P : Algebra.Presentation R S ι σ) [inst_5 : Algebra R T]
[inst_6 : IsScalarTower R S T] (r : σ), (Q.comp P).relation (Sum.inr r) = (MvPolynomial.rename Sum.inr) (P.relation r)
theorem Algebra.Presentation.comp_aeval_relation_inl E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
{ι' : Type u_1} {σ' : Type u_2} {T : Type u_3} [inst_3 : CommRing T] [inst_4 : Algebra S T]
(Q : Algebra.Presentation S T ι' σ') (P : Algebra.Presentation R S ι σ) [inst_5 : Algebra R T]
[inst_6 : IsScalarTower R S T] (r : σ'),
(MvPolynomial.aeval (Sum.elim MvPolynomial.X (⇑MvPolynomial.C ∘ P.val))) ((Q.comp P).relation (Sum.inl r)) =
Q.relation r
theorem Algebra.Presentation.relation_comp_localizationAway_inl E1 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
{T : Type u_3} [inst_3 : CommRing T] [inst_4 : Algebra S T] [inst_5 : Algebra R T] [inst_6 : IsScalarTower R S T]
(g : S) [inst_7 : IsLocalization.Away g T] (P : Algebra.Presentation R S ι σ),
P.σ (-1) = -1 →
P.σ 0 = 0 →
∀ (r : Unit),
((Algebra.Presentation.localizationAway T g).comp P).relation (Sum.inl r) =
(MvPolynomial.rename Sum.inr) (P.σ g) * MvPolynomial.X (Sum.inl ()) - 1
The composition of a presentation P with a
localization away from an element has the form R[Xᵢ, Y]/(fⱼ, (P.σ g) Y - 1),
if the chosen section of P preserves -1 and 0.
Note: If S is non-trivial, we can ensure this by only modifying P.σ.
def Algebra.Presentation.reindex E1 #
{R : Type u} →
{S : Type v} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
[inst_1 : CommRing S] →
[inst_2 : Algebra R S] →
Algebra.Presentation R S ι σ →
{ι' : Type u_1} → {σ' : Type u_2} → ι' ≃ ι → σ' ≃ σ → Algebra.Presentation R S ι' σ'
Given a presentation P and equivalences ι' ≃ ι and
σ' ≃ σ, this is the induced presentation with variables indexed
by ι' and relations indexed by σ'
theorem Algebra.Presentation.reindex_toGenerators E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) {ι' : Type u_1} {σ' : Type u_2} (e : ι' ≃ ι) (f : σ' ≃ σ),
(P.reindex e f).toGenerators = P.reindex e
theorem Algebra.Presentation.dimension_reindex E0 #
∀ {R : Type u} {S : Type v} {ι : Type w} {σ : Type t} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
(P : Algebra.Presentation R S ι σ) {ι' : Type u_1} {σ' : Type u_2} (e : ι' ≃ ι) (f : σ' ≃ σ),
(P.reindex e f).dimension = P.dimension
def Algebra.Presentation.naive E1 #
{R : Type u} →
{ι : Type w} →
{σ : Type t} →
[inst : CommRing R] →
{v : ι → MvPolynomial σ R} →
(s : optParam (MvPolynomial σ R ⧸ Ideal.span (Set.range v) → MvPolynomial σ R) (Function.surjInv ⋯)) →
autoParam
(∀ (x : MvPolynomial σ R ⧸ Ideal.span (Set.range v)),
(Ideal.Quotient.mk (Ideal.span (Set.range v))) (s x) = x)
Algebra.Presentation.naive._auto_1 →
Algebra.Presentation R (MvPolynomial σ R ⧸ Ideal.span (Set.range v)) σ ι
The naive presentation of a quotient R[Xᵢ] ⧸ (vⱼ).
If the definitional equality of the section matters, it can be explicitly provided.
theorem Algebra.Presentation.naive_toGenerators E0 #
∀ {R : Type u} {ι : Type w} {σ : Type t} [inst : CommRing R] {v : ι → MvPolynomial σ R}
(s : optParam (MvPolynomial σ R ⧸ Ideal.span (Set.range v) → MvPolynomial σ R) (Function.surjInv ⋯))
(hs :
autoParam
(∀ (x : MvPolynomial σ R ⧸ Ideal.span (Set.range v)), (Ideal.Quotient.mk (Ideal.span (Set.range v))) (s x) = x)
Algebra.Presentation.naive._auto_1),
(Algebra.Presentation.naive s hs).toGenerators = Algebra.Generators.naive s hs
theorem Algebra.Presentation.naive_relation E1 #
∀ {R : Type u} {ι : Type w} {σ : Type t} [inst : CommRing R] {v : ι → MvPolynomial σ R}
(s : MvPolynomial σ R ⧸ Ideal.span (Set.range v) → MvPolynomial σ R)
(hs : ∀ (x : MvPolynomial σ R ⧸ Ideal.span (Set.range v)), (Ideal.Quotient.mk (Ideal.span (Set.range v))) (s x) = x),
(Algebra.Presentation.naive s hs).relation = v
theorem Algebra.Presentation.naive_relation_apply E0 #
∀ {R : Type u} {ι : Type w} {σ : Type t} [inst : CommRing R] {v : ι → MvPolynomial σ R}
(s : MvPolynomial σ R ⧸ Ideal.span (Set.range v) → MvPolynomial σ R)
(hs : ∀ (x : MvPolynomial σ R ⧸ Ideal.span (Set.range v)), (Ideal.Quotient.mk (Ideal.span (Set.range v))) (s x) = x)
(i : ι), (Algebra.Presentation.naive s hs).relation i = v i
theorem Algebra.Presentation.mem_ker_naive E0 #
∀ {R : Type u} {ι : Type w} {σ : Type t} [inst : CommRing R] {v : ι → MvPolynomial σ R}
(s : MvPolynomial σ R ⧸ Ideal.span (Set.range v) → MvPolynomial σ R)
(hs : ∀ (x : MvPolynomial σ R ⧸ Ideal.span (Set.range v)), (Ideal.Quotient.mk (Ideal.span (Set.range v))) (s x) = x)
(i : ι), v i ∈ (Algebra.Presentation.naive s hs).ker
theorem Algebra.Generators.fg_ker_of_finitePresentation E1 #
∀ (R : Type u) (S : Type v) [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S]
[Algebra.FinitePresentation R S] {α : Type u_1} (P : Algebra.Generators R S α) [Finite α], P.ker.FG