tuned
authornipkow
Tue, 10 Jan 2017 14:29:40 +0100
changeset 64862 2baa926a958d
parent 64861 9e8de30fd859
child 64869 a73ac9558220
tuned
src/Doc/Prog_Prove/Types_and_funs.thy
--- a/src/Doc/Prog_Prove/Types_and_funs.thy	Tue Jan 10 11:37:18 2017 +0100
+++ b/src/Doc/Prog_Prove/Types_and_funs.thy	Tue Jan 10 14:29:40 2017 +0100
@@ -218,9 +218,10 @@
 a function @{text "contents ::"} @{typ "'a tree \<Rightarrow> 'a list"}
 that collects all values in a tree in a list, in any order,
 without removing duplicates.
-Then define a function @{text "treesum ::"} @{typ "nat tree \<Rightarrow> nat"}
+Then define a function @{text "sum_tree ::"} @{typ "nat tree \<Rightarrow> nat"}
 that sums up all values in a tree of natural numbers
-and prove @{prop "treesum t = listsum(contents t)"}.
+and prove @{prop "sum_tree t = sum_list(contents t)"}
+(where @{const sum_list} is predefined).
 \end{exercise}
 
 \begin{exercise}