refactor(hott/algebra/category/constructions/functor): cleanup proof

This commit is contained in:
Leonardo de Moura 2015-05-07 15:29:02 -07:00
parent 45c8cdc626
commit 21ee0a5ff9

View file

@ -122,12 +122,12 @@ namespace category
begin begin
fapply functor_eq, fapply functor_eq,
{exact (eq_of_iso_ob η)}, {exact (eq_of_iso_ob η)},
{intro c c' f, --unfold eq_of_iso_ob, --TODO: report: this fails {intro c c' f,
apply concat, esimp [eq_of_iso_ob, inv_of_eq, hom_of_eq, eq_of_iso],
{apply (ap (λx, to_hom x ∘ to_fun_hom F f ∘ _)), apply (right_inv iso_of_eq)}, rewrite [*right_inv iso_of_eq],
apply concat, esimp [function.id],
{apply (ap (λx, _ ∘ to_fun_hom F f ∘ (to_hom x)⁻¹)), apply (right_inv iso_of_eq)}, symmetry, apply naturality_iso
symmetry, apply naturality_iso} }
end end
definition iso_of_eq_eq_of_iso (η : F ≅ G) : iso_of_eq (eq_of_iso η) = η := definition iso_of_eq_eq_of_iso (η : F ≅ G) : iso_of_eq (eq_of_iso η) = η :=