equal
deleted
inserted
replaced
85 *) |
85 *) |
86 fun check_finished ctxt th = |
86 fun check_finished ctxt th = |
87 (case Thm.nprems_of th of |
87 (case Thm.nprems_of th of |
88 0 => th |
88 0 => th |
89 | n => raise THM ("Proof failed.\n" ^ |
89 | n => raise THM ("Proof failed.\n" ^ |
90 Pretty.string_of (Pretty.chunks |
90 Pretty.string_of (Goal_Display.pretty_goal {main = true, limit = false} ctxt th), 0, [th])); |
91 (Goal_Display.pretty_goals |
|
92 (ctxt |
|
93 |> Config.put Goal_Display.goals_limit n |
|
94 |> Config.put Goal_Display.show_main_goal true) th)) ^ |
|
95 "\n" ^ string_of_int n ^ " unsolved goal(s)!", 0, [th])); |
|
96 |
91 |
97 fun finish ctxt = check_finished ctxt #> conclude; |
92 fun finish ctxt = check_finished ctxt #> conclude; |
98 |
93 |
99 |
94 |
100 |
95 |