theorem: added local_theory version;
authorwenzelm
Sat, 14 Oct 2006 23:25:51 +0200
changeset 21033 82f44ceb4fa3
parent 21032 a4b85340d6bd
child 21034 99697a1597b2
theorem: added local_theory version;
src/Pure/Isar/isar_syn.ML
--- a/src/Pure/Isar/isar_syn.ML	Sat Oct 14 23:25:51 2006 +0200
+++ b/src/Pure/Isar/isar_syn.ML	Sat Oct 14 23:25:51 2006 +0200
@@ -386,8 +386,11 @@
   OuterSyntax.command kind ("state " ^ kind) K.thy_goal
     (P.opt_locale_target -- Scan.optional (P.opt_thm_name ":" --|
       Scan.ahead (P.locale_keyword || P.statement_keyword)) ("", []) --
-      P.general_statement >> (fn ((x, y), (z, w)) =>
-      (Toplevel.print o Toplevel.theory_to_proof (Locale.smart_theorem kind x y z w))));
+      P.general_statement >> (fn ((loc, a), (elems, concl)) =>
+      (Toplevel.print o
+       Toplevel.local_theory_to_proof loc
+         (Specification.theorem kind NONE (K I) a elems concl) o
+       Toplevel.theory_to_proof (Locale.smart_theorem kind loc a elems concl))));
 
 val theoremP = gen_theorem PureThy.theoremK;
 val lemmaP = gen_theorem PureThy.lemmaK;