]> matita.cs.unibo.it Git - helm.git/commitdiff
added tests for contructor and clearbody
authorEnrico Tassi <enrico.tassi@inria.fr>
Wed, 6 Jul 2005 14:52:52 +0000 (14:52 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Wed, 6 Jul 2005 14:52:52 +0000 (14:52 +0000)
helm/matita/tests/clearbody.ma [new file with mode: 0644]
helm/matita/tests/constructor.ma [new file with mode: 0644]

diff --git a/helm/matita/tests/clearbody.ma b/helm/matita/tests/clearbody.ma
new file mode 100644 (file)
index 0000000..b38de22
--- /dev/null
@@ -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 (file)
index 0000000..3b9c21c
--- /dev/null
@@ -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.