Munim Technologies

Research/Mathematics

A search of 441 small adder blocks finds none that beats 4.5n gates

A pre-registered SAT search tested every one-column building block with up to six input wires for counting bits. It proved for 419 of 441 block shapes that none can lower the 4.5n gate bound that has stood since 2010, and found no block that does. A hand argument closes 3 more of the 22 open shapes and ties 10 others to whether six bits need 14 gates.

Dec 2, 2026 · 8 min read

Counting how many of n bits are 1, and writing the answer in binary, is the core of every symmetric Boolean function: majority, thresholds, parity and counting modulo m. The best known circuits of two-input gates for it use about 4.5n gates, a bound set in 2010 that nobody has lowered since. The authors of the most recent improvement for general bit addition wrote that beating 4.5 "would most probably require using new building blocks" (Goncharov, Kulikov and Levtsov, STACS 2026). We tested that idea directly. Using a SAT solver and a potential argument, we checked every one-column building block with at most six input wires. For 419 of the 441 block shapes, we proved that no circuit is small enough to help. We found no block that helps. A short hand argument, added after the run, closes 3 of the 22 open shapes and ties 10 more to one small question: can six bits be counted with 13 gates?

441

block shapes tested (one column, at most 6 input wires)

419

proved unable to beat 4.5n by the SAT search

0

blocks found that beat it

18

still open after the hand argument (8 if six bits need 14 gates)

The question

Let SUMn\mathrm{SUM}_n map n bits to their sum in binary. Over all two-input gates the best known bounds are wide apart:

2.5n−O(1)  ≤  size(SUMn)  ≤  4.5n+o(n)2.5n - O(1) \;\le\; \mathrm{size}(\mathrm{SUM}_n) \;\le\; 4.5n + o(n)
Lower bound: Stockmeyer (1977). Upper bound: Demenkov, Kojevnikov, Kulikov and Yaroslavtsev (2010).

The upper bound comes from composing small blocks. The key one, the 8-gate MDFA of Demenkov et al., stores two bits p, q of the same weight as the pair (p, p XOR q). Call a plain bit P and such a pair D. A block takes P and D groups from one column and outputs groups at the same and higher weights, keeping the weighted sum. A D output with value 1 may use either of its two codes, a freedom that MDFA relies on.

What we did

Give each P a potential of 4.5 and each D a potential of 8. These are the only values under which both the 1-gate pairing XOR and the 8-gate MDFA pay exactly their potential drop. If every block in a family satisfies size(B)≥φ(in)−φ(out)\mathrm{size}(B) \ge \varphi(\text{in}) - \varphi(\text{out}), the drops add up, and any circuit built from the family needs at least 4.5n−O(log⁡n)4.5n - O(\log n) gates. So a block can beat 4.5n only if it is *profitable*:

size(B)  <  φ(in)−φ(out),φ(P)=4.5,    φ(D)=8\mathrm{size}(B) \;<\; \varphi(\text{in}) - \varphi(\text{out}), \qquad \varphi(P) = 4.5,\;\; \varphi(D) = 8
s_max is the largest size that would still be profitable.

We listed all 441 one-column shapes with at most six input wires whose outputs can hold every possible total and leave a positive potential drop. For each one we asked CaDiCaL 1.9.5 (through PySAT) whether a circuit of exactly s gates exists, for every s from 0 to s_max. Gates were any non-degenerate two-input gate. Every satisfying answer would have been decoded and re-checked on every input row in a separate process. Before the run, 22 unit tests checked that every known block satisfies the encoding and that broken versions violate it. The six predictions were frozen on 2026-11-17 in the repository. The job waited for shared compute until 2026-12-02, then ran for 260 minutes on 2 CPUs.

What we found

The validity check passed: the solver found all five known blocks at their known sizes. It also found no full adder with fewer than 5 gates, which is the known minimum. All six predictions held. No shape had a profitable circuit. Every shape with at most four input wires, and every shape with s_max of 7 or less (410 shapes), was decided. Of the 427 shapes with s_max of 8 or less, 419 (98.1%) were decided; the frozen target was 80%.

Known blocks: proved minimum sizes

blockshapeknown sizeproved: no circuit of size up to
pairing XORP+P to D10
StockmeyerP+D to P@0+P@143
full adderP+P+P to P@0+P@154
MDFA'D+D to P@0+D@165
MDFAP+D+D to P@0+D@187
From results/sum-circuit-search-v1/tally.json and results.json. So each of these blocks is gate-optimal, MDFA even with its freedom in output codes.

Shapes left open by the SAT search, by largest profitable size s_max

shapes

All 22 open shapes have 5 or 6 input wires, and every one stopped on a time limit (900 s per size, 2,400 s per shape), never on a found circuit. Source: results/sum-circuit-search-v1/tally.json

Closing more shapes by hand

Before the run we had derived a "sandwich" bound: put a pairing XOR in front of each D input of a block and a decoder behind its outputs, and the result counts k bits, so

size(B)  ≥  size(SUMk)−#Din−DEC(out)\mathrm{size}(B) \;\ge\; \mathrm{size}(\mathrm{SUM}_k) - \#D_{\text{in}} - \mathrm{DEC}(\text{out})
k counts input bits (a D input holds two); DEC is the number of gates that turn the outputs into binary.

After the run we wrote an explicit decoder for every one of the 22 open output shapes and checked each one on every output pattern a correct block can produce. One fact makes several of them cheap: the count is at most 6, so an output bit at position 2 (value 4) and a carry into that position are never both 1, and an OR (or no gate at all) replaces an adder. For example, a block with outputs P@0+P@1+D@2 is already a circuit that counts six bits, so it needs at least 13 gates, far above its s_max of 9. With size(SUM5)=11\mathrm{size}(\mathrm{SUM}_5) = 11 (Kulikov, Pechenev and Slezkin) and our elementary bound size(SUM6)≥13\mathrm{size}(\mathrm{SUM}_6) \ge 13, the 22 open shapes split as follows. This step is post-hoc, not part of the frozen test.

The 22 shapes the SAT search left open

status after the sandwich boundshapesexamples
closed (no profitable block)4P x5 to P@0+D@1; P x6 to P@0+P@1+P@1+P@2, P@0+D@1+P@2, P@0+P@1+D@2
closed if size(SUM6)≥14\mathrm{size}(\mathrm{SUM}_6) \ge 1410the 4 with binary outputs; P x6 to P@0+P@0+P@1+P@2
left to the SAT solver8outputs with a pair or two plain bits at weight 0, e.g. P x6 to D@0+D@1
From results/open22-sandwich/open22.json, recomputed and checked by open22_sandwich.py and its tests. For each of the 10 middle shapes a profitable block would need exactly s_max gates and would give a 13-gate circuit for six bits.

What it means

Within this family, a new building block that lowers 4.5n has to read six input wires, inputs from more than one column, or a code other than plain bits and (p, p XOR q) pairs. No one-column P/D block on five or fewer wires beats 4.5n. On six wires, 18 shapes are open, and 10 of them depend only on whether six bits can be counted with 13 gates; the known bounds are 13 to 16. Our first direct attempts to settle that question ran out of time on 2026-12-03, with no answer either way, and a split-and-solve run is next. If six bits do need 14 gates, the six-wire one-column barrier rests on 8 shapes, which a longer SAT run (still queued) is set to decide.

More research