| 1 |
Notation pr1 := (@projT1 _ _). |
| 2 |
Notation compose := (fun g' f' x => g' (f' x)). |
| 3 |
Notation "g 'o' f" := (compose g f) (at level 40, left associativity) : |
| 4 |
function_scope. |
| 5 |
Open Scope function_scope. |
| 6 |
Definition ap {A B:Type} (f:A -> B) {x y:A} (p:x = y) : f x = f y := match p |
| 7 |
with eq_refl => eq_refl end. |
| 8 |
Definition pointwise_paths {A} {P:A->Type} (f g:forall x:A, P x) := forall x:A, |
| 9 |
f x = g x. |
| 10 |
Notation "f == g" := (pointwise_paths f g) (at level 70, no associativity) : |
| 11 |
type_scope. |
| 12 |
Theorem Univalence_implies_FunextNondep (A B : Type) |
| 13 |
: forall f g : A -> B, f == g -> f = g. |
| 14 |
Proof. |
| 15 |
intros f g p. |
| 16 |
pose (d := fun x : A => existT (fun xy => fst xy = snd xy) (f x, f x) |
| 17 |
(eq_refl (f x))). |
| 18 |
pose (e := fun x : A => existT (fun xy => fst xy = snd xy) (f x, g x) (p x)). |
| 19 |
change f with ((snd o pr1) o d). |
| 20 |
change g with ((snd o pr1) o e). |
| 21 |
apply (ap (fun g => snd o pr1 o g)). |
| 22 |
(* Used to raise a not Found due to a "typo" in solve_evar_evar *) |
| 23 |
Abort. |