Take two numbers: 0.6 and 0.6 .
If I turn each into a Boolean first, using x > 0.5 , they’re both true. Their AND is true too. But feed those same numbers straight into the Boolean-neuron formula a + b - 1.5 > 0 , and the answer is false.
Nothing mysterious happened. I changed the input contract. 🔎
Ted Benson’s new post on embedding Boolean circuits in neural networks separates gate construction from connecting those gates to a trained model. That separation is the useful part. Here’s a small executable way to see why.
Original mathematical illustration of the stated formulas. The shaded regions are computed decision regions, not measured model behavior.
First, build the gates
Let step(z) return one when z > 0 , otherwise zero. With inputs restricted to zero or one:
AND uses step(a + b - 1.5) .
OR uses step(a + b - 0.5) .
NOT uses step(0.5 - a) .
For AND, only the input sum of two clears the threshold. For OR, either nonzero bit clears it. NOT reverses each allowed bit.…