3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-05 06:46:11 +00:00

Fix MBP QEL soundness bug in datatype accessor elimination (#9571) (#9692)

Two fixes for mbp_dt_tg::apply() when encountering an accessor whose
argument has a different constructor in the model:

1. Don't call rm_accessor (which would assert a contradictory
recognizer, making the formula false). This prevents the original bug
where QEL returned 'false' for satisfiable formulas.

2. Branch on the model-assigned constructor for the accessor's argument.

The correct output should include the literal introduced in (2).
However, this fix does not produce it. Spacer is sound with this
over-approximation, as long as the counter example does not depend on
value of mismatched accessors (e.g. (tl nil)).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Hari Govind V K 2026-06-03 15:23:21 +01:00 committed by GitHub
parent a0a3047e36
commit 922f49e187
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 270 additions and 0 deletions

View file

@ -115,6 +115,7 @@ add_executable(test-z3
prime_generator.cpp
proof_checker.cpp
qe_arith.cpp
mbp_qel.cpp
quant_elim.cpp
quant_solve.cpp
random.cpp