X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Flibrary%2FZ%2Forders.ma;h=c39f693085398eedf4a95a9f15898f05e6cee264;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=60c727cebe9ff7967f2971b1916eb34f8c24cd4b;hpb=71590f4a0cb620a5e98fee3e8d65670271234532;p=helm.git diff --git a/helm/matita/library/Z/orders.ma b/helm/matita/library/Z/orders.ma index 60c727ceb..c39f69308 100644 --- a/helm/matita/library/Z/orders.ma +++ b/helm/matita/library/Z/orders.ma @@ -15,6 +15,7 @@ set "baseuri" "cic:/matita/Z/orders". include "Z/z.ma". +include "nat/orders.ma". definition Zle : Z \to Z \to Prop \def \lambda x,y:Z. @@ -27,18 +28,19 @@ definition Zle : Z \to Z \to Prop \def | (pos n) \Rightarrow match y with [ OZ \Rightarrow False - | (pos m) \Rightarrow (le n m) + | (pos m) \Rightarrow n \leq m | (neg m) \Rightarrow False ] | (neg n) \Rightarrow match y with [ OZ \Rightarrow True | (pos m) \Rightarrow True - | (neg m) \Rightarrow (le m n) ]]. + | (neg m) \Rightarrow m \leq n ]]. (*CSC: the URI must disappear: there is a bug now *) interpretation "integer 'less or equal to'" 'leq x y = (cic:/matita/Z/orders/Zle.con x y). -(*CSC: this alias must disappear: there is a bug in the generation of the .moos *) -alias symbol "leq" (instance 0) = "integer 'less or equal to'". +(*CSC: the URI must disappear: there is a bug now *) +interpretation "integer 'neither less nor equal to'" 'nleq x y = + (cic:/matita/logic/connectives/Not.con (cic:/matita/Z/orders/Zle.con x y)). definition Zlt : Z \to Z \to Prop \def \lambda x,y:Z. @@ -51,132 +53,78 @@ definition Zlt : Z \to Z \to Prop \def | (pos n) \Rightarrow match y with [ OZ \Rightarrow False - | (pos m) \Rightarrow (lt n m) + | (pos m) \Rightarrow n