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.FreydCategory.RightFreyd

31 declarations. Mathlib docs · Source

The right Freyd category

Let V be a preadditive category. The right Freyd category of V is the quotient of Arrow V by the right homotopy relation. (This is simply called "Freyd category" in the reference.) This is a preadditive category with a fully faithful additive functor RightFreyd.functor : V ⥤ RightFreyd V.

We also show that, if V has binary biproducts, then RightFreyd V has cokernels. In fact we construct, given a morphism f : u ⟶ v in Arrow V, a morphism Candidate.π f : v ⟶ Candidate.cokernel f in Arrow V such that f ≫ Candidate.π f is right homotopic to 0 (see Candidate.condition). This allows us to define a cokernel cofork for (quotient V).map f (see Candidate.cokernelCofork), and we show in Candidate.isColimitCokernelCofork that this is a cokernel cofork.

References

  • [Posur, S., A constructive approach to Freyd categories][posur2021Freyd]

theorem CategoryTheory.Preadditive.RightFreyd.rightFunctor.congr_simp E1 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasZeroObject V],
  CategoryTheory.Preadditive.RightFreyd.rightFunctor V = CategoryTheory.Preadditive.RightFreyd.rightFunctor V

theorem CategoryTheory.Preadditive.RightFreyd.homotopyOfEq.congr_simp E1 #

∀ {V : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  {u v : CategoryTheory.Arrow V} (f g : u ⟶ v)
  (w :
    (CategoryTheory.Preadditive.RightFreyd.quotient V).map f =
      (CategoryTheory.Preadditive.RightFreyd.quotient V).map g),
  CategoryTheory.Preadditive.RightFreyd.homotopyOfEq f g w = CategoryTheory.Preadditive.RightFreyd.homotopyOfEq f g w

def CategoryTheory.Preadditive.RightFreyd E1 #

(V : Type u_1) → [inst : CategoryTheory.Category.{v_1, u_1} V] → [CategoryTheory.Preadditive V] → Type (max u_1 v_1)

If V is a preadditive category, then RightFreyd V is the category of arrows in V, with morphisms identified when they are right homotopic.

instance CategoryTheory.Preadditive.instCategoryRightFreyd E0 #

(V : Type u_1) →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      CategoryTheory.Category.{v_1, max u_1 v_1} (CategoryTheory.Preadditive.RightFreyd V)

instance CategoryTheory.Preadditive.instRightFreyd E0 #

(V : Type u_1) →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] → CategoryTheory.Preadditive (CategoryTheory.Preadditive.RightFreyd V)

The category RightFreyd V is preadditive.

def CategoryTheory.Preadditive.RightFreyd.quotient E1 #

(V : Type u_1) →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      CategoryTheory.Functor (CategoryTheory.Arrow V) (CategoryTheory.Preadditive.RightFreyd V)

The quotient functor from Arrow V to RightFreyd V.

instance CategoryTheory.Preadditive.RightFreyd.instFullArrowQuotient E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V],
  (CategoryTheory.Preadditive.RightFreyd.quotient V).Full

instance CategoryTheory.Preadditive.RightFreyd.instEssSurjArrowQuotient E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V],
  (CategoryTheory.Preadditive.RightFreyd.quotient V).EssSurj

instance CategoryTheory.Preadditive.RightFreyd.instAdditiveArrowQuotient E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V],
  (CategoryTheory.Preadditive.RightFreyd.quotient V).Additive

def CategoryTheory.Preadditive.RightFreyd.homotopyOfEq E1 #

{V : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      {u v : CategoryTheory.Arrow V} →
        (f g : u ⟶ v) →
          (CategoryTheory.Preadditive.RightFreyd.quotient V).map f =
              (CategoryTheory.Preadditive.RightFreyd.quotient V).map g →
            CategoryTheory.Arrow.RightHomotopy f g

If two morphisms of Arrow V become equal in the right Freyd category, then they are right homotopic.

theorem CategoryTheory.Preadditive.RightFreyd.quotient_map_eq_iff E0 #

∀ {V : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  {u v : CategoryTheory.Arrow V} (f g : u ⟶ v),
  (CategoryTheory.Preadditive.RightFreyd.quotient V).map f = (CategoryTheory.Preadditive.RightFreyd.quotient V).map g ↔
    Nonempty (CategoryTheory.Arrow.RightHomotopy f g)

Two morphisms in Arrow V have the same image in RightFreyd V if and only if there exists a right homotopy between them.

theorem CategoryTheory.Preadditive.RightFreyd.quotient_map_eq_zero_iff E0 #

∀ {V : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  {u v : CategoryTheory.Arrow V} (f : u ⟶ v),
  (CategoryTheory.Preadditive.RightFreyd.quotient V).map f = 0 ↔ Nonempty (CategoryTheory.Arrow.RightHomotopy f 0)

A morphism f in Arrow V is sent to 0 in RightFreyd V if and only if there exists a right homotopy between f and 0.

theorem CategoryTheory.Preadditive.RightFreyd.epi_of_isIso_right E1 #

∀ {V : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  {u v : CategoryTheory.Arrow V} (f : u ⟶ v) [CategoryTheory.IsIso (CategoryTheory.Arrow.Hom.right f)],
  CategoryTheory.Epi ((CategoryTheory.Preadditive.RightFreyd.quotient V).map f)

If f is a morphism of Arrow V such that f.right is an isomorphism, then the image of f in the right Freyd category is an epimorphism.

def CategoryTheory.Preadditive.RightFreyd.rightFunctor E1 #

(V : Type u_1) →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [CategoryTheory.Preadditive V] →
      [CategoryTheory.Limits.HasZeroObject V] → CategoryTheory.Functor V (CategoryTheory.Arrow V)

If V has a zero object, this is the functor from V to Arrow V that sends an object X to the arrow 0 ⟶ X.

theorem CategoryTheory.Preadditive.RightFreyd.rightFunctor_map E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasZeroObject V] {X Y : V} (f : X ⟶ Y),
  (CategoryTheory.Preadditive.RightFreyd.rightFunctor V).map f = CategoryTheory.Arrow.homMk 0 f ⋯

theorem CategoryTheory.Preadditive.RightFreyd.rightFunctor_obj E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasZeroObject V] (X : V),
  (CategoryTheory.Preadditive.RightFreyd.rightFunctor V).obj X = CategoryTheory.Arrow.mk 0

instance CategoryTheory.Preadditive.RightFreyd.instAdditiveArrowRightFunctor E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasZeroObject V], (CategoryTheory.Preadditive.RightFreyd.rightFunctor V).Additive

abbrev CategoryTheory.Preadditive.RightFreyd.functor E1 #

(V : Type u_1) →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      [CategoryTheory.Limits.HasZeroObject V] → CategoryTheory.Functor V (CategoryTheory.Preadditive.RightFreyd V)

The fully faithful additive functor from V to RightFreyd V sending an object X of V to the class of the arrow 0 ⟶ X.

instance CategoryTheory.Preadditive.RightFreyd.instAdditiveFunctor E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasZeroObject V], (CategoryTheory.Preadditive.RightFreyd.functor V).Additive

instance CategoryTheory.Preadditive.RightFreyd.instFullFunctor E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasZeroObject V], (CategoryTheory.Preadditive.RightFreyd.functor V).Full

instance CategoryTheory.Preadditive.RightFreyd.instFaithfulFunctor E0 #

∀ (V : Type u_1) [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasZeroObject V], (CategoryTheory.Preadditive.RightFreyd.functor V).Faithful

abbrev CategoryTheory.Preadditive.RightFreyd.Candidate.cokernel E1 #

{V : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      [CategoryTheory.Limits.HasBinaryBiproducts V] → {u v : CategoryTheory.Arrow V} → (u ⟶ v) → CategoryTheory.Arrow V

If f is a morphism of Arrow V, this is a "candidate cokernel" of f, i.e. an object in Arrow V whose image in RightFreyd V will be a cokernel of the image of f.

def CategoryTheory.Preadditive.RightFreyd.Candidate.π E1 #

{V : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      [inst_2 : CategoryTheory.Limits.HasBinaryBiproducts V] →
        {u v : CategoryTheory.Arrow V} → (f : u ⟶ v) → v ⟶ CategoryTheory.Preadditive.RightFreyd.Candidate.cokernel f

For f : u ⟶ v a morphism in Arrow V, this is the morphism v ⟶ cokernel f from v to the "candidate cokernel" of f, whose image in RightFreyd V will be the projection to the cokernel of the image of f.

def CategoryTheory.Preadditive.RightFreyd.Candidate.condition E1 #

{V : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      [inst_2 : CategoryTheory.Limits.HasBinaryBiproducts V] →
        {u v : CategoryTheory.Arrow V} →
          (f : u ⟶ v) →
            CategoryTheory.Arrow.RightHomotopy
              (CategoryTheory.CategoryStruct.comp f (CategoryTheory.Preadditive.RightFreyd.Candidate.π f)) 0

The right homotopy expressing that f ≫ π f is sent to 0 in RightFreyd V.

instance CategoryTheory.Preadditive.RightFreyd.Candidate.instEpiMapArrowQuotientπ E0 #

∀ {V : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasBinaryBiproducts V] {u v : CategoryTheory.Arrow V} (f : u ⟶ v),
  CategoryTheory.Epi
    ((CategoryTheory.Preadditive.RightFreyd.quotient V).map (CategoryTheory.Preadditive.RightFreyd.Candidate.π f))

def CategoryTheory.Preadditive.RightFreyd.Candidate.desc E1 #

{V : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      [inst_2 : CategoryTheory.Limits.HasBinaryBiproducts V] →
        {u v : CategoryTheory.Arrow V} →
          (f : u ⟶ v) →
            {w : CategoryTheory.Arrow V} →
              (g : v ⟶ w) →
                CategoryTheory.Arrow.RightHomotopy (CategoryTheory.CategoryStruct.comp f g) 0 →
                  (CategoryTheory.Preadditive.RightFreyd.Candidate.cokernel f ⟶ w)

If f : u ⟶ v and g : v ⟶ w are morphisms in Arrow V such that f ≫ g is right homotopic to 0, this is the morphism from the "candidate cokernel" of f to w defined from the right homotopy.

theorem CategoryTheory.Preadditive.RightFreyd.Candidate.π_desc E0 #

∀ {V : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasBinaryBiproducts V] {u v : CategoryTheory.Arrow V} (f : u ⟶ v)
  {w : CategoryTheory.Arrow V} (g : v ⟶ w)
  (h : CategoryTheory.Arrow.RightHomotopy (CategoryTheory.CategoryStruct.comp f g) 0),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Preadditive.RightFreyd.Candidate.π f)
      (CategoryTheory.Preadditive.RightFreyd.Candidate.desc f g h) =
    g

theorem CategoryTheory.Preadditive.RightFreyd.Candidate.π_desc_assoc E0 #

∀ {V : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [inst_2 : CategoryTheory.Limits.HasBinaryBiproducts V] {u v : CategoryTheory.Arrow V} (f : u ⟶ v)
  {w : CategoryTheory.Arrow V} (g : v ⟶ w)
  (h : CategoryTheory.Arrow.RightHomotopy (CategoryTheory.CategoryStruct.comp f g) 0) {Z : CategoryTheory.Arrow V}
  (h_1 : w ⟶ Z),
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Preadditive.RightFreyd.Candidate.π f)
      (CategoryTheory.CategoryStruct.comp (CategoryTheory.Preadditive.RightFreyd.Candidate.desc f g h) h_1) =
    CategoryTheory.CategoryStruct.comp g h_1

def CategoryTheory.Preadditive.RightFreyd.Candidate.cokernelCofork E1 #

{V : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      [CategoryTheory.Limits.HasBinaryBiproducts V] →
        {u v : CategoryTheory.Arrow V} →
          (f : u ⟶ v) → CategoryTheory.Limits.CokernelCofork ((CategoryTheory.Preadditive.RightFreyd.quotient V).map f)

For f a morphism in Arrow V, this is a cokernel cofork of (quotient V).map f.

def CategoryTheory.Preadditive.RightFreyd.Candidate.isColimitCokernelCofork E1 #

{V : Type u_1} →
  [inst : CategoryTheory.Category.{v_1, u_1} V] →
    [inst_1 : CategoryTheory.Preadditive V] →
      [inst_2 : CategoryTheory.Limits.HasBinaryBiproducts V] →
        {u v : CategoryTheory.Arrow V} →
          (f : u ⟶ v) →
            CategoryTheory.Limits.IsColimit (CategoryTheory.Preadditive.RightFreyd.Candidate.cokernelCofork f)

For f a morphism in Arrow V, the cokernel cofork of (quotient V).map f constructed in cokernelCofork is a colimit cofork.

instance CategoryTheory.Preadditive.RightFreyd.instHasCokernels E0 #

∀ {V : Type u_1} [inst : CategoryTheory.Category.{v_1, u_1} V] [inst_1 : CategoryTheory.Preadditive V]
  [CategoryTheory.Limits.HasBinaryBiproducts V],
  CategoryTheory.Limits.HasCokernels (CategoryTheory.Preadditive.RightFreyd V)

The category RightFreyd V has all cokernels if V has binary biproducts.