]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground_2/lib/list.ma
- new syntax for let rec/corec with flavor specifier (tested on lambdadelta/ground_2/)
[helm.git] / matita / matita / contribs / lambdadelta / ground_2 / lib / list.ma
index 9e8d1ff4136e27778c44778e6e44b27bc2586562..baa9179e911dfd49ebd32ec57c2a638068c23369 100644 (file)
@@ -26,7 +26,7 @@ interpretation "nil (list)" 'Nil = (nil ?).
 
 interpretation "cons (list)" 'Cons hd tl = (cons ? hd tl).
 
-let rec length (A:Type[0]) (l:list A) on l ≝ match l with
+rec definition length (A:Type[0]) (l:list A) on l ≝ match l with
 [ nil      ⇒ 0
 | cons _ l ⇒ ⫯(length A l)
 ].
@@ -34,7 +34,7 @@ let rec length (A:Type[0]) (l:list A) on l ≝ match l with
 interpretation "length (list)"
    'card l = (length ? l).
 
-let rec all A (R:predicate A) (l:list A) on l ≝
+rec definition all A (R:predicate A) (l:list A) on l ≝
   match l with
   [ nil        ⇒ ⊤
   | cons hd tl ⇒ R hd ∧ all A R tl