src/HOL/Tools/Function/fun.ML
changeset 33726 0878aecbf119
parent 33671 4b0f2599ed48
child 33855 cd8acf137c9c
--- a/src/HOL/Tools/Function/fun.ML	Tue Nov 17 14:51:32 2009 +0100
+++ b/src/HOL/Tools/Function/fun.ML	Tue Nov 17 14:51:57 2009 +0100
@@ -151,15 +151,11 @@
   domintros=false, partials=false, tailrec=false }
 
 fun gen_fun add config fixes statements int lthy =
-  let val group = serial () in
-    lthy
-      |> Local_Theory.set_group group
-      |> add fixes statements config
-      |> by_pat_completeness_auto int
-      |> Local_Theory.restore
-      |> Local_Theory.set_group group
-      |> termination_by (Function_Common.get_termination_prover lthy) int
-  end;
+  lthy
+    |> add fixes statements config
+    |> by_pat_completeness_auto int
+    |> Local_Theory.restore
+    |> termination_by (Function_Common.get_termination_prover lthy) int
 
 val add_fun = gen_fun Function.add_function
 val add_fun_cmd = gen_fun Function.add_function_cmd