src/Pure/goal.ML
changeset 76051 854e9223767f
parent 76047 f244926013e5
child 76062 f1d758690222
equal deleted inserted replaced
76050:f1dc3d9d5164 76051:854e9223767f
    78   --- (finish)
    78   --- (finish)
    79    C
    79    C
    80 *)
    80 *)
    81 fun check_finished ctxt th =
    81 fun check_finished ctxt th =
    82   if Thm.no_prems th then th
    82   if Thm.no_prems th then th
    83   else
    83   else raise THM ("Proof failed.\n" ^ Goal_Display.string_of_goal ctxt th, 0, [th]);
    84     raise THM ("Proof failed.\n" ^ Pretty.string_of (Goal_Display.pretty_goal ctxt th), 0, [th]);
       
    85 
    84 
    86 fun finish ctxt = check_finished ctxt #> conclude;
    85 fun finish ctxt = check_finished ctxt #> conclude;
    87 
    86 
    88 
    87 
    89 
    88