]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambda_delta/ground_2/list.ma
- a caracterization of the top elements of the local evironment
[helm.git] / matita / matita / contribs / lambda_delta / ground_2 / list.ma
index 010c49f2bb9a2aeb6c29720dda4e58460b8e20f4..9a5ac0aeb4c7a45014829839d2e4e23f7d7f4c39 100644 (file)
@@ -26,7 +26,7 @@ interpretation "cons (list)" 'Cons hd tl = (cons ? hd tl).
 
 let rec all A (R:predicate A) (l:list A) on l ≝
   match l with
-  [ nil        ⇒ True
+  [ nil        ⇒ 
   | cons hd tl ⇒ R hd ∧ all A R tl
   ].
 
@@ -40,7 +40,7 @@ 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
 [ nil2           ⇒ l2
-| cons2 a1 a2 tl ⇒ {a1, a2} :: append2 A1 A2 tl l2
+| cons2 a1 a2 tl ⇒ {a1, a2} @ append2 A1 A2 tl l2
 ].
 
 interpretation "append (list of pairs)"