What is the total number of Boolean functions $f :\{0,1\}^n \rightarrow \{1,-1\}$ such that
\begin{equation}\tag{1}\label{e} \sum_xf(x)f(x+y) = 0 \end{equation}
for all $0\neq y$?
Is there some closed form construction to obtain them all? Or even one specific example if it exists at all? I tried to use inverse Fourier transform but no luck.
For $n = 2$ one such example is $f(00) = f(10) = f(01) = 1$ and $f(11) = -1$. But for larger $n$ it seems very difficult.
Note that $f$ cannot be additive.
EDIT: Alex below claims that no such functions exist for $n >2$. However, for $n =4$, I was able to construct (very ad-hoc) the following
Columns 1 through 14
0 0 0 0 0 0 0 0 1 1 1 1 1 1
0 0 0 0 1 1 1 1 0 0 0 0 1 1
0 0 1 1 0 0 1 1 0 0 1 1 0 0
0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 -1 1 1 1 1 -1 1 1 1 1 -1 1 -1
Columns 15 through 16
1 1
1 1
1 1
0 1
-1 -1
One way to to think of this is by considering the function $f_y: x \mapsto f(x)f(x+y)$ and impose that $f_y$ is additive for all $y$. So the question now becomes:
Question: Does there exist $\hat{y}$ such that $f_y = \chi_{\hat{y}}: x\mapsto (-1)^{\hat{y}x^T}$.
Then \eqref{e} becomes a simple consequence of characters.
I have tried to find solutions using the
Pythoninterface of Microsoft's Z3 solver.My
Z3PYmodel:Output for $n = 2$:
The solution mentioned in the question is number $4$ of the $8$ solutions.
For $n$ larger than $2$, no solution was found.
MiniZinc also does not find solutions for $n \gt 2$:
Check code in
C#for given solutions: