aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMichael Soegtrop2020-03-03 14:37:24 +0100
committerMichael Soegtrop2020-03-03 15:05:54 +0100
commit9168e0e23142ccafbe8b6272551dbb739f72ae95 (patch)
treeea06db07be5371dc4116cf833a0543e7d830abf1 /test-suite
parent18aa9ca60ec9b3d1712276ec0c615dfe54c1a251 (diff)
Ltac2: Add notation for enough and eenough
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/ltac2/example2.v19
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/ltac2/example2.v b/test-suite/ltac2/example2.v
index c953d25061..ac92ca34ef 100644
--- a/test-suite/ltac2/example2.v
+++ b/test-suite/ltac2/example2.v
@@ -261,6 +261,25 @@ assert (H : 0 + 0 = 0) by reflexivity.
intros x; exact x.
Qed.
+Goal True.
+Proof.
+enough (H := 0 + 0).
+constructor.
+Qed.
+
+Goal True.
+Proof.
+enough (exists n, n = 0) as [n Hn].
++ exact I.
++ exists 0; reflexivity.
+Qed.
+
+Goal True -> True.
+Proof.
+enough (H : 0 + 0 = 0) by (intros x; exact x).
+reflexivity.
+Qed.
+
Goal 1 + 1 = 2.
Proof.
change (?a + 1 = 2) with (2 = $a + 1).