From: Stefano Zacchiroli Date: Mon, 7 Nov 2005 10:20:57 +0000 (+0000) Subject: added tail function X-Git-Tag: V_0_7_2_3~122 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=fec8cd7d8677f99482a19b4b40de73ef252e8803;p=helm.git added tail function --- diff --git a/helm/matita/library/list/list.ma b/helm/matita/library/list/list.ma index 72637c357..d5664f416 100644 --- a/helm/matita/library/list/list.ma +++ b/helm/matita/library/list/list.ma @@ -56,6 +56,11 @@ let rec append A (l1: list A) l2 on l1 := [ nil => l2 | (cons hd tl) => hd :: append A tl l2 ]. +definition tail := \lambda A:Set. \lambda l: list A. + match l with + [ nil => [] + | (cons hd tl) => tl]. + interpretation "append" 'append l1 l2 = (cic:/matita/list/append.con _ l1 l2). theorem append_nil: \forall A:Set.\forall l:list A.l @ [] = l.