Skip to content

Commit

Permalink
[Logic] Add simplification rules for existential quantifier
Browse files Browse the repository at this point in the history
  • Loading branch information
TDacik committed Feb 19, 2025
1 parent e23f9ef commit 2d6f69e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/logics/BaseLogic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,11 @@ module Quantifiers = struct
mk_binder (Forall ranges) vars t

let mk_exists vars ?ranges t =
mk_binder (Exists ranges) vars t
if !do_simplification then match t with
| c when equal c Boolean.ff -> Boolean.ff
| c when equal c Boolean.tt -> Boolean.tt
| _ -> mk_binder (Exists ranges) vars t
else mk_binder (Exists ranges) vars t

let mk_exists' sorts constructor =
let binders = List.map (Variable.mk_fresh "e") sorts in
Expand Down

0 comments on commit 2d6f69e

Please sign in to comment.