1. The Notation Shift
Standard logic uses {0, 1}. But math and physics prefer {-1, 1}. This simple translation turns logical rules into algebraic equations.
The Parity "Trick"
2. Interactive Spectrum Analyzer
Select a function (n=3) to see its Fourier "DNA".
Truth Table ({-1, 1} World)
| x1 | x2 | x3 | Output |
|---|
Fourier Spectrum (Coefficients Squared) Total Mass: 1.0
High linear mass. A single perceptron can learn this easily.
Low Frequency (Easy)
Functions like AND, OR, and MAJORITY have large coefficients on single variables (Degree 1). Neural nets find these gradients immediately.
High Frequency (Hard)
PARITY has all its mass on the highest interaction term. It looks like random noise to a perceptron. It requires depth (layers) to solve.
The Takeaway
Fourier Analysis gives us an "X-Ray" view of a boolean function's complexity before we even try to train a network on it.