Exact Fourier circuits: multi word #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/FourierCircuit/MultiWord.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
A monomial transformation or an embedded call to one matrix species.
- mono {τ : Type} {D : τ → Type} [(t : τ) → Fintype (D t)] [(t : τ) → DecidableEq (D t)] {A : (t : τ) → Matrix (D t) (D t) ℂ} {α : Type} [Fintype α] [DecidableEq α] (M : Matrix α α ℂ) (hm : MonomialMatrix M) : Step D A α
- call {τ : Type} {D : τ → Type} [(t : τ) → Fintype (D t)] [(t : τ) → DecidableEq (D t)] {A : (t : τ) → Matrix (D t) (D t) ℂ} {α : Type} [Fintype α] [DecidableEq α] (t : τ) (e : D t ↪ α) : Step D A α
Instances For
The ambient matrix represented by a monomial step or an embedded species call.
Equations
Instances For
The called species, with none for a monomial step.
Equations
Instances For
Embed a step in a larger coordinate set, fixing all new coordinates.
Equations
- Complexity.ExactFourier.Packing.Step.embed e (Complexity.ExactFourier.Packing.Step.mono M hm) = Complexity.ExactFourier.Packing.Step.mono (Complexity.ExactFourier.Embedded.matrix e M) ⋯
- Complexity.ExactFourier.Packing.Step.embed e (Complexity.ExactFourier.Packing.Step.call t e_1) = Complexity.ExactFourier.Packing.Step.call t (e_1.trans e)
Instances For
A finite list of monomial steps and calls to the given matrix species.
Equations
Instances For
The ordered product of the matrices represented by the word's steps.
Equations
Instances For
The sequence of called species after removing monomial steps.
Equations
Instances For
The number of times a word calls the specified species.
Equations
- W.count t = List.count t W.calls
Instances For
Embed every step of a word into a larger coordinate set.
Equations
Instances For
A word consisting of one monomial transformation and no species calls.
Equations
Instances For
A word consisting of one embedded call to the specified species.
Equations
Instances For
Embed one summand into a dependent sum of coordinate types.
Equations
- Complexity.ExactFourier.Embedded.sigmaIn p = { toFun := Sigma.mk p, inj' := ⋯ }
Instances For
Complete a prescribed active-tuple matching with untouched spectator wires.
Combine a family of embeddings into an embedding of dependent sums.
Equations
Instances For
Relabel a word's coordinates by an equivalence.
Equations
Instances For
Concatenate words embedded into their disjoint dependent coordinate blocks.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Deleting only identity factors preserves a noncommutative product.
Physical slot padding retains every local program's exact multiplication order.