discontinued empty name bindings in 'axiomatization';
authorwenzelm
Thu, 28 Feb 2013 17:38:35 +0100
changeset 51316 dfe469293eb4
parent 51315 536a5603a138
child 51317 0e70cc4e94e8
discontinued empty name bindings in 'axiomatization';
NEWS
src/Pure/more_thm.ML
--- a/NEWS	Thu Feb 28 17:14:55 2013 +0100
+++ b/NEWS	Thu Feb 28 17:38:35 2013 +0100
@@ -20,6 +20,9 @@
 legacy since Isabelle2009-2.  INCOMPATIBILITY, use 'axiomatization'
 instead, while observing its uniform scope for polymorphism.
 
+* Discontinued empty name bindings in 'axiomatization'.
+INCOMPATIBILITY.
+
 
 *** HOL ***
 
--- a/src/Pure/more_thm.ML	Thu Feb 28 17:14:55 2013 +0100
+++ b/src/Pure/more_thm.ML	Thu Feb 28 17:38:35 2013 +0100
@@ -351,16 +351,14 @@
 
 fun add_axiom ctxt (b, prop) thy =
   let
-    val b' = if Binding.is_empty b then Binding.name ("unnamed_axiom_" ^ serial_string ()) else b;
-
     val _ = Sign.no_vars ctxt prop;
     val (strip, recover, prop') = stripped_sorts thy prop;
     val constraints = map (fn (TFree (_, S), T) => (T, S)) strip;
     val of_sorts = maps (fn (T as TFree (_, S), _) => of_sort (Thm.ctyp_of thy T, S)) strip;
 
     val thy' = thy
-      |> Theory.add_axiom ctxt (b', Logic.list_implies (maps Logic.mk_of_sort constraints, prop'));
-    val axm_name = Sign.full_name thy' b';
+      |> Theory.add_axiom ctxt (b, Logic.list_implies (maps Logic.mk_of_sort constraints, prop'));
+    val axm_name = Sign.full_name thy' b;
     val axm' = Thm.axiom thy' axm_name;
     val thm =
       Thm.instantiate (recover, []) axm'