Alphabeta Math
Pipeline-generated
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

2 · Logical flowchart

3 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Shared-parameter recurrent neural network

Definition

Fix positive finite dimensions dx,dh,dy, a finite horizon T∈N, a parameter set Θ, an initial state h0∈Rdh, and inputs x1,…,xT∈Rdx. A shared-parameter recurrent neural network is specified by a state map F:Rdh×Rdx×Θ→Rdh and, optionally, an output map G:Rdh×Rdx×Θ→Rdy. For a fixed θ∈Θ, it computes ht=F(ht−1,xt;θ) and, when G is supplied, yt=G(ht,xt;θ) for 1≤t≤T, 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 T=2, the following TikZ graph shows the dependency edges in the unrolling. The boxes F1,F2 are two time-indexed occurrences of the same map F; the dashed edges indicate that both occurrences receive the identical parameter θ. The graph omits the optional output map G.

\begin{center} \begin{tikzpicture}[>=stealth, every node/.style={draw, rounded corners, inner sep=4pt}] \node (h0) at (0,0) {h0}; \node (x1) at (0,-1.1) {x1}; \node (f1) at (2,-0.55) {F1}; \node (h1) at (4,-0.55) {h1}; \node (x2) at (4,-1.65) {x2}; \node (f2) at (6,-1.1) {F2}; \node (h2) at (8,-1.1) {h2}; \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}

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Continuous-time linear state-space model

Definition

Assume the Axiom of Countable Choice, so the usual Lebesgue-measurable sets on R 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 [−n,n]; since the Lebesgue-measurable sets form a sigma-algebra, I is measurable and λ restricts to I. Let F be R or C, let I⊆R be an interval with t0∈I, and let N,m,p≥1 be finite. A continuous-time linear state-space model consists of matrices A∈FN×N, B∈FN×m, C∈Fp×N, D∈Fp×m, an initial value x0∈FN, and an input u:I→Fm whose real and imaginary coordinates are Lebesgue measurable and integrable on every compact subinterval of I. A state trajectory is a function x:I→FN whose real and imaginary coordinates are absolutely continuous on every compact subinterval of I (with absolute continuity defined by the ε–δ condition on finite families of disjoint subintervals), with x(t0)=x0 and x′(t)=Ax(t)+Bu(t) outside a Lebesgue-null subset of I. Its output is y(t)=Cx(t)+Du(t). The term Du(t) is the direct input-to-output term and is separate from the state contribution Cx(t).

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Radix-two discrete Fourier transform

Definition

For a nonnegative integer q, let M=2q, set ω=1 when M=1 and ω=e−2πi/M when M>1, and let a=(a0,…,aM−1)∈CM. The forward discrete Fourier transform (DFT) is the vector a^∈CM with a^k=∑j=0M−1ajωjk. The radix-two procedure returns this vector by the following exact recursion. If M=1, return (a0). If M>1, recursively compute the length-M/2 DFTs E and O of (a0,a2,…,aM−2) and (a1,a3,…,aM−1), using the primitive root ω2. For 0≤k<M/2, return a^k=Ek+ωkOk and a^k+M/2=Ek−ωkOk. The inverse transform is obtained by running the same procedure with ω‾ and dividing every output by M.

LemmaStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Woodbury inverse for a diagonal-plus-low-rank update

Statement

Let D∈CN×N be invertible, let U,V∈CN×r, and set W=Ir+V∗D−1U, where ∗ denotes conjugate transpose. Then D+UV∗ is invertible if and only if W is invertible. When these matrices are invertible,

(D+UV∗)−1=D−1−D−1UW−1V∗D−1.

Facts & Assumptions

Given: Finite integers N,r≥1, matrices D∈CN×N and U,V∈CN×r, with D invertible, and W:=Ir+V∗D−1U.

[A1]

The inverse D−1 exists, so all displayed matrix products are defined.

[A2]

W is an r×r matrix; a square linear map in finite dimension is invertible once its kernel is zero.

Proof

1.1A1algebra

Assume W is invertible and define X:=D−1−D−1UW−1V∗D−1. Expansion gives (D+UV∗)X=I+U(V∗D−1−W−1V∗D−1−V∗D−1UW−1V∗D−1)=I, because (Ir+V∗D−1U)W−1V∗D−1=WW−1V∗D−1=V∗D−1.

2.1A1step 1.1algebra

Expanding in the other order gives X(D+UV∗)=I+D−1U(V∗−W−1V∗−W−1V∗D−1UV∗)=I, because W−1(Ir+V∗D−1U)V∗=W−1WV∗=V∗. Thus X is the two-sided inverse of D+UV∗, proving this direction and the formula.

3.1A1A2step 1.1algebra∎

Conversely assume D+UV∗ is invertible and let w∈Cr satisfy Ww=0. Set x=D−1Uw. Then (D+UV∗)x=U(Ir+V∗D−1U)w=UWw=0, so invertibility gives x=0. Hence Uw=Dx=0, and therefore Ww=w+V∗D−1Uw=w. Since Ww=0, we have w=0. Thus W has zero kernel; by [A2] it is invertible.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Standard LSTM cell

Definition

Fix positive finite dimensions dx,dh, inputs xt∈Rdx, hidden states ht∈Rdh, cell states ct∈Rdh, and initial values h0,c0. A standard long short-term memory (LSTM) cell without peephole connections or projection has shared matrices Wi,Wf,Wo,Wc∈Rdh×dx, Ui,Uf,Uo,Uc∈Rdh×dh, and biases bi,bf,bo,bc∈Rdh. Apply σ(s)=(1+e−s)−1 and tanh⁡(s)=(es−e−s)/(es+e−s) coordinatewise. At each time t≥1, set

it=σ(Wixt+Uiht−1+bi),ft=σ(Wfxt+Ufht−1+bf),ot=σ(Woxt+Uoht−1+bo),

gt=tanh⁡(Wcxt+Ucht−1+bc),ct=ft⊙ct−1+it⊙gt,ht=ot⊙tanh⁡(ct),

where ⊙ is coordinatewise multiplication. The same matrices and biases are reused at every time step. The vectors it,ft,ot are the input, forget, and output gates, and gt is the candidate state update.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

DPLR structured state-space parameterization

Definition

An N-state single-input, single-output complex linear state-space model has B,C∈CN, state equation x′(t)=Ax(t)+Bu(t), and output y(t)=C∗x(t); its direct term is set to zero in the S4 convolution convention. Here X∗ denotes conjugate transpose; a square complex matrix H is normal when H∗H=HH∗; and a square matrix V is unitary when V∗V=VV∗=I. A matrix is in diagonal-plus-low-rank (DPLR) form of rank r if

A=Λ−PQ∗,

where Λ∈CN×N is diagonal and P,Q∈CN×r. It is in normal-plus-low-rank (NPLR) form of rank r if

A=VΛV∗−PQ∗,

where V∈CN×N is unitary, Λ is diagonal, and P,Q∈CN×r. The unitary state change x~=V∗x converts this NPLR representation to DPLR form and changes B,C to V∗B,V∗C, respectively.

For a step size Δ>0 such that I−ΔA/2 is invertible, the bilinear recurrent matrices are A‾=(I−ΔA/2)−1(I+ΔA/2),B‾=(I−ΔA/2)−1ΔB,C‾=C. With initial state x−1=0, the discrete recurrence is xt=A‾xt−1+B‾ut, yt=C‾∗xt. Its length-L impulse kernel is the vector KL=(C‾∗A‾jB‾)j=0L−1. For a nonzero direct term D, the output has the additional separate skip term Dut.

For a filter evaluation of transform length M≥L, the output vector for the length-M truncated generating function is C~M=(I−A‾M)∗C. A filter procedure may receive C~M as given data; an operation count for evaluating the filter from this transformed vector does not include the separate work of forming it from C.

LemmaStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Roots-of-unity orthogonality and radix-two FFT cost

Statement

Let M=2q for an integer q≥0, and let ω=e−2πi/M (with ω=1 when M=1). Define the forward DFT matrix F∈CM×M by Fkj=ωjk, where ∗ denotes conjugate transpose. Then F∗F=MI, so the inverse DFT is M−1F∗. The radix-two procedure defined on this page computes either transform exactly in O(Mlog⁡(2+M)) complex arithmetic operations and O(M) space. Consequently, for every integer n≥1, two polynomials of degree less than n can be multiplied exactly in O(nlog⁡(2+n)) complex arithmetic operations and O(n) space by zero-padding to a radix-two transform length at least 2n−1.

Facts & Assumptions

Given: An integer q≥0, M=2q, and the root ω=e−2πi/M.

[A1]

For M>1, ωM=1 and ωM/2=−1; for M=1, the DFT is the identity on one coordinate.

[F1]

Radix-two discrete Fourier transform: for M>1, split the even and odd input subsequences, recursively compute their length-M/2 DFTs using ω2, and combine as Ek+ωkOk and Ek−ωkOk for 0≤k<M/2.

Proof

1.1A1algebra

For 0≤j,ℓ<M, the (j,ℓ) entry of F∗F is ∑k=0M−1ω(ℓ−j)k. If j=ℓ, this sum is M. Otherwise ωℓ−j≠1 and the finite geometric-sum identity gives ∑k=0M−1ω(ℓ−j)k=(1−ωM(ℓ−j))/(1−ωℓ−j)=0. Thus F∗F=MI, which gives the asserted inverse.

2.1A1F1step 1.1algebra

Splitting the DFT sum into even and odd indices gives Ek+ωkOk for 0≤k<M/2. For frequency k+M/2, the even factor is unchanged because ωjM=1, while the odd factor changes sign because ωM/2=−1. Therefore the outputs in [F1] are exactly the defining DFT sums. Induction on q, starting with M=1, proves exactness of the recursion.

3.1F1step 2.1algebra

At length M>1, forming both half-length transforms and combining their M outputs costs at most cM arithmetic operations for an absolute constant c. Hence T(M)≤2T(M/2)+cM and T(1)=O(1); expanding this recurrence for q=log⁡2M levels gives T(M)=O(Mlog⁡(2+M)). The input, output, and one level of butterflies require O(M) workspace; the inverse has the same cost plus coordinatewise scaling by 1/M.

4.1A1step 1.1step 3.1algebra∎

Let f,g have degree less than n, and choose M′=2⌈log⁡2(2n−1)⌉. Pad their coefficient lists to length M′, apply the forward DFT, multiply corresponding transformed coordinates, and apply the inverse DFT. For coefficient index s, the inverse-transform formula expands it as ∑j,ℓfjgℓ M′−1∑k=0M′−1ω(j+ℓ−s)k; step 1.1 makes the inner sum one exactly when j+ℓ≡s(modM′) and zero otherwise. Thus the result is cyclic convolution modulo zM′−1. The ordinary product has degree at most 2n−2<M′, so no coefficient wraps around and the result is the exact polynomial product. Since 2n−1≤M′<2(2n−1) when n>1 (and M′=1 when n=1), step 3.1 gives O(nlog⁡(2+n)) operations and O(n) space.

Remarks

The proofs use only finite sums and arithmetic in C; no choice principle is needed.

AlgorithmAlgorithm: AI-adaptedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Exact Cauchy matrix-vector product on a radix-two root grid

Definition

Input an integer M=2q with q≥0, a primitive Mth root of unity ω, a finite list of poles μ1,…,μn∈C, and weights a1,…,an∈C. The required output is yk=∑j=1naj/(ωk−μj) for 0≤k<M, provided no denominator is zero. If n=0, return the zero vector.

Here a primitive Mth root means ωM=1 and ωk≠1 for 1≤k<M. For n≥1, 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 j, store polynomials Dj(z)=z−μj and Pj(z)=aj. At an internal node with disjoint child index sets I1,I2, store DI(z)=DI1(z)DI2(z),PI(z)=PI1(z)DI2(z)+DI1(z)PI2(z). At the root, fold the coefficients of each polynomial modulo zM−1: the coefficient at degree r is replaced by the sum of coefficients at degrees congruent to r modulo M. Let ω0=e−2πi/M, which equals 1 when M=1. Apply the radix-two DFT procedure to each folded coefficient vector to evaluate PI and DI at ω0j, 0≤j<M. If M>1, find the unique odd integer s∈{1,3,…,M−1} with ω=ω0s by generating and comparing the M powers of ω0, then place the value at index sk mod M at output index k; this is the supplied root order because ωk=ω0sk. For M=1, the only root is 1 and no reindexing is needed. This root search and reindexing use O(M) operations. If some reindexed DI(ωk)=0, return status collision; otherwise return yk=PI(ωk)/DI(ωk).

TheoremStatement: Literature-sourcedProof: AI-adaptedOpen item page →

HiPPO LegS, LegT, and LagT matrices have normal-plus-low-rank form after specified similarities

Statement

Index rows and columns by 0,…,N−1. Define the real LegS coefficient matrix GS by GnkS=−(2n+1)(2k+1) when n>k, GnnS=−(n+1), and GnkS=0 when n<k. In the LegS coefficient ODE for t>0 this matrix is multiplied by the time-dependent scalar 1/t; the matrix assertion below does not make that ODE time-invariant. For θ>0, define the LegT state generator by GnkT=−(2n+1)(−1)n−k/θ when n≥k and GnkT=−(2n+1)/θ when n<k. Define the original HiPPO LagT state generator by GnkL=−1 when n≥k and GnkL=0 when n<k. Here X∗ is conjugate transpose, a complex matrix H is normal when H∗H=HH∗, and a square matrix V is unitary when V∗V=VV∗=I. For LegS and LagT use the identity similarity; for LegT use the invertible diagonal similarity S0=diag⁡(2n+1)n=0N−1diag⁡((−1)n)n=0N−1. Each transformed matrix is a difference H−UV∗ with H normal and rank⁡(UV∗)≤1 for LegS and LagT and rank⁡(UV∗)≤2 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 x=Sx~, the input and output vectors change to S−1B and S∗C, respectively.

Facts & Assumptions

Given: The finite matrices in the Statement, the parameter θ>0 for LegT, and finite-dimensional complex state coordinates.

[F1]

DPLR structured state-space parameterization: a normal-plus-low-rank matrix has form A=VΛV∗−PQ∗ with unitary V and diagonal Λ; under the state change x~=V∗x, the input and output vectors become V∗B and V∗C.

[F2]

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

1.1F1algebra

Put wn=2n+1 and define the real skew-symmetric matrix S by Snk=−wnwk/2 for n>k, Snk=wnwk/2 for n<k, and Snn=0. The transpose is −S, so over C its conjugate transpose is also −S; hence S is normal. With v=w/2, entrywise comparison gives GS=(S−12I)−vv∗: below the diagonal the entries are −wnwk, above they cancel to zero, and on the diagonal they are −12−(2n+1)/2=−(n+1). Since a scalar shift of a normal matrix is normal and vv∗ has rank at most one, this is the required LegS decomposition. This assertion concerns the finite coefficient matrix only; the factor 1/t in the LegS ODE remains time-dependent.

1.2F1algebra

Define S with entries −1/2 below the diagonal, +1/2 above it, and zero on the diagonal. It is real skew-symmetric and therefore normal. For e=(1,…,1)T, entrywise comparison gives GL=(S−12I)−12ee∗: below the diagonal the two terms sum to −1, above they sum to zero, and on the diagonal they sum to −1. Thus the original LagT generator is a normal matrix minus a rank-at-most-one matrix.

1.3F1algebra

For LegT let D=diag⁡(2n+1)n=0N−1 and E=diag⁡((−1)n)n=0N−1. Define Tnk=1 for n≥k, and Tnk=(−1)k−n for n<k. Then direct entry evaluation gives GT=−DETE/θ: for n≥k, (−1)n(−1)k=(−1)n−k, while for n<k, (−1)n(−1)k−n(−1)k=1. Write T=S+R, where Rnk=1 when n and k have the same parity and is zero otherwise. The matrix R 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, Snk=1 below the diagonal and Snk=−1 above it; for equal parities and on the diagonal, Snk=0. Thus ST=−S. The invertible diagonal matrix S0=D1/2E gives S0−1GTS0=−θ−1D1/2SD1/2−θ−1D1/2RD1/2. 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.

2.1F1F2step 1.1step 1.2step 1.3algebra∎

In each case write the resulting generator as H−UV∗ with H normal: for LegS and LagT the factors are the displayed real vectors divided by 2, and for LegT use the even and odd indicator columns multiplied by D1/2/θ as both factors. By [F2], choose a unitary matrix V0 with V0∗HV0=Λ diagonal. Then V0∗(H−UV∗)V0=Λ−(V0∗U)(V0∗V)∗, preserving the low-rank bound. If the original coordinates were changed by S0, the total state change is x=S0V0z; substitution into x′=Gx+Bu, y=C∗x gives z′=(V0∗S0−1GS0V0)z+V0∗S0−1Bu and output vector V0∗S0∗C. These are exactly the state-coordinate transformations required for an equivalent DPLR model.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

S4 state-space recurrence and convolution procedure

Definition

Let N,r≥1 and A=Λ−PQ∗ with Λ∈CN×N diagonal and P,Q∈CN×r, where ∗ denotes conjugate transpose; let B,C∈CN, let Δ>0, and put α=Δ/2. The bilinear step is defined only when G=I−αA is invertible. Given an input sequence (ut) and state x−1, its recurrent mode computes bt=(I+αA)xt−1+ΔBut,Gxt=bt,yt=C∗xt. For a zero initial state, the equivalent matrices and length-L kernel are Aˉ=G−1(I+αA), Bˉ=G−1ΔB, and Kj=C∗AˉjBˉ for 0≤j<L; a direct term Dut, if present, is added separately.

For the filter mode, fix an integer L≥1, let M be the least power of two with M≥L, let ω=e−2πi/M, and let C~∈CN be supplied as the length-M truncated-output parameter. When a conventional output vector C is used, this parameter is C~=(I−AˉM)∗C. Define the M root values zk=ωk. The algorithm returns the first L coefficients of the inverse radix-two transform of the values H(zk) below.

For zk=−1, set H(zk)=(Δ/2)C~∗B. For each z=zk≠−1, put s(z)=(2/Δ)(1−z)/(1+z). If s(z)−λj=0 for some diagonal entry λj of Λ, return status resonant-diagonal. If no diagonal resonance is present, write R(z)=diag⁡((s(z)−λj)−1) and W(z)=Ir+Q∗R(z)P. If W(z) is singular, return status resonant-correction. When this correction is invertible, the target root value is H(z)=21+z(C~∗R(z)B−C~∗R(z)P W(z)−1Q∗R(z)B). The preceding resolvent expression specifies the target root values. The filter evaluation computes them using 1+2r+r2=(r+1)2 scalar Cauchy products as follows. Put a=2/Δ, and for each j with λj≠−a define μj=(a−λj)/(a+λj). For any pair of vectors u,v∈CN, compute on the root grid Suv(z)=21+zu∗R(z)v=Δ2∑j:λj=−auj‾vj−2∑j:λj≠−auj‾vja+λj1z−μj by calling the roots-of-unity Cauchy procedure with poles μj and weights −2uj‾vj/(a+λj), then adding the displayed constant. A collision μj=zk returns status resonant-diagonal. For z=zk≠−1, set W(z)=Ir+1+z2SQ,P(z),H(z)=SC~,B(z)−1+z2SC~,P(z)W(z)−1SQ,B(z). If W(z) is singular, return status resonant-correction. The four families SC~,B, SC~,P, SQ,B, and SQ,P contain 1, r, r, and r2 scalar products, respectively. The root −1 is handled directly and is never included in this Cauchy evaluation. Matrix products and inversions of the r×r corrections are performed separately at each root.

The recurrent solver may exploit the diagonal-plus-low-rank structure as follows. Write dj=1−αλj, let J={j:dj≠0} and Z={j:dj=0}. If Z is empty, use the Woodbury inverse with D=diag⁡(dj) and correction Ir+αQ∗D−1P; if this correction is singular, return status singular-bilinear-matrix. If s=∣Z∣>0, then when s≤r solve the bordered system [Ir+αQJ∗DJ−1PJ−QZ∗αPZ0][zxZ]=[QJ∗DJ−1bJbZ],xJ=DJ−1(bJ−αPJz), where DJ=diag⁡(dj)j∈J; if s>r or the bordered system is singular, return status singular-bilinear-matrix. Here z=Q∗x. This branch solves Gx=b without assuming the diagonal base is invertible.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

Exact roots-of-unity Cauchy matvec has quasi-linear arithmetic cost

Statement

Let n≥1, M=2q≥1, ω be a primitive Mth root of unity, and let μ1,…,μn∈C and a1,…,an∈C satisfy μj≠ωk for every j and 0≤k<M. Then the Cauchy matrix-vector product yk=∑j=1naj/(ωk−μj), 0≤k<M, is computed exactly by the balanced product-tree procedure using O((n+M)log⁡2(2+n+M)) complex arithmetic operations and O(n+M) space. Repeated poles are allowed.

Facts & Assumptions

Given: The finite data and noncollision hypothesis in the Statement.

[A1]

For every 1≤j≤n and 0≤k<M, ωk−μj≠0, so the target sums and all root-grid denominator evaluations are defined.

[F1]

Exact Cauchy matrix-vector product on a radix-two root grid: the product-tree leaves are Dj(z)=z−μj, Pj(z)=aj; internal nodes use DI=DI1DI2 and PI=PI1DI2+DI1PI2, then fold coefficients modulo zM−1, evaluate on the standard radix-two root grid, reindex to the supplied primitive root, and divide the evaluated numerator by denominator.

[F2]

Roots-of-unity orthogonality and radix-two FFT cost: polynomials of degree less than s multiply exactly in O(slog⁡(2+s)) complex arithmetic operations and O(s) space, and an M-point radix-two DFT costs O(Mlog⁡(2+M)) operations and O(M) space.

Proof

1.1A1F1constructalgebra

For a leaf containing index j, Pj(z)/Dj(z)=aj/(z−μj) whenever z≠μj. If the identity PI/DI=∑j∈Iaj/(z−μj) holds for the two child sets, then the internal-node formulas in [F1] give PI/DI=PI1/DI1+PI2/DI2. Induction up the finite tree therefore gives PI(z)/DI(z)=∑j=1naj/(z−μj) at the root wherever its denominator is nonzero.

2.1F1F2step 1.1algebra

The balanced tree has height at most ⌈log⁡2n⌉. At a node whose index set has size s, its three polynomial products have operand degrees at most s; by [F2] they cost O(slog⁡(2+s)) operations. At a fixed height, the node index sets are disjoint and their sizes sum to at most n, so that height costs at most O(nlog⁡(2+n)). Summing over the height gives O(nlog⁡2(2+n)) 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 O(n), so the product-tree workspace is O(n).

2.2A1F1F2step 1.1algebra

Write the root coefficients as PI(z)=∑jpjzj and DI(z)=∑jdjzj. For each 0≤r<M, fold them to pr′=∑j≡r(modM)pj and dr′=∑j≡r(modM)dj. Since ωkM=1, evaluating the folded polynomials at ωk gives exactly PI(ωk) and DI(ωk). The algorithm evaluates both folded arrays with two radix-two DFTs on the standard grid ω0j=e−2πij/M; if M>1, the supplied primitive root is ω=ω0s for a unique odd s, so reindexing the standard outputs at sk mod M gives their values at ωk. For M=1 the grids coincide. By [F2] the two transforms cost O(Mlog⁡(2+M)) operations and O(M) additional space; finding s and reindexing cost O(M) operations and space, within the same bounds. Folding costs O(n) operations and O(n+M) space.

3.1A1F1step 1.1step 2.2algebra∎

The noncollision hypothesis makes DI(ωk)=∏j(ωk−μj)≠0 for every k. 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 O((n+M)log⁡2(2+n+M)) operations and O(n+M) space.

TheoremStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

A fixed-rank DPLR bilinear recurrent step has linear arithmetic cost

Statement

Let N,r≥1, let A=Λ−PQ∗ with diagonal Λ∈CN×N and P,Q∈CN×r, where ∗ denotes conjugate transpose, let B,C∈CN, and let Δ>0. If G=I−ΔA/2 is invertible, then one bilinear recurrent update and its scalar output can be computed using O(N(r+1)2+(r+1)3) exact complex arithmetic operations and O(N(r+1)+(r+1)2) working space. For fixed r, this is O(N) operations and O(N) space. When the diagonal base I−ΔΛ/2 is invertible, the required r×r Woodbury correction is invertible. When that diagonal base is singular but G is invertible, the bordered correction in the recurrent algorithm is invertible and has size at most 2r.

Facts & Assumptions

Given: The dimensions, DPLR matrices, step size, and invertibility hypothesis from the Statement.

[F1]

DPLR structured state-space parameterization: A=Λ−PQ∗ and G=I−ΔA/2; the recurrent right-hand side is (I+ΔA/2)x+ΔBu and the output is C∗x′ after solving for x′.

[F2]

Woodbury inverse for a diagonal-plus-low-rank update: if D is invertible, then D+UV∗ is invertible exactly when I+V∗D−1U is invertible, and its inverse is D−1−D−1U(I+V∗D−1U)−1V∗D−1.

[F3]

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 r+∣Z∣, then sets xJ=DJ−1(bJ−αPJz).

Proof

1.1F1givenalgebra

Put α=Δ/2 and D=I−αΛ. For a current state x and input u, form b=(I+αA)x+ΔBu=x+αΛx−αP(Q∗x)+ΔBu. Diagonal scaling costs O(N) operations, the two low-rank products cost O(Nr), and the remaining vector additions cost O(N). The solve is Gx′=b with G=D+αPQ∗.

2.1F2step 1.1algebra

If every diagonal entry of D is nonzero, apply [F2] with U=αP and V=Q. Since G is invertible, the correction W=Ir+αQ∗D−1P is invertible, and x′=D−1b−D−1(αP)W−1Q∗D−1b. Forming D−1P and W costs O(Nr2) operations and O(Nr+r2) space; factoring W costs O(r3). Applying the inverse to one right-hand side costs O(Nr+r2) operations. Thus this branch meets the stated bounds.

2.2givenF1step 1.1algebra

Otherwise let Z={j:Djj=0}, J={0,…,N−1}∖Z, and s=∣Z∣. The rows of G indexed by Z are those of αPZQ∗, whose rank is at most r. If s>r, these s rows are linearly dependent, so G is singular, contrary to the hypothesis. Hence s≤r.

3.1givenF3step 2.2algebra

Suppose s≤r and consider a homogeneous solution (z,xZ) of the bordered system in [F3]. Set xJ=−αDJ−1PJz. The first bordered row gives z=QJ∗xJ+QZ∗xZ=Q∗x, while its lower row gives αPZz=0. Therefore the J rows of Gx equal DJxJ+αPJQ∗x=0, and the Z rows equal αPZQ∗x=αPZz=0. Invertibility of G implies x=0, hence z=Q∗x=0 and xZ=0. The square bordered matrix has trivial kernel and is therefore invertible.

4.1F1F3step 2.2step 3.1algebra∎

For any right-hand side, solve the bordered system, define xJ=DJ−1(bJ−αPJz), and keep the solved xZ. Its first row states z=Q∗x; the upper coordinate equations then give (Gx)J=bJ, and the lower row gives (Gx)Z=αPZz=bZ. Thus x=x′ is the unique solution to Gx′=b. The bordered dimension is r+s≤2r; forming it and its right-hand side costs O(Nr2) operations and O(Nr+r2) space, and factoring/solving it costs O(r3). Computing C∗x′ adds O(N). Both branches satisfy the claimed fixed-rank linear bounds.

LemmaStatement: Literature-sourcedProof: AI-adaptedjudge pass (gpt-6-luna)Open item page →

DPLR SSM filter values reduce to Cauchy products

Statement

Let N,r≥1, M=2q≥1, 1≤L≤M, A=Λ−PQ∗ with diagonal Λ∈CN×N and P,Q∈CN×r, where ∗ denotes conjugate transpose, B,C∈CN, and Δ>0. Assume G=I−ΔA/2 is invertible, define Aˉ=G−1(I+ΔA/2), Bˉ=G−1ΔB, and put C~M=(I−AˉM)∗C. For each Mth root of unity z≠−1, let s(z)=(2/Δ)(1−z)/(1+z), R(z)=(s(z)I−Λ)−1, and W(z)=Ir+Q∗R(z)P. Assume all these R(z) and W(z) are invertible. The length-M truncated generating value HM(z)=∑j=0M−1C∗AˉjBˉzj then satisfies

HM(z)=21+z(C~M∗R(z)B−C~M∗R(z)P W(z)−1Q∗R(z)B)(z≠−1).

If M is even, the root z=−1 has the finite value HM(−1)=(Δ/2)C~M∗B. For a=2/Δ and each diagonal entry λj≠−a, put μj=(a−λj)/(a+λj). For any u,v∈CN and root z≠−1,

21+zu∗R(z)v=Δ2∑λj=−auj‾vj−2∑λj≠−auj‾vja+λj1z−μj.

Thus the four families of scalar products C~M∗RB, C~M∗RP, Q∗RB, and Q∗RP reduce to 1+2r+r2=(r+1)2 roots-of-unity Cauchy products; when r=1 there are four.

Facts & Assumptions

Given: The finite DPLR matrices, 1≤L≤M=2q, Δ>0, the bilinear inverse, and all root-grid diagonal resolvents and low-rank corrections required in the Statement.

[A1]

For every root z≠−1, both R(z) and W(z) in the Statement are invertible; the bilinear matrix G is invertible.

[F1]

DPLR structured state-space parameterization: Aˉ=(I−ΔA/2)−1(I+ΔA/2), Bˉ=(I−ΔA/2)−1ΔB, and the kernel coefficients are C∗AˉjBˉ.

[F2]

Woodbury inverse for a diagonal-plus-low-rank update: for invertible D, (D+PQ∗)−1=D−1−D−1P(I+Q∗D−1P)−1Q∗D−1 whenever the displayed correction is invertible.

[F3]

Exact Cauchy matrix-vector product on a radix-two root grid: on a primitive Mth-root grid, the procedure returns ∑jaj/(zk−μj) at each root, and reports a collision if a pole equals a root.

Proof

1.1A1F1F2algebra

Put α=Δ/2. For every root z≠−1, substitution of Aˉ=G−1(I+αA) gives I−zAˉ=G−1((1−z)I−α(1+z)A)=G−1α(1+z)(s(z)I−A). By [A1] and [F2], s(z)I−A=(s(z)I−Λ)+PQ∗ is invertible; inversion and multiplication by Bˉ=G−1ΔB give (I−zAˉ)−1Bˉ=21+z(s(z)I−A)−1B. At z=−1, I+Aˉ=G−1(G+I+αA)=2G−1 is invertible.

1.2A1algebra

For any root z≠−1, put a=1/α=2/Δ. For λj≠−a, direct algebra gives s(z)−λj=(a−λj)−(a+λj)z1+z=(a+λj)(μj−z)1+z, hence 21+z(s(z)−λj)−1=−2a+λj(z−μj)−1. For λj=−a, s(z)−λj=2a/(1+z) and the scaled reciprocal is 1/a=Δ/2. No nonexceptional pole equals −1, since μj=−1 would imply 2a=0 although a>0.

2.1F1step 1.1algebra

At each root, zM=1 and step 1.1 makes I−zAˉ invertible. The finite geometric identity gives (I−AˉM)(I−zAˉ)−1=∑j=0M−1zjAˉj. Multiplying by C∗ and Bˉ, and using C~M∗=C∗(I−AˉM), gives HM(z)=C~M∗(I−zAˉ)−1Bˉ; for z≠−1, step 1.1 supplies its bilinear resolvent expression.

3.1A1F2step 2.1algebra

Since A=Λ−PQ∗, sI−A=(sI−Λ)+PQ∗. Applying [F2] with D=sI−Λ and multiplying by C~M∗ and B gives the displayed Woodbury expression for HM(z) from step 2.1, with R=(sI−Λ)−1 and W=I+Q∗RP.

3.2A1F1step 1.1step 2.1algebra

If M is even, −1 is a root. Step 1.1 gives (I+Aˉ)−1Bˉ=(1/2)G(G−1ΔB)=(Δ/2)B; applying the finite geometric identity from step 2.1 yields HM(−1)=C~M∗(I+Aˉ)−1Bˉ=(Δ/2)C~M∗B.

4.1A1F3step 1.2step 3.1algebra∎

By step 1.2, each scaled diagonal-resolvent entry in step 3.1 is one scalar roots-of-unity Cauchy sum, with the λj=−a entries supplied by their explicit constants. The four vector-pair families C~M∗RB, C~M∗RP, Q∗RB, and Q∗RP have sizes 1,r,r,r2, so [F3] evaluates at most (r+1)2 products; at r=1 this is four.

TheoremStatement: AI-adaptedProof: AI-adaptedOpen item page →

Numerical Cauchy products on a root grid with explicit accuracy scale

Statement

Let n≥0, M=2q≥1, zk=exp⁡(2πik/M), and let aj,μj∈C satisfy ∣zk−μj∣≥d>0 for every j,k. Repeated poles are allowed. Let A≥∑j∣aj∣ and s=max⁡(1,A/d). For 0<η≤1/2, the products yk=∑jaj/(zk−μj) have numerical approximations satisfying max⁡k∣y^k−yk∣≤ηs using O((n+M)log⁡(2+M)log⁡(1/η)) scalar operations and O(n+M) scalar words. Consequently absolute error δ, for 0<δ≤1/2, costs O((n+M)log⁡(2+M)log⁡(s/δ)) 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 u. A word stores one scalar at the selected precision. Input approximation, working precision and word lengths may depend on n,M,d,A,η 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 T bound its arithmetic gates, let V≥1 bound their moduli, and let 0<D≤1 bound below the modulus of every divisor. Set K=64(V+1)2/D2. With τ=ηs/2, it suffices to take u≤min⁡(1,D/2,τ)2KT+1. 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.

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.

[A1]

Every pole/root denominator is nonzero and has modulus at least d.

[A2]

Each scalar gate and each supplied scalar constant can be evaluated with absolute error at most the selected u, with no overflow or underflow.

Proof

1.1givenA1constructalgebra

If n=0, return zero; if M=1, sum the n nonzero-denominator fractions directly, using O(n+1) 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 0 and radius 1. At depth ℓ≥1, a node contains m=M/2ℓ consecutive roots starting at index b; its center is c=exp⁡(2πi(b+(m−1)/2)/M) and its covering radius is R=2sin⁡(π(m−1)/(2M))≤π2−ℓ. These disks contain their roots because the largest angular distance from the arc midpoint is π(m−1)/M. Singleton leaves have radius zero. For each pole start at the root: at a nonleaf stop at a far node if ∣c−μj∣≥3R/2, or descend into both children if ∣c−μj∣≤2R. In the overlap either choice is valid. A singleton is evaluated directly if reached. Certified interval tests terminate: for R>0, the two thresholds have a positive gap R/2, so enclosures of width less than R/4 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.

2.1step 1.1algebra

At a fixed depth put J=2ℓ. The J arc centers are equally spaced on the unit circle and have mutual distance at least 2sin⁡(π/J)≥4/J for J≥2, by concavity of sine on [0,π/2]. Every near center lies within 2π/J of its pole. Disks of radius 2/J about these centers have disjoint interiors and lie in the disk of radius (2π+2)/J about that pole. Comparing their areas bounds the number of near centers by (π+1)2<18. Thus there are fewer than 36 candidate children per pole at the next depth, including all far stops. The root contributes one candidate. The q+1 depths therefore contain O(nlog⁡(2+M)) 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.

3.1A1step 1.1step 2.1algebra

For a stopped pair put t=−(z−c)/(c−μj). Its targets satisfy ∣t∣≤2/3. The finite geometric identity gives 1/(z−μj)=∑h=0p−1(−(z−c))h/(c−μj)h+1+tp/(z−μj). Therefore the error in this pair is at most (2/3)p∣aj∣/∣z−μj∣. Summing the partition from step 2.1 gives error at each root at most (2/3)p∑j∣aj∣/∣z−μj∣≤(2/3)pA/d. Choose p≥1 with (2/3)p≤η/2; then p=O(log⁡(1/η)) and the truncation error is at most ηs/2. Direct singleton interactions have zero truncation error.

4.1step 1.1step 2.1step 3.1constructalgebra

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 vj,I=1/(cI−μj) and initially wj,I=ajvj,I for each far pair. Initialize one target power tk=1 per root. For degrees h=0,…,p−1, clear one coefficient gI per current-depth node, add every current wj,I to its node's gI, and add gI(k)tk to each target accumulator, where I(k) is its unique ancestor at this depth. Update wj,I←wj,Ivj,I and tk←−(zk−cI(k))tk. 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 O(n+M) operations and words by step 2.1; the near/far lists, current coefficients, powers and output arrays occupy O(n+M) words. No array of p moments and no list across all depths is stored. The binary root tree has fewer than 2M nodes, so its supplied constants and routing data also occupy O(M) words. Routing costs O(nlog⁡(2+M)+M) operations; fixed-width certified interval arithmetic for each overlapping test has constant scalar cost at its supplied sufficient precision. Total cost is O((n+M)log⁡(2+M)p), with O(n+M) words independently of p.

5.1A1A2step 1.1step 4.1algebra

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 V,D. Suppose all already formed operands have error at most e≤min⁡(1,D/2). Addition or subtraction increases error by at most 2e+u. Multiplication increases it by at most (2V+1)e+u. For division, writing exact operands as x,y, approximate operands as x′,y′, and ∣y∣≥D, gives ∣y′∣≥D/2 and ∣x′/y′−x/y∣≤2e/D+2Ve/D2; the final rounding adds u. Conjugation and changing signs do not increase error. All these bounds are at most Ke+u for the stated K≥2. Input constant error is at most u. Induction over the T gates bounds every operand error by 2uKT+1: more precisely after t gates the maximum error is at most u(1+K+⋯+Kt)≤2uKt. The stated choice of u keeps this within min⁡(1,D/2,τ), 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 u.

6.1step 3.1step 4.1step 5.1algebra∎

Combine the truncation and rounding errors to obtain max⁡k∣y^k−yk∣≤ηs. For absolute error δ apply the construction with η=δ/s≤1/2, obtaining p=O(log⁡(s/δ)). These substitutions do not change the memory argument. The elementary example y=1/(z−μ) changes by h/((z−μ)(z−μ−h)) when μ changes to μ+h, 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.

TheoremStatement: AI-adaptedProof: AI-adaptedOpen item page →

S4 convolution-filter arithmetic and numerical cost

Statement

Let N,r,L≥1, let r be fixed, and let A=Λ−PQ∗ with diagonal Λ∈CN×N, P,Q∈CN×r, and B,C∈CN, where ∗ denotes conjugate transpose. Let Δ>0, assume I−ΔA/2 is invertible, and choose M to be the least power of two with M≥L. For the length-M filter procedure, take the transformed output vector C~M=(I−AˉM)∗C as supplied input, where Aˉ=(I−ΔA/2)−1(I+ΔA/2). 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-L filter is KL=(C∗AˉjBˉ)j=0L−1. The procedure returns the first L coefficients of this filter using at most (r+1)2 roots-of-unity Cauchy products, O((N+L)log⁡2(2+N+L)) operations, and O(N+L) working space. The operation count is for filter evaluation from C~M; it does not include forming that vector from C. This bound applies in particular when the fixed matrices GS,GT,GL 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 GS; it does not assert a convolution representation for the original time-dependent LegS dynamics with coefficient GS/t.

For numerical evaluation, put a=2/Δ, β(z)=(1+z)/2, and D(z)=2R(z)/(1+z) at roots z≠−1, where R(z)=(a(1−z)/(1+z)I−Λ)−1. Define the scaled blocks x=C~M∗DB, u=C~M∗DP, v=Q∗DB, T=Q∗DP, and W=Ir+βT. Matrix infinity norm means maximum absolute row sum; for a column it is maximum absolute entry. Suppose certified constants b,w,s≥1 bound, over these roots, ∣x∣,∥u∥∞,∥v∥∞,∥T∥∞ by b, and ∥W−1∥∞ by w. For each scalar scaled-block Cauchy sum, require a certified pole/root separation d>0 and a weight bound A≥∑j∣aj∣ with A/d≤s; the finite constant contributions from λj=−a and the direct value at −1 are formed separately. Empty sums need no separation certificate. Set κ=64rw2(b+1)2s.

For 0<ε≤1/2, a numerical implementation returns K^L with ∥K^L−KL∥∞≤ε using O((N+L)log⁡(2+N+L)log⁡(κ/ε)) scalar operations and O(N+L) scalar words. On families with bounded κ, this is O((N+L)log⁡(2+N+L)log⁡(1/ε)). 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 C~M. They imply no complete training-cost or long-context-accuracy bound.

The numerical procedure also receives the exact index partition {j:λj=−a} and {j:λj≠−a}, where a=2/Δ, so it can select the exceptional constant terms without a finite-precision equality test.

Facts & Assumptions

Given: The finite DPLR parameters, fixed rank, L≥1, M the least power of two at least L, 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 −2/Δ and those unequal to it.

[F1]

S4 state-space recurrence and convolution procedure: with supplied C~M, the filter procedure evaluates the truncated generating function at the Mth roots, handles z=−1 by its finite value, applies the inverse radix-two transform, and returns the first L coefficients.

[F2]

DPLR SSM filter values reduce to Cauchy products: each root value is given by the DPLR resolvent formula, the z=−1 value is (Δ/2)C~M∗B, and the four matrix-vector families reduce to (r+1)2 scalar Cauchy products.

[F3]

Exact roots-of-unity Cauchy matvec has quasi-linear arithmetic cost: for n≥1 poles and an M-root grid with no collisions, the exact Cauchy product costs O((n+M)log⁡2(2+n+M)) operations and O(n+M) space.

[F4]

Roots-of-unity orthogonality and radix-two FFT cost: the radix-two DFT and inverse cost O(Mlog⁡(2+M)) operations and O(M) space, and inverse transformation recovers the polynomial coefficients exactly.

[F5]

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 1/t.

[F6]

Numerical Cauchy products on a root grid with explicit accuracy scale: a root-grid Cauchy sum with certified scale s has absolute error δ in O((N+M)log⁡(2+M)log⁡(s/δ)) 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

1.1givenF1F2F5

By [F5], each fixed matrix GS,GT,GL 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 −1. Under the noncollision and correction-invertibility assumptions, the filter procedure in [F1] therefore computes all M generating values exactly.

1.2givenF2F6algebra

For z≠−1, R=βD. Substitution in [F2] gives HM(z)=x−βu(Ir+βT)−1v and W=Ir+βT. Also ∣β∣≤1. The pole mapping in [F2] expresses each entry of D as −2/(a+λj)(z−μj)−1 for λj≠−a, and as the constant Δ/2 otherwise. Thus the weights in [F6] are exactly −2fj‾gj/(a+λj) for the applicable vector pair f,g. Their preparation and the exceptional constant sums cost O(N) for fixed r. At −1, retain the direct value (Δ/2)C~M∗B from [F2], without a resolvent division.

2.1givenF2F3step 1.1algebra

Each scalar product has at most N poles and is evaluated on M roots. If it has at least one pole, [F3] bounds its cost by O((N+M)log⁡2(2+N+M)) operations and O(N+M) space; if it has no poles, its constant value is formed by a single finite sum in O(N+M) operations and space. There are at most (r+1)2 such products by [F2], a constant number because r is fixed. The per-root correction matrix products and inversions cost O(M(r+1)3) operations by finite-dimensional elimination, which is O(M) for fixed r.

2.2F1F4step 1.1algebra

The generating values are the DFT of the M coefficients C∗AˉjBˉ for 0≤j<M. By [F4], the inverse radix-two transform recovers these coefficients exactly; [F1] then returns their first L entries, which are precisely the length-L filter.

2.3givenstep 1.2algebra

Let δ=ε/[32rw2(b+1)2] 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 x^,u^,v^,T^. Each of their infinity-norm errors is at most e=rδ, since each row has at most r entries and r≥1. Hence ∥W^−W∥∞≤e, we<1/2 and e≤1. Writing E=W−1(W^−W), the geometric series ∑j≥0(−E)j converges in infinity norm because ∥E∥∞≤we<1/2, is the inverse of I+E by finite geometric identities and passage to the norm limit, and has norm at most 2. Therefore ∥W^−1∥∞≤2w. The identity W^−1−W−1=−W−1(W^−W)W^−1 gives ∥W^−1−W−1∥∞≤2w2e.

3.1givenF1F2F3F4step 2.1step 2.2algebra

Since M is the least power of two at least L, M<2L for every integer L≥1. Combining the Cauchy products, per-root corrections, and inverse transform gives O((N+L)log⁡2(2+N+L)) exact complex arithmetic operations. Processing the Cauchy products sequentially uses O(N) product-tree workspace; their (r+1)2 root-value arrays, the correction matrices, and the inverse transform use O(M(r+1)2) additional space. Fixed r and M<2L give total O(N+L) working space. The proof counts the supplied C~M as input and does not count its formation from C.

3.2givenF4step 1.2step 2.3algebra

Expanding the difference of the two triple products as (u^−u)W^−1v^+u(W^−1−W−1)v^+uW−1(v^−v) and using step 2.3 bounds its modulus by 2we(b+1)+2bw2e(b+1)+bwe. Adding the error in x and using ∣β∣≤1 bounds each generating-value error by e[1+2w(b+1)+2bw2(b+1)+bw]≤9w2(b+1)2e≤9ε/32. The direct −1 value has no truncation error. The exact inverse DFT averages M 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 9ε/32.

4.1givenF2F4F6step 3.1step 2.3algebra

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 ζj=e2πij/M, the filter grid is zk=e−2πik/M=ζ(−k mod M); run each numerical Cauchy product on the positive grid and permute its outputs to the filter order, in O(M) operations and words, preserving the maximum error and pole/root separation bounds. It uses p=O(log⁡(s/δ))=O(log⁡(κ/ε)) terms. There are at most (r+1)2 sums, processed sequentially; their arrays and the fixed-size blocks use O(N+M) words. The per-root inverses can be computed by the adjugate/determinant formula, which is constant work for fixed r and has nonzero determinants by step 2.3. Add the radix-two inverse transform and finite sums: the scalar count is O((N+M)log⁡(2+N+M)log⁡(κ/ε)). The replacement M<2L gives the stated count and space.

5.1givenF6step 2.3step 3.2step 4.1algebra∎

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 T0,V0,D0 with T0 an upper bound on its gates, V0≥1 an upper bound on exact intermediate moduli, and 0<D0≤1 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 K0=64(V0+1)2/D02 and select input and gate accuracy u≤min⁡(1,D0/2,ε/2)/(2K0T0+1), also sufficient for the certified overlapping routing tests of [F6]. The gate recurrence proved in [F6] then gives final additional error at most ε/2, 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 log⁡(κ/ε)=O(log⁡(1/ε)); arbitrary conditioning retains the explicit κ term.

Remarks

S4 Appendix C.3, Proposition 5 reports O((N+L)log⁡(N+L)log⁡(1/ε)) 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