tuning
authorblanchet
Fri, 13 Sep 2013 19:38:09 +0200
changeset 53622 f06b4f0723bb
parent 53621 9c3a80af72ff
child 53623 501e2091182b
tuning
src/HOL/BNF/Examples/Misc_Primrec.thy
--- a/src/HOL/BNF/Examples/Misc_Primrec.thy	Fri Sep 13 19:37:32 2013 +0200
+++ b/src/HOL/BNF/Examples/Misc_Primrec.thy	Fri Sep 13 19:38:09 2013 +0200
@@ -71,7 +71,7 @@
   "mylist_of_forest (FCons t ts) = MyCons t (mylist_of_forest ts)"
 
 definition frev :: "'a forest \<Rightarrow> 'a forest" where
-  "frev = forest_of_mylist o myrev o mylist_of_forest"
+  "frev = forest_of_mylist \<circ> myrev \<circ> mylist_of_forest"
 
 primrec_new
   mirror_tree :: "'a tree \<Rightarrow> 'a tree" and
@@ -105,10 +105,10 @@
 
 primrec_new map_ftreeA :: "('a \<Rightarrow> 'a) \<Rightarrow> 'a ftree \<Rightarrow> 'a ftree" where
   "map_ftreeA f (FTLeaf x) = FTLeaf (f x)" |
-  "map_ftreeA f (FTNode g) = FTNode (map_ftreeA f o g)"
+  "map_ftreeA f (FTNode g) = FTNode (map_ftreeA f \<circ> g)"
 
 primrec_new map_ftreeB :: "('a \<Rightarrow> 'b) \<Rightarrow> 'a ftree \<Rightarrow> 'b ftree" where
   "map_ftreeB f (FTLeaf x) = FTLeaf (f x)" |
-  "map_ftreeB f (FTNode g) = FTNode (map_ftreeB f o g o the_inv f)"
+  "map_ftreeB f (FTNode g) = FTNode (map_ftreeB f \<circ> g \<circ> the_inv f)"
 
 end