| 1 |
Require Import TestSuite.admit. |
| 2 |
(* File reduced by coq-bug-finder from original input, then from 6746 lines to 4190 lines, then from 29 lines to 18 lines, then fro\ |
| 3 |
m 30 lines to 19 lines *) |
| 4 |
(* coqc version trunk (October 2014) compiled on Oct 7 2014 12:42:41 with OCaml 4.01.0 |
| 5 |
coqtop version cagnode16:/afs/csail.mit.edu/u/j/jgross/coq-trunk,trunk (2313bde0116a5916912bebbaca77d291f7b2760a) *) |
| 6 |
Record PreCategory := { identity : forall x, x -> x }. |
| 7 |
Definition set_cat : PreCategory := @Build_PreCategory (fun T x => x). |
| 8 |
Module UnKeyed. |
| 9 |
Global Unset Keyed Unification. |
| 10 |
Goal forall (T : Type) (g0 g1 : T) (k : T) (H' : forall x : T, k = @identity set_cat T x), |
| 11 |
((fun x : T => x) g0) = ((fun x : T => x) g1). |
| 12 |
intros T g0 g1 k H'. |
| 13 |
change (identity _ _) with (fun y : T => y) in H'; |
| 14 |
rewrite <- H' || fail "too early". |
| 15 |
Undo. |
| 16 |
rewrite <- H'. |
| 17 |
admit. |
| 18 |
Defined. |
| 19 |
End UnKeyed. |
| 20 |
Module Keyed. |
| 21 |
Global Set Keyed Unification. |
| 22 |
Declare Equivalent Keys (fun x => _) identity. |
| 23 |
Goal forall (T : Type) (g0 g1 : T) (k : T) (H' : forall x : T, k = @identity set_cat T x), |
| 24 |
((fun x : T => x) g0) = ((fun x : T => x) g1). |
| 25 |
intros T g0 g1 k H'. |
| 26 |
change (identity _ _) with (fun y : T => y) in H'; |
| 27 |
rewrite <- H' || fail "too early". |
| 28 |
Undo. |
| 29 |
rewrite <- H'. |
| 30 |
admit. |
| 31 |
Defined. |
| 32 |
End Keyed. |