aboutsummaryrefslogtreecommitdiff
path: root/test-suite/output/SearchPattern.v
diff options
context:
space:
mode:
authorPierre Courtieu2014-12-15 13:51:30 +0100
committerPierre Courtieu2014-12-15 13:52:25 +0100
commit70819fdda615b9bb1e897bc82c0ce39b28a2dece (patch)
tree1a604218ea29640de42d6cb020517cfb6424d8a8 /test-suite/output/SearchPattern.v
parent3a83f8aeeff3a4ce13c21045536e17ebb7f96677 (diff)
Tests for Searchxxx commands added and modified.
Diffstat (limited to 'test-suite/output/SearchPattern.v')
-rw-r--r--test-suite/output/SearchPattern.v17
1 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/output/SearchPattern.v b/test-suite/output/SearchPattern.v
index 802d8c9760..bde195a511 100644
--- a/test-suite/output/SearchPattern.v
+++ b/test-suite/output/SearchPattern.v
@@ -17,3 +17,20 @@ SearchPattern (forall (x:?A) (y:?B), _ ?A ?B).
(* No delta-reduction *)
SearchPattern (Exc _).
+
+Definition newdef := fun x:nat => x.
+
+Goal forall n:nat, n <> newdef n -> False.
+ intros n h.
+ SearchPattern ( _ <> newdef _). (* search hypothesis *)
+ SearchPattern ( n <> newdef _). (* search hypothesis *)
+Abort.
+
+Goal forall n (P:nat -> Prop), P n -> ~P n -> False.
+ intros n P h h'.
+ SearchPattern (P _). (* search hypothesis also for patterns *)
+ Search (~P n). (* search hypothesis also for patterns *)
+ Search (P _) -"h'". (* search hypothesis also for patterns *)
+ Search (P _) -not. (* search hypothesis also for patterns *)
+
+Abort. \ No newline at end of file