src/HOL/Tools/Function/function.ML
changeset 62958 b41c1cb5e251
parent 62774 cfcb20bbdbd8
child 62996 1c52ea2954f5
--- a/src/HOL/Tools/Function/function.ML	Tue Apr 12 13:49:37 2016 +0200
+++ b/src/HOL/Tools/Function/function.ML	Tue Apr 12 14:38:57 2016 +0200
@@ -80,11 +80,7 @@
 
 fun prepare_function do_print prep fixspec eqns config lthy =
   let
-    val ((fixes0, spec0), ctxt') =
-      lthy
-      |> Proof_Context.set_object_logic_constraint
-      |> prep fixspec eqns
-      ||> Proof_Context.restore_object_logic_constraint lthy;
+    val ((fixes0, spec0), ctxt') = prep fixspec eqns lthy;
     val fixes = map (apfst (apfst Binding.name_of)) fixes0;
     val spec = map (fn (bnd, prop) => (bnd, [prop])) spec0;
     val (eqs, post, sort_cont, cnames) = get_preproc lthy config ctxt' fixes spec