Skip to content

Commit

Permalink
Optimize proof of `equiv-natural-isomorphism-htpy-map-is-category-Pre…
Browse files Browse the repository at this point in the history
…category` (#929)

Found after discussion on Discord. The optimization is possible because
of #873.
  • Loading branch information
fredrik-bakke authored Nov 21, 2023
1 parent faee994 commit fb2b674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
21 changes: 2 additions & 19 deletions src/category-theory/category-of-maps-categories.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,15 @@ module _
( natural-isomorphism-map-Precategory C D F G)
equiv-natural-isomorphism-htpy-map-is-category-Precategory F G =
( equiv-right-swap-Σ) ∘e
( equiv-Σ
( equiv-Σ-equiv-base
( is-natural-transformation-map-Precategory C D F G ∘ pr1)
( ( distributive-Π-Σ) ∘e
( equiv-Π-equiv-family
( λ x
extensionality-obj-Category
( D , is-category-D)
( obj-map-Precategory C D F x)
( obj-map-Precategory C D G x))))
( λ K
equiv-implicit-Π-equiv-family
( λ x
equiv-implicit-Π-equiv-family
( λ y
equiv-Π-equiv-family
( λ a
( equiv-eq
( ap-binary
( λ p q
coherence-square-hom-Precategory D
( hom-map-Precategory C D F a)
( p)
( q)
( hom-map-Precategory C D G a))
( compute-hom-iso-eq-Precategory D (K x))
( compute-hom-iso-eq-Precategory D (K y)))))))))
( obj-map-Precategory C D G x)))))

extensionality-map-is-category-Precategory :
(F G : map-Precategory C D)
Expand Down
2 changes: 1 addition & 1 deletion src/category-theory/isomorphisms-in-precategories.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module _
(p : x = y)
hom-eq-Precategory C x y p =
hom-iso-Precategory C (iso-eq-Precategory x y p)
compute-hom-iso-eq-Precategory refl = refl
compute-hom-iso-eq-Precategory p = refl
```

## Properties
Expand Down

0 comments on commit fb2b674

Please sign in to comment.