TFL/post.ML
changeset 19927 9286e99b2808
parent 19925 3f9341831812
child 20061 2b142bfb162a
--- a/TFL/post.ML	Mon Jun 19 20:21:32 2006 +0200
+++ b/TFL/post.ML	Mon Jun 19 22:06:36 2006 +0200
@@ -170,9 +170,7 @@
   | tracing false msg = writeln msg;
 
 fun simplify_defn strict thy cs ss congs wfs id pats def0 =
-   let
-       val ([def1], _) = Variable.importT [def0] (Variable.thm_context def0);
-       val def = def1 RS meta_eq_to_obj_eq;
+   let val def = Thm.freezeT def0 RS meta_eq_to_obj_eq
        val {theory,rules,rows,TCs,full_pats_TCs} =
            Prim.post_definition congs (thy, (def,pats))
        val {lhs=f,rhs} = S.dest_eq (concl def)