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: BitVec.getMsbD in bv_decide #5987

Merged
merged 1 commit into from
Nov 7, 2024
Merged

feat: BitVec.getMsbD in bv_decide #5987

merged 1 commit into from
Nov 7, 2024

Conversation

hargoniX
Copy link
Contributor

@hargoniX hargoniX commented Nov 7, 2024

Closes #5983.

@hargoniX hargoniX enabled auto-merge November 7, 2024 07:43
a[i]'h = a.getLsbD i := by
simp [BitVec.getLsbD_eq_getElem?_getD, BitVec.getElem?_eq, h]

-- The side condition about gets resolved if i and w are constant.
Copy link
Member

Choose a reason for hiding this comment

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

This comment seems to be missing some words?

@@ -38,3 +38,5 @@ theorem bitwise_unit_9 (x y : BitVec 32) :
BitVec.ofBool (x.getLsbD 0 ^^ y.getLsbD 0) = BitVec.ofBool ((x ^^^ y).getLsbD 0) := by
bv_decide

theorem bitwise_unit_10 (x : BitVec 2): (x.getMsbD 0) = x.msb := by
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
theorem bitwise_unit_10 (x : BitVec 2): (x.getMsbD 0) = x.msb := by
theorem bitwise_unit_10 (x : BitVec 2) : (x.getMsbD 0) = x.msb := by

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc November 7, 2024 07:54 Inactive
@hargoniX hargoniX added this pull request to the merge queue Nov 7, 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 Nov 7, 2024
@leanprover-community-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 ebc02fc6e8801db1cb80290c18c039e35b8ebe5c --onto c779f3a039963fd38b03a78f635f0a7c36f24f42. (2024-11-07 08:02:47)

Merged via the queue into master with commit 59ee47a Nov 7, 2024
14 checks passed
github-merge-queue bot pushed a commit that referenced this pull request Nov 7, 2024
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.

bv_decide does not support getMsbD
3 participants