src/HOL/Tools/BNF/bnf_gfp_rec_sugar.ML
changeset 59662 c875b71086a3
parent 59612 7ea413656b64
child 59673 b3bfbfc92a44
--- a/src/HOL/Tools/BNF/bnf_gfp_rec_sugar.ML	Mon Mar 09 21:30:42 2015 +0100
+++ b/src/HOL/Tools/BNF/bnf_gfp_rec_sugar.ML	Tue Mar 10 09:49:16 2015 +0100
@@ -1052,14 +1052,10 @@
         (tag_list 0 (map snd specs)) of_specs_opt []
       |> flat o fst;
 
-    val _ =
-      let
-        val missing = fun_names
-          |> filter (map (fn Disc x => #fun_name x | Sel x => #fun_name x) eqns_data
-            |> not oo member (op =));
-      in
-        null missing orelse error ("Missing equations for " ^ commas missing)
-      end;
+    val missing = fun_names
+      |> filter (map (fn Disc x => #fun_name x | Sel x => #fun_name x) eqns_data
+        |> not oo member (op =));
+    val _ = null missing orelse error ("Missing equations for " ^ commas missing);
 
     val callssss =
       map_filter (try (fn Sel x => x)) eqns_data