Exact Fourier circuits: sparse spectral #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/FourierCircuit/SparseSpectral.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
Algebraic certificate for the real orthogonal reflection in the kernel, together with its uniform sparse price. Both annihilator equations are retained.
Strictly upper-triangular positions carrying nonzero entries.
Equations
Instances For
The pair term associated with one nonzero off-diagonal entry of a symmetric matrix.
Equations
- Complexity.ExactFourier.SparseReflection.term A hA ij = { i := (↑ij).1, j := (↑ij).2, hij := ⋯, a := A (↑ij).1 (↑ij).2, b := A (↑ij).2 (↑ij).1, ha := ⋯, hb := ⋯ }
Instances For
List the pair terms corresponding to all nonzero upper-triangular entries.
Equations
Instances For
Uniform sparse reflection certificate, with supported unordered pairs counted exactly. The annihilator identities characterize the reflection when A is real symmetric.
The parity of a recursively represented bit string.
Equations
Instances For
Exchange the two halves precisely when the shorter bit string has odd parity.
Equations
Instances For
Reorder bit strings so that the two halves separate even and odd parity.
Equations
Instances For
Exchange the two equal-sized coordinate blocks.
Equations
Instances For
Apply a two-coordinate Hadamard transform to each pair of corresponding coordinates.
Equations
Instances For
The block involution with off-diagonal blocks B and B⁻¹.
Equations
Instances For
One parity half of the tensor-square bit-string coordinate space.
Equations
Instances For
The upper-right block of the parity decomposition of the signed tensor involution.