src/HOL/Tools/meson.ML
changeset 15736 1bb0399a9517
parent 15700 970e0293dfb3
child 15773 f14ae2432710
--- a/src/HOL/Tools/meson.ML	Fri Apr 15 12:00:00 2005 +0200
+++ b/src/HOL/Tools/meson.ML	Fri Apr 15 13:35:53 2005 +0200
@@ -84,12 +84,10 @@
 	| has _ = false
   in  has  end;
 
-(* for tracing statements *)
- 
-fun concat_with_and [] str = str
-|   concat_with_and (x::[]) str = str^" ("^x^")"
-|   concat_with_and (x::xs) str = (concat_with_and xs (str^"("^x^")"^" & "))
-
+(* for tracing: encloses each string element in brackets. *)
+fun concat_with_and [] = ""
+  | concat_with_and [x] = "(" ^ x ^ ")"
+  | concat_with_and (x::xs) = "(" ^ x ^ ")" ^ " & " ^ concat_with_and xs;
 
 
 (**** Clause handling ****)
@@ -326,7 +324,8 @@
 (*Make clauses from a list of theorems, previously Skolemized and put into nnf.
   The resulting clauses are HOL disjunctions.*)
 fun make_clauses ths =
-   ( (warning("in make_clauses ths are:"^(concat_with_and (map string_of_thm ths) ""))); sort_clauses (map (generalize o nodups) (foldr cnf [] ths)));
+   (warning("in make_clauses ths = " ^ concat_with_and (map string_of_thm ths)); 
+    sort_clauses (map (generalize o nodups) (foldr cnf [] ths)));
 
 (*Convert a list of clauses to (contrapositive) Horn clauses*)
 fun make_horns ths =