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.Fiber

25 declarations. Mathlib docs ยท Source

Fibers of functors

In this file we define, for a functor p : ๐’ณ โฅค ๐’ด, the fiber categories Fiber p S for every S : ๐’ฎ as follows

  • An object in Fiber p S is a pair (a, ha) where a : ๐’ณ and ha : p.obj a = S.
  • A morphism in Fiber p S is a morphism ฯ† : a โŸถ b in ๐’ณ such that p.map ฯ† = ๐Ÿ™ S.

For any category C equipped with a functor F : C โฅค ๐’ณ such that F โ‹™ p is constant at S, we define a functor inducedFunctor : C โฅค Fiber p S that F factors through.

def CategoryTheory.Functor.Fiber E1 #

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

Fiber p S is the type of elements of ๐’ณ mapping to S via p.

instance CategoryTheory.Functor.Fiber.fiberCategory E0 #

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

Fiber p S has the structure of a category with morphisms being those lying over ๐Ÿ™ S.

def CategoryTheory.Functor.Fiber.fiberInclusion E1 #

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

The functor including Fiber p S into ๐’ณ.

instance CategoryTheory.Functor.Fiber.instIsHomLiftIdMapFiberInclusion E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {a b : p.Fiber S} (ฯ† : a โŸถ b),
  p.IsHomLift (CategoryTheory.CategoryStruct.id S) (CategoryTheory.Functor.Fiber.fiberInclusion.map ฯ†)

theorem CategoryTheory.Functor.Fiber.hom_ext_iff E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {a b : p.Fiber S} {ฯ† ฯˆ : a โŸถ b},
  ฯ† = ฯˆ โ†” CategoryTheory.Functor.Fiber.fiberInclusion.map ฯ† = CategoryTheory.Functor.Fiber.fiberInclusion.map ฯˆ

theorem CategoryTheory.Functor.Fiber.hom_ext E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {a b : p.Fiber S} {ฯ† ฯˆ : a โŸถ b},
  CategoryTheory.Functor.Fiber.fiberInclusion.map ฯ† = CategoryTheory.Functor.Fiber.fiberInclusion.map ฯˆ โ†’ ฯ† = ฯˆ

instance CategoryTheory.Functor.Fiber.instFaithfulFiberInclusion E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ}, CategoryTheory.Functor.Fiber.fiberInclusion.Faithful

theorem CategoryTheory.Functor.Fiber.fiberInclusion_obj_inj E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ}, Function.Injective CategoryTheory.Functor.Fiber.fiberInclusion.obj

def CategoryTheory.Functor.Fiber.fiberInclusionCompIsoConst E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          {S : ๐’ฎ} โ†’
            CategoryTheory.Functor.Fiber.fiberInclusion.comp p โ‰… (CategoryTheory.Functor.const (p.Fiber S)).obj S

For fixed S : ๐’ฎ this is the natural isomorphism between fiberInclusion โ‹™ p and the constant function valued at S.

theorem CategoryTheory.Functor.Fiber.fiberInclusionCompIsoConst_inv_app E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} (X : p.Fiber S),
  CategoryTheory.Functor.Fiber.fiberInclusionCompIsoConst.inv.app X = CategoryTheory.eqToHom โ‹ฏ

theorem CategoryTheory.Functor.Fiber.fiberInclusionCompIsoConst_hom_app E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} (X : p.Fiber S),
  CategoryTheory.Functor.Fiber.fiberInclusionCompIsoConst.hom.app X = CategoryTheory.eqToHom โ‹ฏ

theorem CategoryTheory.Functor.Fiber.fiberInclusion_comp_eq_const E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ},
  CategoryTheory.Functor.Fiber.fiberInclusion.comp p = (CategoryTheory.Functor.const (p.Fiber S)).obj S

def CategoryTheory.Functor.Fiber.mk E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’ {S : ๐’ฎ} โ†’ {a : ๐’ณ} โ†’ p.obj a = S โ†’ p.Fiber S

The object of the fiber over S corresponding to a a : ๐’ณ such that p(a) = S.

theorem CategoryTheory.Functor.Fiber.fiberInclusion_mk E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {a : ๐’ณ} (ha : p.obj a = S),
  CategoryTheory.Functor.Fiber.fiberInclusion.obj (CategoryTheory.Functor.Fiber.mk ha) = a

def CategoryTheory.Functor.Fiber.homMk E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        (p : CategoryTheory.Functor ๐’ณ ๐’ฎ) โ†’
          (S : ๐’ฎ) โ†’
            {a b : ๐’ณ} โ†’
              (ฯ† : a โŸถ b) โ†’
                [inst_2 : p.IsHomLift (CategoryTheory.CategoryStruct.id S) ฯ†] โ†’
                  CategoryTheory.Functor.Fiber.mk โ‹ฏ โŸถ CategoryTheory.Functor.Fiber.mk โ‹ฏ

The morphism in the fiber over S corresponding to a morphism in ๐’ณ lifting ๐Ÿ™ S.

theorem CategoryTheory.Functor.Fiber.fiberInclusion_homMk E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  (p : CategoryTheory.Functor ๐’ณ ๐’ฎ) (S : ๐’ฎ) {a b : ๐’ณ} (ฯ† : a โŸถ b)
  [inst_2 : p.IsHomLift (CategoryTheory.CategoryStruct.id S) ฯ†],
  CategoryTheory.Functor.Fiber.fiberInclusion.map (CategoryTheory.Functor.Fiber.homMk p S ฯ†) = ฯ†

theorem CategoryTheory.Functor.Fiber.homMk_id E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  (p : CategoryTheory.Functor ๐’ณ ๐’ฎ) (S : ๐’ฎ) (a : ๐’ณ)
  [inst_2 : p.IsHomLift (CategoryTheory.CategoryStruct.id S) (CategoryTheory.CategoryStruct.id a)],
  CategoryTheory.Functor.Fiber.homMk p S (CategoryTheory.CategoryStruct.id a) =
    CategoryTheory.CategoryStruct.id (CategoryTheory.Functor.Fiber.mk โ‹ฏ)

theorem CategoryTheory.Functor.Fiber.homMk_comp E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {a b c : ๐’ณ} (ฯ† : a โŸถ b) (ฯˆ : b โŸถ c)
  [inst_2 : p.IsHomLift (CategoryTheory.CategoryStruct.id S) ฯ†]
  [inst_3 : p.IsHomLift (CategoryTheory.CategoryStruct.id S) ฯˆ],
  CategoryTheory.CategoryStruct.comp (CategoryTheory.Functor.Fiber.homMk p S ฯ†)
      (CategoryTheory.Functor.Fiber.homMk p S ฯˆ) =
    CategoryTheory.Functor.Fiber.homMk p S (CategoryTheory.CategoryStruct.comp ฯ† ฯˆ)

def CategoryTheory.Functor.Fiber.inducedFunctor E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          {S : ๐’ฎ} โ†’
            {C : Type uโ‚ƒ} โ†’
              [inst_2 : CategoryTheory.Category.{vโ‚ƒ, uโ‚ƒ} C] โ†’
                {F : CategoryTheory.Functor C ๐’ณ} โ†’
                  F.comp p = (CategoryTheory.Functor.const C).obj S โ†’ CategoryTheory.Functor C (p.Fiber S)

Given a functor F : C โฅค ๐’ณ such that F โ‹™ p is constant at some S : ๐’ฎ, then we get an induced functor C โฅค Fiber p S that F factors through.

def CategoryTheory.Functor.Fiber.inducedFunctorCompIsoSelf E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          {S : ๐’ฎ} โ†’
            {C : Type uโ‚ƒ} โ†’
              [inst_2 : CategoryTheory.Category.{vโ‚ƒ, uโ‚ƒ} C] โ†’
                {F : CategoryTheory.Functor C ๐’ณ} โ†’
                  (hF : F.comp p = (CategoryTheory.Functor.const C).obj S) โ†’
                    (CategoryTheory.Functor.Fiber.inducedFunctor hF).comp CategoryTheory.Functor.Fiber.fiberInclusion โ‰…
                      F

Given a functor F : C โฅค ๐’ณ such that F โ‹™ p is constant at some S : ๐’ฎ, then we get a natural isomorphism between inducedFunctor _ โ‹™ fiberInclusion and F.

theorem CategoryTheory.Functor.Fiber.inducedFunctorCompIsoSelf_hom_app E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {C : Type uโ‚ƒ} [inst_2 : CategoryTheory.Category.{vโ‚ƒ, uโ‚ƒ} C]
  {F : CategoryTheory.Functor C ๐’ณ} (hF : F.comp p = (CategoryTheory.Functor.const C).obj S) (X : C),
  (CategoryTheory.Functor.Fiber.inducedFunctorCompIsoSelf hF).hom.app X =
    CategoryTheory.CategoryStruct.id
      (CategoryTheory.Functor.Fiber.fiberInclusion.obj ((CategoryTheory.Functor.Fiber.inducedFunctor hF).obj X))

theorem CategoryTheory.Functor.Fiber.inducedFunctorCompIsoSelf_inv_app E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {C : Type uโ‚ƒ} [inst_2 : CategoryTheory.Category.{vโ‚ƒ, uโ‚ƒ} C]
  {F : CategoryTheory.Functor C ๐’ณ} (hF : F.comp p = (CategoryTheory.Functor.const C).obj S) (X : C),
  (CategoryTheory.Functor.Fiber.inducedFunctorCompIsoSelf hF).inv.app X =
    CategoryTheory.CategoryStruct.id
      (CategoryTheory.Functor.Fiber.fiberInclusion.obj ((CategoryTheory.Functor.Fiber.inducedFunctor hF).obj X))

theorem CategoryTheory.Functor.Fiber.inducedFunctor_comp E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {C : Type uโ‚ƒ} [inst_2 : CategoryTheory.Category.{vโ‚ƒ, uโ‚ƒ} C]
  {F : CategoryTheory.Functor C ๐’ณ} (hF : F.comp p = (CategoryTheory.Functor.const C).obj S),
  (CategoryTheory.Functor.Fiber.inducedFunctor hF).comp CategoryTheory.Functor.Fiber.fiberInclusion = F

theorem CategoryTheory.Functor.Fiber.inducedFunctor_comp_obj E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {C : Type uโ‚ƒ} [inst_2 : CategoryTheory.Category.{vโ‚ƒ, uโ‚ƒ} C]
  {F : CategoryTheory.Functor C ๐’ณ} (hF : F.comp p = (CategoryTheory.Functor.const C).obj S) (X : C),
  CategoryTheory.Functor.Fiber.fiberInclusion.obj ((CategoryTheory.Functor.Fiber.inducedFunctor hF).obj X) = F.obj X

theorem CategoryTheory.Functor.Fiber.inducedFunctor_comp_map E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} {S : ๐’ฎ} {C : Type uโ‚ƒ} [inst_2 : CategoryTheory.Category.{vโ‚ƒ, uโ‚ƒ} C]
  {F : CategoryTheory.Functor C ๐’ณ} (hF : F.comp p = (CategoryTheory.Functor.const C).obj S) {X Y : C} (f : X โŸถ Y),
  CategoryTheory.Functor.Fiber.fiberInclusion.map ((CategoryTheory.Functor.Fiber.inducedFunctor hF).map f) = F.map f