Term.str_of_term;
authorwenzelm
Fri, 07 Oct 2005 18:49:19 +0200
changeset 17776 4a518eec4a20
parent 17775 2679ba74411f
child 17777 05f5532a8289
Term.str_of_term;
src/HOL/Tools/ATP/recon_translate_proof.ML
--- a/src/HOL/Tools/ATP/recon_translate_proof.ML	Fri Oct 07 17:57:21 2005 +0200
+++ b/src/HOL/Tools/ATP/recon_translate_proof.ML	Fri Oct 07 18:49:19 2005 +0200
@@ -65,15 +65,7 @@
     (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 = string_of_term t
+fun lit_string_with_nums t = let val termstr = Term.str_of_term t
                                  val exp_term = explode termstr
                              in
                                  implode(List.filter is_alpha_space_digit_or_neg exp_term)