feat(library/hott): add iso_of_path lemma for precategories

This commit is contained in:
Jakob von Raumer 2014-12-02 13:16:16 -05:00 committed by Leonardo de Moura
parent a1b468d104
commit 9631c6b1a1

View file

@ -4,7 +4,7 @@
import .basic
open path precategory
open path precategory sigma sigma.ops
namespace morphism
variables {ob : Type} [C : precategory ob] include C
@ -46,6 +46,10 @@ namespace morphism
theorem id_is_iso [instance] : is_iso (ID a) :=
is_iso.mk !id_compose !id_compose
-- In a precategory, equal objects are isomorphic
definition iso_of_path (p : a ≈ b) : Σ (f : hom a b), is_iso f :=
path.rec_on p ⟨ id , id_is_iso ⟩
theorem inverse_is_iso [instance] (f : a ⟶ b) [H : is_iso f] : is_iso (f⁻¹) :=
is_iso.mk !compose_inverse !inverse_compose