]> matita.cs.unibo.it Git - helm.git/commitdiff
added examples
authorEnrico Tassi <enrico.tassi@inria.fr>
Mon, 16 May 2005 15:23:34 +0000 (15:23 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Mon, 16 May 2005 15:23:34 +0000 (15:23 +0000)
helm/matita/tests/comments.ma [new file with mode: 0644]
helm/matita/tests/rewrite.ma [new file with mode: 0644]

diff --git a/helm/matita/tests/comments.ma b/helm/matita/tests/comments.ma
new file mode 100644 (file)
index 0000000..6e5f590
--- /dev/null
@@ -0,0 +1,21 @@
+%% commento segato dal lexer
+
+(* commento che va nell'ast, ma non viene contato
+    come step perche' non e' un executable
+*)
+
+alias num (instance 0) = "natural number".
+alias symbol "eq" (instance 0) = "leibnitz's equality".
+theorem a:0=0.
+
+%% commento segato dal lexer
+(* nota *)
+
+%% questo lo si vuole tenere anche dopo la hint
+hint. 
+
+(* commenti che non devono essere colorati perche'
+   non c'e' nulla di eseguibile dopo di loro
+*)
+
+%% EOF
diff --git a/helm/matita/tests/rewrite.ma b/helm/matita/tests/rewrite.ma
new file mode 100644 (file)
index 0000000..5bae95b
--- /dev/null
@@ -0,0 +1,9 @@
+alias id "nat" = "cic:/Coq/Init/Datatypes/nat.ind#xpointer(1/1)".
+alias num (instance 0) = "natural number".
+alias symbol "eq" (instance 0) = "leibnitz's equality".
+alias symbol "plus" (instance 0) = "natural plus".
+theorem a:
+  \forall a,b:nat.
+  a = b \to b + 0 = a.
+intro.
+rewrite left H.
\ No newline at end of file