Skip to content

Commit

Permalink
golfing
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyriehl committed Jan 6, 2025
1 parent 5e0d788 commit d6c51e7
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,7 @@ def fromIso {X Y : C} (e : X ≅ Y) : WalkingIso ⥤ C where
| zero, one, _ => e.hom
| one, zero, _ => e.inv
| one, one, _ => 𝟙 _
map_comp := by
intro X Y Z f g
match X, Y, Z with
| zero, zero, zero => simp
| zero, zero, one => simp
| zero, one, zero => simp
| zero, one, one => simp
| one, zero, zero => simp
| one, zero, one => simp
| one, one, zero => simp
| one, one, one => simp
map_comp := by rintro (_ | _) (_ | _) (_ | _) _ _ <;> simp

def equiv : (WalkingIso ⥤ C) ≃ Σ (X : C) (Y : C), (X ≅ Y) where
toFun F := ⟨F.obj zero, F.obj one, toIso F⟩
Expand Down

0 comments on commit d6c51e7

Please sign in to comment.