| 1 |
(************************************************************************) |
| 2 |
(* * The Rocq Prover / The Rocq Development Team *) |
| 3 |
(* v * Copyright INRIA, CNRS and contributors *) |
| 4 |
(* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 |
(* \VV/ **************************************************************) |
| 6 |
(* // * This file is distributed under the terms of the *) |
| 7 |
(* * GNU Lesser General Public License Version 2.1 *) |
| 8 |
(* * (see LICENSE file for the text of the license) *) |
| 9 |
(************************************************************************) |
| 10 |
|
| 11 |
(* (c) Copyright 2006-2016 Microsoft Corporation and Inria. *) |
| 12 |
|
| 13 |
Require ssreflect. |
| 14 |
|
| 15 |
Axiom add_comm : forall a b, a + b = b + a. |
| 16 |
|
| 17 |
Goal (forall a b, a + b = b + a). |
| 18 |
intros. |
| 19 |
rewrite add_comm, add_comm. |
| 20 |
split. |
| 21 |
Abort. |
| 22 |
|
| 23 |
Module Foo. |
| 24 |
Import ssreflect. |
| 25 |
|
| 26 |
Goal (forall a b, a + b = b + a). |
| 27 |
intros. |
| 28 |
rewrite 2![_ + _]add_comm. |
| 29 |
split. |
| 30 |
Abort. |
| 31 |
End Foo. |
| 32 |
|
| 33 |
Goal (forall a b, a + b = b + a). |
| 34 |
intros. |
| 35 |
rewrite add_comm, add_comm. |
| 36 |
split. |
| 37 |
Abort. |