eliminated duplicate fold1 -- beware of argument order!
authorwenzelm
Mon, 19 Oct 2009 23:02:23 +0200
changeset 33003 1c93cfa807bc
parent 33002 f3f02f36a3e2
child 33004 715566791eb0
eliminated duplicate fold1 -- beware of argument order!
src/HOL/Statespace/state_fun.ML
--- a/src/HOL/Statespace/state_fun.ML	Mon Oct 19 21:54:57 2009 +0200
+++ b/src/HOL/Statespace/state_fun.ML	Mon Oct 19 23:02:23 2009 +0200
@@ -157,8 +157,6 @@
       | _ => NONE ));
 
 
-fun foldl1 f (x::xs) = foldl f x xs;
-
 local
 val meta_ext = @{thm StateFun.meta_ext};
 val ss' = (HOL_ss addsimps
@@ -182,7 +180,7 @@
                in (Const ("Fun.comp",gT --> fT --> T)$g$f,T) end
 
              fun mk_comps fs = 
-                   foldl1 (fn ((f,fT),(g,gT)) => mk_comp f fT g gT) fs;
+                   foldl1 (fn ((f,fT),(g,gT)) => mk_comp g gT f fT) fs;
 
              fun append n c cT f fT d dT comps =
                (case AList.lookup (op aconv) comps n of