proper full name within the name space of the method definition;
authorwenzelm
Tue, 22 Dec 2015 17:14:35 +0100
changeset 61911 fe2b7f4276be
parent 61910 ae36547d3a30
child 61912 ad710de5c576
proper full name within the name space of the method definition;
src/HOL/Eisbach/method_closure.ML
--- a/src/HOL/Eisbach/method_closure.ML	Tue Dec 22 16:35:41 2015 +0100
+++ b/src/HOL/Eisbach/method_closure.ML	Tue Dec 22 17:14:35 2015 +0100
@@ -254,7 +254,6 @@
       |> add_fixes vars |-> fold_map Proof_Context.inferred_param |>> map Free;
 
     val (named_thms, modifiers) = map (check_attrib lthy2) (declares @ uses) |> split_list;
-    val method_name = Local_Theory.full_name lthy2 name;
     val method_names = map (Local_Theory.full_name lthy2) methods;
 
     fun parser args eval =
@@ -294,7 +293,7 @@
     |> Proof_Context.restore_naming lthy
     |> Method.local_setup name real_parser "(defined in Eisbach)"
     |> add_method name ((term_args', named_thms, method_names), text')
-    |> pair method_name
+    |> pair (Local_Theory.full_name lthy name)
   end;
 
 in