New test case: interpretation in named contexts is not persistent.
authorballarin
Tue, 03 Sep 2013 22:12:47 +0200
changeset 53367 1f383542226b
parent 53366 c8c548d83862
child 53368 92b9965f479d
New test case: interpretation in named contexts is not persistent.
src/FOL/ex/Locale_Test/Locale_Test1.thy
--- a/src/FOL/ex/Locale_Test/Locale_Test1.thy	Tue Sep 03 22:12:47 2013 +0200
+++ b/src/FOL/ex/Locale_Test/Locale_Test1.thy	Tue Sep 03 22:12:47 2013 +0200
@@ -768,6 +768,23 @@
 lemma (in roundup) "True & True <-> True" by (rule sub.true)
 
 
+section {* Interpretation in named contexts *}
+
+locale container
+begin
+interpretation private!: roundup True by unfold_locales rule
+lemmas true_copy = private.true
+end
+
+context container begin
+ML {* (Context.>> (fn generic => let val context = Context.proof_of generic
+  val _ = Proof_Context.get_thms context "private.true" in generic end);
+  error "thm private.true was persisted")
+  handle ERROR "Unknown fact \"private.true\"" => ([]:thm list); *}
+thm true_copy
+end
+
+
 section {* Interpretation in proofs *}
 
 lemma True