module Cat.Instances.Elements.Properties {o  s} {C : Precategory o } where

Special categories of elements🔗

The category of elements for the constant functor is exactly In particular, the projection is an isomorphism.

elements-terminal-is-iso : is-precat-iso (πₚ C $ ⊤PSh s _)
elements-terminal-is-iso .has-is-iso = is-iso→is-equiv i where
  i : is-iso (F₀ (πₚ C $ ⊤PSh s _))
  i .from x = elem x (lift tt)
  i .rinv _ = refl
  i .linv _ = refl
elements-terminal-is-iso .has-is-ff = is-iso→is-equiv i where
  i : is-iso (F₁ (πₚ C $ ⊤PSh s _))
  i .from f = elem-hom f refl
  i .rinv _ = refl
  i .linv _ = Element-hom-path _ _ refl