From fec8cd7d8677f99482a19b4b40de73ef252e8803 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Mon, 7 Nov 2005 10:20:57 +0000 Subject: [PATCH] added tail function --- helm/matita/library/list/list.ma | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 2.39.2