aboutsummaryrefslogtreecommitdiff
path: root/mathcomp/ssrtest/ssrsyntax1.v
blob: 64e78daf348c3f33bd8122ee11aa114e9056a194 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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.