src/Pure/goals.ML
changeset 18028 99a307bdfe15
parent 17987 f8b45ab11400
equal deleted inserted replaced
18027:09ab79d4e8e1 18028:99a307bdfe15
   379 fun simple_prove_goal_cterm G f =
   379 fun simple_prove_goal_cterm G f =
   380   let
   380   let
   381     val _ = warn_obsolete ();
   381     val _ = warn_obsolete ();
   382     val As = Drule.strip_imp_prems G;
   382     val As = Drule.strip_imp_prems G;
   383     val B = Drule.strip_imp_concl G;
   383     val B = Drule.strip_imp_concl G;
   384     val asms = map (Goal.norm_hhf_rule o assume) As;
   384     val asms = map (Goal.norm_hhf o Thm.assume) As;
   385     fun check NONE = error "prove_goal: tactic failed"
   385     fun check NONE = error "prove_goal: tactic failed"
   386       | check (SOME (thm, _)) = (case nprems_of thm of
   386       | check (SOME (thm, _)) = (case nprems_of thm of
   387             0 => thm
   387             0 => thm
   388           | i => !result_error_fn thm (string_of_int i ^ " unsolved goals!"))
   388           | i => !result_error_fn thm (string_of_int i ^ " unsolved goals!"))
   389   in
   389   in