# HG changeset patch # User wenzelm # Date 1120639301 -7200 # Node ID c28599f981f2fb7f35f5866fdc88d033fd1e0a23 # Parent 3a7eee8cc0ff17e2c2f33c9763e84d308bffd232 added adhoc string_of_term from Pure/term.ML; diff -r 3a7eee8cc0ff -r c28599f981f2 src/HOL/Tools/ATP/recon_translate_proof.ML --- 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)