certify: ignore sort constraints of declarations (MAJOR CHANGE);
authorwenzelm
Thu, 13 Apr 2006 12:01:11 +0200
changeset 19433 c7a2b7a8c4cb
parent 19432 cae7cc072994
child 19434 87cbbe045ea5
certify: ignore sort constraints of declarations (MAJOR CHANGE);
src/Pure/consts.ML
--- a/src/Pure/consts.ML	Thu Apr 13 12:01:10 2006 +0200
+++ b/src/Pure/consts.ML	Thu Apr 13 12:01:11 2006 +0200
@@ -144,12 +144,12 @@
               val T' = Type.cert_typ tsig T;
               val ((U, kind), _) = the_const consts c;
             in
-              if not (Type.typ_instance tsig (T', U)) then
+              if not (Type.raw_instance (T', U)) then
                 err "Illegal type for constant" (c, T)
               else
                 (case (kind, expand_abbrevs) of
                   (Abbreviation u, true) =>
-                    Term.betapplys (Envir.expand_atom tsig T' (U, u) handle TYPE _ =>
+                    Term.betapplys (Envir.expand_atom T' (U, u) handle TYPE _ =>
                       err "Illegal type for abbreviation" (c, T), map cert args)
                 | _ => comb head)
             end