X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2Fcontribs%2Flambda_delta%2Fground_2%2Flist.ma;h=9a5ac0aeb4c7a45014829839d2e4e23f7d7f4c39;hb=78d4844bcccb3deb58a3179151c3045298782b18;hp=010c49f2bb9a2aeb6c29720dda4e58460b8e20f4;hpb=a8c166f1e1baeeae04553058bd179420ada8bbe7;p=helm.git diff --git a/matita/matita/contribs/lambda_delta/ground_2/list.ma b/matita/matita/contribs/lambda_delta/ground_2/list.ma index 010c49f2b..9a5ac0aeb 100644 --- a/matita/matita/contribs/lambda_delta/ground_2/list.ma +++ b/matita/matita/contribs/lambda_delta/ground_2/list.ma @@ -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)"