Universality of SAS reservoir computers (Thm. 3.12)
ProvedReservoirSAS.sas_universalLet be a functional on scalar input sequences bounded by one, with the fading memory property. The theorem asserts that for every there exist polynomials , and a readout vector , with both polynomial bounds below , such that the associated state-affine system approximates uniformly:
This is Theorem 3.12 of the source. It is the density result of reservoir computing: the family of state-affine systems with linear readouts is dense in the fading memory category. Every later universality theorem for reservoir families rests on it, including the one for echo state networks, whose proof replaces the target filter by a state-affine system before replacing it by a network.
The proof is not constructive in the naive sense: the target is an arbitrary fading memory filter given by no formula. It proceeds by showing that the SAS functionals form a polynomial algebra separating points and containing the constants, then applying a Stone-Weierstrass argument on a space of inputs made compact by the weighted topology.
Formalization Note A single controls both the approximation accuracy and the polynomial bounds , exactly as in the source; it is not an independent tolerance. The state ceiling appearing in the conclusion is what the supporting target delivers for those bounds, and it is that target which guarantees such a state sequence exists and is unique, so the approximation clause is not vacuous. The conclusion is stated for every bounded solution rather than for a distinguished one, which is stronger. Inputs are scalar, as in Section 3 of the source. The fading memory property of the target is the one already published on the platform, stated for a functional rather than a filter; the two are in linear bijection.
import Mathlib import Definitions.Def_ReservoirESN import Definitions.Def_ReservoirSAS open Matrix Metric ReservoirESN ReservoirSAS
namespace ReservoirSAS
theorem sas_universal
(ε : ℝ) (hε0 : 0 < ε) (hε1 : ε < 1) (w : ℕ → ℝ) (hw : IsWeighting w)
(H : (ℕ → ℝ) → ℝ) (hH : FunctionalFMP H 1 w) :
∃ (N r s : ℕ) (P : Fin r → Matrix (Fin N) (Fin N) ℝ)
(Q : Fin s → EuclideanSpace ℝ (Fin N)) (W : EuclideanSpace ℝ (Fin N)),
MatPolyOpBound P (1 - ε) ∧ VecPolyBound Q (1 - ε) ∧
∀ z : ℕ → ℝ, (∀ k, z k ∈ Set.Icc (-1 : ℝ) 1) →
∀ x : ℕ → EuclideanSpace ℝ (Fin N), IsSASSolution P Q z x →
(∀ k, ‖x k‖ ≤ (1 - ε) / ε) →
|H z - inner ℝ W (x 0)| < ε := by sorry
end ReservoirSASRead-back
What the Lean code literally says, in plain math · claude-opus-5
The statement fixes a real number subject to and ; a sequence assumed to be a weighting sequence, meaning and for every , is non-increasing, and as ; and a functional sending a real-valued sequence to a real number . The functional is assumed to have the fading-memory property at input level relative to , which unfolds to:
This says nothing about on sequences that leave , and imposes no bound on the values of .
Under these hypotheses the theorem asserts the existence of three natural numbers , a family of real matrices , a family of vectors in the Euclidean space , and one further vector , such that three conditions hold simultaneously. Write
with the Euclidean norm throughout.
(i) Matrix-polynomial bound. For every real and every vector , . (This is stated vector-by-vector, not as a named operator norm.)
(ii) Vector-polynomial bound. For every real , .
(iii) Approximation clause. For every sequence whose every term lies in , and for every sequence of states satisfying both
one has the strict inequality
Several features of the quantification deserve to be made explicit. The index runs over and the recursion determines from the higher-indexed ; the term evaluated against is . The witnesses are chosen before and , so a single system and a single readout vector must work for all admissible inputs; conversely they are chosen after , and , so they may depend on all three. The sequence appears nowhere in the conclusion — it enters only through the hypothesis on . No bound whatsoever is placed on , and no relation is required between , and .
The numbers , , are unrestricted naturals and may be . With the sum defining is empty, so is the zero matrix; with , is the zero vector; with the space is trivial, every state is and the inner product is . In each of those cases conditions (i) and (ii) hold automatically, since .
The final clause asserts nothing about existence: it does not claim that an admissible input admits any state sequence satisfying the recursion, nor that a solution of the recursion satisfies the norm bound . For any admitting no such bounded solution, the inequality holds vacuously. In the other direction the clause quantifies over all bounded solutions attached to a given , so whenever several exist, each of their readouts must lie strictly within of .
Finally, the single parameter plays three distinct roles that are tied together: the contraction factor in (i), the vector bound in (ii) and the state-norm ceiling in (iii), and the approximation accuracy itself. Since , we have and . The accuracy claimed is exactly , strictly, and not an arbitrary independent tolerance. The declaration carries no proof; its body is left unproved.
Confirmed by the mission captain (proposal self-audit).