explicit close_derivation
authorhaftmann
Thu, 22 Oct 2009 14:43:59 +0200
changeset 33065 1cefea81ec4f
parent 33064 ba7ff3f9527a
child 33066 31e928d5653d
child 33069 d284306ea923
child 33075 f654dafa021e
child 33077 3c9cf88ec841
explicit close_derivation
src/Pure/axclass.ML
--- 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;