Exact Fourier circuits: fftcircuit #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/FourierCircuit/FFTCircuit.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
Select an input index when present and otherwise select the free zero wire.
Equations
Instances For
A fixed diagonal layer charges exactly one multiplication per coordinate.
Equations
Instances For
Polynomial convolution on any containing radix-two length.
Uniform linear-DAG construction, with logarithmic cost independent of coefficients.
Inversion commutes exactly with truncated scalar multiplication.
The literal O(t log(2t)) estimate, with one absolute constant, uniform in f and t.