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.Functor.TypeValuedFlat

6 declarations. Mathlib docs · Source

Type-valued flat functors

A functor F : C ⥤ Type w is a flat Type-valued functor if the category F.Elements is cofiltered. (This is not equivalent to saying that F is representably flat in the sense of the typeclass RepresentablyFlat defined in the file Mathlib/CategoryTheory/Functor/Flat.lean, see also https://golem.ph.utexas.edu/category/2011/06/flat_functors_and_morphisms_of.html for a clarification about the differences between these notions.)

In this file, we show that if finite limits exist in C and are preserved by F, then F.Elements is cofiltered.

theorem CategoryTheory.Functor.isCofiltered_elements E1 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w))
  [CategoryTheory.Limits.HasFiniteLimits C] [CategoryTheory.Limits.PreservesFiniteLimits F],
  CategoryTheory.IsCofiltered F.Elements

def CategoryTheory.FunctorToTypes.fromOverSubfunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor C (Type w)) →
      {X : C} → F.obj X → CategoryTheory.Subfunctor ((CategoryTheory.Over.forget X).comp F)

Given a functor F : C ⥤ Type w, an object X : C and x : F.obj X, this is the subfunctor of the functor Over.forget X ⋙ F : Over X ⥤ Type w which sends an object of Over X corresponding to a morphism f : Y ⟶ X to the subset of F.obj Y consisting of those elements y : F.obj Y such that F.map f y = x.

theorem CategoryTheory.FunctorToTypes.mem_fromOverSubfunctor_iff E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)) {X : C} (x : F.obj X)
  {U : CategoryTheory.Over X} (u : F.obj U.left),
  u ∈ (CategoryTheory.FunctorToTypes.fromOverSubfunctor F x).obj U ↔
    (CategoryTheory.ConcreteCategory.hom (F.map U.hom)) u = x

abbrev CategoryTheory.FunctorToTypes.fromOverFunctor E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor C (Type w)) →
      {X : C} → F.obj X → CategoryTheory.Functor (CategoryTheory.Over X) (Type w)

Given a functor F : C ⥤ Type w, an object X : C and x : F.obj X, this is the functor Over X ⥤ Type w which sends an object of Over X corresponding to a morphism f : Y ⟶ X to the subtype of F.obj Y consisting of those elements y : F.obj Y such that F.map f y = x.

def CategoryTheory.FunctorToTypes.fromOverFunctorElementsEquivalence E1 #

{C : Type u} →
  [inst : CategoryTheory.Category.{v, u} C] →
    (F : CategoryTheory.Functor C (Type w)) →
      {X : C} →
        (x : F.obj X) →
          (CategoryTheory.FunctorToTypes.fromOverFunctor F x).Elements ≌ CategoryTheory.Over (F.elementsMk X x)

Given a functor F : C ⥤ Type w, an object X : C and x : F.obj X, this is the equivalence between the category of elements of fromOverFunctor F x with the Over category of x considered as an object of F.Elements.

instance CategoryTheory.FunctorToTypes.instIsCofilteredElementsOverFromOverFunctor E0 #

∀ {C : Type u} [inst : CategoryTheory.Category.{v, u} C] (F : CategoryTheory.Functor C (Type w)) {X : C} (x : F.obj X)
  [CategoryTheory.IsCofiltered F.Elements],
  CategoryTheory.IsCofiltered (CategoryTheory.FunctorToTypes.fromOverFunctor F x).Elements