]> matita.cs.unibo.it Git - helm.git/commitdiff
removed work-arounds for poor disambiguation, which should now be fixed with the...
authorStefano Zacchiroli <zack@upsilon.cc>
Mon, 12 Sep 2005 16:09:07 +0000 (16:09 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Mon, 12 Sep 2005 16:09:07 +0000 (16:09 +0000)
helm/matita/library/Z/compare.ma
helm/matita/library/Z/orders.ma
helm/matita/library/logic/connectives.ma
helm/matita/library/logic/equality.ma

index d2e075d26cb159377bed4dafd00b9912ac71891d..551bfcf8a4333854e8af5ef99a7acca21ab2ae1e 100644 (file)
@@ -106,16 +106,14 @@ simplify.exact I.
 simplify.exact I.
 elim y. simplify.exact I.
 simplify. 
-(*CSC: qui uso le perche' altrimenti ci sono troppe scelte
-  per via delle coercions! *)
 cut match (nat_compare n1 n) with
 [ LT \Rightarrow n1<n
 | EQ \Rightarrow n1=n
 | GT \Rightarrow n<n1] \to 
 match (nat_compare n1 n) with
-[ LT \Rightarrow (le (S n1) n)
+[ LT \Rightarrow (S n1) \leq n
 | EQ \Rightarrow neg n = neg n1
-| GT \Rightarrow (le (S n) n1)]. 
+| GT \Rightarrow (S n) \leq n1]. 
 apply Hcut. apply nat_compare_to_Prop. 
 elim (nat_compare n1 n).
 simplify.exact H.
@@ -125,16 +123,14 @@ simplify.exact I.
 elim y.simplify.exact I.
 simplify.exact I.
 simplify.
-(*CSC: qui uso le perche' altrimenti ci sono troppe scelte
-  per via delle coercions! *)
 cut match (nat_compare n n1) with
 [ LT \Rightarrow n<n1
 | EQ \Rightarrow n=n1
 | GT \Rightarrow n1<n] \to 
 match (nat_compare n n1) with
-[ LT \Rightarrow (le (S n) n1)
+[ LT \Rightarrow (S n) \leq n1
 | EQ \Rightarrow pos n = pos n1
-| GT \Rightarrow (le (S n1) n)]. 
+| GT \Rightarrow (S n1) \leq n]. 
 apply Hcut. apply nat_compare_to_Prop. 
 elim (nat_compare n n1).
 simplify.exact H.
index bc5ffdb5125f5495b3df6ee878c2cef0e7f04488..ec1d6fb525f8a270f6058ebfba7f13118ee44fc9 100644 (file)
@@ -73,26 +73,22 @@ qed.
 theorem irrefl_Zlt: irreflexive Z Zlt
 \def irreflexive_Zlt.
 
-(*CSC: qui uso lt perche' ho due istanze diverse di < *)
 theorem Zlt_neg_neg_to_lt: 
-\forall n,m:nat. neg n < neg m \to lt m n.
+\forall n,m:nat. neg n < neg m \to m < n.
 intros.apply H.
 qed.
 
-(*CSC: qui uso lt perche' ho due istanze diverse di < *)
-theorem lt_to_Zlt_neg_neg: \forall n,m:nat.lt m n \to neg n < neg m. 
+theorem lt_to_Zlt_neg_neg: \forall n,m:nat.m < n \to neg n < neg m. 
 intros.
 simplify.apply H.
 qed.
 
-(*CSC: qui uso lt perche' ho due istanze diverse di < *)
 theorem Zlt_pos_pos_to_lt: 
-\forall n,m:nat. pos n < pos m \to lt n m.
+\forall n,m:nat. pos n < pos m \to n < m.
 intros.apply H.
 qed.
 
-(*CSC: qui uso lt perche' ho due istanze diverse di < *)
-theorem lt_to_Zlt_pos_pos: \forall n,m:nat.lt n m \to pos n < pos m. 
+theorem lt_to_Zlt_pos_pos: \forall n,m:nat.n < m \to pos n < pos m. 
 intros.
 simplify.apply H.
 qed.
index dacf542af2d7a6640f933d502b92cdd149ee6e24..057bed878b98c838b3d9f962179f794d4b0e1224 100644 (file)
@@ -28,8 +28,6 @@ definition Not: Prop \to Prop \def
 
 (*CSC: the URI must disappear: there is a bug now *)
 interpretation "logical not" 'not x = (cic:/matita/logic/connectives/Not.con x).
-(*CSC: this alias should disappear. It is now required because the notation for Coq is pre-loaded *)
-alias symbol "not" (instance 0) = "logical not".
 
 theorem absurd : \forall A,C:Prop. A \to \lnot A \to C.
 intros. elim (H1 H).
@@ -42,8 +40,6 @@ inductive And (A,B:Prop) : Prop \def
 
 (*CSC: the URI must disappear: there is a bug now *)
 interpretation "logical and" 'and x y = (cic:/matita/logic/connectives/And.ind#xpointer(1/1) x y).
-(*CSC: this alias should disappear. It is now required because the notation for Coq is pre-loaded *)
-alias symbol "and" (instance 0) = "logical and".
 
 theorem proj1: \forall A,B:Prop. A \land B \to A.
 intros. elim H. assumption.
@@ -59,8 +55,6 @@ inductive Or (A,B:Prop) : Prop \def
 
 (*CSC: the URI must disappear: there is a bug now *)
 interpretation "logical or" 'or x y = (cic:/matita/logic/connectives/Or.ind#xpointer(1/1) x y).
-(*CSC: this alias should disappear. It is now required because the notation for Coq is pre-loaded *)
-alias symbol "or" (instance 0) = "logical or".
    
 definition decidable : Prop \to Prop \def \lambda A:Prop. A \lor \not A.
 
index 77ef0eb82ca2064213d49b0106cf82994a8917e0..a561827f8a83e1db22e18af1d836c10d572f3509 100644 (file)
@@ -22,10 +22,7 @@ inductive eq (A:Type) (x:A) : A \to Prop \def
 (*CSC: the URI must disappear: there is a bug now *)
 interpretation "leibnitz's equality"
    'eq x y = (cic:/matita/logic/equality/eq.ind#xpointer(1/1) _ x y).
-(*CSC: this alias should disappear. It is now required because the notation for Coq is pre-loaded *)
-alias symbol "eq" (instance 0) = "leibnitz's equality".
 
-    
 theorem reflexive_eq : \forall A:Type. reflexive A (eq A).
 simplify.intros.apply refl_eq.
 qed.