Let $x_1,x_2,\dots x_n$ be literals.
Let $P(x_1,x_2,\dots,x_n)$ be one of the following Boolean function:
$0)$ Equality function - $Eq_k^n(x)=1\iff x_1+\dots+x_n= k$
$1)$ Threshold function - $Th_k^n(x)=1\iff x_1+\dots+x_n\ge k$
$2)$ Majority function - $Maj_n(x)=1\iff x_1+\dots+x_n\ge \lceil\frac{n}{2}\rceil$
$3)$ Modular-$s$ function - $MOD_k(s)=s\iff x_1+\dots+x_n\equiv 0\mod k$
If a function 'represents' $P(x_1,x_2,\dots,x_n)$, that means the function and $P(x_1,x_2,\dots,x_n)$ agree on $x_i\in\{0,1\}$.
If a function is rational then its degree is the sum of degrees of numerator and denominator.
What is known about the smallest degree of a:
$A)$ polynomial $p(x_1,x_2,\dots,x_n)\in\mathbb R[x_1,x_2,\dots,x_n]$
$B)$ rational function $r(x_1,x_2,\dots,x_n)\in\mathbb R(x_1,x_2,\dots,x_n)$
that represents $P(x_1,x_2,\dots,x_n)$ in each case of $0,1,2$ and $3$?
In which case the gap is the largest? It seems intuitively that $2,3$ should be the most complex with possibly the largest gap for $3$.
Note that both the polynomial and the numerator and denominator of the rational function can be multilinear since $x_i^t=x_i$ on $\{0,1\}$.
"candidate boolean function"
, cstheory.stackexchange.com/questions/33706/…, can you help with that? $\endgroup$