src/Pure/theory.ML
changeset 2979 db6941221197
parent 2693 8300bba275e3
child 3767 e2bb53d8dd26
equal deleted inserted replaced
2978:83a4c4f79dcd 2979:db6941221197
   167   else error "Illegal schematic variable(s) in term";
   167   else error "Illegal schematic variable(s) in term";
   168 
   168 
   169 fun cert_axm sg (name, raw_tm) =
   169 fun cert_axm sg (name, raw_tm) =
   170   let
   170   let
   171     val (t, T, _) = Sign.certify_term sg raw_tm
   171     val (t, T, _) = Sign.certify_term sg raw_tm
   172       handle TYPE arg => error (Sign.exn_type_msg sg arg)
   172       handle TYPE (msg, _, _) => error msg
   173 	   | TERM (msg, _) => error msg;
   173 	   | TERM (msg, _) => error msg;
   174   in
   174   in
   175     assert (T = propT) "Term not of type prop";
   175     assert (T = propT) "Term not of type prop";
   176     (name, no_vars t)
   176     (name, no_vars t)
   177   end
   177   end