From: Enrico Tassi Date: Wed, 6 Jul 2005 14:52:52 +0000 (+0000) Subject: added tests for contructor and clearbody X-Git-Tag: V_0_7_1~56 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=98f91a1c3b122ac026e38d16c9cbac50f9562f7d;p=helm.git added tests for contructor and clearbody --- diff --git a/helm/matita/tests/clearbody.ma b/helm/matita/tests/clearbody.ma new file mode 100644 index 000000000..b38de22db --- /dev/null +++ b/helm/matita/tests/clearbody.ma @@ -0,0 +1,30 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +set "baseuri" "cic:/matita/tests/clearbody". +alias num (instance 0) = "natural number". +alias symbol "eq" (instance 0) = "leibnitz's equality". +alias symbol "plus" (instance 0) = "natural plus". + + +theorem stupid : + let x \def 0 + 1 in x + 1= x + 1. + intros. + clearbody x. + simplify. + generalize in \vdash (? ? (? % ?) (? % ?)). + intros. + reflexivity. + qed. + diff --git a/helm/matita/tests/constructor.ma b/helm/matita/tests/constructor.ma new file mode 100644 index 000000000..3b9c21c81 --- /dev/null +++ b/helm/matita/tests/constructor.ma @@ -0,0 +1,22 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +set "baseuri" "cic:/matita/tests/constructor". +alias num (instance 0) = "natural number". +alias symbol "eq" (instance 0) = "leibnitz's equality". + + +theorem stupid: 0 = 0. +constructor 1. +qed.