simplified AxClass.add_axclass interface;
authorwenzelm
Mon, 10 Apr 2006 00:33:54 +0200
changeset 19395 edf92521e8d3
parent 19394 9f69613362c1
child 19396 0592ea0c68a0
simplified AxClass.add_axclass interface;
src/Pure/Tools/class_package.ML
--- a/src/Pure/Tools/class_package.ML	Mon Apr 10 00:33:53 2006 +0200
+++ b/src/Pure/Tools/class_package.ML	Mon Apr 10 00:33:54 2006 +0200
@@ -330,14 +330,11 @@
 fun add_axclass_i (name, supsort) axs thy =
   let
     fun rearrange_axioms ((name, atts), ts) =
-      map (rpair atts o pair "") ts
-  in
-    thy
-    |> AxClass.add_axclass_i (name, supsort)
-          ((Library.flat o map rearrange_axioms) axs)
-    |-> (fn { intro, axioms } =>
-              pair (Sign.full_name thy name, (intro, axioms)))
-  end;
+      map (rpair atts o pair "") ts;
+    val (c, thy') = thy
+      |> AxClass.add_axclass_i (name, supsort) ((Library.flat o map rearrange_axioms) axs);
+    val {intro, axioms, ...} = AxClass.get_info thy' c;
+  in ((c, (intro, axioms)), thy') end;
 
 fun prove_interpretation_i (prfx, atts) expr insts tac thy =
   let