Documentation

Complexity.Foundations.Data.BitString.Parity.Weight

Parity and Hamming weight #

The parity of a bit string is the parity of its Hamming weight (Cslib.parity_eq_decide_weight), so parity is a symmetric Boolean function (Cslib.isSymmetric_parity). This bridge is kept apart from both BitString.Parity and BitString.Weight, so that neither of them imports the other.

Main results #

Parity is the parity of the weight.

Parity is symmetric.