Skip to content

Commit

Permalink
yoneda lemma
Browse files Browse the repository at this point in the history
  • Loading branch information
FeorgeGeorge committed Jun 9, 2024
1 parent e60c389 commit f97cd5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/Category/Limit.ard
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,13 @@
| f_hinv => limUnique \lam j => inv o-assoc *> pmap (`∘ _) (L.limBeta L' j) *> L'.limBeta L j *> inv id-right

\func transFuncMap {D : Precat} (L L' : Limit { | D => D }) (H : Functor L.J L'.J) (a : NatTrans (Comp L'.G H) L.G) : Hom L' L =>
limMap (\new Cone {
limMap cone
\where {
\func cone : Cone G L' => \new Cone {
| coneMap j => a j ∘ L'.coneMap (H j)
| coneCoh f => inv o-assoc *> pmap (`∘ _) (inv (a.natural f)) *> o-assoc *> pmap (_ ∘) (L'.coneCoh (H.Func f))
})
}
}
}

\meta Colimit G => Limit (Functor.op {G})
Expand Down
3 changes: 2 additions & 1 deletion src/Category/Slice.ard
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
\import Category
\import Category.Functor
\import Category.Limit
\import Paths
\import Paths.Meta

Expand All @@ -22,4 +23,4 @@
| Precat => SlicePrecat x
| univalence => Cat.makeUnivalence \lam (e : Iso) =>
\have e' => Functor.Func-iso {SlicePrecat.forget x} e
\in (ext (Cat.isotoid e', Cat.transport_Hom_iso-left e' _ (inv e.f.2)), simp_coe (Cat.transport_Hom_iso-right e' _ id-right))
\in (ext (Cat.isotoid e', Cat.transport_Hom_iso-left e' _ (inv e.f.2)), simp_coe (Cat.transport_Hom_iso-right e' _ id-right))

0 comments on commit f97cd5b

Please sign in to comment.