simplify code
authorblanchet
Mon, 26 Jul 2010 17:26:02 +0200
changeset 37999 12a559b5c550
parent 37998 f1b7fb87f523
child 38000 c0b9efa8bfca
simplify code
src/HOL/Tools/ATP_Manager/atp_systems.ML
--- a/src/HOL/Tools/ATP_Manager/atp_systems.ML	Mon Jul 26 17:22:39 2010 +0200
+++ b/src/HOL/Tools/ATP_Manager/atp_systems.ML	Mon Jul 26 17:26:02 2010 +0200
@@ -171,13 +171,9 @@
 
 fun make_axiom_clauses thy clauses = fold_rev (add_axiom_clause thy) clauses []
 
-fun make_conjecture_clauses thy =
-  let
-    (* ### FIXME: kill "aux" *)
-    fun aux _ [] = []
-      | aux n (t :: ts) =
-        make_clause thy (n, "conjecture", Conjecture, t) :: aux (n + 1) ts
-  in aux 0 end
+fun make_conjecture_clauses thy ts =
+  map2 (fn j => fn t => make_clause thy (j, "conjecture", Conjecture, t))
+       (0 upto length ts - 1) ts
 
 (** Helper clauses **)