]> matita.cs.unibo.it Git - helm.git/blob - helm/matita/library/compare.ma
All the equalityTactics have now been ported to use both the equality of
[helm.git] / helm / matita / library / compare.ma
1 (**************************************************************************)
2 (*       ___                                                                *)
3 (*      ||M||                                                             *)
4 (*      ||A||       A project by Andrea Asperti                           *)
5 (*      ||T||                                                             *)
6 (*      ||I||       Developers:                                           *)
7 (*      ||T||       A.Asperti, C.Sacerdoti Coen,                          *)
8 (*      ||A||       E.Tassi, S.Zacchiroli                                 *)
9 (*      \   /                                                             *)
10 (*       \ /        This file is distributed under the terms of the       *)
11 (*        v         GNU Lesser General Public License Version 2.1         *)
12 (*                                                                        *)
13 (**************************************************************************)
14
15 set "baseuri" "cic:/matita/compare/".
16
17 inductive compare :Set \def
18 | LT : compare
19 | EQ : compare
20 | GT : compare.
21
22 definition compare_invert: compare \to compare \def
23   \lambda c.
24     match c with
25       [ LT \Rightarrow GT
26       | EQ \Rightarrow EQ
27       | GT \Rightarrow LT ].