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)
  • ✅ Mathlib branch lean-pr-testing-11956 has successfully built against this PR. (2026-01-20 16:54:09) View Log
  • ✅ Mathlib branch lean-pr-testing-11956 has successfully built against this PR. (2026-01-22 12:24:21) View Log

@leanprover-bot
Copy link
Collaborator

leanprover-bot commented Jan 9, 2026

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)
  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-01-20 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-01-20 15:54:32)
  • ❌ Reference manual branch lean-pr-testing-11956 built against this PR, but generating HTML failed. (2026-01-22 11:32:39) View Log
  • 🟡 Reference manual branch lean-pr-testing-11956 build against this PR didn't complete normally. (2026-01-22 11:34:01) View Log

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jan 20, 2026
@github-actions github-actions bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label Jan 20, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 20, 2026
@leanprover-community-bot leanprover-community-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Jan 20, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jan 22, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 22, 2026
leanprover-bot added a commit to leanprover/reference-manual that referenced this pull request Jan 22, 2026
@leanprover-bot leanprover-bot added the breaks-manual This is not necessarily a blocker for merging, but there needs to be a plan. label Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaks-manual This is not necessarily a blocker for merging, but there needs to be a plan. builds-mathlib CI has verified that Mathlib builds against this PR mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN 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