aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssrtest/ssrsyntax1.v
diff options
context:
space:
mode:
authorEnrico Tassi2015-03-09 11:07:53 +0100
committerEnrico Tassi2015-03-09 11:24:38 +0100
commitfc84c27eac260dffd8f2fb1cb56d599f1e3486d9 (patch)
treec16205f1637c80833a4c4598993c29fa0fd8c373 /mathcomp/ssrtest/ssrsyntax1.v
Initial commit
Diffstat (limited to 'mathcomp/ssrtest/ssrsyntax1.v')
-rw-r--r--mathcomp/ssrtest/ssrsyntax1.v25
1 files changed, 25 insertions, 0 deletions
diff --git a/mathcomp/ssrtest/ssrsyntax1.v b/mathcomp/ssrtest/ssrsyntax1.v
new file mode 100644
index 0000000..64e78da
--- /dev/null
+++ b/mathcomp/ssrtest/ssrsyntax1.v
@@ -0,0 +1,25 @@
+(* (c) Copyright Microsoft Corporation and Inria. All rights reserved. *)
+Require ssreflect.
+Require Import Arith.
+
+Goal (forall a b, a + b = b + a).
+intros.
+rewrite plus_comm, plus_comm.
+split.
+Abort.
+
+Module Foo.
+Import ssreflect.
+
+Goal (forall a b, a + b = b + a).
+intros.
+rewrite 2![_ + _]plus_comm.
+split.
+Abort.
+End Foo.
+
+Goal (forall a b, a + b = b + a).
+intros.
+rewrite plus_comm, plus_comm.
+split.
+Abort. \ No newline at end of file