test-suite/success/Reordering.v
raw| 1 | (* Testing the reordering of hypothesis required by pattern, fold and change. *) |
| 2 | Goal forall (A:Set) (x:A) (A':=A), True. |
| 3 | intros. |
| 4 | fold A' in x. (* succeeds: x is moved after A' *) |
| 5 | Undo. |
| 6 | pattern A' in x. |
| 7 | Undo. |
| 8 | change A' in x. |
| 9 | Abort. |
| 10 | |
| 11 | (* p and m should be moved before H *) |
| 12 | Goal forall n:nat, n=n -> forall m:nat, let p := (m,n) in True. |
| 13 | intros. |
| 14 | change n with (snd p) in H. |
| 15 | Abort. |