Depth-two threshold circuits for parity -- proof internals #
Parity is the parity of the number of true inputs.
theorem
Complexity.Circuit.wireValue_thresholdParity_natAdd_internal
(N : ℕ)
[NeZero N]
(x : BitString N)
(j : Fin N)
:
Internal gate j of the parity circuit tests whether at least j + 1
inputs are true.