Built with Alectryon, running Coq+SerAPI v8.18.0+0.18.3. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑ Ctrl+↓ to navigate, Ctrl+🖱️ to focus. On Mac, use instead of Ctrl.
(** * PreCategories [set_cat] and [prop_cat] *)
[Loading ML file number_string_notation_plugin.cmxs (using legacy method) ... done]
Require Import HoTT.Basics HoTT.Types TruncType. Set Universe Polymorphism. Set Implicit Arguments. Generalizable All Variables. Set Asymmetric Patterns. Notation cat_of obj := (@Build_PreCategory obj (fun x y => x -> y) (fun _ x => x) (fun _ _ _ f g => f o g)%core (fun _ _ _ _ _ _ _ => idpath) (fun _ _ _ => idpath) (fun _ _ _ => idpath) _). (** There is a category [Set], where the objects are sets and the morphisms are set morphisms *) Definition prop_cat `{Funext} : PreCategory := cat_of HProp. Definition set_cat `{Funext} : PreCategory := cat_of HSet. (** ** [Prop] is a strict category *) Global Instance isstrict_prop_cat `{Univalence} : IsStrictCategory prop_cat := _. (** Because, e.g., [@identity set_cat x ≡ x], and we want [rewrite] to notice this, we must inform it that it can try treating [identity] as [idmap]. *) Declare Equivalent Keys identity idmap.