Multilinear Representation and Degree #
Every Boolean function has a unique multilinear polynomial representation over ℤ. We define the Möbius coefficients and the degree.
Main definitions #
BoolFun.moebius— the Möbius coefficient c_S of fBoolFun.degree— the multilinear degree
The Möbius coefficient of f at S: coefficient of ∏{i∈S} x_i in the unique multilinear polynomial representing f. Computed by inclusion-exclusion: c_S = ∑{T⊆S} (-1)^{|S|-|T|} f(1_T).
Equations
- f.moebius S = ∑ T ∈ S.powerset, (-1) ^ (S.card - T.card) * Sensitivity.boolToInt (f (Sensitivity.indicator T))