'write': actually observe the proof structure (like 'let' or 'fix');
authorwenzelm
Thu, 29 Apr 2010 17:29:53 +0200
changeset 36507 c966a1aab860
parent 36506 6b56e679d9ff
child 36508 03d2a2d0ee4a
'write': actually observe the proof structure (like 'let' or 'fix');
src/Pure/Isar/proof.ML
--- a/src/Pure/Isar/proof.ML	Thu Apr 29 17:15:23 2010 +0200
+++ b/src/Pure/Isar/proof.ML	Thu Apr 29 17:29:53 2010 +0200
@@ -545,8 +545,10 @@
 
 local
 
-fun gen_write prep_arg mode args = map_context (fn ctxt =>
-  ctxt |> ProofContext.notation true mode (map (prep_arg ctxt) args));
+fun gen_write prep_arg mode args =
+  assert_forward
+  #> map_context (fn ctxt => ctxt |> ProofContext.notation true mode (map (prep_arg ctxt) args))
+  #> put_facts NONE;
 
 in