- Format.fprintf f " [%s]"
- (String.concat ", " (List.map string_of_int vars))
+ Format.fprintf f "@]@;[%s] by %s@]"
+ (String.concat ", " (List.map string_of_int vars))
+ (match proof with
+ | Terms.Exact _ -> "axiom"
+ | Terms.Step (rule, id1, id2, _, p, _) ->
+ Printf.sprintf "%s %d with %d at %s"
+ (string_of_rule rule)
+ id1 id2 (String.concat
+ "," (List.map string_of_int p)))
+;;
+
+let pp_bag ~formatter:f bag =
+ Format.fprintf f "@[<v>";
+ Terms.M.iter
+ (fun _ c -> pp_unit_clause ~formatter:f c;Format.fprintf f "@;") bag;
+ Format.fprintf f "@]"