src/Pure/tactic.ML
changeset 12170 1433a9cdb55c
parent 12139 d51d50636332
child 12212 657ad5edeab6
equal deleted inserted replaced
12169:d4ed9802082a 12170:1433a9cdb55c
   633     val params = mapfilter (fn x => apsome (pair x) (assoc_string (frees, x))) xs;
   633     val params = mapfilter (fn x => apsome (pair x) (assoc_string (frees, x))) xs;
   634 
   634 
   635     fun err msg = error (msg ^ "\nThe error(s) above occurred for the goal statement:\n" ^
   635     fun err msg = error (msg ^ "\nThe error(s) above occurred for the goal statement:\n" ^
   636       Sign.string_of_term sign (Term.list_all_free (params, statement)));
   636       Sign.string_of_term sign (Term.list_all_free (params, statement)));
   637 
   637 
   638     fun cert_safe t = Thm.cterm_of sign t
   638     fun cert_safe t = Thm.cterm_of sign (Envir.beta_norm t)
   639       handle TERM (msg, _) => err msg | TYPE (msg, _, _) => err msg;
   639       handle TERM (msg, _) => err msg | TYPE (msg, _, _) => err msg;
   640 
   640 
   641     val _ = cert_safe statement;
   641     val _ = cert_safe statement;
   642     val _ = Term.no_dummy_patterns statement handle TERM (msg, _) => err msg;
   642     val _ = Term.no_dummy_patterns statement handle TERM (msg, _) => err msg;
   643 
   643