The areas / V24. Category theory
Mathlib.CategoryTheory.Functor.Flat
40 declarations. Mathlib docs · Source
Representably flat functors
We define representably flat functors as functors such that the category of structured arrows
over X is cofiltered for each X. This concept is also known as flat functors as in [Elephant]
Remark C2.3.7, and this name is suggested by Mike Shulman in
https://golem.ph.utexas.edu/category/2011/06/flat_functors_and_morphisms_of.html to avoid
confusion with other notions of flatness (e.g. see the notion of flat type-valued
functor in the file Mathlib/CategoryTheory/Functor/TypeValuedFlat.lean).
This definition is equivalent to left exact functors (functors that preserves finite limits) when
C has all finite limits.
Main results
flat_of_preservesFiniteLimits: IfF : C ⥤ Dpreserves finite limits andChas all finite limits, thenFis flat.preservesFiniteLimits_of_flat: IfF : C ⥤ Dis flat, then it preserves all finite limits.preservesFiniteLimits_iff_flat: IfChas all finite limits, thenFis flat iffFis left exact.lan_preservesFiniteLimits_of_flat: IfF : C ⥤ Dis a flat functor between small categories, then the functorLan F.opbetween presheaves of sets preserves all finite limits.flat_iff_lan_flat: IfC,Dare small andChas all finite limits, thenFis flat iffLan F.op : (Cᵒᵖ ⥤ Type*) ⥤ (Dᵒᵖ ⥤ Type*)is flat.preservesFiniteLimits_iff_lanPreservesFiniteLimits: IfC,Dare small andChas all finite limits, thenFpreserves finite limits iffLan F.op : (Cᵒᵖ ⥤ Type*) ⥤ (Dᵒᵖ ⥤ Type*)does.
class CategoryTheory.RepresentablyFlat E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} → [inst_1 : CategoryTheory.Category.{v₂, u₂} D] → CategoryTheory.Functor C D → Prop
A functor F : C ⥤ D is representably flat if the comma category (X/F) is cofiltered for
each X : D.
ctor CategoryTheory.RepresentablyFlat.mk E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{F : CategoryTheory.Functor C D},
(∀ (X : D), CategoryTheory.IsCofiltered (CategoryTheory.StructuredArrow X F)) → CategoryTheory.RepresentablyFlat F
instance CategoryTheory.RepresentablyFlat.cofiltered E0 #
∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
{F : CategoryTheory.Functor C D} [self : CategoryTheory.RepresentablyFlat F] (X : D),
CategoryTheory.IsCofiltered (CategoryTheory.StructuredArrow X F)
class CategoryTheory.RepresentablyCoflat E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} → [inst_1 : CategoryTheory.Category.{v₂, u₂} D] → CategoryTheory.Functor C D → Prop
A functor F : C ⥤ D is representably coflat if the comma category (F/X) is filtered for
each X : D.
ctor CategoryTheory.RepresentablyCoflat.mk E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{F : CategoryTheory.Functor C D},
(∀ (X : D), CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow F X)) → CategoryTheory.RepresentablyCoflat F
instance CategoryTheory.RepresentablyCoflat.filtered E0 #
∀ {C : Type u₁} {inst : CategoryTheory.Category.{v₁, u₁} C} {D : Type u₂} {inst_1 : CategoryTheory.Category.{v₂, u₂} D}
{F : CategoryTheory.Functor C D} [self : CategoryTheory.RepresentablyCoflat F] (X : D),
CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow F X)
instance CategoryTheory.RepresentablyFlat.of_isRightAdjoint E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [F.IsRightAdjoint], CategoryTheory.RepresentablyFlat F
instance CategoryTheory.RepresentablyCoflat.of_isLeftAdjoint E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [F.IsLeftAdjoint], CategoryTheory.RepresentablyCoflat F
theorem CategoryTheory.RepresentablyFlat.id E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.RepresentablyFlat (CategoryTheory.Functor.id C)
theorem CategoryTheory.RepresentablyCoflat.id E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C],
CategoryTheory.RepresentablyCoflat (CategoryTheory.Functor.id C)
instance CategoryTheory.RepresentablyFlat.comp E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] (F : CategoryTheory.Functor C D)
(G : CategoryTheory.Functor D E) [CategoryTheory.RepresentablyFlat F] [CategoryTheory.RepresentablyFlat G],
CategoryTheory.RepresentablyFlat (F.comp G)
theorem CategoryTheory.RepresentablyFlat.of_iso E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{F : CategoryTheory.Functor C D} [CategoryTheory.RepresentablyFlat F] {G : CategoryTheory.Functor C D} (α : F ≅ G),
CategoryTheory.RepresentablyFlat G
Being a representably flat functor is closed under natural isomorphisms.
theorem CategoryTheory.RepresentablyCoflat.of_iso E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{F : CategoryTheory.Functor C D} [CategoryTheory.RepresentablyCoflat F] {G : CategoryTheory.Functor C D} (α : F ≅ G),
CategoryTheory.RepresentablyCoflat G
theorem CategoryTheory.representablyCoflat_op_iff E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D), CategoryTheory.RepresentablyCoflat F.op ↔ CategoryTheory.RepresentablyFlat F
theorem CategoryTheory.representablyFlat_op_iff E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D), CategoryTheory.RepresentablyFlat F.op ↔ CategoryTheory.RepresentablyCoflat F
instance CategoryTheory.instRepresentablyCoflatOppositeOpOfRepresentablyFlat E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [CategoryTheory.RepresentablyFlat F], CategoryTheory.RepresentablyCoflat F.op
instance CategoryTheory.instRepresentablyFlatOppositeOpOfRepresentablyCoflat E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [CategoryTheory.RepresentablyCoflat F], CategoryTheory.RepresentablyFlat F.op
instance CategoryTheory.RepresentablyCoflat.comp E0 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{E : Type u₃} [inst_2 : CategoryTheory.Category.{v₃, u₃} E] (F : CategoryTheory.Functor C D)
(G : CategoryTheory.Functor D E) [CategoryTheory.RepresentablyCoflat F] [CategoryTheory.RepresentablyCoflat G],
CategoryTheory.RepresentablyCoflat (F.comp G)
theorem CategoryTheory.final_of_representablyFlat E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [h : CategoryTheory.RepresentablyFlat F], F.Final
theorem CategoryTheory.initial_of_representablyCoflat E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [h : CategoryTheory.RepresentablyCoflat F], F.Initial
theorem CategoryTheory.flat_of_preservesFiniteLimits E3 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
[CategoryTheory.Limits.HasFiniteLimits C] (F : CategoryTheory.Functor C D)
[CategoryTheory.Limits.PreservesFiniteLimits F], CategoryTheory.RepresentablyFlat F
theorem CategoryTheory.coflat_of_preservesFiniteColimits E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
[CategoryTheory.Limits.HasFiniteColimits C] (F : CategoryTheory.Functor C D)
[CategoryTheory.Limits.PreservesFiniteColimits F], CategoryTheory.RepresentablyCoflat F
def CategoryTheory.PreservesFiniteLimitsOfFlat.lift E1 #
{C : Type u₁} →
[inst : CategoryTheory.Category.{v₁, u₁} C] →
{D : Type u₂} →
[inst_1 : CategoryTheory.Category.{v₂, u₂} D] →
{J : Type v₁} →
[inst_2 : CategoryTheory.SmallCategory J] →
[CategoryTheory.FinCategory J] →
{K : CategoryTheory.Functor J C} →
(F : CategoryTheory.Functor C D) →
[CategoryTheory.RepresentablyFlat F] →
{c : CategoryTheory.Limits.Cone K} →
CategoryTheory.Limits.IsLimit c → (s : CategoryTheory.Limits.Cone (K.comp F)) → s.pt ⟶ F.obj c.pt
(Implementation).
Given a limit cone c : cone K and a cone s : cone (K ⋙ F) with F representably flat,
s can factor through F.mapCone c.
theorem CategoryTheory.PreservesFiniteLimitsOfFlat.fac E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{J : Type v₁} [inst_2 : CategoryTheory.SmallCategory J] [inst_3 : CategoryTheory.FinCategory J]
{K : CategoryTheory.Functor J C} (F : CategoryTheory.Functor C D) [inst_4 : CategoryTheory.RepresentablyFlat F]
{c : CategoryTheory.Limits.Cone K} (hc : CategoryTheory.Limits.IsLimit c) (s : CategoryTheory.Limits.Cone (K.comp F))
(x : J),
CategoryTheory.CategoryStruct.comp (CategoryTheory.PreservesFiniteLimitsOfFlat.lift F hc s) ((F.mapCone c).π.app x) =
s.π.app x
theorem CategoryTheory.PreservesFiniteLimitsOfFlat.uniq E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
{J : Type v₁} [inst_2 : CategoryTheory.SmallCategory J] [CategoryTheory.FinCategory J]
(F : CategoryTheory.Functor C D) [CategoryTheory.RepresentablyFlat F] {K : CategoryTheory.Functor J C}
{c : CategoryTheory.Limits.Cone K} (hc : CategoryTheory.Limits.IsLimit c) (s : CategoryTheory.Limits.Cone (K.comp F))
(f₁ f₂ : s.pt ⟶ F.obj c.pt),
(∀ (j : J), CategoryTheory.CategoryStruct.comp f₁ ((F.mapCone c).π.app j) = s.π.app j) →
(∀ (j : J), CategoryTheory.CategoryStruct.comp f₂ ((F.mapCone c).π.app j) = s.π.app j) → f₁ = f₂
theorem CategoryTheory.preservesFiniteLimits_of_flat E3 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [CategoryTheory.RepresentablyFlat F], CategoryTheory.Limits.PreservesFiniteLimits F
Representably flat functors preserve finite limits.
theorem CategoryTheory.preservesFiniteColimits_of_coflat E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
(F : CategoryTheory.Functor C D) [CategoryTheory.RepresentablyCoflat F],
CategoryTheory.Limits.PreservesFiniteColimits F
Representably coflat functors preserve finite colimits.
theorem CategoryTheory.preservesFiniteLimits_iff_flat E3 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
[CategoryTheory.Limits.HasFiniteLimits C] (F : CategoryTheory.Functor C D),
CategoryTheory.RepresentablyFlat F ↔ CategoryTheory.Limits.PreservesFiniteLimits F
If C is finitely complete, then F : C ⥤ D is representably flat iff it preserves
finite limits.
theorem CategoryTheory.preservesFiniteColimits_iff_coflat E1 #
∀ {C : Type u₁} [inst : CategoryTheory.Category.{v₁, u₁} C] {D : Type u₂} [inst_1 : CategoryTheory.Category.{v₂, u₂} D]
[CategoryTheory.Limits.HasFiniteColimits C] (F : CategoryTheory.Functor C D),
CategoryTheory.RepresentablyCoflat F ↔ CategoryTheory.Limits.PreservesFiniteColimits F
If C is finitely cocomplete, then F : C ⥤ D is representably coflat iff it preserves
finite colimits.
def CategoryTheory.lanEvaluationIsoColim E1 #
{C D : Type u₁} →
[inst : CategoryTheory.SmallCategory C] →
[inst_1 : CategoryTheory.SmallCategory D] →
(E : Type u₂) →
[inst_2 : CategoryTheory.Category.{u₁, u₂} E] →
(F : CategoryTheory.Functor C D) →
(X : D) →
[inst_3 : ∀ (X : D), CategoryTheory.Limits.HasColimitsOfShape (CategoryTheory.CostructuredArrow F X) E] →
F.lan.comp ((CategoryTheory.evaluation D E).obj X) ≅
((CategoryTheory.Functor.whiskeringLeft (CategoryTheory.CostructuredArrow F X) C E).obj
(CategoryTheory.CostructuredArrow.proj F X)).comp
CategoryTheory.Limits.colim
(Implementation)
The evaluation of F.lan at X is the colimit over the costructured arrows over X.
instance CategoryTheory.lan_preservesFiniteLimits_of_flat E3 #
∀ {C D : Type u₁} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.SmallCategory D] (E : Type u₂)
[inst_2 : CategoryTheory.Category.{u₁, u₂} E] {FE : E → E → Type u_1} {CE : E → Type u₁}
[inst_3 : (X Y : E) → FunLike (FE X Y) (CE X) (CE Y)] [inst_4 : CategoryTheory.ConcreteCategory E FE]
[CategoryTheory.Limits.HasLimits E] [inst_6 : CategoryTheory.Limits.HasColimits E]
[CategoryTheory.Limits.ReflectsLimits (CategoryTheory.forget E)]
[CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget E)]
[CategoryTheory.Limits.PreservesLimits (CategoryTheory.forget E)] (F : CategoryTheory.Functor C D)
[CategoryTheory.RepresentablyFlat F], CategoryTheory.Limits.PreservesFiniteLimits F.op.lan
If F : C ⥤ D is a representably flat functor between small categories, then the functor
Lan F.op that takes presheaves over C to presheaves over D preserves finite limits.
instance CategoryTheory.lan_flat_of_flat E0 #
∀ {C D : Type u₁} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.SmallCategory D] (E : Type u₂)
[inst_2 : CategoryTheory.Category.{u₁, u₂} E] {FE : E → E → Type u_1} {CE : E → Type u₁}
[inst_3 : (X Y : E) → FunLike (FE X Y) (CE X) (CE Y)] [inst_4 : CategoryTheory.ConcreteCategory E FE]
[CategoryTheory.Limits.HasLimits E] [inst_6 : CategoryTheory.Limits.HasColimits E]
[CategoryTheory.Limits.ReflectsLimits (CategoryTheory.forget E)]
[CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget E)]
[CategoryTheory.Limits.PreservesLimits (CategoryTheory.forget E)] (F : CategoryTheory.Functor C D)
[CategoryTheory.RepresentablyFlat F], CategoryTheory.RepresentablyFlat F.op.lan
instance CategoryTheory.lan_preservesFiniteLimits_of_preservesFiniteLimits E0 #
∀ {C D : Type u₁} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.SmallCategory D] (E : Type u₂)
[inst_2 : CategoryTheory.Category.{u₁, u₂} E] {FE : E → E → Type u_1} {CE : E → Type u₁}
[inst_3 : (X Y : E) → FunLike (FE X Y) (CE X) (CE Y)] [inst_4 : CategoryTheory.ConcreteCategory E FE]
[CategoryTheory.Limits.HasLimits E] [inst_6 : CategoryTheory.Limits.HasColimits E]
[CategoryTheory.Limits.ReflectsLimits (CategoryTheory.forget E)]
[CategoryTheory.Limits.PreservesFilteredColimits (CategoryTheory.forget E)]
[CategoryTheory.Limits.PreservesLimits (CategoryTheory.forget E)] [CategoryTheory.Limits.HasFiniteLimits C]
(F : CategoryTheory.Functor C D) [CategoryTheory.Limits.PreservesFiniteLimits F],
CategoryTheory.Limits.PreservesFiniteLimits F.op.lan
theorem CategoryTheory.flat_iff_lan_flat E3 #
∀ {C D : Type u₁} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.SmallCategory D]
[CategoryTheory.Limits.HasFiniteLimits C] (F : CategoryTheory.Functor C D),
CategoryTheory.RepresentablyFlat F ↔ CategoryTheory.RepresentablyFlat F.op.lan
theorem CategoryTheory.preservesFiniteLimits_iff_lan_preservesFiniteLimits E1 #
∀ {C D : Type u₁} [inst : CategoryTheory.SmallCategory C] [inst_1 : CategoryTheory.SmallCategory D]
[CategoryTheory.Limits.HasFiniteLimits C] (F : CategoryTheory.Functor C D),
CategoryTheory.Limits.PreservesFiniteLimits F ↔ CategoryTheory.Limits.PreservesFiniteLimits F.op.lan
If C is finitely complete, then F : C ⥤ D preserves finite limits iff
Lan F.op : (Cᵒᵖ ⥤ Type*) ⥤ (Dᵒᵖ ⥤ Type*) preserves finite limits.
instance CategoryTheory.instFinalStructuredArrowCompPreOfRepresentablyFlat E0 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D E) (X : E) [CategoryTheory.RepresentablyFlat F],
(CategoryTheory.StructuredArrow.pre X F G).Final
instance CategoryTheory.instInitialCostructuredArrowCompPreOfRepresentablyCoflat E0 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D E) (X : E) [CategoryTheory.RepresentablyCoflat F],
(CategoryTheory.CostructuredArrow.pre F G X).Initial
instance CategoryTheory.instIsCofilteredStructuredArrowCompOfRepresentablyFlat E0 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D E) (X : E) [CategoryTheory.RepresentablyFlat F]
[CategoryTheory.IsCofiltered (CategoryTheory.StructuredArrow X G)],
CategoryTheory.IsCofiltered (CategoryTheory.StructuredArrow X (F.comp G))
instance CategoryTheory.instIsFilteredCostructuredArrowCompOfRepresentablyCoflat E0 #
∀ {C : Type u_1} {D : Type u_2} {E : Type u_3} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] [inst_2 : CategoryTheory.Category.{v_3, u_3} E]
(F : CategoryTheory.Functor C D) (G : CategoryTheory.Functor D E) (X : E) [CategoryTheory.RepresentablyCoflat F]
[h : CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow G X)],
CategoryTheory.IsFiltered (CategoryTheory.CostructuredArrow (F.comp G) X)
instance CategoryTheory.instIsCofilteredElementsCompOfRepresentablyFlat E0 #
∀ {C : Type u_1} {D : Type u_2} [inst : CategoryTheory.Category.{v_1, u_1} C]
[inst_1 : CategoryTheory.Category.{v_2, u_2} D] (F : CategoryTheory.Functor C D)
(G : CategoryTheory.Functor D (Type u_4)) [CategoryTheory.RepresentablyFlat F]
[CategoryTheory.IsCofiltered G.Elements], CategoryTheory.IsCofiltered (F.comp G).Elements