src/HOL/Tools/res_atp.ML
changeset 32952 aeb1e44fbc19
parent 32866 1238cbb7c08f
child 32955 4a78daeb012b
--- a/src/HOL/Tools/res_atp.ML	Thu Oct 15 23:10:35 2009 +0200
+++ b/src/HOL/Tools/res_atp.ML	Thu Oct 15 23:28:10 2009 +0200
@@ -251,7 +251,7 @@
   let fun relevant ([],_) [] = [] : (thm * (string * int)) list  (*Nothing added this iteration*)
 	| relevant (newpairs,rejects) [] =
 	    let val (newrels,more_rejects) = take_best max_new newpairs
-		val new_consts = List.concat (map #2 newrels)
+		val new_consts = maps #2 newrels
 		val rel_consts' = List.foldl add_const_typ_table rel_consts new_consts
 		val newp = p + (1.0-p) / convergence
 	    in
@@ -425,7 +425,7 @@
 (* Type Classes Present in the Axiom or Conjecture Clauses     *)
 (***************************************************************)
 
-fun add_classes (sorts, cset) = List.foldl setinsert cset (List.concat sorts);
+fun add_classes (sorts, cset) = List.foldl setinsert cset (flat sorts);
 
 (*Remove this trivial type class*)
 fun delete_type cset = Symtab.delete_safe "HOL.type" cset;