-
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.
Downgrade the required use of fresh-binder to a warning (cvc5#11256)
This makes us introduce a fresh variable when fresh-binders is false in the rare case where we have a let-term that induces a capturing substitution. This happens for inputs like `(forall ((x Int)) (let ((y x)) (forall ((x Int)) (P y))`. This behavior was introduced in cvc5#11079, and actually causes several errors to be caught and thrown in SMT-LIB, which are now warnings after this PR. As a consequence of this PR, when this warning is thrown: - Proof reference checking will fail unless this behavior is modelled upstream in the proof checkers, - The parser is not deterministic since it resorts to constructing a fresh variable for the inner quantified formula. Note that the latter does not really impact applications e.g. distributed solving which rely on sharing quantified lemmas since the quantified formulas we share will have resolved issues with variable shadowing. --------- Co-authored-by: Aina Niemetz <[email protected]>
- Loading branch information
Showing
2 changed files
with
48 additions
and
27 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
6 changes: 3 additions & 3 deletions
6
test/regress/cli/regress0/quantifiers/issue11066-fresh-binders-err.smt2
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