src/HOL/Tools/res_hol_clause.ML
changeset 33042 ddf1f03a9ad9
parent 33039 5018f6a76b3f
child 33311 49cd8abb2863
--- a/src/HOL/Tools/res_hol_clause.ML	Wed Oct 21 12:02:19 2009 +0200
+++ b/src/HOL/Tools/res_hol_clause.ML	Wed Oct 21 12:02:56 2009 +0200
@@ -155,7 +155,7 @@
   | combterm_of dfg thy (P $ Q) =
       let val (P',tsP) = combterm_of dfg thy P
           val (Q',tsQ) = combterm_of dfg thy Q
-      in  (CombApp(P',Q'), union (op =) (tsP, tsQ))  end
+      in  (CombApp(P',Q'), union (op =) tsP tsQ)  end
   | combterm_of _ _ (t as Abs _) = raise RC.CLAUSE ("HOL CLAUSE", t);
 
 fun predicate_of dfg thy ((Const("Not",_) $ P), polarity) = predicate_of dfg thy (P, not polarity)
@@ -167,7 +167,7 @@
   | literals_of_term1 dfg thy (lits,ts) P =
       let val ((pred,ts'),pol) = predicate_of dfg thy (P,true)
       in
-          (Literal(pol,pred)::lits, union (op =) (ts, ts'))
+          (Literal(pol,pred)::lits, union (op =) ts ts')
       end;
 
 fun literals_of_term_dfg dfg thy P = literals_of_term1 dfg thy ([],[]) P;
@@ -476,7 +476,7 @@
     val (cma, cnh) = count_constants clauses
     val params = (t_full, cma, cnh)
     val (tptp_clss,tfree_litss) = ListPair.unzip (map (clause2tptp params) conjectures)
-    val tfree_clss = map RC.tptp_tfree_clause (List.foldl (union (op =)) [] tfree_litss)
+    val tfree_clss = map RC.tptp_tfree_clause (List.foldl (uncurry (union (op =))) [] tfree_litss)
     val _ =
       File.write_list file (
         map (#1 o (clause2tptp params)) axclauses @