X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Flibrary%2Fnat%2Forders.ma;h=42454393ca45cc08676ef8205d878a437a1266f2;hb=80f85c7fb53791fd72c0e64450c3c87d8f30b84d;hp=587134afcc9c0873eea6fa14a61677e34fbb6e63;hpb=57e4568829db52f1959006041d72036ae9663955;p=helm.git diff --git a/matita/library/nat/orders.ma b/matita/library/nat/orders.ma index 587134afc..42454393c 100644 --- a/matita/library/nat/orders.ma +++ b/matita/library/nat/orders.ma @@ -22,9 +22,8 @@ inductive le (n:nat) : nat \to Prop \def | le_n : le n n | le_S : \forall m:nat. le n m \to le n (S m). -(*CSC: the URI must disappear: there is a bug now *) interpretation "natural 'less or equal to'" 'leq x y = (cic:/matita/nat/orders/le.ind#xpointer(1/1) x y). -(*CSC: the URI must disappear: there is a bug now *) + interpretation "natural 'neither less nor equal to'" 'nleq x y = (cic:/matita/logic/connectives/Not.con (cic:/matita/nat/orders/le.ind#xpointer(1/1) x y)). @@ -32,24 +31,21 @@ interpretation "natural 'neither less nor equal to'" 'nleq x y = definition lt: nat \to nat \to Prop \def \lambda n,m:nat.(S n) \leq m. -(*CSC: the URI must disappear: there is a bug now *) interpretation "natural 'less than'" 'lt x y = (cic:/matita/nat/orders/lt.con x y). -(*CSC: the URI must disappear: there is a bug now *) + interpretation "natural 'not less than'" 'nless x y = (cic:/matita/logic/connectives/Not.con (cic:/matita/nat/orders/lt.con x y)). definition ge: nat \to nat \to Prop \def \lambda n,m:nat.m \leq n. -(*CSC: the URI must disappear: there is a bug now *) interpretation "natural 'greater or equal to'" 'geq x y = (cic:/matita/nat/orders/ge.con x y). definition gt: nat \to nat \to Prop \def \lambda n,m:nat.m H in H1. +apply (lt_to_not_eq b b) +[ assumption +| reflexivity +] +qed. + (* le vs. lt *) theorem lt_to_le : \forall n,m:nat. n