aboutsummaryrefslogtreecommitdiff
path: root/tests/example2.v
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2017-08-18 14:40:08 +0200
committerPierre-Marie Pédrot2017-08-18 16:24:35 +0200
commit62ea702ac88c2762a6587b7b7c95f8f917cedd1c (patch)
tree739a06f38609bcf60b08fc7b2eb7c120f04510bb /tests/example2.v
parent900841d0bb4700fb2a3662457e7c4efea34a97e4 (diff)
Notations for a few reduction functions.
Diffstat (limited to 'tests/example2.v')
-rw-r--r--tests/example2.v34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/example2.v b/tests/example2.v
index bfb1b07e7a..1856663953 100644
--- a/tests/example2.v
+++ b/tests/example2.v
@@ -123,3 +123,37 @@ intros n r.
hnf in r.
split.
Qed.
+
+Goal 1 = 0 -> 0 = 0.
+Proof.
+intros H.
+pattern 0 at 1.
+let occ := 2 in pattern 1 at 1, 0 at $occ in H.
+reflexivity.
+Qed.
+
+Goal 1 + 1 = 2.
+Proof.
+vm_compute.
+reflexivity.
+Qed.
+
+Goal 1 + 1 = 2.
+Proof.
+native_compute.
+reflexivity.
+Qed.
+
+Goal 1 + 1 = 2 - 0 -> True.
+Proof.
+intros H.
+vm_compute plus in H.
+reflexivity.
+Qed.
+
+Goal 1 = 0 -> True /\ True.
+Proof.
+intros H.
+split; fold (1 + 0) (1 + 0) in H.
+reflexivity.
+Qed.