Exact Fourier circuits: comparison rename #
Adapted from OpenAI's formalization at revision adc7f1241b42e322a6451854ab7e4b4c146bf78a.
Source: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Computability/FourierCircuit/ComparisonRename.lean
Imports, namespaces, module visibility, documentation, and formatting are adapted for complexitylib. The source theorem statements and mathematical arguments are retained.
Rename both species of a live pair while preserving its nonempty condition.
Equations
- Complexity.ExactFourier.Packing.mapPair f p = ⟨(Option.map f (↑p).1, Option.map f (↑p).2), ⋯⟩
Instances For
Transport both coordinate factors of a renamed live pair.
Equations
- Complexity.ExactFourier.Packing.pairEquiv f e p = (Complexity.ExactFourier.Packing.speciesEquiv f e (↑p).1).prodCongr (Complexity.ExactFourier.Packing.speciesEquiv f e (↑p).2)
Instances For
Transport a pair comparison through compatible species and matrix renamings.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An invertible complex matrix bundled with its finite width.
- width : ℕ
The number of rows and columns of the bundled matrix.
The invertible square matrix on the specified finite coordinate set.
Instances For
The elementary two-coordinate shear as a bundled invertible matrix.
Equations
- Complexity.ExactFourier.Packing.shearG = { width := 2, mat := Complexity.ExactFourier.Packing.shearU, unit := Complexity.ExactFourier.Packing.shearU_unit }
Instances For
The two-coordinate domain of the single shear species.
Equations
Instances For
The matrix assigned to the single shear species.
Instances For
A pair comparison bundled with a finite family of invertible matrices.
- num : ℕ
The number of species in the bundled comparison.
The invertible matrix assigned to each species.
- comparison : PairComparison
The word witnessing the comparison within the bundled family.
Instances For
The candidate prices satisfy this comparison's pair-versus-word inequality.
Equations
- c.holds p = (Complexity.ExactFourier.Packing.pairPrice (p ∘ c.family) c.comparison.pair ≤ Complexity.ExactFourier.Packing.Word.weight (p ∘ c.family) c.comparison.word)
Instances For
The candidate matrix prices satisfy every bundled pair comparison.
Equations
Instances For
Enumerate a finite species family to obtain a bundled global comparison.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Associate each standard or replacement program with its target live pair.
Equations
Instances For
Choose the standard pair program or the supplied replacement comparison word.
Equations
Instances For
Allocate copies between standard pair programs and their replacements.
Equations
Instances For
The frame scheduled at a given time, or no frame at a vacant slot.
Equations
Instances For
The call in an occupied slot, using an identity step for a vacant slot.
Equations
Instances For
The monomial factor in a slot, or the identity when the slot is vacant.
Equations
Instances For
The full matrix of a scheduled slot, including its monomial factor.
Equations
Instances For
The block diagonal matrix of all programs' slots at one scheduled time.
Equations
- One or more equations did not get rendered due to their size.