tuned locale interface;
authorwenzelm
Fri, 14 Dec 2001 22:29:11 +0100
changeset 12511 901c6c477907
parent 12510 172d18ec3b54
child 12512 ab14b29dfc6d
tuned locale interface;
src/Pure/Isar/proof.ML
--- a/src/Pure/Isar/proof.ML	Fri Dec 14 22:28:52 2001 +0100
+++ b/src/Pure/Isar/proof.ML	Fri Dec 14 22:29:11 2001 +0100
@@ -652,14 +652,14 @@
 fun global_goal prepp prep_locale activate kind a raw_locale elems args thy =
   let
     val st = thy |> init_state |> open_block;
-    val (activate_locale, activate_elems) = activate (context_of st)
+    val (locale_ctxt, elems_ctxt) = context_of st |> activate
       ((case raw_locale of None => Locale.empty | Some (name, _) => Locale.Locale name), elems);
     val locale = apsome (apfst (prep_locale (Theory.sign_of thy))) raw_locale;
   in
     st
-    |> map_context activate_locale
+    |> map_context (K locale_ctxt)
     |> open_block
-    |> map_context activate_elems
+    |> map_context (K elems_ctxt)
     |> setup_goal I prepp ProofContext.fix_frees (Theorem (kind, a, locale, map (snd o fst) args))
       Seq.single (map (fst o fst) args) (map snd args)
   end;