--- a/src/HOL/Tools/ATP/recon_translate_proof.ML Wed Jul 06 10:41:40 2005 +0200
+++ b/src/HOL/Tools/ATP/recon_translate_proof.ML Wed Jul 06 10:41:41 2005 +0200
@@ -66,8 +66,15 @@
(ch = "~") orelse (ReconOrderClauses.is_alpha ch) orelse
(ReconOrderClauses.is_digit ch) orelse ( ch = " ");
+fun string_of_term (Const(s,_)) = s
+ | string_of_term (Free(s,_)) = s
+ | string_of_term (Var(ix,_)) = Term.string_of_vname ix
+ | string_of_term (Bound i) = string_of_int i
+ | string_of_term (Abs(x,_,t)) = "%" ^ x ^ ". " ^ string_of_term t
+ | string_of_term (s $ t) =
+ "(" ^ string_of_term s ^ " " ^ string_of_term t ^ ")"
-fun lit_string_with_nums t = let val termstr = Term.string_of_term t
+fun lit_string_with_nums t = let val termstr = string_of_term t
val exp_term = explode termstr
in
implode(List.filter is_alpha_space_digit_or_neg exp_term)