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

38 declarations. Mathlib docs ยท Source

Fibers of functors

In this file we introduce a typeclass HasFibers for a functor p : ๐’ณ โฅค ๐’ฎ, consisting of:

  • A collection of categories Fib S for every S in ๐’ฎ (the fiber categories)
  • Functors ฮน : Fib S โฅค ๐’ณ such that ฮน โ‹™ p = const (Fib S) S
  • The induced functor Fib S โฅค Fiber p S is an equivalence.

We also provide a canonical HasFibers instance, which uses the standard fibers Fiber p S (see Mathlib/CategoryTheory/FiberedCategory/Fiber.lean). This makes it so that any result proven about HasFibers can be used for the standard fibers as well.

The reason for introducing this typeclass is that in practice, when working with (pre)fibered categories one often already has a collection of categories Fib S for every S that are equivalent to the fibers Fiber p S. One would then like to use these categories Fib S directly, instead of working through this equivalence of categories. By developing an API for the HasFibers typeclass, this will be possible.

Here is an example of when this typeclass is useful. Suppose we have a presheaf of types F : ๐’ฎแต’แต– โฅค Type _. The associated fibered category then has objects (S, a) where S : ๐’ฎ and a is an element of F(S). The fiber category Fiber p S is then equivalent to the discrete category Fib S with objects a in F(S). In this case, the HasFibers instance is given by the categories F(S) and the functor ฮน sends a : F(S) to (S, a) in the fibered category.

Main definitions and statements

The following API is developed so that the fibers from a HasFibers instance can be used analogously to the standard fibers.

  • Fib.homMk ฯ† is a lift of a morphism ฯ† : (ฮน S).obj a โŸถ (ฮน S).obj b in ๐’ณ, which lies over ๐Ÿ™ S, to a morphism in the fiber over S.
  • Fib.mk gives an object in the fiber over S which is isomorphic to a given a : ๐’ณ that satisfies p(a) = S. The isomorphism is given by Fib.mkIsoSelf.
  • HasFibers.mkPullback is a version of IsPreFibered.mkPullback which ensures that the object lies in a given fiber. The corresponding Cartesian morphism is given by HasFibers.pullbackMap.
  • HasFibers.inducedMap is a version of IsCartesian.inducedMap which gives the corresponding morphism in the fiber category.
  • fiber_factorization is the statement that any morphism in ๐’ณ can be factored as a morphism in some fiber followed by a pullback.

theorem HasFibers.inducedMap.congr_simp E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {R S : ๐’ฎ} {a : ๐’ณ} {b b' : HasFibers.Fib p R} (f f_1 : R โŸถ S)
  (e_f : f = f_1) (ฯˆ ฯˆ_1 : (HasFibers.ฮน R).obj b' โŸถ a) (e_ฯˆ : ฯˆ = ฯˆ_1) [inst_3 : p.IsCartesian f ฯˆ]
  (ฯ† ฯ†_1 : (HasFibers.ฮน R).obj b โŸถ a) (e_ฯ† : ฯ† = ฯ†_1) [inst_4 : p.IsHomLift f ฯ†],
  HasFibers.inducedMap f ฯˆ ฯ† = HasFibers.inducedMap f_1 ฯˆ_1 ฯ†_1

def HasFibers.ctorIdx E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    {inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ} โ†’
      {inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ} โ†’ {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’ HasFibers p โ†’ โ„•

theorem HasFibers.Fib.homMk.congr_simp E1 #

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

class HasFibers E1 #

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

HasFibers is an extrinsic notion of fibers on a functor p : ๐’ณ โฅค ๐’ฎ. It is given by a collection of categories Fib S for every S : ๐’ฎ (the fiber categories), each equipped with a functors ฮน : Fib S โฅค ๐’ณ which map constantly to S on the base such that the induced functor Fib S โฅค Fiber p S is an equivalence.

ctor HasFibers.mk E0 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          (Fib : ๐’ฎ โ†’ Type uโ‚ƒ) โ†’
            (category : autoParam ((S : ๐’ฎ) โ†’ CategoryTheory.Category.{vโ‚ƒ, uโ‚ƒ} (Fib S)) HasFibers.category._autoParam) โ†’
              (ฮน : (S : ๐’ฎ) โ†’ CategoryTheory.Functor (Fib S) ๐’ณ) โ†’
                (comp_const : โˆ€ (S : ๐’ฎ), (ฮน S).comp p = (CategoryTheory.Functor.const (Fib S)).obj S) โ†’
                  autoParam (โˆ€ (S : ๐’ฎ), (CategoryTheory.Functor.Fiber.inducedFunctor โ‹ฏ).IsEquivalence)
                      HasFibers.equiv._autoParam โ†’
                    HasFibers p

abbrev HasFibers.Fib E1 #

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

The type of objects of the category Fib S for each S.

instance HasFibers.category E0 #

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

Fib S is a category.

abbrev HasFibers.ฮน E1 #

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

The functor ฮน : Fib S โฅค ๐’ณ.

theorem HasFibers.comp_const E1 #

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

The composition with the functor p is equal to the constant functor mapping to S.

theorem HasFibers.equiv E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} {inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ} {inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ}
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [self : HasFibers p] (S : ๐’ฎ),
  (CategoryTheory.Functor.Fiber.inducedFunctor โ‹ฏ).IsEquivalence

The induced functor from Fib S to the fiber of ๐’ณ โฅค ๐’ฎ over S is an equivalence.

def HasFibers.canonical E1 #

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

The HasFibers on p : ๐’ณ โฅค ๐’ฎ given by the fibers of p

def HasFibers.inducedFunctor E1 #

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

The induced functor from Fib p S to the standard fiber.

theorem HasFibers.inducedFunctor_obj_coe E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  (p : CategoryTheory.Functor ๐’ณ ๐’ฎ) [inst_2 : HasFibers p] (S : ๐’ฎ) (x : HasFibers.Fib p S),
  โ†‘((HasFibers.inducedFunctor p S).obj x) = (HasFibers.ฮน S).obj x

theorem HasFibers.inducedFunctor_map_coe E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  (p : CategoryTheory.Functor ๐’ณ ๐’ฎ) [inst_2 : HasFibers p] (S : ๐’ฎ) {X Y : HasFibers.Fib p S} (ฯ† : X โŸถ Y),
  โ†‘((HasFibers.inducedFunctor p S).map ฯ†) = (HasFibers.ฮน S).map ฯ†

def HasFibers.inducedFunctor.natIso E1 #

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

The natural transformation ฮน S โ‰… (inducedFunctor p S) โ‹™ (fiberInclusion p S)

theorem HasFibers.inducedFunctor_comp E1 #

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

instance HasFibers.instIsEquivalenceFibFiberInducedFunctor E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  (p : CategoryTheory.Functor ๐’ณ ๐’ฎ) [inst_2 : HasFibers p] (S : ๐’ฎ), (HasFibers.inducedFunctor p S).IsEquivalence

instance HasFibers.instFaithfulFibฮน E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  (p : CategoryTheory.Functor ๐’ณ ๐’ฎ) [inst_2 : HasFibers p] (S : ๐’ฎ), (HasFibers.ฮน S).Faithful

theorem HasFibers.proj_eq E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {S : ๐’ฎ} (a : HasFibers.Fib p S),
  p.obj ((HasFibers.ฮน S).obj a) = S

def HasFibers.projMap E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          [inst_2 : HasFibers p] โ†’
            {R S : ๐’ฎ} โ†’
              {a : HasFibers.Fib p R} โ†’
                {b : HasFibers.Fib p S} โ†’ ((HasFibers.ฮน R).obj a โŸถ (HasFibers.ฮน S).obj b) โ†’ (R โŸถ S)

The morphism R โŸถ S in ๐’ฎ obtained by projecting a morphism ฯ† : (ฮน R).obj a โŸถ (ฮน S).obj b.

instance HasFibers.homLift E0 #

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

For any homomorphism ฯ† in a fiber Fib S, its image under ฮน S lies over ๐Ÿ™ S.

def HasFibers.Fib.homMk E1 #

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

A version of fullness of the functor Fib S โฅค Fiber p S that can be used inside the category ๐’ณ.

theorem HasFibers.Fib.map_homMk E0 #

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

theorem HasFibers.Fib.hom_ext_iff E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {S : ๐’ฎ} {a b : HasFibers.Fib p S} {f g : a โŸถ b},
  f = g โ†” (HasFibers.ฮน S).map f = (HasFibers.ฮน S).map g

theorem HasFibers.Fib.hom_ext E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {S : ๐’ฎ} {a b : HasFibers.Fib p S} {f g : a โŸถ b},
  (HasFibers.ฮน S).map f = (HasFibers.ฮน S).map g โ†’ f = g

def HasFibers.Fib.isoMk E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          [inst_2 : HasFibers p] โ†’
            {S : ๐’ฎ} โ†’
              {a b : HasFibers.Fib p S} โ†’
                (ฮฆ : (HasFibers.ฮน S).obj a โ‰… (HasFibers.ฮน S).obj b) โ†’
                  p.IsHomLift (CategoryTheory.CategoryStruct.id S) ฮฆ.hom โ†’ (a โ‰… b)

The lift of an isomorphism ฮฆ : (ฮน S).obj a โ‰… (ฮน S).obj b lying over ๐Ÿ™ S to an isomorphism in Fib S.

theorem HasFibers.Fib.isoMk_inv E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {S : ๐’ฎ} {a b : HasFibers.Fib p S}
  (ฮฆ : (HasFibers.ฮน S).obj a โ‰… (HasFibers.ฮน S).obj b) (hฮฆ : p.IsHomLift (CategoryTheory.CategoryStruct.id S) ฮฆ.hom),
  (HasFibers.Fib.isoMk ฮฆ hฮฆ).inv = HasFibers.Fib.homMk ฮฆ.inv

theorem HasFibers.Fib.isoMk_hom E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {S : ๐’ฎ} {a b : HasFibers.Fib p S}
  (ฮฆ : (HasFibers.ฮน S).obj a โ‰… (HasFibers.ฮน S).obj b) (hฮฆ : p.IsHomLift (CategoryTheory.CategoryStruct.id S) ฮฆ.hom),
  (HasFibers.Fib.isoMk ฮฆ hฮฆ).hom = HasFibers.Fib.homMk ฮฆ.hom

def HasFibers.Fib.mk E1 #

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

An object in Fib p S isomorphic in ๐’ณ to a given object a : ๐’ณ such that p(a) = S.

def HasFibers.Fib.mkIsoSelf E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          [inst_2 : HasFibers p] โ†’
            {S : ๐’ฎ} โ†’ {a : ๐’ณ} โ†’ (ha : p.obj a = S) โ†’ (HasFibers.ฮน S).obj (HasFibers.Fib.mk ha) โ‰… a

Applying ฮน S to the preimage of a : ๐’ณ in Fib p S yields an object isomorphic to a.

instance HasFibers.Fib.mkIsoSelfIsHomLift E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {S : ๐’ฎ} {a : ๐’ณ} (ha : p.obj a = S),
  p.IsHomLift (CategoryTheory.CategoryStruct.id S) (HasFibers.Fib.mkIsoSelf ha).hom

def HasFibers.mkPullback E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          [inst_2 : HasFibers p] โ†’ [p.IsPreFibered] โ†’ {R S : ๐’ฎ} โ†’ {a : ๐’ณ} โ†’ (R โŸถ S) โ†’ p.obj a = S โ†’ HasFibers.Fib p R

The domain, taken in Fib p R, of some Cartesian morphism lifting a given f : R โŸถ S in ๐’ฎ

def HasFibers.pullbackMap E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          [inst_2 : HasFibers p] โ†’
            [inst_3 : p.IsPreFibered] โ†’
              {R S : ๐’ฎ} โ†’
                {a : ๐’ณ} โ†’ (f : R โŸถ S) โ†’ (ha : p.obj a = S) โ†’ (HasFibers.ฮน R).obj (HasFibers.mkPullback f ha) โŸถ a

A Cartesian morphism lifting f : R โŸถ S with domain in the image of Fib p R

instance HasFibers.pullbackMap.isCartesian E0 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] [inst_3 : p.IsPreFibered] {R S : ๐’ฎ} {a : ๐’ณ} (f : R โŸถ S)
  (ha : p.obj a = S), p.IsCartesian f (HasFibers.pullbackMap f ha)

def HasFibers.inducedMap E1 #

{๐’ฎ : Type uโ‚} โ†’
  {๐’ณ : Type uโ‚‚} โ†’
    [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] โ†’
      [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ] โ†’
        {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} โ†’
          [inst_2 : HasFibers p] โ†’
            {R S : ๐’ฎ} โ†’
              {a : ๐’ณ} โ†’
                {b b' : HasFibers.Fib p R} โ†’
                  (f : R โŸถ S) โ†’
                    (ฯˆ : (HasFibers.ฮน R).obj b' โŸถ a) โ†’
                      [p.IsCartesian f ฯˆ] โ†’ (ฯ† : (HasFibers.ฮน R).obj b โŸถ a) โ†’ [p.IsHomLift f ฯ†] โ†’ b โŸถ b'

Given a fibered category p, b' b in Fib R, and a pullback ฯˆ : b โŸถ a in ๐’ณ, i.e.

b'       b --ฯˆ--> a
|        |        |
v        v        v
R ====== R --f--> S

Then the induced map ฯ„ : b' โŸถ b can be lifted to the fiber over R

theorem HasFibers.inducedMap_comp E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {R S : ๐’ฎ} {a : ๐’ณ} {b b' : HasFibers.Fib p R} (f : R โŸถ S)
  (ฯˆ : (HasFibers.ฮน R).obj b' โŸถ a) [inst_3 : p.IsCartesian f ฯˆ] (ฯ† : (HasFibers.ฮน R).obj b โŸถ a)
  [inst_4 : p.IsHomLift f ฯ†],
  CategoryTheory.CategoryStruct.comp ((HasFibers.ฮน R).map (HasFibers.inducedMap f ฯˆ ฯ†)) ฯˆ = ฯ†

theorem HasFibers.inducedMap_comp_assoc E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] {R S : ๐’ฎ} {a : ๐’ณ} {b b' : HasFibers.Fib p R} (f : R โŸถ S)
  (ฯˆ : (HasFibers.ฮน R).obj b' โŸถ a) [inst_3 : p.IsCartesian f ฯˆ] (ฯ† : (HasFibers.ฮน R).obj b โŸถ a)
  [inst_4 : p.IsHomLift f ฯ†] {Z : ๐’ณ} (h : a โŸถ Z),
  CategoryTheory.CategoryStruct.comp ((HasFibers.ฮน R).map (HasFibers.inducedMap f ฯˆ ฯ†))
      (CategoryTheory.CategoryStruct.comp ฯˆ h) =
    CategoryTheory.CategoryStruct.comp ฯ† h

theorem HasFibers.fiber_factorization E1 #

โˆ€ {๐’ฎ : Type uโ‚} {๐’ณ : Type uโ‚‚} [inst : CategoryTheory.Category.{vโ‚, uโ‚} ๐’ฎ] [inst_1 : CategoryTheory.Category.{vโ‚‚, uโ‚‚} ๐’ณ]
  {p : CategoryTheory.Functor ๐’ณ ๐’ฎ} [inst_2 : HasFibers p] [p.IsFibered] {R S : ๐’ฎ} {a : ๐’ณ},
  p.obj a = S โ†’
    โˆ€ {b : HasFibers.Fib p R} (f : R โŸถ S) (ฯ† : (HasFibers.ฮน R).obj b โŸถ a) [p.IsHomLift f ฯ†],
      โˆƒ b' ฯ„ ฯˆ, p.IsStronglyCartesian f ฯˆ โˆง CategoryTheory.CategoryStruct.comp ((HasFibers.ฮน R).map ฯ„) ฯˆ = ฯ†

Given a : ๐’ณ, b : Fib p R, and a diagram

  b --ฯ†--> a
  -        -
  |        |
  v        v
  R --f--> S

It can be factorized as

  b --ฯ„--> b'--ฯˆ--> a
  -        -        -
  |        |        |
  v        v        v
  R ====== R --f--> S

with ฯˆ Cartesian over f and ฯ„ a map in Fib p R.