]> matita.cs.unibo.it Git - helm.git/commitdiff
incomplete proof completed.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 15 Jun 2005 10:54:22 +0000 (10:54 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 15 Jun 2005 10:54:22 +0000 (10:54 +0000)
helm/matita/tests/coercions.ma
helm/matita/tests/test3.ma

index 9e47c3e1e5b6b99ab0677a9344799b14e44bb4f1..8a45f29295d067744e28346312b7fd5558393f60 100644 (file)
@@ -17,24 +17,18 @@ let rec pos2nat x \def
   [ one \Rightarrow (S O)
   | (next z) \Rightarrow S (pos2nat z)].
 
-let rec nat2int x \def
-  match x with
-  [ O \Rightarrow positive O
-  | (S z) \Rightarrow positive (S z)].
+definition nat2int \def \lambda x. positive x.
 
 coercion pos2nat.
 
 coercion nat2int.
 
-let rec plus x y \def
-  match x with
-  [ (positive n) \Rightarrow x
-  | (negative z) \Rightarrow y].
-
-theorem a: plus O one.
-
-
+definition fst \def \lambda x,y:int.x.
+alias symbol "eq" (instance 0) = "leibnitz's equality".
 
+theorem a: fst O one = fst (positive O) (next one).
+reflexivity.
+qed.
 
 
 
index e589c5aaa8361b84978069f14514ac901df5e852..cb2cece18730d3828813b2bfe09c1f0fdace3697 100644 (file)
@@ -1,7 +1,6 @@
 alias symbol "eq" (instance 0) = "leibnitz's equality".
 theorem a:\forall x.x=x.
 alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
-goal 5.
 exact nat.
 intro.
 reflexivity.
@@ -12,5 +11,4 @@ alias symbol "times" (instance 0) = "natural times".
 theorem b:\forall p:nat. p * 0=0.
 intro.
 auto.
-abort.
-qed.
\ No newline at end of file
+qed.