proper restore_naming after global qed, which is important to make Name_Space.transform_naming work properly, e.g. for "private typedef";
--- a/src/Pure/Isar/proof.ML Thu Sep 03 17:32:18 2015 +0200
+++ b/src/Pure/Isar/proof.ML Thu Sep 03 19:27:45 2015 +0200
@@ -1083,8 +1083,9 @@
val goal_ctxt = ctxt
|> (fold o fold) Variable.auto_fixes propss
|> fold Variable.bind_term binds;
- fun after_qed' (result_ctxt, results) ctxt' =
- after_qed (burrow (Proof_Context.export result_ctxt ctxt') results) ctxt';
+ fun after_qed' (result_ctxt, results) ctxt' = ctxt'
+ |> Proof_Context.restore_naming ctxt
+ |> after_qed (burrow (Proof_Context.export result_ctxt ctxt') results);
in
ctxt
|> init