X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Flibrary%2FZ%2Forders.ma;h=c39f693085398eedf4a95a9f15898f05e6cee264;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=1a2d65a4f05e6dc8c85654ca7c203fab1e72e41f;hpb=5e1fd9ee5ced5737c7fd4f25fca47feda1fda8e9;p=helm.git diff --git a/helm/matita/library/Z/orders.ma b/helm/matita/library/Z/orders.ma index 1a2d65a4f..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,14 +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: 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. @@ -47,127 +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