How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Recurrent, LSTM, and structured state-space models
1 · Prerequisites
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Areas of Elementary Plane Figures
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Variation and the Riemann–Stieltjes Integral
- Compactness
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Lebesgue Measure on Euclidean Space
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Polynomial Rings, the Division Algorithm and Roots
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Splitting Fields
- Subspaces, Products, and Quotients
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Lebesgue Integral and the Convergence Theorems
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The Topology of Euclidean Space
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
Shared-parameter recurrent neural network
Definition
Fix positive finite dimensions , a finite horizon , a parameter set , an initial state , and inputs . A shared-parameter recurrent neural network is specified by a state map and, optionally, an output map . For a fixed , it computes and, when is supplied, for , using the same at every time. Its unrolling is the finite directed acyclic computation graph whose vertices are the input, state, output, and map-evaluation occurrences and whose edges record which values each evaluation uses. The folded schematic may show a feedback edge, while the time-indexed unrolled graph is acyclic.
For horizon , the following TikZ graph shows the dependency edges in the unrolling. The boxes are two time-indexed occurrences of the same map ; the dashed edges indicate that both occurrences receive the identical parameter . The graph omits the optional output map .
\begin{center} \begin{tikzpicture}[>=stealth, every node/.style={draw, rounded corners, inner sep=4pt}] \node (h0) at (0,0) {}; \node (x1) at (0,-1.1) {}; \node (f1) at (2,-0.55) {}; \node (h1) at (4,-0.55) {}; \node (x2) at (4,-1.65) {}; \node (f2) at (6,-1.1) {}; \node (h2) at (8,-1.1) {}; \node (theta) at (4,1) {}; \draw[->] (h0) -- (f1); \draw[->] (x1) -- (f1); \draw[->] (f1) -- (h1); \draw[->] (h1) -- (f2); \draw[->] (x2) -- (f2); \draw[->] (f2) -- (h2); \draw[->, dashed] (theta) -- (f1); \draw[->, dashed] (theta) -- (f2); \end{tikzpicture} \end{center}
Definition references
Continuous-time linear state-space model
Definition
Assume the Axiom of Countable Choice, so the usual Lebesgue-measurable sets on form a complete measure space with Lebesgue measure . Every bounded interval is Lebesgue measurable, and any interval is the countable union of its bounded intersections with ; since the Lebesgue-measurable sets form a sigma-algebra, is measurable and restricts to . Let be or , let be an interval with , and let be finite. A continuous-time linear state-space model consists of matrices , , , , an initial value , and an input whose real and imaginary coordinates are Lebesgue measurable and integrable on every compact subinterval of . A state trajectory is a function whose real and imaginary coordinates are absolutely continuous on every compact subinterval of (with absolute continuity defined by the – condition on finite families of disjoint subintervals), with and outside a Lebesgue-null subset of . Its output is . The term is the direct input-to-output term and is separate from the state contribution .
Definition references
Gu, Goel, and Ré, “Efficiently Modeling Long Sequences with Structured State Spaces,” §2.1
Integrable real and complex functions, and their integrals
Absolute continuity on a compact interval
Lebesgue measurable sets, the family , and the restricted set function
A box in with parameters is Lebesgue measurable of measure , whichever of its faces are included
Radix-two discrete Fourier transform
Definition
For a nonnegative integer , let , set when and when , and let . The forward discrete Fourier transform (DFT) is the vector with . The radix-two procedure returns this vector by the following exact recursion. If , return . If , recursively compute the length- DFTs and of and , using the primitive root . For , return and . The inverse transform is obtained by running the same procedure with and dividing every output by .
Woodbury inverse for a diagonal-plus-low-rank update
Statement
Let be invertible, let , and set , where denotes conjugate transpose. Then is invertible if and only if is invertible. When these matrices are invertible,
Statement references
Facts & Assumptions
Given: Finite integers , matrices and , with invertible, and .
The inverse exists, so all displayed matrix products are defined.
is an matrix; a square linear map in finite dimension is invertible once its kernel is zero.
Proof
Assume is invertible and define . Expansion gives , because .
Expanding in the other order gives , because . Thus is the two-sided inverse of , proving this direction and the formula.
Conversely assume is invertible and let satisfy . Set . Then , so invertibility gives . Hence , and therefore . Since , we have . Thus has zero kernel; by [A2] it is invertible.
Standard LSTM cell
Definition
Fix positive finite dimensions , inputs , hidden states , cell states , and initial values . A standard long short-term memory (LSTM) cell without peephole connections or projection has shared matrices , , and biases . Apply and coordinatewise. At each time , set
where is coordinatewise multiplication. The same matrices and biases are reused at every time step. The vectors are the input, forget, and output gates, and is the candidate state update.
DPLR structured state-space parameterization
Definition
An -state single-input, single-output complex linear state-space model has , state equation , and output ; its direct term is set to zero in the S4 convolution convention. Here denotes conjugate transpose; a square complex matrix is normal when ; and a square matrix is unitary when . A matrix is in diagonal-plus-low-rank (DPLR) form of rank if
where is diagonal and . It is in normal-plus-low-rank (NPLR) form of rank if
where is unitary, is diagonal, and . The unitary state change converts this NPLR representation to DPLR form and changes to , respectively.
For a step size such that is invertible, the bilinear recurrent matrices are With initial state , the discrete recurrence is , . Its length- impulse kernel is the vector . For a nonzero direct term , the output has the additional separate skip term .
For a filter evaluation of transform length , the output vector for the length- truncated generating function is . A filter procedure may receive as given data; an operation count for evaluating the filter from this transformed vector does not include the separate work of forming it from .
Roots-of-unity orthogonality and radix-two FFT cost
Statement
Let for an integer , and let (with when ). Define the forward DFT matrix by , where denotes conjugate transpose. Then , so the inverse DFT is . The radix-two procedure defined on this page computes either transform exactly in complex arithmetic operations and space. Consequently, for every integer , two polynomials of degree less than can be multiplied exactly in complex arithmetic operations and space by zero-padding to a radix-two transform length at least .
Statement references
Facts & Assumptions
Given: An integer , , and the root .
For , and ; for , the DFT is the identity on one coordinate.
Radix-two discrete Fourier transform: for , split the even and odd input subsequences, recursively compute their length- DFTs using , and combine as and for .
Proof
For , the entry of is . If , this sum is . Otherwise and the finite geometric-sum identity gives . Thus , which gives the asserted inverse.
Splitting the DFT sum into even and odd indices gives for . For frequency , the even factor is unchanged because , while the odd factor changes sign because . Therefore the outputs in [F1] are exactly the defining DFT sums. Induction on , starting with , proves exactness of the recursion.
At length , forming both half-length transforms and combining their outputs costs at most arithmetic operations for an absolute constant . Hence and ; expanding this recurrence for levels gives . The input, output, and one level of butterflies require workspace; the inverse has the same cost plus coordinatewise scaling by .
Let have degree less than , and choose . Pad their coefficient lists to length , apply the forward DFT, multiply corresponding transformed coordinates, and apply the inverse DFT. For coefficient index , the inverse-transform formula expands it as ; step 1.1 makes the inner sum one exactly when and zero otherwise. Thus the result is cyclic convolution modulo . The ordinary product has degree at most , so no coefficient wraps around and the result is the exact polynomial product. Since when (and when ), step 3.1 gives operations and space.
Remarks
The proofs use only finite sums and arithmetic in ; no choice principle is needed.
Exact Cauchy matrix-vector product on a radix-two root grid
Definition
Input an integer with , a primitive th root of unity , a finite list of poles , and weights . The required output is for , provided no denominator is zero. If , return the zero vector.
Here a primitive th root means and for . For , form a balanced binary tree on the pole indices, splitting each consecutive index interval into two intervals whose sizes differ by at most one. At a leaf containing index , store polynomials and . At an internal node with disjoint child index sets , store
At the root, fold the coefficients of each polynomial modulo : the coefficient at degree is replaced by the sum of coefficients at degrees congruent to modulo . Let , which equals when . Apply the radix-two DFT procedure to each folded coefficient vector to evaluate and at , . If , find the unique odd integer with by generating and comparing the powers of , then place the value at index at output index ; this is the supplied root order because . For , the only root is and no reindexing is needed. This root search and reindexing use operations. If some reindexed , return status collision; otherwise return .
HiPPO LegS, LegT, and LagT matrices have normal-plus-low-rank form after specified similarities
Statement
Index rows and columns by . Define the real LegS coefficient matrix by when , , and when . In the LegS coefficient ODE for this matrix is multiplied by the time-dependent scalar ; the matrix assertion below does not make that ODE time-invariant. For , define the LegT state generator by when and when . Define the original HiPPO LagT state generator by when and when . Here is conjugate transpose, a complex matrix is normal when , and a square matrix is unitary when . For LegS and LagT use the identity similarity; for LegT use the invertible diagonal similarity . Each transformed matrix is a difference with normal and for LegS and LagT and for LegT. Consequently the equivalent finite-dimensional complex state-space matrix has a normal-plus-low-rank representation, and a unitary change of state coordinates gives diagonal-plus-low-rank form. Under any state change , the input and output vectors change to and , respectively.
Statement references
Facts & Assumptions
Given: The finite matrices in the Statement, the parameter for LegT, and finite-dimensional complex state coordinates.
DPLR structured state-space parameterization: a normal-plus-low-rank matrix has form with unitary and diagonal ; under the state change , the input and output vectors become and .
Complex spectral theorem: a normal endomorphism of a finite-dimensional complex inner product space has an orthonormal eigenbasis, and conversely: every normal endomorphism of a finite-dimensional complex inner product space has an orthonormal basis of eigenvectors.
Proof
Put and define the real skew-symmetric matrix by for , for , and . The transpose is , so over its conjugate transpose is also ; hence is normal. With , entrywise comparison gives : below the diagonal the entries are , above they cancel to zero, and on the diagonal they are . Since a scalar shift of a normal matrix is normal and has rank at most one, this is the required LegS decomposition. This assertion concerns the finite coefficient matrix only; the factor in the LegS ODE remains time-dependent.
Define with entries below the diagonal, above it, and zero on the diagonal. It is real skew-symmetric and therefore normal. For , entrywise comparison gives : below the diagonal the two terms sum to , above they sum to zero, and on the diagonal they sum to . Thus the original LagT generator is a normal matrix minus a rank-at-most-one matrix.
For LegT let and . Define for , and for . Then direct entry evaluation gives : for , , while for , . Write , where when and have the same parity and is zero otherwise. The matrix is the sum of the outer products of the even-index and odd-index indicator vectors, so its rank is at most two. For opposite parities, below the diagonal and above it; for equal parities and on the diagonal, . Thus . The invertible diagonal matrix gives . The first term is real skew-symmetric and hence normal; the second has rank at most two. The diagonal similarity is essential: this proves the claim for an equivalent state-space matrix, not unitary similarity of the raw LegT matrix.
In each case write the resulting generator as with normal: for LegS and LagT the factors are the displayed real vectors divided by , and for LegT use the even and odd indicator columns multiplied by as both factors. By [F2], choose a unitary matrix with diagonal. Then , preserving the low-rank bound. If the original coordinates were changed by , the total state change is ; substitution into , gives and output vector . These are exactly the state-coordinate transformations required for an equivalent DPLR model.
S4 state-space recurrence and convolution procedure
Definition
Let and with diagonal and , where denotes conjugate transpose; let , let , and put . The bilinear step is defined only when is invertible. Given an input sequence and state , its recurrent mode computes For a zero initial state, the equivalent matrices and length- kernel are , , and for ; a direct term , if present, is added separately.
For the filter mode, fix an integer , let be the least power of two with , let , and let be supplied as the length- truncated-output parameter. When a conventional output vector is used, this parameter is . Define the root values . The algorithm returns the first coefficients of the inverse radix-two transform of the values below.
For , set . For each , put . If for some diagonal entry of , return status resonant-diagonal. If no diagonal resonance is present, write and . If is singular, return status resonant-correction. When this correction is invertible, the target root value is
The preceding resolvent expression specifies the target root values. The filter evaluation computes them using scalar Cauchy products as follows. Put , and for each with define . For any pair of vectors , compute on the root grid
by calling the roots-of-unity Cauchy procedure with poles and weights , then adding the displayed constant. A collision returns status resonant-diagonal. For , set
If is singular, return status resonant-correction. The four families , , , and contain , , , and scalar products, respectively. The root is handled directly and is never included in this Cauchy evaluation. Matrix products and inversions of the corrections are performed separately at each root.
The recurrent solver may exploit the diagonal-plus-low-rank structure as follows. Write , let and . If is empty, use the Woodbury inverse with and correction ; if this correction is singular, return status singular-bilinear-matrix. If , then when solve the bordered system
where ; if or the bordered system is singular, return status singular-bilinear-matrix. Here . This branch solves without assuming the diagonal base is invertible.
Exact roots-of-unity Cauchy matvec has quasi-linear arithmetic cost
Statement
Let , , be a primitive th root of unity, and let and satisfy for every and . Then the Cauchy matrix-vector product , , is computed exactly by the balanced product-tree procedure using complex arithmetic operations and space. Repeated poles are allowed.
Statement references
Facts & Assumptions
Given: The finite data and noncollision hypothesis in the Statement.
For every and , , so the target sums and all root-grid denominator evaluations are defined.
Exact Cauchy matrix-vector product on a radix-two root grid: the product-tree leaves are , ; internal nodes use and , then fold coefficients modulo , evaluate on the standard radix-two root grid, reindex to the supplied primitive root, and divide the evaluated numerator by denominator.
Roots-of-unity orthogonality and radix-two FFT cost: polynomials of degree less than multiply exactly in complex arithmetic operations and space, and an -point radix-two DFT costs operations and space.
Proof
For a leaf containing index , whenever . If the identity holds for the two child sets, then the internal-node formulas in [F1] give . Induction up the finite tree therefore gives at the root wherever its denominator is nonzero.
The balanced tree has height at most . At a node whose index set has size , its three polynomial products have operand degrees at most ; by [F2] they cost operations. At a fixed height, the node index sets are disjoint and their sizes sum to at most , so that height costs at most . Summing over the height gives operations, including the coefficient additions. A depth-first evaluation stores at most one completed sibling subtree per level; their coefficient-array sizes form a geometric sum bounded by , so the product-tree workspace is .
Write the root coefficients as and . For each , fold them to and . Since , evaluating the folded polynomials at gives exactly and . The algorithm evaluates both folded arrays with two radix-two DFTs on the standard grid ; if , the supplied primitive root is for a unique odd , so reindexing the standard outputs at gives their values at . For the grids coincide. By [F2] the two transforms cost operations and additional space; finding and reindexing cost operations and space, within the same bounds. Folding costs operations and space.
The noncollision hypothesis makes for every . Thus the divisions in [F1] are defined, and step 1.1 identifies each quotient with the required Cauchy sum. Adding the product-tree, folding, transform, and division costs gives operations and space.
A fixed-rank DPLR bilinear recurrent step has linear arithmetic cost
Statement
Let , let with diagonal and , where denotes conjugate transpose, let , and let . If is invertible, then one bilinear recurrent update and its scalar output can be computed using exact complex arithmetic operations and working space. For fixed , this is operations and space. When the diagonal base is invertible, the required Woodbury correction is invertible. When that diagonal base is singular but is invertible, the bordered correction in the recurrent algorithm is invertible and has size at most .
Statement references
Facts & Assumptions
Given: The dimensions, DPLR matrices, step size, and invertibility hypothesis from the Statement.
DPLR structured state-space parameterization: and ; the recurrent right-hand side is and the output is after solving for .
Woodbury inverse for a diagonal-plus-low-rank update: if is invertible, then is invertible exactly when is invertible, and its inverse is .
S4 state-space recurrence and convolution procedure: for a singular diagonal base, the algorithm partitions its zero and nonzero coordinates and solves the displayed bordered system of dimension , then sets .
Proof
Put and . For a current state and input , form . Diagonal scaling costs operations, the two low-rank products cost , and the remaining vector additions cost . The solve is with .
If every diagonal entry of is nonzero, apply [F2] with and . Since is invertible, the correction is invertible, and . Forming and costs operations and space; factoring costs . Applying the inverse to one right-hand side costs operations. Thus this branch meets the stated bounds.
Otherwise let , , and . The rows of indexed by are those of , whose rank is at most . If , these rows are linearly dependent, so is singular, contrary to the hypothesis. Hence .
Suppose and consider a homogeneous solution of the bordered system in [F3]. Set . The first bordered row gives , while its lower row gives . Therefore the rows of equal , and the rows equal . Invertibility of implies , hence and . The square bordered matrix has trivial kernel and is therefore invertible.
For any right-hand side, solve the bordered system, define , and keep the solved . Its first row states ; the upper coordinate equations then give , and the lower row gives . Thus is the unique solution to . The bordered dimension is ; forming it and its right-hand side costs operations and space, and factoring/solving it costs . Computing adds . Both branches satisfy the claimed fixed-rank linear bounds.
DPLR SSM filter values reduce to Cauchy products
Statement
Let , , , with diagonal and , where denotes conjugate transpose, , and . Assume is invertible, define , , and put . For each th root of unity , let , , and . Assume all these and are invertible. The length- truncated generating value then satisfies
If is even, the root has the finite value . For and each diagonal entry , put . For any and root ,
Thus the four families of scalar products , , , and reduce to roots-of-unity Cauchy products; when there are four.
Statement references
Facts & Assumptions
Given: The finite DPLR matrices, , , the bilinear inverse, and all root-grid diagonal resolvents and low-rank corrections required in the Statement.
For every root , both and in the Statement are invertible; the bilinear matrix is invertible.
DPLR structured state-space parameterization: , , and the kernel coefficients are .
Woodbury inverse for a diagonal-plus-low-rank update: for invertible , whenever the displayed correction is invertible.
Exact Cauchy matrix-vector product on a radix-two root grid: on a primitive th-root grid, the procedure returns at each root, and reports a collision if a pole equals a root.
Proof
Put . For every root , substitution of gives . By [A1] and [F2], is invertible; inversion and multiplication by give . At , is invertible.
For any root , put . For , direct algebra gives , hence . For , and the scaled reciprocal is . No nonexceptional pole equals , since would imply although .
At each root, and step 1.1 makes invertible. The finite geometric identity gives . Multiplying by and , and using , gives ; for , step 1.1 supplies its bilinear resolvent expression.
Since , . Applying [F2] with and multiplying by and gives the displayed Woodbury expression for from step 2.1, with and .
If is even, is a root. Step 1.1 gives ; applying the finite geometric identity from step 2.1 yields .
By step 1.2, each scaled diagonal-resolvent entry in step 3.1 is one scalar roots-of-unity Cauchy sum, with the entries supplied by their explicit constants. The four vector-pair families , , , and have sizes , so [F3] evaluates at most products; at this is four.
Numerical Cauchy products on a root grid with explicit accuracy scale
Statement
Let , , , and let satisfy for every . Repeated poles are allowed. Let and . For , the products have numerical approximations satisfying using scalar operations and scalar words. Consequently absolute error , for , costs operations with the same word space.
The model is variable-precision arithmetic with unrestricted exponent range, supplied certified approximations to the inputs, roots and arc-center constants, and certified bounds for the finite computation specified in the proof. Each real comparison, word access and scalar arithmetic operation has unit cost; the latter has absolute rounding error at most . A word stores one scalar at the selected precision. Input approximation, working precision and word lengths may depend on and intermediate magnitudes. This is neither a bit-complexity bound nor a bound at fixed word length. All preprocessing, geometric routing and numerical summation operations are included; computing the supplied constants or certificates from other representations is excluded.
Here is a sufficient explicit precision certificate. For the selected finite rational summation circuit, include its input constants among its exact intermediates, let bound its arithmetic gates, let bound their moduli, and let bound below the modulus of every divisor. Set . With , it suffices to take The geometric decisions additionally use certified interval enclosures narrow enough to choose between the overlapping near and far tests described below. Such enclosures require only finite precision, including at threshold equalities. These certificate assumptions hold for each particular noncollision input, but have no uniform bound as pole/root separation tends to zero.
Statement references
Facts & Assumptions
Given: The finite data, certified separation, magnitude bound and variable-precision model in the Statement. Supplied constants may be requested at any specified finite absolute accuracy. The precision and routing certificates are part of the numerical input interface, not claims of bounded bit cost.
Every pole/root denominator is nonzero and has modulus at least .
Each scalar gate and each supplied scalar constant can be evaluated with absolute error at most the selected , with no overflow or underflow.
Proof
If , return zero; if , sum the nonzero-denominator fractions directly, using operations and space, and use the rounding argument below. Otherwise construct a binary tree on consecutive root indices. Its root covers all roots, with center and radius . At depth , a node contains consecutive roots starting at index ; its center is and its covering radius is . These disks contain their roots because the largest angular distance from the arc midpoint is . Singleton leaves have radius zero. For each pole start at the root: at a nonleaf stop at a far node if , or descend into both children if . In the overlap either choice is valid. A singleton is evaluated directly if reached. Certified interval tests terminate: for , the two thresholds have a positive gap , so enclosures of width less than distinguish at least one admissible choice, even when one threshold is an equality. Squared-distance comparisons implement the same test with a positive gap and finitely accurate supplied coordinates.
At a fixed depth put . The arc centers are equally spaced on the unit circle and have mutual distance at least for , by concavity of sine on . Every near center lies within of its pole. Disks of radius about these centers have disjoint interiors and lie in the disk of radius about that pole. Comparing their areas bounds the number of near centers by . Thus there are fewer than candidate children per pole at the next depth, including all far stops. The root contributes one candidate. The depths therefore contain pole/node pairs. Each root follows exactly one stopped or singleton node for each pole, so these pairs partition all pole/root interactions without duplication. Repeated poles obey the same argument separately.
For a stopped pair put . Its targets satisfy . The finite geometric identity gives . Therefore the error in this pair is at most . Summing the partition from step 2.1 gives error at each root at most . Choose with ; then and the truncation error is at most . Direct singleton interactions have zero truncation error.
Process depths successively, keeping the bounded near list per pole for the next depth and the bounded far list for the current depth. At a fixed depth, store and initially for each far pair. Initialize one target power per root. For degrees , clear one coefficient per current-depth node, add every current to its node's , and add to each target accumulator, where is its unique ancestor at this depth. Update and . A node without stopped pairs has coefficient zero. Discard the depth's arrays before advancing; at leaves add all direct pairs. The sums are exactly the polynomials in step 3.1. Each depth/degree uses operations and words by step 2.1; the near/far lists, current coefficients, powers and output arrays occupy words. No array of moments and no list across all depths is stored. The binary root tree has fewer than nodes, so its supplied constants and routing data also occupy words. Routing costs operations; fixed-width certified interval arithmetic for each overlapping test has constant scalar cost at its supplied sufficient precision. Total cost is , with words independently of .
Fix the certified routing and the exact truncated rational circuit just constructed. Nonleaf far denominators are nonzero by their distance test; leaf denominators are nonzero by [A1]. Its finite exact intermediates and denominators admit the stated . Suppose all already formed operands have error at most . Addition or subtraction increases error by at most . Multiplication increases it by at most . For division, writing exact operands as , approximate operands as , and , gives and ; the final rounding adds . Conjugation and changing signs do not increase error. All these bounds are at most for the stated . Input constant error is at most . Induction over the gates bounds every operand error by : more precisely after gates the maximum error is at most . The stated choice of keeps this within , so every division remains defined and the output rounding error is at most . Root and pole approximation errors are included as input errors in this recurrence. The certified routing uses exact admissible inequalities, so rounding cannot route a pair outside its valid geometric estimate; the positive overlapping gap in step 1.1 permits finite enclosures, whose sufficient precision can be selected together with this .
Combine the truncation and rounding errors to obtain . For absolute error apply the construction with , obtaining . These substitutions do not change the memory argument. The elementary example changes by when changes to , showing why separation-dependent precision cannot be omitted from an absolute-error statement. The count in step 4.1 measures scalar words and operations at the required precision and supplies no bound on their bit lengths or bit cost.
S4 convolution-filter arithmetic and numerical cost
Statement
Let , let be fixed, and let with diagonal , , and , where denotes conjugate transpose. Let , assume is invertible, and choose to be the least power of two with . For the length- filter procedure, take the transformed output vector as supplied input, where . Assume that every root-grid diagonal resolvent and low-rank correction used by the procedure is invertible. In the exact complex arithmetic model, each scalar addition, multiplication, division, and zero test has unit cost. The length- filter is . The procedure returns the first coefficients of this filter using at most roots-of-unity Cauchy products, operations, and working space. The operation count is for filter evaluation from ; it does not include forming that vector from . This bound applies in particular when the fixed matrices of the HiPPO low-rank theorem are used as time-independent state matrices, in their specified equivalent DPLR coordinates and subject to the same invertibility hypotheses. For LegS this means using the constant coefficient matrix ; it does not assert a convolution representation for the original time-dependent LegS dynamics with coefficient .
For numerical evaluation, put , , and at roots , where . Define the scaled blocks , , , , and . Matrix infinity norm means maximum absolute row sum; for a column it is maximum absolute entry. Suppose certified constants bound, over these roots, by , and by . For each scalar scaled-block Cauchy sum, require a certified pole/root separation and a weight bound with ; the finite constant contributions from and the direct value at are formed separately. Empty sums need no separation certificate. Set .
For , a numerical implementation returns with using scalar operations and scalar words. On families with bounded , this is . The numerical model uses variable-precision scalar operations, unrestricted exponent range and supplied certified input/root approximations; each operation and word access has unit cost. Word lengths and sufficient precision depend on separation, correction conditioning, intermediate magnitudes and accuracy. The finite circuit precision certificate in the proof is required; these counts exclude bit cost, computing certificates, and forming . They imply no complete training-cost or long-context-accuracy bound.
The numerical procedure also receives the exact index partition and , where , so it can select the exceptional constant terms without a finite-precision equality test.
Statement references
Pan, “Fast Approximate Computations with Cauchy Matrices and Polynomials,” §§3.3, 6.1–6.4, 7.1
HiPPO LegS, LegT, and LagT matrices have normal-plus-low-rank form after specified similarities
DPLR SSM filter values reduce to Cauchy products
Exact roots-of-unity Cauchy matvec has quasi-linear arithmetic cost
Numerical Cauchy products on a root grid with explicit accuracy scale
Facts & Assumptions
Given: The finite DPLR parameters, fixed rank, , the least power of two at least , the supplied transformed output vector, and the bilinear and root-grid invertibility hypotheses and, for the numerical procedure, the supplied exact partition of diagonal entries equal to and those unequal to it.
S4 state-space recurrence and convolution procedure: with supplied , the filter procedure evaluates the truncated generating function at the th roots, handles by its finite value, applies the inverse radix-two transform, and returns the first coefficients.
DPLR SSM filter values reduce to Cauchy products: each root value is given by the DPLR resolvent formula, the value is , and the four matrix-vector families reduce to scalar Cauchy products.
Exact roots-of-unity Cauchy matvec has quasi-linear arithmetic cost: for poles and an -root grid with no collisions, the exact Cauchy product costs operations and space.
Roots-of-unity orthogonality and radix-two FFT cost: the radix-two DFT and inverse cost operations and space, and inverse transformation recovers the polynomial coefficients exactly.
HiPPO LegS, LegT, and LagT matrices have normal-plus-low-rank form after specified similarities: the fixed LegS coefficient matrix and the LegT and LagT generators, after the specified state-coordinate changes, admit DPLR form with rank at most two. The original LegS coefficient ODE has the additional time-dependent factor .
Numerical Cauchy products on a root grid with explicit accuracy scale: a root-grid Cauchy sum with certified scale has absolute error in scalar operations and linear word space. Its arc-tree truncation and variable-precision circuit estimates are proved locally, including root/input approximation errors and certified routing.
Proof
By [F5], each fixed matrix admits equivalent DPLR coordinates of bounded rank. When such a matrix is used as a constant state matrix and satisfies the stated invertibility hypotheses, it is an admissible input here. This does not identify the original time-dependent LegS ODE with a constant-matrix model. The operation argument applies to any supplied DPLR matrices of the same dimensions. By [F2], each required root value has the stated Cauchy-product expression, including the direct value at . Under the noncollision and correction-invertibility assumptions, the filter procedure in [F1] therefore computes all generating values exactly.
For , . Substitution in [F2] gives and . Also . The pole mapping in [F2] expresses each entry of as for , and as the constant otherwise. Thus the weights in [F6] are exactly for the applicable vector pair . Their preparation and the exceptional constant sums cost for fixed . At , retain the direct value from [F2], without a resolvent division.
Each scalar product has at most poles and is evaluated on roots. If it has at least one pole, [F3] bounds its cost by operations and space; if it has no poles, its constant value is formed by a single finite sum in operations and space. There are at most such products by [F2], a constant number because is fixed. The per-root correction matrix products and inversions cost operations by finite-dimensional elimination, which is for fixed .
The generating values are the DFT of the coefficients for . By [F4], the inverse radix-two transform recovers these coefficients exactly; [F1] then returns their first entries, which are precisely the length- filter.
Let and first consider exact arithmetic on truncated Cauchy sums having scalar entry errors at most , with finite constant sums exact. Denote the resulting blocks by . Each of their infinity-norm errors is at most , since each row has at most entries and . Hence , and . Writing , the geometric series converges in infinity norm because , is the inverse of by finite geometric identities and passage to the norm limit, and has norm at most . Therefore . The identity gives .
Since is the least power of two at least , for every integer . Combining the Cauchy products, per-root corrections, and inverse transform gives exact complex arithmetic operations. Processing the Cauchy products sequentially uses product-tree workspace; their root-value arrays, the correction matrices, and the inverse transform use additional space. Fixed and give total working space. The proof counts the supplied as input and does not count its formation from .
Expanding the difference of the two triple products as and using step 2.3 bounds its modulus by . Adding the error in and using bounds each generating-value error by . The direct value has no truncation error. The exact inverse DFT averages unit-modulus multiples in each output coordinate, so its infinity operator norm is at most one; consequently the exact inverse transform of these approximations has coefficient error at most .
Apply [F6] with absolute tolerance to each scalar sum; its exact truncated circuit has error at most , as required above. Although [F6] is stated on , the filter grid is ; run each numerical Cauchy product on the positive grid and permute its outputs to the filter order, in operations and words, preserving the maximum error and pole/root separation bounds. It uses terms. There are at most sums, processed sequentially; their arrays and the fixed-size blocks use words. The per-root inverses can be computed by the adjugate/determinant formula, which is constant work for fixed and has nonzero determinants by step 2.3. Add the radix-two inverse transform and finite sums: the scalar count is . The replacement gives the stated count and space.
To include every rounding error, regard the entire selected computation, from supplied DPLR parameters, transformed vector and root/arc constants through weight formation, Cauchy sums, finite constants, adjugate inverses and inverse FFT, as one finite rational circuit. Include conjugations as exact sign changes. Require certified with an upper bound on its gates, an upper bound on exact intermediate moduli, and a lower bound on every exact divisor modulus. Such bounds exist for each input because step 2.3 proves all truncated correction inverses exist and all other divisions are nonzero by the hypotheses. Put and select input and gate accuracy , also sufficient for the certified overlapping routing tests of [F6]. The gate recurrence proved in [F6] then gives final additional error at most , including errors in supplied parameters, roots, weights, , correction inverses and twiddle factors. Together with step 3.2 this is less than . No precision selection changes the scalar count or scalar-word count, although their bit cost can grow. Bounded gives ; arbitrary conditioning retains the explicit term.
Remarks
S4 Appendix C.3, Proposition 5 reports numerical operations and linear space, without specifying the accuracy norm, word length or conditioning margins. The theorem above preserves that numerical asymptotic on explicitly bounded-conditioning families and gives an absolute-error bound with the conditioning factor exposed for general certified inputs. It does not assert a uniform fixed-precision or bit-complexity interpretation of the reported claim. Arbitrarily near pole/root collisions require growing input precision; nearly singular Woodbury corrections amplify block errors. Neither qualification concerns training or empirical long-context performance.
4 · Examples, counterexamples and false statements
None yet.
Sources
- Goodfellow, Bengio, and Courville, Deep Learning, Chapter 10, §§10.1–10.2
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, §2.1
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, Appendix C.2
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, Appendix C.2–C.3
- Goodfellow, Bengio, and Courville, Deep Learning, Chapter 10, §10.10.1, Eqs. 10.40–10.44
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, §§2.1, 2.3, 3.2, Appendix C.3
- Pan, Fast Approximate Computations with Cauchy Matrices and Polynomials, §3.3
- Pan, Fast Approximate Computations with Cauchy Matrices and Polynomials, §§3.2–3.3
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, Theorem 1 and Appendix C.1
- Gu et al., HiPPO: Recurrent Memory with Optimal Polynomial Projections, §2.3 and Appendices D.1–D.3
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, Algorithm 1 and Appendix C
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, Theorem 2 and Appendix C.2
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, Appendix C.3
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, Appendix C.3, Proposition 5
- Pan, Fast Approximate Computations with Cauchy Matrices and Polynomials, §6.1 and §§6.2–6.4
- Gu, Goel, and Ré, Efficiently Modeling Long Sequences with Structured State Spaces, Theorem 3 and Appendix C.3
- Pan, Fast Approximate Computations with Cauchy Matrices and Polynomials, §§3.3, 6.1–6.4, 7.1