\[(i)\ K \cong \int^c Kc \x \C(\_, c)\] | \[(ii)\ K \cong \int_c Kc^{ \C(c, \_)}\] |
\[(iii)\ H \cong \int^c Hc \x \C(c, \_)\] | \[(iv)\ H \cong \int_c Hc^{ \C(\_, c)}\] |
\[(i)\ K \prequiv \exists c . Kc \land \C(\_, c)\] | \[(ii)\ K \prequiv \forall c . \C(c, \_) \imp Kc\] |
\[(iii)\ H \prequiv \exists c . Hc \land \C(c, \_)\] | \[(iv)\ H \prequiv \forall c. \C(\_, c) \imp Hc\] |
\[(i)\ K(x) \prequiv \exists c . K(c) \land (x = c)\] | \[(ii)\ K(x) \prequiv \forall c . (c = x) \imp K(c)\] |
\[(iii)\ H(x) \prequiv \exists c . H(c) \land (c = x)\] | \[(iv)\ H(x) \prequiv \forall c. (x = c) \imp H(c)\] |
The only thing that is equal to $x$ is $x$ itself.and the intro rule is the fact that
There is a thing that equal to $x$, namely $x$ itself.To prove any of these logical equivalences, we use the intro rule for equality when proving the direction that decomposes the quantifier synchronously (i.e. $K(x) \prov \exists c . K(c) \land (x = c)$ or $ \forall c . (c = x) \imp K(c) \prov K(x)$) by choosing $c$ to be $x$ and establishing the resulting reflexive equality. And we use the elim rule when proving the direction that decomposes the quantifer asynchronously (i.e $\exists c . K(c) \land (x = c) \prov K(x)$ or $ K(x) \prov \forall c . (c = x) \imp K(c)$) by using the equality to collapse the two free term variables into one, and then trivially proving $K(c) \prov K(c)$. Anyway the punchline for me is that the Yoneda lemma is really telling us a certain formal way in which
the hom-type is a directed generalization of equalityand this is true for categories, not just groupoids.