Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate potential bug in the filtering step of Dafny's trigger generation #5217

Open
keyboardDrummer opened this issue Mar 20, 2024 · 0 comments
Labels
during 2: compilation of correct program Dafny rejects a valid program during compilation kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: verifier Translation from Dafny to Boogie (translator) priority: not yet Will reconsider working on this when we're looking for work

Comments

@keyboardDrummer
Copy link
Member

keyboardDrummer commented Mar 20, 2024

The IsStrongerThan method seems wrong because it will consider P(G(x)) to be stronger than P(x). Indeed, the former matches on strictly fewer patterns than the latter, but it will also produce different instantiations for x, so in that sense it is not stronger.

To reproduce, use:

method Bar() {
  assert forall x :: P(x) && P(G(x));
}

function P(x: bool): bool
function G(x: bool): bool
@keyboardDrummer keyboardDrummer added kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: verifier Translation from Dafny to Boogie (translator) labels Mar 20, 2024
@keyboardDrummer keyboardDrummer added priority: not yet Will reconsider working on this when we're looking for work during 2: compilation of correct program Dafny rejects a valid program during compilation labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
during 2: compilation of correct program Dafny rejects a valid program during compilation kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: verifier Translation from Dafny to Boogie (translator) priority: not yet Will reconsider working on this when we're looking for work
Projects
None yet
Development

No branches or pull requests

1 participant