src/Pure/axclass.ML
changeset 33065 1cefea81ec4f
parent 32966 5b21661fe618
child 33172 61ee96bc9895
--- a/src/Pure/axclass.ML	Thu Oct 22 14:08:01 2009 +0200
+++ b/src/Pure/axclass.ML	Thu Oct 22 14:43:59 2009 +0200
@@ -364,12 +364,11 @@
       |> filter_out (fn (const, _) => can (get_inst_param thy) (const, t))
       |> (map o apsnd o map_atyps) (K T);
     val _ = map (Sign.certify_sort thy) Ss = Ss orelse err ();
-    val th' = Drule.unconstrainTs th;
   in
     thy
     |> fold (snd oo declare_overloaded) missing_params
     |> Sign.primitive_arity (t, Ss, [c])
-    |> put_arity ((t, Ss, c), th')
+    |> put_arity ((t, Ss, c), Thm.close_derivation (Drule.unconstrainTs th))
   end;