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

feat: add sdiv_eq, smod_eq to allow sdiv/smod bitblasting #5487

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

bollu
Copy link
Contributor

@bollu bollu commented Sep 27, 2024

We add lemmas to reduce sdiv to udiv and smod to umod, along with msb comparisons which bv_decide understands.

We use the same implementation as Bitwuzla, as evidenced by the following rewrite rules: sdiv, smod.

@kim-em kim-em added this pull request to the merge queue Sep 27, 2024
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Sep 27, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 5dea30f169b91cdda9a3903a7a9d125e0f075605 --onto 7845a05cf1094f24a5c4a51c32dd84bf4ff31a54. (2024-09-27 04:48:47)

Merged via the queue into leanprover:master with commit 9460f79 Sep 27, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants