| 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 Import ssreflect. |
| 14 |
Require Import ssrbool TestSuite.ssr_mini_mathcomp. |
| 15 |
Axiom daemon : False. Ltac myadmit := case: daemon. |
| 16 |
|
| 17 |
Lemma test x : (x == x) = (x + x.+1 == 2 * x + 1). |
| 18 |
case: (X in _ = X) / eqP => _. |
| 19 |
match goal with |- (x == x) = true => myadmit end. |
| 20 |
match goal with |- (x == x) = false => myadmit end. |
| 21 |
Qed. |
| 22 |
|
| 23 |
Lemma test1 x : (x == x) = (x + x.+1 == 2 * x + 1). |
| 24 |
elim: (x in RHS). |
| 25 |
match goal with |- (x == x) = _ => myadmit end. |
| 26 |
match goal with |- forall n, (x == x) = _ -> (x == x) = _ => myadmit end. |
| 27 |
Qed. |