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 — Examples
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
- Recurrent, LSTM, and structured state-space models
- 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
None yet.
4 · Examples, counterexamples and false statements
A scalar LSTM cell with constant gates
Example
Take , set every LSTM weight and bias to zero, allow any scalar input sequence and any initial values . Then for every , the input, forget, and output gates equal , the candidate update is zero, and
Example references
Facts & Assumptions
Given: The scalar LSTM, zero weights and biases, arbitrary scalar inputs, and initial values as in the Example.
Standard LSTM cell: each gate's argument is its input-weight matrix times , plus its hidden-state matrix times , plus its bias; the gates use and coordinatewise , with and .
Proof
Every gate's affine argument is zero because all weights and biases vanish. By [F1], and , so and . Substitution into the cell recurrence gives and .
The recurrence in step 1.1 gives . If , then ; induction proves this for every . Substituting this expression into the hidden-state identity in step 1.1 gives .
A scalar state-space layer has matching recurrent and convolutional outputs
Example
Take the scalar state-space model , , direct term , step size , and initial state . For any integer and any length- scalar input sequence , the bilinear matrices are and , so the recurrence gives and for . The length- impulse kernel is , and its causal convolution gives the same outputs for .
Example references
Facts & Assumptions
Given: The scalar parameters and zero initial state in the Example, with a length- input sequence.
DPLR structured state-space parameterization: when is invertible, , , and the zero-state kernel has entries .
S4 state-space recurrence and convolution procedure: the recurrent mode solves and returns .
Proof
Here and , so [F1] gives and .
By [F2] and step 1.1, and . The base value is ; if , then . Induction proves .
By [F1] and step 1.1, every kernel coefficient is . Therefore its causal convolution at time is , which equals the recurrent output in step 2.1 after substituting .
The filter-operation bound is not a training-cost bound
Example
Assume with fixed , for diagonal and , , and . Let be invertible, let be the least power of two at least , set and , and supply . Assume the root-grid diagonal resolvents and corrections are invertible for every th root , where ; the value at , when that root occurs, is handled by its finite formula. In the exact complex arithmetic model, each scalar addition, multiplication, division, and zero test has unit cost, and the filter cost counts evaluation from the supplied , not its formation. A nonzero direct input-to-output term is separate from the kernel.
For numerical evaluation, at each root put and , and define , , , , and . Matrix infinity norm is maximum absolute row sum, and for a column it is maximum absolute entry. Suppose certified constants bound by and by over these roots. For every scalar Cauchy sum used for a scaled block, supply a certified pole/root separation and a weight bound with ; also supply the exact index partition or so the exceptional constant terms are selected, and form the finite constants and the value separately. Empty Cauchy sums need no separation certificate. Put .
For , assume variable-precision scalar arithmetic with unrestricted exponent range, certified input, root and arc-center approximations, certified enclosures sufficient for the geometric routing decisions, and the finite rational-circuit precision certificate. Explicitly, for the selected finite circuit let bound its arithmetic gates, bound exact intermediate moduli, and bound below every exact divisor modulus; with , choose . Each supplied input/constant approximation and each scalar arithmetic operation has absolute error at most ; each scalar operation and word access has unit cost. Precision and word lengths may depend on the input separation, correction conditioning, intermediate magnitudes and target accuracy. The operation and word counts exclude bit cost, computing the supplied certificates, and forming .
For the stated DPLR data, the length- kernel is . From the supplied , the exact filter procedure evaluates it using at most roots-of-unity Cauchy products, exact complex arithmetic operations, and working space. Under the numerical hypotheses above, for it returns with using scalar operations and scalar words; bounded- families have the factor . These evaluation counts exclude forming , computing the supplied certificates, and bit cost. The filter procedure does not compute parameter gradients or optimizer updates, so its count is not a bound for a complete training step. Neither the exact arithmetic count nor the conditional numerical guarantee supplies a fixed-word bound or an empirical long-context accuracy guarantee.
Example references
Facts & Assumptions
Given: Fixed DPLR parameters, a supplied transformed output vector, and the exact and certified numerical hypotheses in the Example.
S4 convolution-filter arithmetic and numerical cost: the exact operation and working-space bounds count evaluation of the filter from supplied ; numerical absolute error is proved with explicit separation, correction conditioning and variable precision, and a factor that reduces to on bounded- families.
S4 state-space recurrence and convolution procedure: the filter procedure takes DPLR parameters and and returns the first kernel coefficients after root evaluation and an inverse transform.
Proof
The procedure in [F2] receives parameters and returns a kernel. By [F1], the proved exact operation and space bounds count that filter-evaluation procedure with supplied.
The procedure's input/output specification in [F2] contains no parameter-gradient computation or optimizer update. Therefore its operation count does not count a larger computation that additionally performs either operation, including a complete training step.
The exact bound counts arithmetic operations and working space only. The separate numerical guarantee in [F1] specifies its absolute error, conditioning factor and variable-precision scalar model; it requires its own certified hypotheses. Its scalar-operation and word-space counts do not bound bit cost or guarantee a fixed word length, and neither cost theorem asserts empirical long-context accuracy. These additional conclusions therefore do not follow from the filter bounds.