Skip to content

Conversation

@luisacicolini
Copy link
Contributor

@luisacicolini luisacicolini commented Jan 9, 2026

This PR introduces a new operation BitVec.hAdd, which recursively adds l-long words in a (flattened) w-long bitvector, similarly to the vectorized add operation we find e.g. in LLVM and in assembly intrinsics. We equip this operation with a bitblastable circuit and operation (parPreSum) implementing the operation via parallel-prefix-sum circuit for efficiency.

This circuit is the base to construct an efficient bitblasting circuit for BitVec.cpop, and part of our effort to make the RISC-V ISA bitblastable.

@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 Jan 9, 2026
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Jan 9, 2026

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase e6d021967eee968e05aa9e953c63bd962a44b8be --onto d92cdae8e901d3d9686f8c0e88a0371379c49dff. You can force Mathlib CI using the force-mathlib-ci label. (2026-01-09 16:55:32)
  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase e6d021967eee968e05aa9e953c63bd962a44b8be --onto 470498cc061e40ae5fb8312fb7e7939a0f0d0f6f. You can force Mathlib CI using the force-mathlib-ci label. (2026-01-11 11:46:38)

@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 e6d021967eee968e05aa9e953c63bd962a44b8be --onto d92cdae8e901d3d9686f8c0e88a0371379c49dff. You can force reference manual CI using the force-manual-ci label. (2026-01-09 16:55:34)

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