blob: 434ec5464e51437995a72f3a5a4232273634389a (
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
26
27
28
29
|
(***********************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA-Rocquencourt & LRI-CNRS-Orsay *)
(* \VV/ *************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(***********************************************************************)
Inductive T : Set := A: T | B :T->T.
Lemma lem1 : (x,y:T){x=y}+{~x=y}.
Decide Equality.
Qed.
Lemma lem2 : (x,y:T){x=y}+{~x=y}.
Intros x y.
Decide Equality x y.
Qed.
Lemma lem3 : (x,y:T){x=y}+{~x=y}.
Intros x y.
Decide Equality y x.
Qed.
Lemma lem4 : (x,y:T){x=y}+{~x=y}.
Intros x y.
Compare x y; Auto.
Qed.
|