src/HOL/Tools/function_package/fundef_package.ML
changeset 25088 9a13ab12b174
parent 25045 12386aefe9ac
child 25169 b1ea9d2e6a72
--- a/src/HOL/Tools/function_package/fundef_package.ML	Thu Oct 18 17:38:45 2007 +0200
+++ b/src/HOL/Tools/function_package/fundef_package.ML	Thu Oct 18 17:44:30 2007 +0200
@@ -88,22 +88,9 @@
     end (* FIXME: Add cases for induct and cases thm *)
 
 
-fun prepare_spec prep fixspec eqnss lthy = (* FIXME: obsolete; use Specification.read/check_specification *)
-    let
-      val eqns = map (apsnd single) eqnss
-
-      val ((fixes, _), ctxt') = prep fixspec [] lthy             
-      fun prep_eqn e = the_single (snd (fst (prep [] [[e]] ctxt')))
-
-      val spec = map prep_eqn eqns
-                 |> map (apsnd (map (fn t => fold_rev (mk_forall o Free) (frees_in_term ctxt' t) t))) (* Add quantifiers *)
-    in
-      ((fixes, spec), ctxt')
-    end
-
 fun gen_add_fundef prep fixspec eqnss config flags lthy =
     let
-      val ((fixes, spec), ctxt') = prepare_spec prep fixspec eqnss lthy
+      val ((fixes, spec), ctxt') = prep fixspec (map (fn (n_a, eq) => [(n_a, [eq])]) eqnss) lthy
       val (eqs, post, sort_cont) = FundefCommon.get_preproc lthy config flags ctxt' fixes spec
 
       val defname = mk_defname fixes