]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/ground_2/lib/list2.ma
- new syntax for let rec/corec with flavor specifier (tested on lambdadelta/ground_2/)
[helm.git] / matita / matita / contribs / lambdadelta / ground_2 / lib / list2.ma
index f730994456a9aa47a4552787b5f68e280e688a38..b9a7327de68e8173fb2714ffac490c30ee40fccf 100644 (file)
@@ -27,7 +27,7 @@ interpretation "nil (list of pairs)" 'Nil = (nil2 ? ?).
 
 interpretation "cons (list of pairs)" 'Cons hd1 hd2 tl = (cons2 ? ? hd1 hd2 tl).
 
-let rec append2 (A1,A2:Type[0]) (l1,l2:list2 A1 A2) on l1 ≝ match l1 with
+rec definition append2 (A1,A2:Type[0]) (l1,l2:list2 A1 A2) on l1 ≝ match l1 with
 [ nil2           ⇒ l2
 | cons2 a1 a2 tl ⇒ {a1, a2} @ append2 A1 A2 tl l2
 ].
@@ -35,7 +35,7 @@ let rec append2 (A1,A2:Type[0]) (l1,l2:list2 A1 A2) on l1 ≝ match l1 with
 interpretation "append (list of pairs)"
    'Append l1 l2 = (append2 ? ? l1 l2).
 
-let rec length2 (A1,A2:Type[0]) (l:list2 A1 A2) on l ≝ match l with
+rec definition length2 (A1,A2:Type[0]) (l:list2 A1 A2) on l ≝ match l with
 [ nil2        ⇒ 0
 | cons2 _ _ l ⇒ ⫯(length2 A1 A2 l)
 ].