X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Flibrary%2Fcompare.ma;fp=helm%2Fmatita%2Flibrary%2Fcompare.ma;h=3e0271d594ed3c4c12295ae65e614295f61551f5;hb=109ddb8c437013d6d86e1564d5df3f8b089b9700;hp=0000000000000000000000000000000000000000;hpb=3c5c1885b52ab5e33ff63871bc4ef5fa275a900e;p=helm.git diff --git a/helm/matita/library/compare.ma b/helm/matita/library/compare.ma new file mode 100644 index 000000000..3e0271d59 --- /dev/null +++ b/helm/matita/library/compare.ma @@ -0,0 +1,27 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| A.Asperti, C.Sacerdoti Coen, *) +(* ||A|| E.Tassi, S.Zacchiroli *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU Lesser General Public License Version 2.1 *) +(* *) +(**************************************************************************) + +set "baseuri" "cic:/matita/compare/". + +inductive compare :Set \def +| LT : compare +| EQ : compare +| GT : compare. + +definition compare_invert: compare \to compare \def + \lambda c. + match c with + [ LT \Rightarrow GT + | EQ \Rightarrow EQ + | GT \Rightarrow LT ].