| 1 |
Require Import TestSuite.admit. |
| 2 |
Generalizable All Variables. |
| 3 |
Definition compose {A B C : Type} (g : B -> C) (f : A -> B) := fun x => g (f x). |
| 4 |
Notation "g 'o' f" := (compose g f) (at level 40, left associativity) : function_scope. |
| 5 |
Open Scope function_scope. |
| 6 |
Axiom ap : forall {A B:Type} (f:A -> B) {x y:A} (p:x = y), f x = f y. |
| 7 |
Class IsEquiv {A B : Type} (f : A -> B) := { equiv_inv : B -> A }. |
| 8 |
Record Equiv A B := { equiv_fun :> A -> B ; equiv_isequiv :> IsEquiv equiv_fun }. |
| 9 |
Notation "A <~> B" := (Equiv A B) (at level 85) : equiv_scope. |
| 10 |
Axiom IsHSet : Type -> Type. |
| 11 |
#[export] Instance isequiv_compose `{IsEquiv A B f} `{IsEquiv B C g} : IsEquiv (compose g f) | 1000. |
| 12 |
admit. |
| 13 |
Defined. |
| 14 |
Set Primitive Projections. |
| 15 |
Record hSet := BuildhSet {setT:> Type; iss :> IsHSet setT}. |
| 16 |
Canonical Structure default_HSet:= fun T P => (@BuildhSet T P). |
| 17 |
Global Instance isequiv_ap_setT X Y : IsEquiv (@ap _ _ setT X Y). |
| 18 |
admit. |
| 19 |
Defined. |
| 20 |
Local Open Scope equiv_scope. |
| 21 |
Axiom equiv_path : forall (A B : Type) (p : A = B), A <~> B. |
| 22 |
|
| 23 |
Goal forall (C D : hSet), IsEquiv (fun x : C = D => (equiv_path C D (ap setT x))). |
| 24 |
intros. |
| 25 |
change (IsEquiv (equiv_path C D o @ap _ _ setT C D)). |
| 26 |
apply @isequiv_compose; [ | admit ]. |
| 27 |
Set Typeclasses Debug. |
| 28 |
typeclasses eauto. |
| 29 |
Abort. |