X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Flibrary%2Fnat%2Forders.ma;h=6ec0c9992a68b18e15976e96e74ef853c2fc04eb;hb=4167cea65ca58897d1a3dbb81ff95de5074700cc;hp=71cd5945037fe43fe3d9dbdef3a8ae5fd5770186;hpb=7efb15b93cf42eae8b34a12a327ee7213c1dbecc;p=helm.git diff --git a/helm/matita/library/nat/orders.ma b/helm/matita/library/nat/orders.ma index 71cd59450..6ec0c9992 100644 --- a/helm/matita/library/nat/orders.ma +++ b/helm/matita/library/nat/orders.ma @@ -54,7 +54,7 @@ interpretation "natural 'not greater than'" 'ngtr x y = (cic:/matita/logic/connectives/Not.con (cic:/matita/nat/orders/gt.con x y)). theorem transitive_le : transitive nat le. -simplify.intros.elim H1. +unfold transitive.intros.elim H1. assumption. apply le_S.assumption. qed. @@ -63,7 +63,7 @@ theorem trans_le: \forall n,m,p:nat. n \leq m \to m \leq p \to n \leq p \def transitive_le. theorem transitive_lt: transitive nat lt. -simplify.intros.elim H1. +unfold transitive.unfold lt.intros.elim H1. apply le_S. assumption. apply le_S.assumption. qed. @@ -94,8 +94,8 @@ simplify.apply le_n_Sn. qed. theorem le_S_S_to_le : \forall n,m:nat. S n \leq S m \to n \leq m. -intros.change with pred (S n) \leq pred (S m). -elim H.apply le_n.apply trans_le ? (pred n1).assumption. +intros.change with (pred (S n) \leq pred (S m)). +elim H.apply le_n.apply (trans_le ? (pred n1)).assumption. apply le_pred_n. qed. @@ -104,12 +104,12 @@ intros.elim H.exact I.exact I. qed. (* not le *) -theorem not_le_Sn_O: \forall n:nat. \lnot (S n \leq O). -intros.simplify.intros.apply leS_to_not_zero ? ? H. +theorem not_le_Sn_O: \forall n:nat. S n \nleq O. +intros.unfold Not.simplify.intros.apply (leS_to_not_zero ? ? H). qed. -theorem not_le_Sn_n: \forall n:nat. \lnot (S n \leq n). -intros.elim n.apply not_le_Sn_O.simplify.intros.cut S n1 \leq n1. +theorem not_le_Sn_n: \forall n:nat. S n \nleq n. +intros.elim n.apply not_le_Sn_O.unfold Not.simplify.intros.cut (S n1 \leq n1). apply H.assumption. apply le_S_S_to_le.assumption. qed. @@ -119,19 +119,19 @@ theorem le_to_or_lt_eq : \forall n,m:nat. n \leq m \to n < m \lor n = m. intros.elim H. right.reflexivity. -left.simplify.apply le_S_S.assumption. +left.unfold lt.apply le_S_S.assumption. qed. (* not eq *) -theorem lt_to_not_eq : \forall n,m:nat. n H7. apply H.