summaryrefslogtreecommitdiff
path: root/test-suite/success/forward.v
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@debian.org>2018-12-29 14:31:32 -0500
committerGravatar Benjamin Barenblat <bbaren@debian.org>2018-12-29 14:31:32 -0500
commit2708a015fcf65f72328be4296a00dd32b1f1c17a (patch)
tree696f9b5fb84817e1a5c8d9271976a92e25aef18a /test-suite/success/forward.v
parentd7d80c5bea564b7cb0eadc33e9ee38c9d9de1cd8 (diff)
parent9043add656177eeac1491a73d2f3ab92bec0013c (diff)
Updated version 8.8.2 from 'upstream/8.8.2'
Diffstat (limited to 'test-suite/success/forward.v')
-rw-r--r--test-suite/success/forward.v29
1 files changed, 29 insertions, 0 deletions
diff --git a/test-suite/success/forward.v b/test-suite/success/forward.v
new file mode 100644
index 00000000..4e36dec1
--- /dev/null
+++ b/test-suite/success/forward.v
@@ -0,0 +1,29 @@
+(* Testing forward reasoning *)
+
+Goal 0=0.
+Fail assert (_ = _).
+eassert (_ = _)by reflexivity.
+eassumption.
+Qed.
+
+Goal 0=0.
+Fail set (S ?[nl]).
+eset (S ?[n]).
+remember (S ?n) as x.
+instantiate (n:=0).
+Fail remember (S (S _)).
+eremember (S (S ?[x])).
+instantiate (x:=0).
+reflexivity.
+Qed.
+
+(* Don't know if it is good or not but the compatibility tells that
+ the asserted goal to prove is subject to beta-iota but not the
+ asserted hypothesis *)
+
+Goal True.
+assert ((fun x => x) False).
+Fail match goal with |- (?f ?a) => idtac end. (* should be beta-iota reduced *)
+2:match goal with _: (?f ?a) |- _ => idtac end. (* should not be beta-iota reduced *)
+Abort.
+