From b3bab2595bed1c47b0253b3ee27f70957977fa37 Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Tue, 15 Apr 2008 10:47:29 +0000 Subject: [PATCH] added sample of guarded by in which coq is stronger --- .../tests/fix_che_non_passa_ma_dovrebbe.ma | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 helm/software/matita/tests/fix_che_non_passa_ma_dovrebbe.ma diff --git a/helm/software/matita/tests/fix_che_non_passa_ma_dovrebbe.ma b/helm/software/matita/tests/fix_che_non_passa_ma_dovrebbe.ma new file mode 100644 index 000000000..54c44262b --- /dev/null +++ b/helm/software/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 -- 2.39.2