Asked to check the math, Claude cut a parity net from 21 neurons to 15
A hand-worked net for 8-bit parity used 21 neurons in 6 hidden layers. Asked to check it, Claude Opus 5.5 spotted two mutually exclusive terms, so the addition folds into the next layer: 4 layers, 15 neurons.
Done withClaudeSpotted· by HN user kragen· Nov 3, 2026
Result Still needed 42 nonzero weights overall
“Actually, I handed that to Claude Opus 5.5 to check, and it sensibly pointed out that x&~y is mutually exclusive with y&~x, so XOR doesn't even need the third neuron, except in the last layer; you can just fold the addition into the weights of the next layer, which means you only need 4 layers and 15 neurons.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
The writer worked out how small a ReLU network can be and still compute 8-bit parity exactly: a tree of 7 XORs, each built from AND and OR neurons, for 21 neurons in 6 hidden layers. They handed that argument to Claude Opus 5.5 to check.
How it went
Claude pointed out that x&~y is mutually exclusive with y&~x, so XOR doesn’t need its third neuron except in the last layer: the addition folds into the next layer’s weights, leaving 4 layers and 15 neurons. About half of those need 4 nonzero input weights, so 42 nonzero weights are still needed. It also explained a 28-parameter net the writer says they don’t quite understand.
Try it yourself with Claude
Here's my derivation for the minimum network size to compute [a specific boolean function, e.g. 8-bit parity] from ReLU-based logic gates. Check my neuron and weight count, point out any redundant steps, and tell me the smallest layer count and weight count you can prove works.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
Could a frontier model plant a hidden behavior in another model's weights? Claude Opus 5.5 ran as an agent, reading activations and writing values itself, with no fine-tuning: 804,978 changed in about five hours.
Watching the 2026 midterms, they wanted Congress's history. Claude Opus planned a 6-page dashboard, Claude Sonnet wrote most of the code, and they found the president's party lost House seats in 18 of 20 midterms.
No one could tell this bilateral cochlear implant recipient what they actually hear. Using browser test apps Claude built, they ran seven psychophysical tests on themselves, 10,992 trials in total.
A sensor network with dozens of stations and thousands of inconsistently named sensors was hard for a team of scientists to query. Their MCP server lets Claude map plain-English questions to the right sensors.
A Kagi search had failed them, so they switched on Claude's research mode. It found an old microfiche archive, OCR'ed it, and produced an accurate report on obscure 90s celebrities in 15 minutes.
A formal proof of a Numberlink puzzle result had 154 native_decides, used to speed up compilation. Claude removed them and optimized the proof so it compiles with only propext, Classical.choice and Quot.sound.