The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V26. Homological algebra

Mathlib.Algebra.Category.AlgCat.Basic

81 declarations. Mathlib docs · Source

def AlgCat.Hom.ctorIdx E1 #

{R : Type u} → {inst : CommRing R} → {A B : AlgCat R} → A.Hom B → ℕ

def AlgCat.ctorIdx E1 #

{R : Type u} → {inst : CommRing R} → AlgCat R → ℕ

structure AlgCat E3 #

(R : Type u) → [CommRing R] → Type (max u (v + 1))

The category of R-algebras and their morphisms.

abbrev AlgCat.carrier E1 #

{R : Type u} → [inst : CommRing R] → AlgCat R → Type v

The underlying type.

instance AlgCat.isRing E0 #

{R : Type u} → [inst : CommRing R] → (self : AlgCat R) → Ring ↑self

instance AlgCat.isAlgebra E0 #

{R : Type u} → [inst : CommRing R] → (self : AlgCat R) → Algebra R ↑self

instance AlgCat.instCoeSortType E0 #

(R : Type u) → [inst : CommRing R] → CoeSort (AlgCat R) (Type v)

abbrev AlgCat.of E1 #

(R : Type u) → [inst : CommRing R] → (X : Type v) → [inst_1 : Ring X] → [Algebra R X] → AlgCat 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 AlgCat R.

def AlgCat.delabOf E1 #

Lean.PrettyPrinter.Delaborator.Delab

This prints AlgCat.of R X as ↧X.

theorem AlgCat.coe_of E0 #

∀ (R : Type u) [inst : CommRing R] (X : Type v) [inst_1 : Ring X] [inst_2 : Algebra R X], ↑↧X = X

structure AlgCat.Hom E1 #

{R : Type u} → [inst : CommRing R] → AlgCat R → AlgCat R → Type v

The type of morphisms in AlgCat R.

theorem AlgCat.Hom.ext_iff E0 #

∀ {R : Type u} {inst : CommRing R} {A B : AlgCat R} {x y : A.Hom B}, x = y ↔ x.hom' = y.hom'

theorem AlgCat.Hom.ext E1 #

∀ {R : Type u} {inst : CommRing R} {A B : AlgCat R} {x y : A.Hom B}, x.hom' = y.hom' → x = y

abbrev AlgCat.Hom.hom' E1 #

{R : Type u} → [inst : CommRing R] → {A B : AlgCat R} → A.Hom B → ↑A →ₐ[R] ↑B

The underlying algebra map.

instance AlgCat.instCategory E0 #

(R : Type u) → [inst : CommRing R] → CategoryTheory.Category.{v, max (v + 1) u} (AlgCat R)

instance AlgCat.instConcreteCategoryAlgHomCarrier E0 #

(R : Type u) → [inst : CommRing R] → CategoryTheory.ConcreteCategory (AlgCat R) fun x1 x2 ↦ ↑x1 →ₐ[R] ↑x2

abbrev AlgCat.Hom.hom E1 #

{R : Type u} → [inst : CommRing R] → {A B : AlgCat R} → A.Hom B → ↑A →ₐ[R] ↑B

Turn a morphism in AlgCat back into an AlgHom.

abbrev AlgCat.ofHom E1 #

{R : Type u} →
  [inst : CommRing R] →
    {A B : Type v} →
      [inst_1 : Ring A] → [inst_2 : Ring B] → [inst_3 : Algebra R A] → [inst_4 : Algebra R B] → (A →ₐ[R] B) → (↧A ⟶ ↧B)

Typecheck an AlgHom as a morphism in AlgCat.

def AlgCat.Hom.Simps.hom E1 #

{R : Type u} → [inst : CommRing R] → (A B : AlgCat R) → A.Hom B → ↑A →ₐ[R] ↑B

Use the ConcreteCategory.hom projection for @[simps] lemmas.

theorem AlgCat.hom_id E0 #

∀ (R : Type u) [inst : CommRing R] {A : AlgCat R}, AlgCat.Hom.hom (CategoryTheory.CategoryStruct.id A) = AlgHom.id R ↑A

theorem AlgCat.id_apply E0 #

∀ (R : Type u) [inst : CommRing R] (A : AlgCat R) (a : ↑A),
  (CategoryTheory.ConcreteCategory.hom (CategoryTheory.CategoryStruct.id A)) a = a

theorem AlgCat.hom_comp E0 #

∀ (R : Type u) [inst : CommRing R] {A B C : AlgCat R} (f : A ⟶ B) (g : B ⟶ C),
  AlgCat.Hom.hom (CategoryTheory.CategoryStruct.comp f g) = (AlgCat.Hom.hom g).comp (AlgCat.Hom.hom f)

theorem AlgCat.comp_apply E0 #

∀ (R : Type u) [inst : CommRing R] {A B C : AlgCat 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 AlgCat.hom_ext_iff E0 #

∀ {R : Type u} [inst : CommRing R] {A B : AlgCat R} {f g : A ⟶ B}, f = g ↔ AlgCat.Hom.hom f = AlgCat.Hom.hom g

theorem AlgCat.hom_ext E1 #

∀ (R : Type u) [inst : CommRing R] {A B : AlgCat R} {f g : A ⟶ B}, AlgCat.Hom.hom f = AlgCat.Hom.hom g → f = g

theorem AlgCat.hom_ofHom E0 #

∀ {R : Type u} [inst : CommRing R] {X Y : Type v} [inst_1 : Ring X] [inst_2 : Algebra R X] [inst_3 : Ring Y]
  [inst_4 : Algebra R Y] (f : X →ₐ[R] Y), AlgCat.Hom.hom (AlgCat.ofHom f) = f

theorem AlgCat.ofHom_hom E0 #

∀ (R : Type u) [inst : CommRing R] {A B : AlgCat R} (f : A ⟶ B), AlgCat.ofHom (AlgCat.Hom.hom f) = f

theorem AlgCat.ofHom_id E0 #

∀ (R : Type u) [inst : CommRing R] {X : Type v} [inst_1 : Ring X] [inst_2 : Algebra R X],
  AlgCat.ofHom (AlgHom.id R X) = CategoryTheory.CategoryStruct.id ↧X

theorem AlgCat.ofHom_comp E0 #

∀ (R : Type u) [inst : CommRing R] {X Y Z : Type v} [inst_1 : Ring X] [inst_2 : Ring Y] [inst_3 : Ring Z]
  [inst_4 : Algebra R X] [inst_5 : Algebra R Y] [inst_6 : Algebra R Z] (f : X →ₐ[R] Y) (g : Y →ₐ[R] Z),
  AlgCat.ofHom (g.comp f) = CategoryTheory.CategoryStruct.comp (AlgCat.ofHom f) (AlgCat.ofHom g)

theorem AlgCat.ofHom_apply E0 #

∀ {R : Type u} [inst : CommRing R] {X Y : Type v} [inst_1 : Ring X] [inst_2 : Algebra R X] [inst_3 : Ring Y]
  [inst_4 : Algebra R Y] (f : X →ₐ[R] Y) (x : X), (CategoryTheory.ConcreteCategory.hom (AlgCat.ofHom f)) x = f x

theorem AlgCat.inv_hom_apply E0 #

∀ (R : Type u) [inst : CommRing R] {A B : AlgCat R} (e : A ≅ B) (x : ↑A),
  (CategoryTheory.ConcreteCategory.hom e.inv) ((CategoryTheory.ConcreteCategory.hom e.hom) x) = x

theorem AlgCat.hom_inv_apply E0 #

∀ (R : Type u) [inst : CommRing R] {A B : AlgCat R} (e : A ≅ B) (x : ↑B),
  (CategoryTheory.ConcreteCategory.hom e.hom) ((CategoryTheory.ConcreteCategory.hom e.inv) x) = x

instance AlgCat.instInhabited E0 #

(R : Type u) → [inst : CommRing R] → Inhabited (AlgCat R)

theorem AlgCat.forget_obj E1 #

∀ (R : Type u) [inst : CommRing R] {A : AlgCat R}, (CategoryTheory.forget (AlgCat R)).obj A = ↑A

instance AlgCat.instRingObjForgetAlgHomCarrier E0 #

(R : Type u) → [inst : CommRing R] → {S : AlgCat R} → Ring ((CategoryTheory.forget (AlgCat R)).obj S)

instance AlgCat.instAlgebraObjForgetAlgHomCarrier E0 #

(R : Type u) → [inst : CommRing R] → {S : AlgCat R} → Algebra R ((CategoryTheory.forget (AlgCat R)).obj S)

instance AlgCat.hasForgetToRing E0 #

(R : Type u) → [inst : CommRing R] → CategoryTheory.HasForget₂ (AlgCat R) RingCat

theorem AlgCat.forget₂_ringCat_obj E0 #

∀ (R : Type u) [inst : CommRing R] (X : AlgCat R), (CategoryTheory.forget₂ (AlgCat R) RingCat).obj X = ↧↑X

theorem AlgCat.forget₂_ringCat_map E0 #

∀ (R : Type u) [inst : CommRing R] {X Y : AlgCat R} (f : X ⟶ Y),
  (CategoryTheory.forget₂ (AlgCat R) RingCat).map f = RingCat.ofHom ↑(AlgCat.Hom.hom f)

instance AlgCat.instAlgebraCarrierObjRingCatForget₂AlgHomCarrierRingHom E0 #

(R : Type u) → [inst : CommRing R] → (A : AlgCat R) → Algebra R ↑((CategoryTheory.forget₂ (AlgCat R) RingCat).obj A)

instance AlgCat.hasForgetToModule E0 #

(R : Type u) → [inst : CommRing R] → CategoryTheory.HasForget₂ (AlgCat R) (ModuleCat R)

theorem AlgCat.forget₂_module_obj E0 #

∀ (R : Type u) [inst : CommRing R] (X : AlgCat R), (CategoryTheory.forget₂ (AlgCat R) (ModuleCat R)).obj X = ↧↑X

theorem AlgCat.forget₂_module_map E0 #

∀ (R : Type u) [inst : CommRing R] {X Y : AlgCat R} (f : X ⟶ Y),
  (CategoryTheory.forget₂ (AlgCat R) (ModuleCat R)).map f = ModuleCat.ofHom (AlgCat.Hom.hom f).toLinearMap

def AlgCat.free E1 #

(R : Type u) → [inst : CommRing R] → CategoryTheory.Functor (Type u) (AlgCat R)

The "free algebra" functor, sending a type S to the free algebra on S.

theorem AlgCat.free_obj E0 #

∀ (R : Type u) [inst : CommRing R] (S : Type u), (AlgCat.free R).obj S = ↧(FreeAlgebra R S)

theorem AlgCat.free_map E0 #

∀ (R : Type u) [inst : CommRing R] {X Y : Type u} (f : X ⟶ Y),
  (AlgCat.free R).map f =
    AlgCat.ofHom ((FreeAlgebra.lift R) (FreeAlgebra.ι R ∘ ⇑(CategoryTheory.ConcreteCategory.hom f)))

def AlgCat.adj E1 #

(R : Type u) → [inst : CommRing R] → AlgCat.free R ⊣ CategoryTheory.forget (AlgCat R)

The free/forget adjunction for R-algebras.

instance AlgCat.instIsRightAdjointForgetAlgHomCarrier E0 #

∀ (R : Type u) [inst : CommRing R], (CategoryTheory.forget (AlgCat R)).IsRightAdjoint

def AlgEquiv.toAlgebraIso E1 #

{R : Type u} →
  [inst : CommRing R] →
    {X₁ X₂ : Type v} →
      {g₁ : Ring X₁} → {g₂ : Ring X₂} → {m₁ : Algebra R X₁} → {m₂ : Algebra R X₂} → (X₁ ≃ₐ[R] X₂) → (↧X₁ ≅ ↧X₂)

Build an isomorphism in the category AlgCat R from an AlgEquiv between Algebras.

theorem AlgEquiv.toAlgebraIso_inv E0 #

∀ {R : Type u} [inst : CommRing R] {X₁ X₂ : Type v} {g₁ : Ring X₁} {g₂ : Ring X₂} {m₁ : Algebra R X₁}
  {m₂ : Algebra R X₂} (e : X₁ ≃ₐ[R] X₂), e.toAlgebraIso.inv = AlgCat.ofHom ↑e.symm

theorem AlgEquiv.toAlgebraIso_hom E0 #

∀ {R : Type u} [inst : CommRing R] {X₁ X₂ : Type v} {g₁ : Ring X₁} {g₂ : Ring X₂} {m₁ : Algebra R X₁}
  {m₂ : Algebra R X₂} (e : X₁ ≃ₐ[R] X₂), e.toAlgebraIso.hom = AlgCat.ofHom ↑e

def CategoryTheory.Iso.toAlgEquiv E1 #

{R : Type u} → [inst : CommRing R] → {X Y : AlgCat R} → (X ≅ Y) → ↑X ≃ₐ[R] ↑Y

Build an AlgEquiv from an isomorphism in the category AlgCat R.

theorem CategoryTheory.Iso.toAlgEquiv_symm_apply E0 #

∀ {R : Type u} [inst : CommRing R] {X Y : AlgCat R} (i : X ≅ Y) (a : ↑Y),
  i.toAlgEquiv.symm a = (CategoryTheory.ConcreteCategory.hom i.inv) a

theorem CategoryTheory.Iso.toAlgEquiv_apply E0 #

∀ {R : Type u} [inst : CommRing R] {X Y : AlgCat R} (i : X ≅ Y) (a : ↑X),
  i.toAlgEquiv a = (CategoryTheory.ConcreteCategory.hom i.hom) a

def algEquivIsoAlgebraIso E1 #

{R : Type u} →
  [inst : CommRing R] →
    {X Y : Type v} →
      [inst_1 : Ring X] → [inst_2 : Ring Y] → [inst_3 : Algebra R X] → [inst_4 : Algebra R Y] → (X ≃ₐ[R] Y) ≅ ↧X ≅ ↧Y

Algebra equivalences between Algebras are the same as (isomorphic to) isomorphisms in AlgCat.

theorem algEquivIsoAlgebraIso_inv E0 #

∀ {R : Type u} [inst : CommRing R] {X Y : Type v} [inst_1 : Ring X] [inst_2 : Ring Y] [inst_3 : Algebra R X]
  [inst_4 : Algebra R Y], algEquivIsoAlgebraIso.inv = TypeCat.ofHom fun i ↦ i.toAlgEquiv

theorem algEquivIsoAlgebraIso_hom E0 #

∀ {R : Type u} [inst : CommRing R] {X Y : Type v} [inst_1 : Ring X] [inst_2 : Ring Y] [inst_3 : Algebra R X]
  [inst_4 : Algebra R Y], algEquivIsoAlgebraIso.hom = TypeCat.ofHom fun e ↦ e.toAlgebraIso

instance AlgCat.forget_reflects_isos E0 #

∀ {R : Type u} [inst : CommRing R], (CategoryTheory.forget (AlgCat R)).ReflectsIsomorphisms

def AlgCat.restrictScalars E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : CommRing R] → [inst_1 : CommRing S] → (R →+* S) → CategoryTheory.Functor (AlgCat S) (AlgCat R)

The restriction of scalars functor AlgCat S ⥤ AlgCat R induced by a ring homomorphism R →+* S.

theorem AlgCat.restrictScalars_map E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) {A B : AlgCat S} (g : A ⟶ B),
  (AlgCat.restrictScalars f).map g = AlgCat.ofHom (AlgHom.restrictScalars R (AlgCat.Hom.hom g))

theorem AlgCat.restrictScalars_obj_carrier E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (f : R →+* S) (A : AlgCat S),
  ↑((AlgCat.restrictScalars f).obj A) = ↑A

def AlgCat.restrictScalarsId' E1 #

{R : Type u_1} →
  [inst : CommRing R] →
    (f : R →+* R) → f = RingHom.id R → (AlgCat.restrictScalars f ≅ CategoryTheory.Functor.id (AlgCat R))

Restricting scalars along the identity is isomorphic to the identity.

theorem AlgCat.restrictScalarsId'_inv_app_hom_apply E0 #

∀ {R : Type u_1} [inst : CommRing R] (f : R →+* R) (hf : f = RingHom.id R) (X : AlgCat R) (a : ↑X),
  (AlgCat.Hom.hom ((AlgCat.restrictScalarsId' f hf).inv.app X)) a = a

theorem AlgCat.restrictScalarsId'_hom_app_hom_apply E0 #

∀ {R : Type u_1} [inst : CommRing R] (f : R →+* R) (hf : f = RingHom.id R) (X : AlgCat R) (a : ↑X),
  (AlgCat.Hom.hom ((AlgCat.restrictScalarsId' f hf).hom.app X)) a = a

def AlgCat.restrictScalarsComp' E1 #

{R : Type u_1} →
  {S : Type u_2} →
    {T : Type u_3} →
      [inst : CommRing R] →
        [inst_1 : CommRing S] →
          [inst_2 : CommRing T] →
            (f : R →+* S) →
              (g : S →+* T) →
                (gf : R →+* T) →
                  gf = g.comp f →
                    (AlgCat.restrictScalars gf ≅ (AlgCat.restrictScalars g).comp (AlgCat.restrictScalars f))

Restricting scalars along a composition is isomorphic to the composition of restriction of scalars.

theorem AlgCat.restrictScalarsComp'_inv_app_hom_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  (f : R →+* S) (g : S →+* T) (gf : R →+* T) (hfg : gf = g.comp f) (X : AlgCat T)
  (a : ↑((AlgCat.restrictScalars g).obj X)), (AlgCat.Hom.hom ((AlgCat.restrictScalarsComp' f g gf hfg).inv.app X)) a = a

theorem AlgCat.restrictScalarsComp'_hom_app_hom_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  (f : R →+* S) (g : S →+* T) (gf : R →+* T) (hfg : gf = g.comp f) (X : AlgCat T) (a : ↑X),
  (AlgCat.Hom.hom ((AlgCat.restrictScalarsComp' f g gf hfg).hom.app X)) a = a

def AlgCat.restrictScalarsEquivalenceOfRingEquiv E1 #

{R : Type u_1} → {S : Type u_2} → [inst : CommRing R] → [inst_1 : CommRing S] → R ≃+* S → (AlgCat S ≌ AlgCat R)

A ring isomorphism induces an equivalence of categories of algebras.

theorem AlgCat.restrictScalarsEquivalenceOfRingEquiv_functor E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S),
  (AlgCat.restrictScalarsEquivalenceOfRingEquiv e).functor = AlgCat.restrictScalars e.toRingHom

theorem AlgCat.restrictScalarsEquivalenceOfRingEquiv_counitIso E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S),
  (AlgCat.restrictScalarsEquivalenceOfRingEquiv e).counitIso =
    (AlgCat.restrictScalarsComp' e.toRingHom e.symm.toRingHom (RingHom.id R) ⋯).symm ≪≫
      AlgCat.restrictScalarsId' (RingHom.id R) ⋯

theorem AlgCat.restrictScalarsEquivalenceOfRingEquiv_inverse E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S),
  (AlgCat.restrictScalarsEquivalenceOfRingEquiv e).inverse = AlgCat.restrictScalars e.symm.toRingHom

theorem AlgCat.restrictScalarsEquivalenceOfRingEquiv_unitIso E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S),
  (AlgCat.restrictScalarsEquivalenceOfRingEquiv e).unitIso =
    (AlgCat.restrictScalarsId' (RingHom.id S) ⋯).symm ≪≫
      AlgCat.restrictScalarsComp' e.symm.toRingHom e.toRingHom (RingHom.id S) ⋯

instance AlgCat.instIsEquivalenceRestrictScalarsToRingHom E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S),
  (AlgCat.restrictScalars e.toRingHom).IsEquivalence

instance AlgCat.instIsEquivalenceRestrictScalarsToRingHomSymm E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] (e : R ≃+* S),
  (AlgCat.restrictScalars e.symm.toRingHom).IsEquivalence

def AlgCat.intEquivalence E1 #

AlgCat ℤ ≌ RingCat

The equivalence of categories of ℤ-algebras and rings.

theorem AlgCat.intEquivalence_functor E0 #

AlgCat.intEquivalence.functor = CategoryTheory.forget₂ (AlgCat ℤ) RingCat

theorem AlgCat.intEquivalence_counitIso E0 #

AlgCat.intEquivalence.counitIso =
  CategoryTheory.Iso.refl
    ({ obj := fun A ↦ ↧↑A, map := fun {X Y} f ↦ AlgCat.ofHom (RingCat.Hom.hom f).toIntAlgHom,
          map_id := AlgCat.intEquivalence._proof_1, map_comp := @AlgCat.intEquivalence._proof_2 }.comp
      (CategoryTheory.forget₂ (AlgCat ℤ) RingCat))

theorem AlgCat.intEquivalence_inverse_obj E0 #

∀ (A : RingCat), AlgCat.intEquivalence.inverse.obj A = ↧↑A

theorem AlgCat.intEquivalence_inverse_map_hom E0 #

∀ {X Y : RingCat} (f : X ⟶ Y), AlgCat.Hom.hom (AlgCat.intEquivalence.inverse.map f) = (RingCat.Hom.hom f).toIntAlgHom

theorem AlgCat.intEquivalence_unitIso_hom_app_hom_apply E0 #

∀ (X : AlgCat ℤ) (a : ↑X), (AlgCat.Hom.hom (AlgCat.intEquivalence.unitIso.hom.app X)) a = a

instance AlgCat.instIsEquivalenceIntRingCatForget₂AlgHomCarrierRingHomCarrier E0 #

(CategoryTheory.forget₂ (AlgCat ℤ) RingCat).IsEquivalence