-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix getInterpolant when top-level substitutions are present (cvc5#11340)
This corrects a bug where our results for interpolation are wrong when top-level substitutions are present. In particular, since we apply top-level substitutions to the goal, these equalities must be conjoined with the interpolant we find. This bug was introduced here: cvc5#10252. However this also uncovers a further restriction: the conjoined equalities must satisfy the "shared variable" requirement of get-interpolant. This further refines the interpolation solver by only taking substitutions that satisfy this requirement, other top-level substitutions are re-asserted. Note that `--check-interpolants` also did not catch this issue since we were checking that the interpolant was valid *after* applying top-level substitutions. This PR also fixes this issue so that `--check-interpolants` checks the validity of interpolants on the original goal. A similar fix is applied for abduction (which however notice does not have the same complications with top-level substitutions). Fixes cvc5#11332.
- Loading branch information
Showing
9 changed files
with
119 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
; SCRUBBER: grep -v -E '(\(define-fun)' | ||
; EXIT: 0 | ||
(set-logic ALL) | ||
(set-option :produce-interpolants true) | ||
(declare-fun x () Int) | ||
(assert (= 0 x)) | ||
(get-interpolant A (= 0 x)) |