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: ushiftRight bitblasting #4872

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

bollu
Copy link
Contributor

@bollu bollu commented Jul 30, 2024

This adds theorems ushiftRight_rec_zero, ushiftRight_rec_succ, ushiftRight_rec_eq, and shiftRight_eq_shiftRight_rec.

@bollu bollu requested a review from kim-em as a code owner July 30, 2024 19:58
@bollu bollu marked this pull request as draft July 30, 2024 19:58
@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 Jul 30, 2024
@bollu bollu force-pushed the upstream-ushiftRight-recurrence branch 4 times, most recently from 2806cc2 to 9c52520 Compare July 30, 2024 20:29
@bollu bollu force-pushed the upstream-ushiftRight-recurrence branch from 9c52520 to 9d79e69 Compare July 30, 2024 20:35
@leanprover-community-mathlib4-bot
Copy link
Collaborator

leanprover-community-mathlib4-bot commented Jul 30, 2024

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 90dab5e267b14e38f3fa9193cb57c99c8447d8b0 --onto 69f86d6478a944865969abebc45f9417b212a5fc. (2024-07-30 20:50:15)
  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 90dab5e267b14e38f3fa9193cb57c99c8447d8b0 --onto 8acdafd5b3957382c02779ada451c14da44e2aca. (2024-07-31 14:24:02)

@tobiasgrosser
Copy link
Contributor

Nice. Let's wait for @alexkeizer feedback and then this can be undrafted.

@kim-em
Copy link
Collaborator

kim-em commented Jul 31, 2024

LGTM.

bollu and others added 2 commits July 31, 2024 09:07
@bollu bollu marked this pull request as ready for review July 31, 2024 14:10
@bollu
Copy link
Contributor Author

bollu commented Jul 31, 2024

@semorrison I'm not going to mark it awaiting-review, since I received an LGTM. I guess you'll merge it in later today :)

bollu added a commit to opencompl/lean4 that referenced this pull request Jul 31, 2024
This mimics leanprover#4872
for arithmetic shift right.

This adds theorems sshiftRight_rec_zero, sshiftRight_rec_succ,
sshiftRight_rec_eq, and shiftRight_eq_shiftRight_rec.
bollu added a commit to opencompl/lean4 that referenced this pull request Jul 31, 2024
This mimics leanprover#4872
for arithmetic shift right.

This adds theorems sshiftRight_rec_zero, sshiftRight_rec_succ,
sshiftRight_rec_eq, and shiftRight_eq_shiftRight_rec.
bollu added a commit to opencompl/lean4 that referenced this pull request Jul 31, 2024
This mimics leanprover#4872
for arithmetic shift right.

This adds theorems sshiftRight_rec_zero, sshiftRight_rec_succ,
sshiftRight_rec_eq, and shiftRight_eq_shiftRight_rec.
bollu added a commit to opencompl/lean4 that referenced this pull request Jul 31, 2024
This mimics leanprover#4872
for arithmetic shift right.

This adds theorems sshiftRight_rec_zero, sshiftRight_rec_succ,
sshiftRight_rec_eq, and shiftRight_eq_shiftRight_rec.
bollu added a commit to opencompl/lean4 that referenced this pull request Jul 31, 2024
This mimics leanprover#4872
for arithmetic shift right.

This adds theorems sshiftRight_rec_zero, sshiftRight_rec_succ,
sshiftRight_rec_eq, and shiftRight_eq_shiftRight_rec.
@hargoniX
Copy link
Contributor

Review from Alex no longer necessary after some internal communication.

@hargoniX hargoniX added this pull request to the merge queue Jul 31, 2024
Merged via the queue into leanprover:master with commit c517688 Jul 31, 2024
12 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Aug 7, 2024
We follow the same strategy as
#4872,
#4571, and implement bitblasting
theorems for `sshiftRight`.

---------

Co-authored-by: Tobias Grosser <[email protected]>
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.

5 participants