The areas / V26. Homological algebra
Mathlib.Algebra.Category.CommAlgCat.Basic
68 declarations. Mathlib docs · Source
def CommAlgCat.Hom.ctorIdx E1 #
{R : Type u} → {inst : CommRing R} → {A B : CommAlgCat R} → A.Hom B → ℕ
def CommAlgCat.ctorIdx E1 #
{R : Type u} → {inst : CommRing R} → CommAlgCat R → ℕ
structure CommAlgCat E1 #
(R : Type u) → [CommRing R] → Type (max u (v + 1))
The category of R-algebras and their morphisms.
abbrev CommAlgCat.carrier E1 #
{R : Type u} → [inst : CommRing R] → CommAlgCat R → Type v
The underlying type.
instance CommAlgCat.commRing E0 #
{R : Type u} → [inst : CommRing R] → (self : CommAlgCat R) → CommRing ↑self
instance CommAlgCat.algebra E0 #
{R : Type u} → [inst : CommRing R] → (self : CommAlgCat R) → Algebra R ↑self
instance CommAlgCat.instCoeSortType E0 #
{R : Type u} → [inst : CommRing R] → CoeSort (CommAlgCat R) (Type v)
abbrev CommAlgCat.of E1 #
(R : Type u) → [inst : CommRing R] → (X : Type v) → [inst_1 : CommRing X] → [Algebra R X] → CommAlgCat R
The object in the category of R-algebras associated to a type equipped with the appropriate
typeclasses. This is the preferred way to construct a term of CommAlgCat R.
def CommAlgCat.delabOf E1 #
Lean.PrettyPrinter.Delaborator.Delab
This prints CommAlgCat.of R X as ↧X.
theorem CommAlgCat.coe_of E0 #
∀ (R : Type u) [inst : CommRing R] (X : Type v) [inst_1 : CommRing X] [inst_2 : Algebra R X], ↑↧X = X
structure CommAlgCat.Hom E1 #
{R : Type u} → [inst : CommRing R] → CommAlgCat R → CommAlgCat R → Type v
The type of morphisms in CommAlgCat R.
theorem CommAlgCat.Hom.ext E1 #
∀ {R : Type u} {inst : CommRing R} {A B : CommAlgCat R} {x y : A.Hom B}, x.hom' = y.hom' → x = y
theorem CommAlgCat.Hom.ext_iff E0 #
∀ {R : Type u} {inst : CommRing R} {A B : CommAlgCat R} {x y : A.Hom B}, x = y ↔ x.hom' = y.hom'
abbrev CommAlgCat.Hom.hom' E1 #
{R : Type u} → [inst : CommRing R] → {A B : CommAlgCat R} → A.Hom B → ↑A →ₐ[R] ↑B
The underlying algebra map.
instance CommAlgCat.instCategory E0 #
{R : Type u} → [inst : CommRing R] → CategoryTheory.Category.{v, max (v + 1) u} (CommAlgCat R)
instance CommAlgCat.instConcreteCategoryAlgHomCarrier E0 #
{R : Type u} → [inst : CommRing R] → CategoryTheory.ConcreteCategory (CommAlgCat R) fun x1 x2 ↦ ↑x1 →ₐ[R] ↑x2
abbrev CommAlgCat.Hom.hom E1 #
{R : Type u} → [inst : CommRing R] → {A B : CommAlgCat R} → A.Hom B → ↑A →ₐ[R] ↑B
Turn a morphism in CommAlgCat back into an AlgHom.
abbrev CommAlgCat.ofHom E1 #
{R : Type u} →
[inst : CommRing R] →
{X Y : Type v} →
[inst_1 : CommRing X] →
[inst_2 : Algebra R X] → [inst_3 : CommRing Y] → [inst_4 : Algebra R Y] → (X →ₐ[R] Y) → (↧X ⟶ ↧Y)
Typecheck an AlgHom as a morphism in CommAlgCat.
def CommAlgCat.Hom.Simps.hom E1 #
{R : Type u} → [inst : CommRing R] → (A B : CommAlgCat R) → A.Hom B → ↑A →ₐ[R] ↑B
Use the ConcreteCategory.hom projection for @[simps] lemmas.
theorem CommAlgCat.hom_id E0 #
∀ {R : Type u} [inst : CommRing R] {A : CommAlgCat R},
CommAlgCat.Hom.hom (CategoryTheory.CategoryStruct.id A) = AlgHom.id R ↑A
theorem CommAlgCat.id_apply E0 #
∀ {R : Type u} [inst : CommRing R] (A : CommAlgCat R) (a : ↑A),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.id A)) a = a
theorem CommAlgCat.hom_comp E0 #
∀ {R : Type u} [inst : CommRing R] {A B C : CommAlgCat R} (f : A ⟶ B) (g : B ⟶ C),
CommAlgCat.Hom.hom (CategoryTheory.CategoryStruct.comp f g) = (CommAlgCat.Hom.hom g).comp (CommAlgCat.Hom.hom f)
theorem CommAlgCat.comp_apply E0 #
∀ {R : Type u} [inst : CommRing R] {A B C : CommAlgCat R} (f : A ⟶ B) (g : B ⟶ C) (a : ↑A),
(CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.comp f g)) a =
(CategoryTheory.ConcreteCategory.hom g) ((CategoryTheory.ConcreteCategory.hom f) a)
theorem CommAlgCat.hom_ext E1 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} {f g : A ⟶ B},
CommAlgCat.Hom.hom f = CommAlgCat.Hom.hom g → f = g
theorem CommAlgCat.hom_ext_iff E0 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} {f g : A ⟶ B},
f = g ↔ CommAlgCat.Hom.hom f = CommAlgCat.Hom.hom g
theorem CommAlgCat.hom_ofHom E0 #
∀ {R : Type u} [inst : CommRing R] {X Y : Type v} [inst_1 : CommRing X] [inst_2 : Algebra R X] [inst_3 : CommRing Y]
[inst_4 : Algebra R Y] (f : X →ₐ[R] Y), CommAlgCat.Hom.hom (CommAlgCat.ofHom f) = f
theorem CommAlgCat.ofHom_hom E0 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} (f : A ⟶ B), CommAlgCat.ofHom (CommAlgCat.Hom.hom f) = f
theorem CommAlgCat.ofHom_id E0 #
∀ {R : Type u} [inst : CommRing R] {X : Type v} [inst_1 : CommRing X] [inst_2 : Algebra R X],
CommAlgCat.ofHom (AlgHom.id R X) = CategoryTheory.CategoryStruct.id ↧X
theorem CommAlgCat.ofHom_comp E0 #
∀ {R : Type u} [inst : CommRing R] {X Y Z : Type v} [inst_1 : CommRing X] [inst_2 : Algebra R X] [inst_3 : CommRing Y]
[inst_4 : Algebra R Y] [inst_5 : CommRing Z] [inst_6 : Algebra R Z] (f : X →ₐ[R] Y) (g : Y →ₐ[R] Z),
CommAlgCat.ofHom (g.comp f) = CategoryTheory.CategoryStruct.comp (CommAlgCat.ofHom f) (CommAlgCat.ofHom g)
theorem CommAlgCat.ofHom_apply E0 #
∀ {R : Type u} [inst : CommRing R] {X Y : Type v} [inst_1 : CommRing X] [inst_2 : Algebra R X] [inst_3 : CommRing Y]
[inst_4 : Algebra R Y] (f : X →ₐ[R] Y) (x : X), (CategoryTheory.ConcreteCategory.hom (CommAlgCat.ofHom f)) x = f x
theorem CommAlgCat.inv_hom_apply E0 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} (e : A ≅ B) (x : ↑A),
(CategoryTheory.ConcreteCategory.hom e.inv) ((CategoryTheory.ConcreteCategory.hom e.hom) x) = x
theorem CommAlgCat.hom_inv_apply E0 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} (e : A ≅ B) (x : ↑B),
(CategoryTheory.ConcreteCategory.hom e.hom) ((CategoryTheory.ConcreteCategory.hom e.inv) x) = x
instance CommAlgCat.instInhabited E0 #
{R : Type u} → [inst : CommRing R] → Inhabited (CommAlgCat R)
theorem CommAlgCat.forget_obj E1 #
∀ {R : Type u} [inst : CommRing R] (A : CommAlgCat R), (CategoryTheory.forget (CommAlgCat R)).obj A = ↑A
instance CommAlgCat.instCommRingObjForgetAlgHomCarrier E0 #
{R : Type u} → [inst : CommRing R] → {A : CommAlgCat R} → CommRing ((CategoryTheory.forget (CommAlgCat R)).obj A)
instance CommAlgCat.instAlgebraObjForgetAlgHomCarrier E0 #
{R : Type u} → [inst : CommRing R] → {A : CommAlgCat R} → Algebra R ((CategoryTheory.forget (CommAlgCat R)).obj A)
instance CommAlgCat.hasForgetToCommRingCat E0 #
{R : Type u} → [inst : CommRing R] → CategoryTheory.HasForget₂ (CommAlgCat R) CommRingCat
instance CommAlgCat.hasForgetToAlgCat E0 #
{R : Type u} → [inst : CommRing R] → CategoryTheory.HasForget₂ (CommAlgCat R) (AlgCat R)
theorem CommAlgCat.forget₂_commRingCat_obj E0 #
∀ {R : Type u} [inst : CommRing R] (A : CommAlgCat R), (CategoryTheory.forget₂ (CommAlgCat R) CommRingCat).obj A = ↧↑A
theorem CommAlgCat.forget₂_commRingCat_map E0 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} (f : A ⟶ B),
(CategoryTheory.forget₂ (CommAlgCat R) CommRingCat).map f = CommRingCat.ofHom ↑(CommAlgCat.Hom.hom f)
theorem CommAlgCat.forget₂_algCat_obj E0 #
∀ {R : Type u} [inst : CommRing R] (A : CommAlgCat R), (CategoryTheory.forget₂ (CommAlgCat R) (AlgCat R)).obj A = ↧↑A
theorem CommAlgCat.forget₂_algCat_map E0 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} (f : A ⟶ B),
(CategoryTheory.forget₂ (CommAlgCat R) (AlgCat R)).map f = AlgCat.ofHom (CommAlgCat.Hom.hom f)
def CommAlgCat.homEquivCommRingCat E1 #
{R : Type u} →
[inst : CommRing R] →
(A B : CommAlgCat R) → (A ⟶ B) ≃ { f // (CommRingCat.Hom.hom f).comp (algebraMap R ↑A) = algebraMap R ↑B }
The bijection between the set of morphisms A ⟶ B in CommAlgCat and the set of morphisms
A ⟶ B in CommRingCat commuting with the corresponding algebra maps R → A and R → B.
theorem CommAlgCat.homEquivCommRingCat_symm_apply E0 #
∀ {R : Type u} [inst : CommRing R] (A B : CommAlgCat R)
(f : { f // (CommRingCat.Hom.hom f).comp (algebraMap R ↑A) = algebraMap R ↑B }),
(A.homEquivCommRingCat B).symm f =
CommAlgCat.ofHom
(let __src := CommRingCat.Hom.hom ↑f;
{ toRingHom := __src, commutes' := ⋯, map_smul' := ⋯ })
theorem CommAlgCat.homEquivCommRingCat_apply_coe E0 #
∀ {R : Type u} [inst : CommRing R] (A B : CommAlgCat R) (f : A ⟶ B),
↑((A.homEquivCommRingCat B) f) = CommRingCat.ofHom ↑(CommAlgCat.Hom.hom f)
def CommAlgCat.isoMk E1 #
{R : Type u} →
[inst : CommRing R] →
{X Y : Type v} →
{x : CommRing X} → {x_1 : CommRing Y} → {x_2 : Algebra R X} → {x_3 : Algebra R Y} → (X ≃ₐ[R] Y) → (↧X ≅ ↧Y)
Build an isomorphism in the category CommAlgCat R from an AlgEquiv between commutative
Algebras.
theorem CommAlgCat.isoMk_hom E0 #
∀ {R : Type u} [inst : CommRing R] {X Y : Type v} {x : CommRing X} {x_1 : CommRing Y} {x_2 : Algebra R X}
{x_3 : Algebra R Y} (e : X ≃ₐ[R] Y), (CommAlgCat.isoMk e).hom = CommAlgCat.ofHom ↑e
theorem CommAlgCat.isoMk_inv E0 #
∀ {R : Type u} [inst : CommRing R] {X Y : Type v} {x : CommRing X} {x_1 : CommRing Y} {x_2 : Algebra R X}
{x_3 : Algebra R Y} (e : X ≃ₐ[R] Y), (CommAlgCat.isoMk e).inv = CommAlgCat.ofHom ↑e.symm
def CommAlgCat.algEquivOfIso E1 #
{R : Type u} → [inst : CommRing R] → {A B : CommAlgCat R} → (A ≅ B) → ↑A ≃ₐ[R] ↑B
Build an AlgEquiv from an isomorphism in the category CommAlgCat R.
theorem CommAlgCat.algEquivOfIso_apply E0 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} (i : A ≅ B) (a : ↑A),
(CommAlgCat.algEquivOfIso i) a = (CategoryTheory.ConcreteCategory.hom i.hom) a
theorem CommAlgCat.algEquivOfIso_symm_apply E0 #
∀ {R : Type u} [inst : CommRing R] {A B : CommAlgCat R} (i : A ≅ B) (a : ↑B),
(CommAlgCat.algEquivOfIso i).symm a = (CategoryTheory.ConcreteCategory.hom i.inv) a
def CommAlgCat.isoEquivAlgEquiv E1 #
{R : Type u} →
[inst : CommRing R] →
{X Y : Type v} →
[inst_1 : CommRing X] →
[inst_2 : Algebra R X] → [inst_3 : CommRing Y] → [inst_4 : Algebra R Y] → (↧X ≅ ↧Y) ≃ X ≃ₐ[R] Y
Algebra equivalences between Algebras are the same as isomorphisms in CommAlgCat.
theorem CommAlgCat.isoEquivAlgEquiv_apply E0 #
∀ {R : Type u} [inst : CommRing R] {X Y : Type v} [inst_1 : CommRing X] [inst_2 : Algebra R X] [inst_3 : CommRing Y]
[inst_4 : Algebra R Y] (i : ↧X ≅ ↧Y), CommAlgCat.isoEquivAlgEquiv i = CommAlgCat.algEquivOfIso i
theorem CommAlgCat.isoEquivAlgEquiv_symm_apply E0 #
∀ {R : Type u} [inst : CommRing R] {X Y : Type v} [inst_1 : CommRing X] [inst_2 : Algebra R X] [inst_3 : CommRing Y]
[inst_4 : Algebra R Y] (e : X ≃ₐ[R] Y), CommAlgCat.isoEquivAlgEquiv.symm e = CommAlgCat.isoMk e
instance CommAlgCat.reflectsIsomorphisms_forget E0 #
∀ {R : Type u} [inst : CommRing R], (CategoryTheory.forget (CommAlgCat R)).ReflectsIsomorphisms
def CommAlgCat.uliftFunctor E1 #
(R : Type u) → [inst : CommRing R] → CategoryTheory.Functor (CommAlgCat R) (CommAlgCat R)
Universe lift functor for commutative algebras.
def CommAlgCat.fullyFaithfulUliftFunctor E1 #
(R : Type u) → [inst : CommRing R] → (CommAlgCat.uliftFunctor R).FullyFaithful
The universe lift functor for commutative algebras is fully faithful.
instance CommAlgCat.instFullUliftFunctor E0 #
∀ (R : Type u) [inst : CommRing R], (CommAlgCat.uliftFunctor R).Full
instance CommAlgCat.instFaithfulUliftFunctor E0 #
∀ (R : Type u) [inst : CommRing R], (CommAlgCat.uliftFunctor R).Faithful
def commAlgCatEquivUnder E1 #
(R : CommRingCat) → CommAlgCat ↑R ≌ CategoryTheory.Under R
The category of commutative algebras over a commutative ring R is the same as commutative
rings under R.
theorem commAlgCatEquivUnder_functor_obj E0 #
∀ (R : CommRingCat) (A : CommAlgCat ↑R), (commAlgCatEquivUnder R).functor.obj A = R.mkUnder ↑A
theorem commAlgCatEquivUnder_counitIso E0 #
∀ (R : CommRingCat),
(commAlgCatEquivUnder R).counitIso =
CategoryTheory.Iso.refl
({ obj := fun A ↦ ↧↑A.right, map := fun {A B} f ↦ CommAlgCat.ofHom (CommRingCat.toAlgHom f), map_id := ⋯,
map_comp := ⋯ }.comp
{ obj := fun A ↦ R.mkUnder ↑A, map := fun {A B} f ↦ (CommAlgCat.Hom.hom f).toUnder, map_id := ⋯,
map_comp := ⋯ })
theorem commAlgCatEquivUnder_inverse_obj_carrier E0 #
∀ (R : CommRingCat) (A : CategoryTheory.Under R), ↑((commAlgCatEquivUnder R).inverse.obj A) = ↑A.right
theorem commAlgCatEquivUnder_unitIso E0 #
∀ (R : CommRingCat),
(commAlgCatEquivUnder R).unitIso =
CategoryTheory.NatIso.ofComponents (fun A ↦ CommAlgCat.isoMk (AlgEquiv.ofCommutes (RingEquiv.refl ↑A) ⋯)) ⋯
theorem commAlgCatEquivUnder_inverse_map E0 #
∀ (R : CommRingCat) {A B : CategoryTheory.Under R} (f : A ⟶ B),
(commAlgCatEquivUnder R).inverse.map f = CommAlgCat.ofHom (CommRingCat.toAlgHom f)
theorem commAlgCatEquivUnder_functor_map E0 #
∀ (R : CommRingCat) {A B : CommAlgCat ↑R} (f : A ⟶ B),
(commAlgCatEquivUnder R).functor.map f = (CommAlgCat.Hom.hom f).toUnder
instance instHasColimitsCommAlgCat E0 #
∀ {R : Type u} [inst : CommRing R], CategoryTheory.Limits.HasColimits (CommAlgCat R)
instance instHasLimitsCommAlgCat E0 #
∀ {R : Type u} [inst : CommRing R], CategoryTheory.Limits.HasLimits (CommAlgCat R)