X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=matita%2Ftests%2Ffix_che_non_passa_ma_dovrebbe.ma;fp=matita%2Ftests%2Ffix_che_non_passa_ma_dovrebbe.ma;h=54c44262b28b7d6e8c2dcfe974df9d27108b0754;hp=0000000000000000000000000000000000000000;hb=f61af501fb4608cc4fb062a0864c774e677f0d76;hpb=58ae1809c352e71e7b5530dc41e2bfc834e1aef1 diff --git a/matita/tests/fix_che_non_passa_ma_dovrebbe.ma b/matita/tests/fix_che_non_passa_ma_dovrebbe.ma new file mode 100644 index 000000000..54c44262b --- /dev/null +++ b/matita/tests/fix_che_non_passa_ma_dovrebbe.ma @@ -0,0 +1,25 @@ +(**************************************************************************) +(* ___ *) +(* ||M|| *) +(* ||A|| A project by Andrea Asperti *) +(* ||T|| *) +(* ||I|| Developers: *) +(* ||T|| The HELM team. *) +(* ||A|| http://helm.cs.unibo.it *) +(* \ / *) +(* \ / This file is distributed under the terms of the *) +(* v GNU General Public License Version 2 *) +(* *) +(**************************************************************************) + +include "nat/nat.ma". +include "list/list.ma". + +let rec cazzo (l:list nat) (f:list nat -> nat -> nat) (x:nat) on l := + match l with [ nil => x + | cons hd tl => cazzo tl f (f tl x)]. + +let rec f (l:list nat) (x:nat) on l := + match l with + [ nil => x + | cons hd tl => cazzo tl f x]. \ No newline at end of file