Skip to content

Conversation

@alexdowad
Copy link

This PR adds BitVec.getLsbD_false_of_clz, which states that the boolean value of any bit in the 'leading zero bits' of a BitVec is false. BitVec.getLsbD_false_of_clzAuxRec does already exist, but BitVec.clzAuxRec is really just an implementation detail of BitVec.clz, and it is more useful to have lemmas which directly state properties of BitVec.clz, rather than the auxiliary function which it uses internally.

This PR adds `BitVec.getLsbD_false_of_clz`, which states that the boolean value
of any bit in the 'leading zero bits' of a BitVec is false.
`BitVec.getLsbD_false_of_clzAuxRec` does already exist, but `BitVec.clzAuxRec`
is really just an implementation detail of `BitVec.clz`, and it is more useful
to have lemmas which directly state properties of `BitVec.clz`, rather than
the auxiliary function which it uses internally.
@alexdowad
Copy link
Author

First PR here, I've tried to read through the material in doc and follow the instructions for contributors, but may very well have missed something somewhere... if so, sorry in advance!

@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 25, 2025
@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 ae7c6b59bcc2c9f7e3b612f3bc87c15bd2e0131a --onto f2e191d0afbb5adcc6f12e1779c8b141fc9af996. You can force Mathlib CI using the force-mathlib-ci label. (2025-11-25 04:07:11)

@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase ae7c6b59bcc2c9f7e3b612f3bc87c15bd2e0131a --onto d3dda9f6d4428a906c096067ecb75e432afc4615. You can force reference manual CI using the force-manual-ci label. (2025-11-25 04:07:12)

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