inductive_cases: crude parallelization via Par_List.map;
authorwenzelm
Mon, 26 Jul 2010 17:59:26 +0200
changeset 37957 00e848690339
parent 37956 ee939247b2fb
child 37975 a79abb22ca9c
inductive_cases: crude parallelization via Par_List.map;
src/HOL/Tools/inductive.ML
--- a/src/HOL/Tools/inductive.ML	Mon Jul 26 17:41:26 2010 +0200
+++ b/src/HOL/Tools/inductive.ML	Mon Jul 26 17:59:26 2010 +0200
@@ -522,9 +522,9 @@
 fun gen_inductive_cases prep_att prep_prop args lthy =
   let
     val thy = ProofContext.theory_of lthy;
-    val facts = args |> map (fn ((a, atts), props) =>
+    val facts = args |> Par_List.map (fn ((a, atts), props) =>
       ((a, map (prep_att thy) atts),
-        map (Thm.no_attributes o single o mk_cases lthy o prep_prop lthy) props));
+        Par_List.map (Thm.no_attributes o single o mk_cases lthy o prep_prop lthy) props));
   in lthy |> Local_Theory.notes facts |>> map snd end;
 
 val inductive_cases = gen_inductive_cases Attrib.intern_src Syntax.read_prop;