Added the prlim command
authorpaulson
Fri, 17 Jan 1997 11:13:18 +0100
changeset 2514 ea8881e70f9c
parent 2513 d708d8cdc8e8
child 2515 6ff9bd353121
Added the prlim command
src/Pure/goals.ML
--- a/src/Pure/goals.ML	Fri Jan 17 11:09:19 1997 +0100
+++ b/src/Pure/goals.ML	Fri Jan 17 11:13:18 1997 +0100
@@ -42,6 +42,7 @@
   val goalw_cterm	: thm list -> cterm -> thm list
   val pop_proof		: unit -> thm list
   val pr		: unit -> unit
+  val prlim		: int -> unit
   val pr_latex		: unit -> unit
   val printgoal_latex	: int -> unit
   val premises		: unit -> thm list
@@ -287,10 +288,13 @@
 		   string_of_int level)
   end;
 
-(*Print the given level of the proof*)
+(*Print the given level of the proof; prlev ~1 prints previous level*)
 fun prlev n = apply_fun (print_top o pop o (chop_level n));
 fun pr () = apply_fun print_top;
 
+(*Set goals_limit and print again*)
+fun prlim n = (goals_limit:=n; pr());
+
 (** the goal.... commands
     Read main goal.  Set global variables curr_prems, curr_mkresult. 
     Initial subgoal and premises are rewritten using rths. **)