Skip to content

Commit 815eabc

Browse files
committed
feat(CategoryTheory): Finality of functors from filtered categories into PUnit (#15641)
1 parent 2c4b300 commit 815eabc

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Mathlib/CategoryTheory/Filtered/Final.lean

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,24 @@ theorem Functor.initial_iff_isCofiltered_costructuredArrow [IsCofilteredOrEmpty
230230

231231
end 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+
233253
end CategoryTheory

0 commit comments

Comments
 (0)