locale interpretation command: after_qed;
authorwenzelm
Wed, 09 Aug 2006 00:12:37 +0200
changeset 20365 5fad57dfd7c9
parent 20364 f7e440f2eb2f
child 20366 867696dc64fc
locale interpretation command: after_qed;
src/Pure/Isar/isar_syn.ML
--- a/src/Pure/Isar/isar_syn.ML	Wed Aug 09 00:12:35 2006 +0200
+++ b/src/Pure/Isar/isar_syn.ML	Wed Aug 09 00:12:37 2006 +0200
@@ -360,16 +360,16 @@
   OuterSyntax.command "interpretation"
     "prove and register interpretation of locale expression in theory or locale" K.thy_goal
     (P.xname --| (P.$$$ "\\<subseteq>" || P.$$$ "<") -- P.!!! P.locale_expr
-      >> (Toplevel.print oo (Toplevel.theory_to_proof o Locale.interpretation_in_locale)) ||
-     P.opt_thm_name ":" -- P.locale_expr -- P.locale_insts >> (fn ((x, y), z) =>
-      Toplevel.print o Toplevel.theory_to_proof (Locale.interpretation x y z)));
+      >> (Toplevel.print oo (Toplevel.theory_to_proof o Locale.interpretation_in_locale I)) ||
+      P.opt_thm_name ":" -- P.locale_expr -- P.locale_insts >> (fn ((x, y), z) =>
+        Toplevel.print o Toplevel.theory_to_proof (Locale.interpretation I x y z)));
 
 val interpretP =
   OuterSyntax.command "interpret"
     "prove and register interpretation of locale expression in proof context"
     (K.tag_proof K.prf_goal)
     (P.opt_thm_name ":" -- P.locale_expr -- P.locale_insts >> (fn ((x, y), z) =>
-      Toplevel.print o Toplevel.proof' (Locale.interpret x y z)));
+      Toplevel.print o Toplevel.proof' (Locale.interpret Seq.single x y z)));