X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fnlibrary%2Fnat%2Fcompare.ma;fp=matita%2Fmatita%2Fnlibrary%2Fnat%2Fcompare.ma;h=354e61a5a3b80d479ca22835b5f96d2fd852f87d;hb=2c01ff6094173915e7023076ea48b5804dca7778;hp=0000000000000000000000000000000000000000;hpb=a050e3f80d7ea084ce0184279af98e8251c7d2a6;p=helm.git diff --git a/matita/matita/nlibrary/nat/compare.ma b/matita/matita/nlibrary/nat/compare.ma new file mode 100644 index 000000000..354e61a5a --- /dev/null +++ b/matita/matita/nlibrary/nat/compare.ma @@ -0,0 +1,31 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +include "nat/order.ma". +include "datatypes/bool.ma". + +naxiom decompose1: ¬(lt O O). +naxiom decompose2: ∀n. ¬(lt (S n) O). + +ndefinition ltb: nat → nat → bool. + #n; nelim n + [ #m; ncases m + [ napply false + | #m'; napply true ] +##| #n'; #Hn'; #m; ncases m + [ napply false + | #m'; ncases (Hn' m') + [ napply true + | napply false]##] +nqed.