clarified implicit context;
authorwenzelm
Sun, 30 Aug 2015 17:32:36 +0200
changeset 61052 ed0a1067b1df
parent 61051 310cf33d5481
child 61053 62f3b4988277
clarified implicit context;
src/Pure/display.ML
--- a/src/Pure/display.ML	Sun Aug 30 15:43:13 2015 +0200
+++ b/src/Pure/display.ML	Sun Aug 30 17:32:36 2015 +0200
@@ -51,7 +51,9 @@
     val show_tags = Config.get ctxt show_tags;
     val show_hyps = Config.get ctxt show_hyps;
 
-    val th = Thm.strip_shyps raw_th handle Thm.CONTEXT _ => raw_th;
+    val th = raw_th
+      |> perhaps (try (Thm.transfer (Proof_Context.theory_of ctxt)))
+      |> perhaps (try Thm.strip_shyps);
 
     val hyps = if show_hyps then Thm.hyps_of th else Thm.undeclared_hyps (Context.Proof ctxt) th;
     val extra_shyps = Thm.extra_shyps th;