re-enable fact index for 'obtains' assumption (amending 5c8e6a751adc);
authorwenzelm
Sat, 14 May 2016 22:00:44 +0200
changeset 63096 7910b1db2596
parent 63095 201480e65b7d
child 63097 ee8edbcbb4ad
re-enable fact index for 'obtains' assumption (amending 5c8e6a751adc);
src/Pure/Isar/specification.ML
--- a/src/Pure/Isar/specification.ML	Sat May 14 19:59:43 2016 +0200
+++ b/src/Pure/Isar/specification.ML	Sat May 14 22:00:44 2016 +0200
@@ -376,7 +376,9 @@
                   [((name, [Context_Rules.intro_query NONE]), asm)]) stmt;
           val that = Assumption.local_prems_of asms_ctxt stmt_ctxt;
           val ([(_, that')], that_ctxt) = asms_ctxt
-            |> Proof_Context.note_thmss "" [((Binding.name Auto_Bind.thatN, []), [(that, [])])];
+            |> Proof_Context.set_stmt true
+            |> Proof_Context.note_thmss "" [((Binding.name Auto_Bind.thatN, []), [(that, [])])]
+            ||> Proof_Context.restore_stmt asms_ctxt;
 
           val stmt' = [((Binding.empty, []), [(#2 (#1 (Obtain.obtain_thesis ctxt)), [])])];
         in ((Obtain.obtains_attribs raw_obtains, prems, stmt', SOME that'), that_ctxt) end)