extra checkpoint to avoid stale theory in skip_proof context, e.g. in 'instance' proof;
authorwenzelm
Wed, 27 Mar 2013 20:57:05 +0100
changeset 51560 5b4ae2467830
parent 51559 320907e48a9e
child 51561 a1eb68bd9312
child 51562 5fffa75d2432
extra checkpoint to avoid stale theory in skip_proof context, e.g. in 'instance' proof;
src/Pure/Isar/toplevel.ML
--- a/src/Pure/Isar/toplevel.ML	Wed Mar 27 19:32:44 2013 +0100
+++ b/src/Pure/Isar/toplevel.ML	Wed Mar 27 20:57:05 2013 +0100
@@ -548,7 +548,7 @@
 
 fun theory_to_proof f = begin_proof
   (fn _ => fn gthy =>
-    (Context.Theory o Sign.reset_group o Proof_Context.theory_of,
+    (Context.Theory o Theory.checkpoint o Sign.reset_group o Proof_Context.theory_of,
       (case gthy of
         Context.Theory thy => f (Theory.checkpoint (Sign.new_group thy))
       | _ => raise UNDEF)));