From 98f91a1c3b122ac026e38d16c9cbac50f9562f7d Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Wed, 6 Jul 2005 14:52:52 +0000 Subject: [PATCH] added tests for contructor and clearbody --- helm/matita/tests/clearbody.ma | 30 ++++++++++++++++++++++++++++++ helm/matita/tests/constructor.ma | 22 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 helm/matita/tests/clearbody.ma create mode 100644 helm/matita/tests/constructor.ma 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. -- 2.39.2