File tree Expand file tree Collapse file tree
Mathlib/CategoryTheory/Filtered Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,4 +230,24 @@ theorem Functor.initial_iff_isCofiltered_costructuredArrow [IsCofilteredOrEmpty
230230
231231end LocallySmall
232232
233+ /-- If `C` is filtered, then every functor `F : C ⥤ Discrete PUnit` is final. -/
234+ theorem Functor.final_of_isFiltered_of_pUnit {C : Type u₁} [Category.{v₁} C]
235+ [IsFiltered C] (F : C ⥤ Discrete PUnit) :
236+ Final F := by
237+ refine final_of_exists_of_isFiltered F (fun _ => ?_) (fun {_} {c} _ _ => ?_)
238+ · use Classical.choice IsFiltered.nonempty
239+ exact ⟨Discrete.eqToHom (by simp)⟩
240+ · use c; use 𝟙 c
241+ apply Subsingleton.elim
242+
243+ /-- If `C` is cofiltered, then every functor `F : C ⥤ Discrete PUnit` is initial. -/
244+ theorem Functor.initial_of_isCofiltered_pUnit {C : Type u₁} [Category.{v₁} C]
245+ [IsCofiltered C] (F : C ⥤ Discrete PUnit) :
246+ Initial F := by
247+ refine initial_of_exists_of_isCofiltered F (fun _ => ?_) (fun {_} {c} _ _ => ?_)
248+ · use Classical.choice IsCofiltered.nonempty
249+ exact ⟨Discrete.eqToHom (by simp)⟩
250+ · use c; use 𝟙 c
251+ apply Subsingleton.elim
252+
233253end CategoryTheory
You can’t perform that action at this time.
0 commit comments