| 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 |
Inductive T : Set := |
| 12 |
| A : T |
| 13 |
| B : T -> T. |
| 14 |
|
| 15 |
Lemma lem1 : forall x y : T, {x = y} + {x <> y}. |
| 16 |
decide equality. |
| 17 |
Qed. |
| 18 |
|
| 19 |
Lemma lem1' : forall x y : T, x = y \/ x <> y. |
| 20 |
decide equality. |
| 21 |
Qed. |
| 22 |
|
| 23 |
Lemma lem1'' : forall x y : T, {x <> y} + {x = y}. |
| 24 |
decide equality. |
| 25 |
Qed. |
| 26 |
|
| 27 |
Lemma lem1''' : forall x y : T, x <> y \/ x = y. |
| 28 |
decide equality. |
| 29 |
Qed. |
| 30 |
|
| 31 |
Lemma lem2 : forall x y : T, {x = y} + {x <> y}. |
| 32 |
intros x y. |
| 33 |
decide equality. |
| 34 |
Qed. |
| 35 |
|
| 36 |
Lemma lem4 : forall x y : T, {x = y} + {x <> y}. |
| 37 |
intros x y. |
| 38 |
compare x y; auto. |
| 39 |
Qed. |
| 40 |
|