diff options
| author | Hugo Herbelin | 2014-10-30 13:23:41 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2014-10-31 18:49:05 +0100 |
| commit | 19c75f706780ea6c5bc4e22d1fbaa8ed2150ae3d (patch) | |
| tree | c34f62e5679b9ee1ab66957f745cf272c7bfc39f | |
| parent | b2e1d4ea930c07ca27168fb43908a32d1101fce0 (diff) | |
Listing a few examples of destruct showing unsatisfactory behaviors.
| -rw-r--r-- | test-suite/success/destruct.v | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test-suite/success/destruct.v b/test-suite/success/destruct.v index 66629f7fd3..56ec6a02d6 100644 --- a/test-suite/success/destruct.v +++ b/test-suite/success/destruct.v @@ -289,3 +289,39 @@ destruct H. (* Was not working in 8.4 *) change (x=y) in H. Abort. End S1. + +(* These ones are not satisfactory at the current time + +Section S2. +Variable H : 1=1. +Goal 0=1. +destruct H. +(* Should expand the n... *) + n := 1 : nat + H : n = n + ============================ + 0 = n +*) +Abort. +End S2. + +(* Should expand the n... *) +Goal 1=1->0=1. +intro H. +destruct H. +(* + n := 1 : nat + ============================ + 0 = n +*) + +(* Should expand the x0... *) +Goal forall x:nat, x=x->x=1. +intros x H. +destruct H. +(* + x : nat + x0 := x : nat + ============================ + x0=1 +*) |
