proper theory_long_name;
authorwenzelm
Thu, 20 Apr 2023 12:23:41 +0200
changeset 77890 26d49c15bff0
parent 77889 5db014c36f42
child 77891 f4cd6e3b5075
proper theory_long_name;
src/Pure/global_theory.ML
src/Pure/proofterm.ML
--- a/src/Pure/global_theory.ML	Thu Apr 20 11:57:34 2023 +0200
+++ b/src/Pure/global_theory.ML	Thu Apr 20 12:23:41 2023 +0200
@@ -172,9 +172,9 @@
   let
     val theories =
       Symtab.build (Theory.nodes_of thy |> fold (fn thy' =>
-        Symtab.update (Context.theory_base_name thy', thy')));
+        Symtab.update (Context.theory_long_name thy', thy')));
     fun transfer th =
-      Thm.transfer (the_default thy (Symtab.lookup theories (Thm.theory_base_name th))) th;
+      Thm.transfer (the_default thy (Symtab.lookup theories (Thm.theory_long_name th))) th;
   in transfer end;
 
 fun all_thms_of thy verbose =
--- a/src/Pure/proofterm.ML	Thu Apr 20 11:57:34 2023 +0200
+++ b/src/Pure/proofterm.ML	Thu Apr 20 12:23:41 2023 +0200
@@ -2137,7 +2137,7 @@
 fun export_standard_enabled () = Options.default_bool "export_standard_proofs";
 
 fun export_proof_boxes_required thy =
-  Context.theory_base_name thy = Context.PureN orelse
+  Context.theory_long_name thy = Context.PureN orelse
     (export_enabled () andalso not (export_standard_enabled ()));
 
 fun export_proof_boxes bodies =