1 (**************************************************************************)
4 (* ||A|| A project by Andrea Asperti *)
6 (* ||I|| Developers: *)
7 (* ||T|| The HELM team. *)
8 (* ||A|| http://helm.cs.unibo.it *)
10 (* \ / This file is distributed under the terms of the *)
11 (* v GNU General Public License Version 2 *)
13 (**************************************************************************)
16 include "list/list.ma".
18 let rec cazzo (l:list nat) (f:list nat -> nat -> nat) (x:nat) on l :=
19 match l with [ nil => x
20 | cons hd tl => cazzo tl f (f tl x)].
22 let rec f (l:list nat) (x:nat) on l :=
25 | cons hd tl => cazzo tl f x].