Skip to content

Commit eaa6faf

Browse files
committed
refactor: remove proof production entirely
1 parent e59de51 commit eaa6faf

32 files changed

+75
-1187
lines changed

src/backend/Dot.ml

Lines changed: 0 additions & 179 deletions
This file was deleted.

src/backend/Dot.mli

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/backend/backend_intf.ml

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/backend/dune

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/core/Actions.ml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ type t = actions
88
let[@inline] push_clause acts c = acts.act_push_clause c
99
let[@inline] level acts = acts.act_level ()
1010
let[@inline] propagate_bool_eval acts t b ~subs = acts.act_propagate_bool_eval t b ~subs
11-
let[@inline] propagate_bool_lemma acts t b c l = acts.act_propagate_bool_lemma t b c l
12-
let[@inline] raise_conflict acts atoms lemma = acts.act_raise_conflict atoms lemma
11+
let[@inline] propagate_bool_lemma acts t b c = acts.act_propagate_bool_lemma t b c
12+
let[@inline] raise_conflict acts atoms = acts.act_raise_conflict atoms
1313
let[@inline] on_backtrack acts f = acts.act_on_backtrack f
1414

15-
let[@inline] propagate_bool_lemma acts t b c l =
16-
acts.act_propagate_bool_lemma t b c l
17-

src/core/Actions.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ val propagate_bool_eval : t -> term -> bool -> subs:term list -> unit
2424
relevant (sub)terms [l]
2525
@param subs subterms used for the propagation *)
2626

27-
val propagate_bool_lemma : t -> term -> bool -> atom list -> lemma -> unit
27+
val propagate_bool_lemma : t -> term -> bool -> atom list -> unit
2828
(** [propagate_bool_lemma t b c] propagates the boolean literal [t]
2929
assigned to boolean value [b], explained by a valid theory
3030
lemma [c].
3131
Precondition: [c] is a tautology such that [c == (c' ∨ t=b)], where [c']
3232
is composed of atoms false in current model.
3333
*)
3434

35-
val raise_conflict : t -> atom list -> lemma -> 'a
35+
val raise_conflict : t -> atom list -> 'a
3636
(** Raise a conflict with the given clause, which must be false
3737
in the current trail, and with a lemma to explain *)
3838

src/core/Builtins.ml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,6 @@ let[@inline] is_builtin (t:term) = match Term.view t with
1414
| True | False -> true
1515
| _ -> false
1616

17-
let tcl =
18-
let tcl_pp out = function
19-
| L_tautology -> Fmt.string out "true_is_true"
20-
| _ -> assert false
21-
in
22-
{tcl_pp}
23-
24-
let lemma_trivial : lemma = Lemma.make L_tautology tcl
25-
2617
let build p_id Plugin.S_nil : Plugin.t =
2718
let module P = struct
2819
let id = p_id
@@ -36,10 +27,10 @@ let build p_id Plugin.S_nil : Plugin.t =
3627
(* on initialization, add clause [true] *)
3728
let init acts t = match Term.view t with
3829
| True ->
39-
let c_true = Clause.make [Term.Bool.pa t] (Lemma lemma_trivial) in
30+
let c_true = Clause.make [Term.Bool.pa t] ~lemma:false in
4031
Actions.push_clause acts c_true
4132
| False ->
42-
let c = Clause.make [Term.Bool.na t] (Lemma lemma_trivial) in
33+
let c = Clause.make [Term.Bool.na t] ~lemma:false in
4334
Actions.push_clause acts c
4435
| _ -> assert false
4536

0 commit comments

Comments
 (0)