From 0dbd5619f82e575948ba583317706b4e794f57eb Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Wed, 15 Jun 2005 10:54:22 +0000 Subject: [PATCH] incomplete proof completed. --- helm/matita/tests/coercions.ma | 18 ++++++------------ helm/matita/tests/test3.ma | 4 +--- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/helm/matita/tests/coercions.ma b/helm/matita/tests/coercions.ma index 9e47c3e1e..8a45f2929 100644 --- a/helm/matita/tests/coercions.ma +++ b/helm/matita/tests/coercions.ma @@ -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. diff --git a/helm/matita/tests/test3.ma b/helm/matita/tests/test3.ma index e589c5aaa..cb2cece18 100644 --- a/helm/matita/tests/test3.ma +++ b/helm/matita/tests/test3.ma @@ -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. -- 2.39.2