Skip to content

Commit

Permalink
feat: ind-objects are closed under isomorphism (#11623)
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoFX committed Mar 24, 2024
1 parent 31bc122 commit 1f8fea7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Mathlib/CategoryTheory/Limits/Indization/IndObject.lean
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ structure IndObjectPresentation (A : Cᵒᵖ ⥤ Type v) where

namespace IndObjectPresentation

/-- Alternative constructor for `IndObjectPresentation` taking a cocone instead of its defining
natural transformation. -/
@[simps]
def ofCocone {I : Type v} [SmallCategory I] [IsFiltered I] {F : I ⥤ C}
(c : Cocone (F ⋙ yoneda)) (hc : IsColimit c) : IndObjectPresentation c.pt where
I := I
F := F
ι := c.ι
isColimit := hc

variable {A : Cᵒᵖ ⥤ Type v} (P : IndObjectPresentation A)

instance : SmallCategory P.I := P.ℐ
Expand All @@ -76,6 +86,13 @@ def cocone : Cocone (P.F ⋙ yoneda) where
def coconeIsColimit : IsColimit P.cocone :=
P.isColimit

/-- If `A` and `B` are isomorphic, then an ind-object presentation of `A` can be extended to an
ind-object presentation of `B`. -/
@[simps!]
noncomputable def extend {A B : Cᵒᵖ ⥤ Type v} (P : IndObjectPresentation A) (η : A ⟶ B) [IsIso η] :
IndObjectPresentation B :=
.ofCocone (P.cocone.extend η) (P.coconeIsColimit.extendIso (by exact η))

/-- The canonical comparison functor between the indexing category of the presentation and the
comma category `CostructuredArrow yoneda A`. This functor is always final. -/
@[simps! obj_left obj_right_as obj_hom map_left]
Expand Down Expand Up @@ -113,6 +130,12 @@ namespace IsIndObject

variable {A : Cᵒᵖ ⥤ Type v}

theorem map {A B : Cᵒᵖ ⥤ Type v} (η : A ⟶ B) [IsIso η] : IsIndObject A → IsIndObject B
| ⟨⟨P⟩⟩ => ⟨⟨P.extend η⟩⟩

theorem iff_of_iso {A B : Cᵒᵖ ⥤ Type v} (η : A ⟶ B) [IsIso η] : IsIndObject A ↔ IsIndObject B :=
⟨.map η, .map (inv η)⟩

/-- Pick a presentation for an ind-object using choice. -/
noncomputable def presentation : IsIndObject A → IndObjectPresentation A
| ⟨P⟩ => P.some
Expand Down

0 comments on commit 1f8fea7

Please sign in to comment.