X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Flibrary%2FZ%2Fz.ma;h=8ce0047e169f6b6a8b014d4614877e6e9c2eb7c4;hb=24320a56c9cc9e92c0a03475e529b4a54f5d4e14;hp=997229763f5fc77f4a62790ffe009bd1d65cd0f0;hpb=5a702cea95883f7095c16b450e065ccb1714fc5a;p=helm.git diff --git a/helm/matita/library/Z/z.ma b/helm/matita/library/Z/z.ma index 997229763..8ce0047e1 100644 --- a/helm/matita/library/Z/z.ma +++ b/helm/matita/library/Z/z.ma @@ -51,7 +51,7 @@ match z with theorem OZ_test_to_Prop :\forall z:Z. match OZ_test z with [true \Rightarrow z=OZ -|false \Rightarrow \lnot (z=OZ)]. +|false \Rightarrow z \neq OZ]. intros.elim z. simplify.reflexivity. simplify.intros [H]. @@ -81,17 +81,17 @@ qed. variant inj_neg : \forall n,m:nat. neg n = neg m \to n = m \def injective_neg. -theorem not_eq_OZ_pos: \forall n:nat. \lnot (OZ = (pos n)). +theorem not_eq_OZ_pos: \forall n:nat. OZ \neq pos n. simplify.intros [n; H]. discriminate H. qed. -theorem not_eq_OZ_neg :\forall n:nat. \lnot (OZ = (neg n)). +theorem not_eq_OZ_neg :\forall n:nat. OZ \neq neg n. simplify.intros [n; H]. discriminate H. qed. -theorem not_eq_pos_neg :\forall n,m:nat. \lnot ((pos n) = (neg m)). +theorem not_eq_pos_neg :\forall n,m:nat. pos n \neq neg m. simplify.intros [n; m; H]. discriminate H. qed. @@ -113,7 +113,7 @@ elim x. right.intro. apply not_eq_OZ_pos n. symmetry. assumption. (* goal: x=pos y=pos *) - elim (decidable_eq_nat n n1:(Or (n=n1) ((n=n1) \to False))). + elim (decidable_eq_nat n n1:((n=n1) \lor ((n=n1) \to False))). left.apply eq_f.assumption. right.intros [H_inj].apply H. injection H_inj. assumption. (* goal: x=pos y=neg *) @@ -126,7 +126,7 @@ elim x. (* goal: x=neg y=pos *) right. intro. apply not_eq_pos_neg n1 n. symmetry. assumption. (* goal: x=neg y=neg *) - elim (decidable_eq_nat n n1:(Or (n=n1) ((n=n1) \to False))). + elim (decidable_eq_nat n n1:((n=n1) \lor ((n=n1) \to False))). left.apply eq_f.assumption. right.intro.apply H.apply injective_neg.assumption. qed.