Paper 2026/3158

Exact multiplicative complexity of multi-operand addition and bit heaps

Ido Rosenbaum, Independent researcher
Abstract

The multiplicative complexity of a Boolean function is the minimum number of AND gates in a circuit over $\{\wedge,\oplus,1\}$. It measures the cost of evaluating the function in secure multi-party computation with free-XOR garbling, in several families of zero-knowledge proofs, and in masked implementations. We determine the exact multiplicative complexity of adding $k$ words of $n$ bits and a fixed constant $K$ modulo $2^n$: it equals the number of AND gates in the classical full-adder network, and the most significant output bit alone already requires that many. For $K=0$ the value is $\sum_{i=1}^{n-1}(k-\lceil k/2^i\rceil)$, which can also be derived from known results. For $K\ne0$ and $k\ge2$ the value is new, and a constant can increase the cost substantially: $x+y \bmod 2^{32}$ needs 31 AND gates, but $x+y+2 \bmod 2^{32}$ needs 60. The lower bound comes from an exact evaluation of one Walsh coefficient of the top output bit, combined with the 2-adic divisibility of the Walsh coefficients of functions with few AND gates. The result for addition has been formally verified in Lean 4. We extend it to arbitrary bit heaps, where input bits have arbitrary power-of-two weights; as a consequence, the upper bound of Boyar and Peralta on the low-order bits of the Hamming weight is tight. Finally, we give the exact cost of each addition in the SHA-256 compression function, taken in isolation.

Metadata
Available format(s)
PDF
Category
Foundations
Publication info
Preprint.
Keywords
multiplicative complexitymodular additionAND gatesWalsh spectrumsecure computationSHA-256formal verification
Contact author(s)
ro2363 @ gmail com
History
2026-12-04: approved
2026-12-01: received
See all versions
Short URL
https://ia.cr/2026/3158
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/3158,
      author = {Ido Rosenbaum},
      title = {Exact multiplicative complexity of multi-operand addition and bit heaps},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/3158},
      year = {2026},
      url = {https://eprint.iacr.org/2026/3158}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.