| 1 |
Require Import TestSuite.admit. |
| 2 |
(* File reduced by coq-bug-finder from original input, then from 14259 lines to 305 lines, then from 237 lines to 120 lines, then from 100 lines to 30 lines *) |
| 3 |
Set Primitive Projections. |
| 4 |
Set Implicit Arguments. |
| 5 |
Record sigT (A : Type) (P : A -> Type) := existT { projT1 : A ; projT2 : P projT1 }. |
| 6 |
Notation "{ x : A & P }" := (@sigT A (fun x : A => P)) : type_scope. |
| 7 |
Notation pr1 := (@projT1 _ _). |
| 8 |
Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a where "x = y" := (@paths _ x y) : type_scope. |
| 9 |
Arguments idpath {A a} , [A] a. |
| 10 |
Definition ap {A B:Type} (f:A -> B) {x y:A} (p:x = y) : f x = f y := match p with idpath => idpath end. |
| 11 |
Goal forall (T : Type) (H : { g : T & g = g }) (x : T), projT1 H = projT1 (existT (fun g : T => g = g) x idpath). |
| 12 |
Proof. |
| 13 |
intros. |
| 14 |
let y := match goal with |- projT1 ?x = projT1 ?y => constr:(y) end in |
| 15 |
apply (@ap _ _ pr1 _ y). |
| 16 |
Undo. |
| 17 |
Unset Printing Notations. |
| 18 |
apply (ap pr1). |
| 19 |
Undo. |
| 20 |
refine (ap pr1 _). |
| 21 |
admit. |
| 22 |
Defined. |
| 23 |
|
| 24 |
(* Toplevel input, characters 22-28: |
| 25 |
Error: |
| 26 |
In environment |
| 27 |
T : Type |
| 28 |
H : sigT T (fun g : T => paths g g) |
| 29 |
x : T |
| 30 |
Unable to unify "paths (@projT1 ?24 ?23 ?25) (@projT1 ?24 ?23 ?26)" with |
| 31 |
"paths (projT1 H) (projT1 {| projT1 := x; projT2 := idpath |})". *) |