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 / V25. Higher structures in categories

Mathlib.CategoryTheory.Preadditive.Projective.Basic

46 declarations. Mathlib docs · Source

Projective objects and categories with enough projectives

An object P is called projective if every morphism out of P factors through every epimorphism.

A category C has enough projectives if every object admits an epimorphism from some projective object.

CategoryTheory.Projective.over X picks an arbitrary such projective object, and CategoryTheory.Projective.π X : CategoryTheory.Projective.over X ⟶ X is the corresponding epimorphism.

Given a morphism f : X ⟶ Y, CategoryTheory.Projective.left f is a projective object over CategoryTheory.Limits.kernel f, and Projective.d f : Projective.left f ⟶ X is the morphism π (kernel f) ≫ kernel.ι f.

theorem CategoryTheory.ProjectivePresentation.mk.inj E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {X p : C} {projective : CategoryTheory.Projective p}
  {f : p ⟶ X} {epi : CategoryTheory.Epi f} {p_1 : C} {projective_1 : CategoryTheory.Projective p_1} {f_1 : p_1 ⟶ X}
  {epi_1 : CategoryTheory.Epi f_1},
  { p := p, projective := projective, f := f, epi := epi } =
      { p := p_1, projective := projective_1, f := f_1, epi := epi_1 } →
    p = p_1 ∧ f ≍ f_1

def CategoryTheory.ProjectivePresentation.ctorIdx E1 #

{C : Type u} → {inst : CategoryTheory.Category.{v, u} C} → {X : C} → CategoryTheory.ProjectivePresentation X → ℕ

theorem CategoryTheory.Projective.factorThru.congr_simp E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P X E : C} [inst_1 : CategoryTheory.Projective P]
  (f f_1 : P ⟶ X),
  f = f_1 →
    ∀ (e e_1 : E ⟶ X) (e_e : e = e_1) [inst_2 : CategoryTheory.Epi e],
      CategoryTheory.Projective.factorThru f e = CategoryTheory.Projective.factorThru f_1 e_1

theorem CategoryTheory.ProjectivePresentation.mk.injEq E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (p : C) [projective : CategoryTheory.Projective p]
  (f : p ⟶ X) [epi : CategoryTheory.Epi f] (p_1 : C) (projective_1 : CategoryTheory.Projective p_1) (f_1 : p_1 ⟶ X)
  (epi_1 : CategoryTheory.Epi f_1),
  ({ p := p, projective := projective, f := f, epi := epi } =
      { p := p_1, projective := projective_1, f := f_1, epi := epi_1 }) =
    (p = p_1 ∧ f ≍ f_1)

class CategoryTheory.Projective E1 #

{C : Type u} → [CategoryTheory.Category.{v, u} C] → C → Prop

An object P is called projective if every morphism out of P factors through every epimorphism.

ctor CategoryTheory.Projective.mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P : C},
  (∀ {E X : C} (f : P ⟶ X) (e : E ⟶ X) [CategoryTheory.Epi e], ∃ f', CategoryTheory.CategoryStruct.comp f' e = f) →
    CategoryTheory.Projective P

theorem CategoryTheory.Projective.factors E1 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} {P : C} [self : CategoryTheory.Projective P] {E X : C}
  (f : P ⟶ X) (e : E ⟶ X) [CategoryTheory.Epi e], ∃ f', CategoryTheory.CategoryStruct.comp f' e = f

abbrev CategoryTheory.isProjective E1 #

(C : Type u) → [inst : CategoryTheory.Category.{v, u} C] → CategoryTheory.ObjectProperty C

The ObjectProperty C corresponding to the notion of projective objects in C.

theorem CategoryTheory.Limits.IsZero.projective E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C},
  CategoryTheory.Limits.IsZero X → CategoryTheory.Projective X

structure CategoryTheory.ProjectivePresentation E1 #

{C : Type u} → [CategoryTheory.Category.{v, u} C] → C → Type (max u v)

A projective presentation of an object X consists of an epimorphism f : P ⟶ X from some projective object P.

ctor CategoryTheory.ProjectivePresentation.mk E0 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {X : C} →
      (p : C) →
        [projective : CategoryTheory.Projective p] →
          (f : p ⟶ X) → [epi : CategoryTheory.Epi f] → CategoryTheory.ProjectivePresentation X

abbrev CategoryTheory.ProjectivePresentation.p E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → {X : C} → CategoryTheory.ProjectivePresentation X → C

The projective object p of this presentation

instance CategoryTheory.ProjectivePresentation.projective E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (self : CategoryTheory.ProjectivePresentation X),
  CategoryTheory.Projective self.p

abbrev CategoryTheory.ProjectivePresentation.f E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] → {X : C} → (self : CategoryTheory.ProjectivePresentation X) → self.p ⟶ X

The epimorphism from p of this presentation

instance CategoryTheory.ProjectivePresentation.epi E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X : C} (self : CategoryTheory.ProjectivePresentation X),
  CategoryTheory.Epi self.f

class CategoryTheory.EnoughProjectives E1 #

(C : Type u) → [CategoryTheory.Category.{v, u} C] → Prop

A category "has enough projectives" if for every object X there is a projective object P and an epimorphism P ↠ X.

ctor CategoryTheory.EnoughProjectives.mk E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C],
  (∀ (X : C), Nonempty (CategoryTheory.ProjectivePresentation X)) → CategoryTheory.EnoughProjectives C

instance CategoryTheory.EnoughProjectives.presentation E0 #

∀ {C : Type u} {inst : CategoryTheory.Category.{v, u} C} [self : CategoryTheory.EnoughProjectives C] (X : C),
  Nonempty (CategoryTheory.ProjectivePresentation X)

def CategoryTheory.Projective.factorThru E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {P X E : C} → [CategoryTheory.Projective P] → (P ⟶ X) → (e : E ⟶ X) → [CategoryTheory.Epi e] → P ⟶ E

An arbitrarily chosen factorisation of a morphism out of a projective object through an epimorphism.

theorem CategoryTheory.Projective.factorThru_comp_assoc E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P X E : C} [inst_1 : CategoryTheory.Projective P] (f : P ⟶ X)
  (e : E ⟶ X) [inst_2 : CategoryTheory.Epi e] {Z : C} (h : X ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Projective.factorThru f e)
      (CategoryTheory.CategoryStruct.comp e h) =
    CategoryTheory.CategoryStruct.comp f h

theorem CategoryTheory.Projective.factorThru_comp E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P X E : C} [inst_1 : CategoryTheory.Projective P] (f : P ⟶ X)
  (e : E ⟶ X) [inst_2 : CategoryTheory.Epi e],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Projective.factorThru f e) e = f

instance CategoryTheory.Projective.zero_projective E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.Limits.HasZeroObject C],
  CategoryTheory.Projective 0

theorem CategoryTheory.Projective.of_iso E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P Q : C} (i : P ≅ Q),
  CategoryTheory.Projective P → CategoryTheory.Projective Q

theorem CategoryTheory.Projective.iso_iff E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P Q : C} (i : P ≅ Q),
  CategoryTheory.Projective P ↔ CategoryTheory.Projective Q

instance CategoryTheory.Projective.inst E0 #

∀ (X : Type u), CategoryTheory.Projective X

The axiom of choice says that every type is a projective object in Type.

instance CategoryTheory.Projective.Type.enoughProjectives E0 #

CategoryTheory.EnoughProjectives (Type u)

instance CategoryTheory.Projective.instCoprod E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P Q : C}
  [inst_1 : CategoryTheory.Limits.HasBinaryCoproduct P Q] [CategoryTheory.Projective P] [CategoryTheory.Projective Q],
  CategoryTheory.Projective (P ⨿ Q)

instance CategoryTheory.Projective.instSigmaObj E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {β : Type v} (g : β → C)
  [inst_1 : CategoryTheory.Limits.HasCoproduct g] [∀ (b : β), CategoryTheory.Projective (g b)],
  CategoryTheory.Projective (∐ g)

instance CategoryTheory.Projective.instBiprod E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {P Q : C} [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C]
  [inst_2 : CategoryTheory.Limits.HasBinaryBiproduct P Q] [CategoryTheory.Projective P] [CategoryTheory.Projective Q],
  CategoryTheory.Projective (P ⊞ Q)

instance CategoryTheory.Projective.instBiproduct E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {β : Type v} (g : β → C)
  [inst_1 : CategoryTheory.Limits.HasZeroMorphisms C] [inst_2 : CategoryTheory.Limits.HasBiproduct g]
  [∀ (b : β), CategoryTheory.Projective (g b)], CategoryTheory.Projective (⨁ g)

theorem CategoryTheory.Projective.projective_iff_preservesEpimorphisms_coyoneda_obj E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (P : C),
  CategoryTheory.Projective P ↔ (CategoryTheory.coyoneda.obj (Opposite.op P)).PreservesEpimorphisms

def CategoryTheory.Projective.over E1 #

{C : Type u} → [inst : CategoryTheory.Category.{v, u} C] → [CategoryTheory.EnoughProjectives C] → C → C

Projective.over X provides an arbitrarily chosen projective object equipped with an epimorphism Projective.π : Projective.over X ⟶ X.

instance CategoryTheory.Projective.projective_over E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.EnoughProjectives C] (X : C),
  CategoryTheory.Projective (CategoryTheory.Projective.over X)

def CategoryTheory.Projective.π E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.EnoughProjectives C] → (X : C) → CategoryTheory.Projective.over X ⟶ X

The epimorphism projective.π : projective.over X ⟶ X from the arbitrarily chosen projective object over X.

instance CategoryTheory.Projective.π_epi E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.EnoughProjectives C] (X : C),
  CategoryTheory.Epi (CategoryTheory.Projective.π X)

def CategoryTheory.Projective.syzygies E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [CategoryTheory.EnoughProjectives C] →
      [inst_2 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {X Y : C} → (f : X ⟶ Y) → [CategoryTheory.Limits.HasKernel f] → C

When C has enough projectives, the object Projective.syzygies f is an arbitrarily chosen projective object over kernel f.

instance CategoryTheory.Projective.instSyzygies E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] [inst_1 : CategoryTheory.EnoughProjectives C]
  [inst_2 : CategoryTheory.Limits.HasZeroMorphisms C] {X Y : C} (f : X ⟶ Y)
  [inst_3 : CategoryTheory.Limits.HasKernel f], CategoryTheory.Projective (CategoryTheory.Projective.syzygies f)

abbrev CategoryTheory.Projective.d E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    [inst_1 : CategoryTheory.EnoughProjectives C] →
      [inst_2 : CategoryTheory.Limits.HasZeroMorphisms C] →
        {X Y : C} →
          (f : X ⟶ Y) → [inst_3 : CategoryTheory.Limits.HasKernel f] → CategoryTheory.Projective.syzygies f ⟶ X

When C has enough projectives, Projective.d f : Projective.syzygies f ⟶ X is the composition π (kernel f) ≫ kernel.ι f.

(When C is abelian, we have exact (projective.d f) f.)

theorem CategoryTheory.Adjunction.map_projective E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) [G.PreservesEpimorphisms] (P : C),
  CategoryTheory.Projective P → CategoryTheory.Projective (F.obj P)

theorem CategoryTheory.Adjunction.projective_of_map_projective E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  {F : CategoryTheory.Functor C D} {G : CategoryTheory.Functor D C} (adj : F ⊣ G) [F.Full] [F.Faithful] (P : C),
  CategoryTheory.Projective (F.obj P) → CategoryTheory.Projective P

def CategoryTheory.Adjunction.mapProjectivePresentation E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v', u'} D] →
        {F : CategoryTheory.Functor C D} →
          {G : CategoryTheory.Functor D C} →
            (F ⊣ G) →
              [G.PreservesEpimorphisms] →
                (X : C) → CategoryTheory.ProjectivePresentation X → CategoryTheory.ProjectivePresentation (F.obj X)

Given an adjunction F ⊣ G such that G preserves epis, F maps a projective presentation of X to a projective presentation of F(X).

theorem CategoryTheory.Functor.projective_of_map_projective E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u_1} [inst_1 : CategoryTheory.Category.{v_1, u_1} D]
  (F : CategoryTheory.Functor C D) [F.Full] [F.Faithful] [F.PreservesEpimorphisms] {P : C},
  CategoryTheory.Projective (F.obj P) → CategoryTheory.Projective P

theorem CategoryTheory.Equivalence.map_projective_iff E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : C ≌ D) (P : C), CategoryTheory.Projective (F.functor.obj P) ↔ CategoryTheory.Projective P

def CategoryTheory.Equivalence.projectivePresentationOfMapProjectivePresentation E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    {D : Type u'} →
      [inst_1 : CategoryTheory.Category.{v', u'} D] →
        (F : C ≌ D) →
          (X : C) → CategoryTheory.ProjectivePresentation (F.functor.obj X) → CategoryTheory.ProjectivePresentation X

Given an equivalence of categories F, a projective presentation of F(X) induces a projective presentation of X.

theorem CategoryTheory.Equivalence.enoughProjectives_iff E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {D : Type u'} [inst_1 : CategoryTheory.Category.{v', u'} D]
  (F : C ≌ D), CategoryTheory.EnoughProjectives C ↔ CategoryTheory.EnoughProjectives D

theorem CategoryTheory.Retract.projective E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] {X Y : C} (h : CategoryTheory.Retract X Y)
  [p : CategoryTheory.Projective Y], CategoryTheory.Projective X