src/Pure/Isar/isar_thy.ML
changeset 15570 8d8c70b41bab
parent 15531 08c8dad8e399
child 15596 8665d08085df
--- a/src/Pure/Isar/isar_thy.ML	Thu Mar 03 09:22:35 2005 +0100
+++ b/src/Pure/Isar/isar_thy.ML	Thu Mar 03 12:43:01 2005 +0100
@@ -247,8 +247,8 @@
 
 fun declare_theorems opt_loc args = #1 o smart_theorems "" opt_loc [(("", []), args)];
 
-fun apply_theorems args = apsnd (flat o map snd) o theorems "" [(("", []), args)];
-fun apply_theorems_i args = apsnd (flat o map snd) o theorems_i "" [(("", []), args)];
+fun apply_theorems args = apsnd (List.concat o map snd) o theorems "" [(("", []), args)];
+fun apply_theorems_i args = apsnd (List.concat o map snd) o theorems_i "" [(("", []), args)];
 
 end;
 
@@ -304,7 +304,7 @@
 local
 
 fun prt_facts ctxt =
-  flat o (separate [Pretty.fbrk, Pretty.str "and "]) o
+  List.concat o (separate [Pretty.fbrk, Pretty.str "and "]) o
     map (single o ProofContext.pretty_fact ctxt);
 
 fun pretty_results ctxt ((kind, ""), facts) =
@@ -503,7 +503,7 @@
 fun proof''' f = Toplevel.proof' (f o cond_print_calc);
 
 fun gen_calc get f args prt state =
-  f (apsome (fn srcs => get srcs state) args) prt state;
+  f (Option.map (fn srcs => get srcs state) args) prt state;
 
 in