tuned print_state;
authorwenzelm
Sun, 29 Nov 1998 13:20:49 +0100
changeset 5993 d03fbef54c62
parent 5992 263051aaf0de
child 5994 7b84677315ed
tuned print_state; changed solve semantics: support back-pressure of asms (cut, def etc.);
src/Pure/Isar/proof.ML
--- a/src/Pure/Isar/proof.ML	Sun Nov 29 13:19:48 1998 +0100
+++ b/src/Pure/Isar/proof.ML	Sun Nov 29 13:20:49 1998 +0100
@@ -282,12 +282,12 @@
   in
     writeln ("Nesting level: " ^ string_of_int (length nodes div 1));	(* FIXME *)
     writeln "";
+    writeln (mode_name mode ^ " mode");
+    writeln "";
     ProofContext.print_context context;
     writeln "";
     print_facts facts;
-    print_goal (find_goal 0 state);
-    writeln "";
-    writeln (mode_name mode ^ " mode")
+    print_goal (find_goal 0 state)
   end;
 
 
@@ -406,7 +406,7 @@
 fun solve_goal rule state =
   let
     val (_, (result, (facts, thm))) = find_goal 0 state;
-    val thms' = FIRSTGOAL (solve_tac [rule]) thm;
+    val thms' = FIRSTGOAL (rtac rule THEN_ALL_NEW (TRY o assume_tac)) thm;
   in Seq.map (fn thm' => map_goal (K (result, (facts, thm'))) state) thms' end;