X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Flibrary%2FZ%2Forders.ma;h=bc5ffdb5125f5495b3df6ee878c2cef0e7f04488;hb=91a095f0686ee569ba035e4e30c7d071588cb8e7;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..bc5ffdb51 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,16 @@ 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). definition Zlt : Z \to Z \to Prop \def \lambda x,y:Z. @@ -47,123 +50,67 @@ 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