Skip to content

feat(PBV): improve goal state for better error messages - #1488

Merged
luigirinaldi merged 4 commits into
mainfrom
luigirinaldi/bpbv-debug
Sep 23, 2026
Merged

luigirinaldi merged 4 commits into
mainfrom
luigirinaldi/bpbv-debug

Conversation

@luigirinaldi

Copy link
Copy Markdown
Contributor

Remove reference to maskOfWidth n in the generated goal state. If all operations were correctly translated and bv_decide finds a counterexample there are no longer any "unsupported expressions abstracted as opaque variables".

  • Redefine var_elim to not have maskOfWidth in the statement
  • Rewrite maskOfWidths in the context by adding the hypothesis in the simp set
  • Add a pass to clear out hypothesis that are no longer needed

@luigirinaldi
luigirinaldi added this pull request to stack #1484 September 17, 2026 21:38
@luigirinaldi
luigirinaldi force-pushed the luigirinaldi/bpbv-debug branch from e51badd to 68d05ba Compare September 17, 2026 22:08
@luigirinaldi
luigirinaldi marked this pull request as ready for review September 17, 2026 22:08
Comment thread UnitTest/BoundedBitblasting/BoundedBitblasting.lean Outdated
Base automatically changed from luigirinaldi/bpbv-width-lit to main September 21, 2026 10:01
@luigirinaldi
luigirinaldi force-pushed the luigirinaldi/bpbv-debug branch 2 times, most recently from 4db4444 to 4b85a8b Compare September 21, 2026 13:27
@luigirinaldi
luigirinaldi force-pushed the luigirinaldi/bpbv-debug branch from 4b85a8b to bfb8b56 Compare September 21, 2026 13:32

@naveen-seth naveen-seth left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a small comment

Comment thread Veir/Data/PBV/Elim.lean Outdated
@luigirinaldi
luigirinaldi force-pushed the luigirinaldi/bpbv-debug branch from bfb8b56 to 64f3f3f Compare September 23, 2026 16:36
@luigirinaldi
luigirinaldi added this pull request to the merge queue Sep 23, 2026
Merged via the queue into main with commit 25d476c Sep 23, 2026
6 checks passed
@luigirinaldi
luigirinaldi deleted the luigirinaldi/bpbv-debug branch September 23, 2026 16:51
tobiasgrosser pushed a commit that referenced this pull request Sep 24, 2026
Remove reference to `maskOfWidth n` in the generated goal state. If all
operations were correctly translated and `bv_decide` finds a
counterexample there are no longer any "unsupported expressions
abstracted as opaque variables".
- Redefine `var_elim` to not have `maskOfWidth` in the statement
- Rewrite `maskOfWidth`s in the context by adding the hypothesis in the
simp set
- Add a pass to clear out hypothesis that are no longer needed

---------

Co-authored-by: luigirinaldi <luigirinaldi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants