src/HOL/Tools/ATP/recon_transfer_proof.ML
changeset 15700 970e0293dfb3
parent 15697 681bcb7f0389
child 15739 bb2acfed8212
--- a/src/HOL/Tools/ATP/recon_transfer_proof.ML	Tue Apr 12 11:07:42 2005 +0200
+++ b/src/HOL/Tools/ATP/recon_transfer_proof.ML	Tue Apr 12 11:08:25 2005 +0200
@@ -149,8 +149,8 @@
                                       add_if_not_inlist ys xs (y::newlist)
                                         else add_if_not_inlist ys xs (newlist)
 
-fun onestr [] str = str
-|   onestr (x::xs) str = onestr xs (str^(concat x))
+(*Flattens a list of list of strings to one string*)
+fun onestr ls = String.concat (map String.concat ls);
 
 fun thmstrings [] str = str
 |   thmstrings (x::xs) str = thmstrings xs (str^(string_of_thm x))
@@ -159,11 +159,6 @@
 |   onelist (x::xs) newlist = onelist xs (newlist@x)
 
 
-
-val prop_of = #prop o rep_thm;
-
-
-
  fun get_axioms_used proof_steps thmstring = let 
                                              val  outfile = TextIO.openOut(File.sysify_path(File.tmp_path (Path.basic "foo_ax_thmstr")))                                                                      
                                              val _ = TextIO.output (outfile, thmstring)
@@ -194,11 +189,11 @@
                                            
                                             val metas_and_strs = zip  metas meta_strs
                                              val  outfile = TextIO.openOut(File.sysify_path(File.tmp_path (Path.basic "foo_clauses")));                                                                       
-                                             val _ = TextIO.output (outfile, (onestr ax_strs ""))
+                                             val _ = TextIO.output (outfile, onestr ax_strs)
                                              
                                              val _ =  TextIO.closeOut outfile
                                              val  outfile = TextIO.openOut(File.sysify_path(File.tmp_path (Path.basic "foo_metastrs")));                                                                       
-                                             val _ = TextIO.output (outfile, (onestr meta_strs ""))
+                                             val _ = TextIO.output (outfile, onestr meta_strs)
                                              val _ =  TextIO.closeOut outfile
 
                                             (* get list of axioms as thms with their variables *)