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 / V24. Category theory

Mathlib.CategoryTheory.FiberedCategory.BasedCategory

72 declarations. Mathlib docs ยท Source

The bicategory of based categories

In this file we define the type BasedCategory ๐’ฎ, and give it the structure of a strict bicategory. Given a category ๐’ฎ, we define the type BasedCategory ๐’ฎ as the type of categories ๐’ณ equipped with a functor ๐’ณ.p : ๐’ณ โฅค ๐’ฎ.

We also define a type of functors between based categories ๐’ณ and ๐’ด, which we call BasedFunctor ๐’ณ ๐’ด and denote as ๐’ณ โฅคแต‡ ๐’ด. These are defined as functors between the underlying categories ๐’ณ.obj and ๐’ด.obj which commute with the projections to ๐’ฎ.

Natural transformations between based functors F G : ๐’ณ โฅคแต‡ ๐’ด are given by the structure BasedNatTrans F G. These are defined as natural transformations ฮฑ between the functors underlying F and G such that ฮฑ.app a lifts ๐Ÿ™ S whenever ๐’ณ.p.obj a = S.

def CategoryTheory.BasedCategory.ctorIdx E1 #

{๐’ฎ : Type uโ‚} โ†’ {inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ} โ†’ CategoryTheory.BasedCategory ๐’ฎ โ†’ โ„•

theorem CategoryTheory.BasedCategory.mk.inj E1 #

โˆ€ {๐’ฎ : Type uโ‚} {inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ} {obj : Type uโ‚‚}
  {category : autoParam (CategoryTheory.Category.{vโ‚‚, uโ‚‚} obj) CategoryTheory.BasedCategory.category._autoParam}
  {p : CategoryTheory.Functor obj ๐’ฎ} {obj_1 : Type uโ‚‚}
  {category_1 : autoParam (CategoryTheory.Category.{vโ‚‚, uโ‚‚} obj_1) CategoryTheory.BasedCategory.category._autoParam}
  {p_1 : CategoryTheory.Functor obj_1 ๐’ฎ},
  { obj := obj, category := category, p := p } = { obj := obj_1, category := category_1, p := p_1 } โ†’
    obj = obj_1 โˆง category โ‰ category_1 โˆง p โ‰ p_1

theorem CategoryTheory.BasedNatTrans.mk.inj E1 #

โˆ€ {๐’ฎ : Type uโ‚} {inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ} {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด}
  {toNatTrans : CategoryTheory.NatTrans F.toFunctor G.toFunctor}
  {isHomLift' :
    autoParam (โˆ€ (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (toNatTrans.app a))
      CategoryTheory.BasedNatTrans.isHomLift'._autoParam}
  {toNatTrans_1 : CategoryTheory.NatTrans F.toFunctor G.toFunctor}
  {isHomLift'_1 :
    autoParam (โˆ€ (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (toNatTrans_1.app a))
      CategoryTheory.BasedNatTrans.isHomLift'._autoParam},
  { toNatTrans := toNatTrans, isHomLift' := isHomLift' } = { toNatTrans := toNatTrans_1, isHomLift' := isHomLift'_1 } โ†’
    toNatTrans = toNatTrans_1

theorem CategoryTheory.BasedNatTrans.mk.congr_simp E1 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด}
  (toNatTrans toNatTrans_1 : CategoryTheory.NatTrans F.toFunctor G.toFunctor) (e_toNatTrans : toNatTrans = toNatTrans_1)
  (isHomLift' : โˆ€ (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (toNatTrans.app a)),
  { toNatTrans := toNatTrans, isHomLift' := isHomLift' } = { toNatTrans := toNatTrans_1, isHomLift' := โ‹ฏ }

theorem CategoryTheory.BasedFunctor.mk.injEq E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (toFunctor : CategoryTheory.Functor ๐’ณ.obj ๐’ด.obj)
  (w : autoParam (toFunctor.comp ๐’ด.p = ๐’ณ.p) CategoryTheory.BasedFunctor.w._autoParam)
  (toFunctor_1 : CategoryTheory.Functor ๐’ณ.obj ๐’ด.obj)
  (w_1 : autoParam (toFunctor_1.comp ๐’ด.p = ๐’ณ.p) CategoryTheory.BasedFunctor.w._autoParam),
  ({ toFunctor := toFunctor, w := w } = { toFunctor := toFunctor_1, w := w_1 }) = (toFunctor = toFunctor_1)

def CategoryTheory.BasedFunctor.ctorIdx E1 #

{๐’ฎ : Type uโ‚} โ†’
  {inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ} โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’ {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’ CategoryTheory.BasedFunctor ๐’ณ ๐’ด โ†’ โ„•

theorem CategoryTheory.BasedNatTrans.mk.injEq E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด}
  (toNatTrans : CategoryTheory.NatTrans F.toFunctor G.toFunctor)
  (isHomLift' :
    autoParam (โˆ€ (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (toNatTrans.app a))
      CategoryTheory.BasedNatTrans.isHomLift'._autoParam)
  (toNatTrans_1 : CategoryTheory.NatTrans F.toFunctor G.toFunctor)
  (isHomLift'_1 :
    autoParam (โˆ€ (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (toNatTrans_1.app a))
      CategoryTheory.BasedNatTrans.isHomLift'._autoParam),
  ({ toNatTrans := toNatTrans, isHomLift' := isHomLift' } =
      { toNatTrans := toNatTrans_1, isHomLift' := isHomLift'_1 }) =
    (toNatTrans = toNatTrans_1)

def CategoryTheory.BasedNatTrans.ctorIdx E1 #

{๐’ฎ : Type uโ‚} โ†’
  {inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ} โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} โ†’ CategoryTheory.BasedNatTrans F G โ†’ โ„•

theorem CategoryTheory.BasedCategory.mk.injEq E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] (obj : Type uโ‚‚)
  (category : autoParam (CategoryTheory.Category.{vโ‚‚, uโ‚‚} obj) CategoryTheory.BasedCategory.category._autoParam)
  (p : CategoryTheory.Functor obj ๐’ฎ) (obj_1 : Type uโ‚‚)
  (category_1 : autoParam (CategoryTheory.Category.{vโ‚‚, uโ‚‚} obj_1) CategoryTheory.BasedCategory.category._autoParam)
  (p_1 : CategoryTheory.Functor obj_1 ๐’ฎ),
  ({ obj := obj, category := category, p := p } = { obj := obj_1, category := category_1, p := p_1 }) =
    (obj = obj_1 โˆง category โ‰ category_1 โˆง p โ‰ p_1)

theorem CategoryTheory.BasedFunctor.mk.inj E1 #

โˆ€ {๐’ฎ : Type uโ‚} {inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ} {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {toFunctor : CategoryTheory.Functor ๐’ณ.obj ๐’ด.obj}
  {w : autoParam (toFunctor.comp ๐’ด.p = ๐’ณ.p) CategoryTheory.BasedFunctor.w._autoParam}
  {toFunctor_1 : CategoryTheory.Functor ๐’ณ.obj ๐’ด.obj}
  {w_1 : autoParam (toFunctor_1.comp ๐’ด.p = ๐’ณ.p) CategoryTheory.BasedFunctor.w._autoParam},
  { toFunctor := toFunctor, w := w } = { toFunctor := toFunctor_1, w := w_1 } โ†’ toFunctor = toFunctor_1

structure CategoryTheory.BasedCategory E1 #

(๐’ฎ : Type uโ‚) โ†’ [CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’ Type (max (max (max uโ‚ (uโ‚‚ + 1)) vโ‚) (vโ‚‚ + 1))

A based category over ๐’ฎ is a category ๐’ณ together with a functor p : ๐’ณ โฅค ๐’ฎ.

ctor CategoryTheory.BasedCategory.mk E0 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    (obj : Type uโ‚‚) โ†’
      (category : autoParam (CategoryTheory.Category.{vโ‚‚, uโ‚‚} obj) CategoryTheory.BasedCategory.category._autoParam) โ†’
        CategoryTheory.Functor obj ๐’ฎ โ†’ CategoryTheory.BasedCategory ๐’ฎ

abbrev CategoryTheory.BasedCategory.obj E1 #

{๐’ฎ : Type uโ‚} โ†’ [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’ CategoryTheory.BasedCategory ๐’ฎ โ†’ Type uโ‚‚

The type of objects in a BasedCategory

abbrev CategoryTheory.BasedCategory.category E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    (self : CategoryTheory.BasedCategory ๐’ฎ) โ†’ CategoryTheory.Category.{vโ‚‚, uโ‚‚} self.obj

The underlying category of a BasedCategory.

abbrev CategoryTheory.BasedCategory.p E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    (self : CategoryTheory.BasedCategory ๐’ฎ) โ†’ CategoryTheory.Functor self.obj ๐’ฎ

The functor to the base.

instance CategoryTheory.instCategoryObj E0 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ) โ†’ CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ.obj

def CategoryTheory.BasedCategory.ofFunctor E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : Type uโ‚‚} โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’ CategoryTheory.Functor ๐’ณ ๐’ฎ โ†’ CategoryTheory.BasedCategory ๐’ฎ

The based category associated to a functor p : ๐’ณ โฅค ๐’ฎ.

structure CategoryTheory.BasedFunctor E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    CategoryTheory.BasedCategory ๐’ฎ โ†’ CategoryTheory.BasedCategory ๐’ฎ โ†’ Type (max (max (max uโ‚‚ uโ‚ƒ) vโ‚‚) vโ‚ƒ)

A functor between based categories is a functor between the underlying categories that commutes with the projections.

ctor CategoryTheory.BasedFunctor.mk E0 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        (toFunctor : CategoryTheory.Functor ๐’ณ.obj ๐’ด.obj) โ†’
          autoParam (toFunctor.comp ๐’ด.p = ๐’ณ.p) CategoryTheory.BasedFunctor.w._autoParam โ†’
            CategoryTheory.BasedFunctor ๐’ณ ๐’ด

abbrev CategoryTheory.BasedFunctor.toFunctor E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’ CategoryTheory.BasedFunctor ๐’ณ ๐’ด โ†’ CategoryTheory.Functor ๐’ณ.obj ๐’ด.obj

theorem CategoryTheory.BasedFunctor.w E1 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (self : CategoryTheory.BasedFunctor ๐’ณ ๐’ด), self.comp ๐’ด.p = ๐’ณ.p

def CategoryTheory.ยซterm_โฅคแต‡_ยป E1 #

Lean.TrailingParserDescr

Notation for BasedFunctor.

def CategoryTheory.BasedFunctor.id E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’ (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ) โ†’ CategoryTheory.BasedFunctor ๐’ณ ๐’ณ

The identity based functor.

theorem CategoryTheory.BasedFunctor.id_toFunctor E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ),
  (CategoryTheory.BasedFunctor.id ๐’ณ).toFunctor = CategoryTheory.Functor.id ๐’ณ.obj

def CategoryTheory.BasedFunctor.ยซterm๐Ÿญยป E1 #

Lean.ParserDescr

Notation for the identity functor on a based category.

def CategoryTheory.BasedFunctor.comp E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        {๐’ต : CategoryTheory.BasedCategory ๐’ฎ} โ†’
          CategoryTheory.BasedFunctor ๐’ณ ๐’ด โ†’ CategoryTheory.BasedFunctor ๐’ด ๐’ต โ†’ CategoryTheory.BasedFunctor ๐’ณ ๐’ต

The composition of two based functors.

theorem CategoryTheory.BasedFunctor.comp_toFunctor E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {๐’ต : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด)
  (G : CategoryTheory.BasedFunctor ๐’ด ๐’ต), (F.comp G).toFunctor = F.comp G.toFunctor

def CategoryTheory.BasedFunctor.ยซterm_โ‹™_ยป E1 #

Lean.TrailingParserDescr

Notation for composition of based functors.

theorem CategoryTheory.BasedFunctor.comp_id E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด),
  F.comp (CategoryTheory.BasedFunctor.id ๐’ด) = F

theorem CategoryTheory.BasedFunctor.id_comp E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด),
  (CategoryTheory.BasedFunctor.id ๐’ณ).comp F = F

theorem CategoryTheory.BasedFunctor.comp_assoc E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {๐’ต : CategoryTheory.BasedCategory ๐’ฎ} {๐’œ : CategoryTheory.BasedCategory ๐’ฎ}
  (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) (G : CategoryTheory.BasedFunctor ๐’ด ๐’ต) (H : CategoryTheory.BasedFunctor ๐’ต ๐’œ),
  (F.comp G).comp H = F.comp (G.comp H)

theorem CategoryTheory.BasedFunctor.w_obj E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) (a : ๐’ณ.obj), ๐’ด.p.obj (F.obj a) = ๐’ณ.p.obj a

instance CategoryTheory.BasedFunctor.instIsHomLiftObjPIdObj E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) (a : ๐’ณ.obj),
  ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (CategoryTheory.CategoryStruct.id (F.obj a))

instance CategoryTheory.BasedFunctor.preserves_isHomLift E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) {R S : ๐’ฎ} {a b : ๐’ณ.obj} (f : R โŸถ S)
  (ฯ† : a โŸถ b) [๐’ณ.p.IsHomLift f ฯ†], ๐’ด.p.IsHomLift f (F.map ฯ†)

For a based functor F : ๐’ณ โŸถ ๐’ด, then whenever an arrow ฯ† in ๐’ณ lifts some f in ๐’ฎ, then F(ฯ†) also lifts f.

theorem CategoryTheory.BasedFunctor.isHomLift_map E1 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) {R S : ๐’ฎ} {a b : ๐’ณ.obj} (f : R โŸถ S)
  (ฯ† : a โŸถ b) [๐’ด.p.IsHomLift f (F.map ฯ†)], ๐’ณ.p.IsHomLift f ฯ†

For a based functor F : ๐’ณ โŸถ ๐’ด, and an arrow ฯ† in ๐’ณ, then ฯ† lifts an arrow f in ๐’ฎ if F(ฯ†) does.

theorem CategoryTheory.BasedFunctor.isHomLift_iff E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) {R S : ๐’ฎ} {a b : ๐’ณ.obj} (f : R โŸถ S)
  (ฯ† : a โŸถ b), ๐’ด.p.IsHomLift f (F.map ฯ†) โ†” ๐’ณ.p.IsHomLift f ฯ†

structure CategoryTheory.BasedNatTrans E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        CategoryTheory.BasedFunctor ๐’ณ ๐’ด โ†’ CategoryTheory.BasedFunctor ๐’ณ ๐’ด โ†’ Type (max uโ‚‚ vโ‚ƒ)

A BasedNatTrans between two BasedFunctors is a natural transformation ฮฑ between the underlying functors, such that for all a : ๐’ณ, ฮฑ.app a lifts ๐Ÿ™ S whenever ๐’ณ.p.obj a = S.

ctor CategoryTheory.BasedNatTrans.mk E0 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} โ†’
          (toNatTrans : CategoryTheory.NatTrans F.toFunctor G.toFunctor) โ†’
            autoParam (โˆ€ (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (toNatTrans.app a))
                CategoryTheory.BasedNatTrans.isHomLift'._autoParam โ†’
              CategoryTheory.BasedNatTrans F G

abbrev CategoryTheory.BasedNatTrans.toNatTrans E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} โ†’
          CategoryTheory.BasedNatTrans F G โ†’ CategoryTheory.NatTrans F.toFunctor G.toFunctor

theorem CategoryTheory.BasedNatTrans.isHomLift' E1 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (self : CategoryTheory.BasedNatTrans F G)
  (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (self.app a)

theorem CategoryTheory.BasedNatTrans.ext E1 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ ฮฒ : CategoryTheory.BasedNatTrans F G),
  ฮฑ.toNatTrans = ฮฒ.toNatTrans โ†’ ฮฑ = ฮฒ

theorem CategoryTheory.BasedNatTrans.ext_iff E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} {ฮฑ ฮฒ : CategoryTheory.BasedNatTrans F G},
  ฮฑ = ฮฒ โ†” ฮฑ.toNatTrans = ฮฒ.toNatTrans

instance CategoryTheory.BasedNatTrans.app_isHomLift E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ : CategoryTheory.BasedNatTrans F G)
  (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (ฮฑ.app a)

theorem CategoryTheory.BasedNatTrans.isHomLift E1 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ : CategoryTheory.BasedNatTrans F G)
  {a : ๐’ณ.obj} {S : ๐’ฎ}, ๐’ณ.p.obj a = S โ†’ ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id S) (ฮฑ.app a)

def CategoryTheory.BasedNatTrans.id E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’ (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) โ†’ CategoryTheory.BasedNatTrans F F

The identity natural transformation is a BasedNatTrans.

theorem CategoryTheory.BasedNatTrans.id_toNatTrans E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด),
  (CategoryTheory.BasedNatTrans.id F).toNatTrans = CategoryTheory.NatTrans.id F.toFunctor

def CategoryTheory.BasedNatTrans.comp E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        {F G H : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} โ†’
          CategoryTheory.BasedNatTrans F G โ†’ CategoryTheory.BasedNatTrans G H โ†’ CategoryTheory.BasedNatTrans F H

Composition of BasedNatTrans, given by composition of the underlying natural transformations.

theorem CategoryTheory.BasedNatTrans.comp_toNatTrans E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G H : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ : CategoryTheory.BasedNatTrans F G)
  (ฮฒ : CategoryTheory.BasedNatTrans G H), (ฮฑ.comp ฮฒ).toNatTrans = ฮฑ.vcomp ฮฒ.toNatTrans

theorem CategoryTheory.BasedNatTrans.homCategory_comp E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ)
  (๐’ด : CategoryTheory.BasedCategory ๐’ฎ) {X Y Z : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ : CategoryTheory.BasedNatTrans X Y)
  (ฮฒ : CategoryTheory.BasedNatTrans Y Z), CategoryTheory.CategoryStruct.comp ฮฑ ฮฒ = ฮฑ.comp ฮฒ

instance CategoryTheory.BasedNatTrans.homCategory E0 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ) โ†’
      (๐’ด : CategoryTheory.BasedCategory ๐’ฎ) โ†’
        CategoryTheory.Category.{max uโ‚‚ vโ‚ƒ, max (max (max uโ‚‚ vโ‚‚) uโ‚ƒ) vโ‚ƒ} (CategoryTheory.BasedFunctor ๐’ณ ๐’ด)

theorem CategoryTheory.BasedNatTrans.homCategory_id E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ)
  (๐’ด : CategoryTheory.BasedCategory ๐’ฎ) (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด),
  CategoryTheory.CategoryStruct.id F = CategoryTheory.BasedNatTrans.id F

theorem CategoryTheory.BasedNatTrans.homCategory.ext_iff E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} {ฮฑ ฮฒ : F โŸถ G},
  ฮฑ = ฮฒ โ†” ฮฑ.toNatTrans = ฮฒ.toNatTrans

theorem CategoryTheory.BasedNatTrans.homCategory.ext E1 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ ฮฒ : F โŸถ G),
  ฮฑ.toNatTrans = ฮฒ.toNatTrans โ†’ ฮฑ = ฮฒ

def CategoryTheory.BasedNatTrans.forgetful E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ) โ†’
      (๐’ด : CategoryTheory.BasedCategory ๐’ฎ) โ†’
        CategoryTheory.Functor (CategoryTheory.BasedFunctor ๐’ณ ๐’ด) (CategoryTheory.Functor ๐’ณ.obj ๐’ด.obj)

The forgetful functor from the category of based functors ๐’ณ โฅคแต‡ ๐’ด to the category of functors of underlying categories, ๐’ณ.obj โฅค ๐’ด.obj.

theorem CategoryTheory.BasedNatTrans.forgetful_map E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ)
  (๐’ด : CategoryTheory.BasedCategory ๐’ฎ) {X Y : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ : X โŸถ Y),
  (CategoryTheory.BasedNatTrans.forgetful ๐’ณ ๐’ด).map ฮฑ = ฮฑ.toNatTrans

theorem CategoryTheory.BasedNatTrans.forgetful_obj E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ)
  (๐’ด : CategoryTheory.BasedCategory ๐’ฎ) (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด),
  (CategoryTheory.BasedNatTrans.forgetful ๐’ณ ๐’ด).obj F = F.toFunctor

instance CategoryTheory.BasedNatTrans.instReflectsIsomorphismsBasedFunctorFunctorObjForgetful E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ}, (CategoryTheory.BasedNatTrans.forgetful ๐’ณ ๐’ด).ReflectsIsomorphisms

instance CategoryTheory.BasedNatTrans.instIsIsoFunctorObjOfBasedFunctor E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ : F โŸถ G) [CategoryTheory.IsIso ฮฑ],
  CategoryTheory.IsIso ฮฑ.toNatTrans

def CategoryTheory.BasedNatIso.id E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’ (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) โ†’ F โ‰… F

The identity natural transformation is a based natural isomorphism.

theorem CategoryTheory.BasedNatIso.id_hom E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด),
  (CategoryTheory.BasedNatIso.id F).hom = CategoryTheory.CategoryStruct.id F

theorem CategoryTheory.BasedNatIso.id_inv E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด),
  (CategoryTheory.BasedNatIso.id F).inv = CategoryTheory.CategoryStruct.id F

def CategoryTheory.BasedNatIso.mkNatIso E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} โ†’
          (ฮฑ : F.toFunctor โ‰… G.toFunctor) โ†’
            (โˆ€ (a : ๐’ณ.obj), ๐’ด.p.IsHomLift (CategoryTheory.CategoryStruct.id (๐’ณ.p.obj a)) (ฮฑ.hom.app a)) โ†’ (F โ‰… G)

The inverse of a based natural transformation whose underlying natural transformation is an isomorphism.

theorem CategoryTheory.BasedNatIso.isIso_of_toNatTrans_isIso E1 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} (ฮฑ : F โŸถ G)
  [CategoryTheory.IsIso ฮฑ.toNatTrans], CategoryTheory.IsIso ฮฑ

def CategoryTheory.BasedCategory.whiskerLeft E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        {๐’ต : CategoryTheory.BasedCategory ๐’ฎ} โ†’
          (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด) โ†’
            {G H : CategoryTheory.BasedFunctor ๐’ด ๐’ต} โ†’ (G โŸถ H) โ†’ (F.comp G โŸถ F.comp H)

Left-whiskering in the bicategory BasedCategory is given by whiskering the underlying functors and natural transformations.

theorem CategoryTheory.BasedCategory.whiskerLeft_toNatTrans E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {๐’ต : CategoryTheory.BasedCategory ๐’ฎ} (F : CategoryTheory.BasedFunctor ๐’ณ ๐’ด)
  {G H : CategoryTheory.BasedFunctor ๐’ด ๐’ต} (ฮฑ : G โŸถ H),
  (CategoryTheory.BasedCategory.whiskerLeft F ฮฑ).toNatTrans = F.whiskerLeft ฮฑ.toNatTrans

def CategoryTheory.BasedCategory.whiskerRight E1 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ} โ†’
      {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} โ†’
        {๐’ต : CategoryTheory.BasedCategory ๐’ฎ} โ†’
          {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด} โ†’
            (F โŸถ G) โ†’ (H : CategoryTheory.BasedFunctor ๐’ด ๐’ต) โ†’ F.comp H โŸถ G.comp H

Right-whiskering in the bicategory BasedCategory is given by whiskering the underlying functors and natural transformations.

theorem CategoryTheory.BasedCategory.whiskerRight_toNatTrans E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {๐’ณ : CategoryTheory.BasedCategory ๐’ฎ}
  {๐’ด : CategoryTheory.BasedCategory ๐’ฎ} {๐’ต : CategoryTheory.BasedCategory ๐’ฎ} {F G : CategoryTheory.BasedFunctor ๐’ณ ๐’ด}
  (ฮฑ : F โŸถ G) (H : CategoryTheory.BasedFunctor ๐’ด ๐’ต),
  (CategoryTheory.BasedCategory.whiskerRight ฮฑ H).toNatTrans =
    CategoryTheory.Functor.whiskerRight ฮฑ.toNatTrans H.toFunctor

instance CategoryTheory.BasedCategory.instCategory E0 #

{๐’ฎ : Type uโ‚} โ†’
  [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
    CategoryTheory.Category.{max uโ‚‚ vโ‚‚, max (max (max (uโ‚‚ + 1) (vโ‚‚ + 1)) uโ‚) vโ‚} (CategoryTheory.BasedCategory ๐’ฎ)

The category of based categories.

theorem CategoryTheory.BasedCategory.comp_def E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] {X Y Z : CategoryTheory.BasedCategory ๐’ฎ}
  (F : CategoryTheory.BasedFunctor X Y) (G : CategoryTheory.BasedFunctor Y Z),
  CategoryTheory.CategoryStruct.comp F G = F.comp G

theorem CategoryTheory.BasedCategory.id_def E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] (๐’ณ : CategoryTheory.BasedCategory ๐’ฎ),
  CategoryTheory.CategoryStruct.id ๐’ณ = CategoryTheory.BasedFunctor.id ๐’ณ

instance CategoryTheory.BasedCategory.bicategory E0 #

{๐’ฎ : Type uโ‚} โ†’ [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’ CategoryTheory.Bicategory (CategoryTheory.BasedCategory ๐’ฎ)

The bicategory of based categories.

instance CategoryTheory.BasedCategory.instStrict E0 #

โˆ€ {๐’ฎ : Type uโ‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ],
  CategoryTheory.Bicategory.Strict (CategoryTheory.BasedCategory ๐’ฎ)

The bicategory structure on BasedCategory.{vโ‚‚, uโ‚‚} ๐’ฎ is strict.