merged
authornipkow
Tue, 17 Aug 2010 12:49:43 +0200
changeset 38453 6e7f8121b4f7
parent 38451 4c065e97ecee (current diff)
parent 38452 abc655166d61 (diff)
child 38457 b8760b6e7c65
merged
--- a/src/Provers/quantifier1.ML	Tue Aug 17 12:30:31 2010 +0200
+++ b/src/Provers/quantifier1.ML	Tue Aug 17 12:49:43 2010 +0200
@@ -113,8 +113,13 @@
   in exqu [] end;
 
 fun prove_conv tac thy tu =
-  Goal.prove (ProofContext.init_global thy) [] [] (Logic.mk_equals tu)
-    (K (rtac iff_reflection 1 THEN tac));
+  let val ctxt = ProofContext.init_global thy;
+      val eq_tu = Logic.mk_equals tu;
+      val ([fixed_goal], ctxt') = Variable.import_terms true [eq_tu] ctxt;
+      val thm = Goal.prove ctxt' [] [] fixed_goal
+            (K (rtac iff_reflection 1 THEN tac));
+      val [gen_thm] = Variable.export ctxt' ctxt [thm];
+  in gen_thm end;
 
 fun qcomm_tac qcomm qI i = REPEAT_DETERM (rtac qcomm i THEN rtac qI i)