X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Ftests%2Ffirst.ma;h=4fca7b1999664dc66b24e92e1184cc08b681ebe2;hb=97c2d258a5c524eb5c4b85208899d80751a2c82f;hp=d75f372cea9d75bd4a8cccf3f99b14b8771305eb;hpb=ebc063e65d908c9f35619c92454dbbe76bdabd40;p=helm.git diff --git a/helm/matita/tests/first.ma b/helm/matita/tests/first.ma index d75f372ce..4fca7b199 100644 --- a/helm/matita/tests/first.ma +++ b/helm/matita/tests/first.ma @@ -1,3 +1,17 @@ +(**************************************************************************) +(* ___ *) +(* ||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/first/". inductive nat : Set \def @@ -10,11 +24,9 @@ inductive eq (A:Set): A \to A \to Prop \def inductive list (A:Set) : Set \def | nil : list A | cons : A \to list A \to list A. -alias symbol "cast" (instance 0) = "type cast". let rec list_len (A:Set) (l:list A) on l \def - [\lambda x.nat] - match (l:list A) with + match l with [ nil \Rightarrow O | (cons a tl) \Rightarrow S (list_len A tl)].