Echo state networks are universal (Thm. 4.1)
OpenReservoirESN.esn_universalLet be a functional on uniformly bounded input sequences with the fading memory property: it sends an input history to the present value of an output, continuously for the weighted norm. The theorem asserts that for every accuracy there is an echo state network
with a squashing function and a reservoir matrix satisfying the contraction condition, whose linear readout approximates uniformly over all admissible inputs:
In words: any fading memory input/output system in discrete time is realized, to arbitrary accuracy, by a finite-dimensional network whose recurrent part is fixed and whose only trained component is a linear readout. This is the theorem that justifies reservoir computing as a method: it says the architecture is not merely convenient but expressive enough in principle, and that the training problem may legitimately be reduced to a linear regression.
The result is proved in the source. Its proof is not self-contained: the target functional is first approximated by a non-homogeneous state-affine system, using a density theorem established in a companion paper, and only then is that system replaced by an echo state network.
Formalization Note The statement is phrased for the functional rather than the filter. By Proposition 2.12 of the source the two are in linear bijection, with the fading memory property on one side equivalent to it on the other, so nothing is lost; this avoids formalizing causality and time-invariance separately. The approximating network is required to satisfy the contraction condition , which by the supporting target gives it the echo state property, so the state sequence it is evaluated at is the unique bounded one; the conclusion is stated for any such state sequence rather than presupposing a choice. The bound on the reservoir matrix is an operator inequality with an explicit constant, of which the spectral norm is one admissible value. The supremum over inputs is expressed as a universally quantified strict inequality.
import Mathlib import Definitions.Def_ReservoirESN open Matrix Metric ReservoirESN
namespace ReservoirESN
theorem esn_universal {n d : ℕ} (hd : 0 < d)
(M : ℝ) (hM : 0 < M) (w : ℕ → ℝ) (hw : IsWeighting w)
(H : (ℕ → EuclideanSpace ℝ (Fin n)) → EuclideanSpace ℝ (Fin d))
(hH : FunctionalFMP H M w) (ε : ℝ) (hε : 0 < ε) :
∃ (N : ℕ) (A : Matrix (Fin N) (Fin N) ℝ) (Cin : Matrix (Fin N) (Fin n) ℝ)
(ζ : EuclideanSpace ℝ (Fin N)) (W : Matrix (Fin d) (Fin N) ℝ)
(σ : ℝ → ℝ) (Lσ nA : ℝ),
IsSquashing σ Lσ ∧ 0 ≤ nA ∧
(∀ v : EuclideanSpace ℝ (Fin N),
‖(EuclideanSpace.equiv (Fin N) ℝ).symm (A *ᵥ (EuclideanSpace.equiv (Fin N) ℝ v))‖
≤ nA * ‖v‖) ∧
nA * Lσ < 1 ∧
∀ z : ℕ → EuclideanSpace ℝ (Fin n), UnifBdd M z →
∀ x : ℕ → EuclideanSpace ℝ (Fin N), IsESNSolution A Cin ζ σ z x →
(∀ k i, x k i ∈ Set.Icc (-1 : ℝ) 1) →
‖H z - (EuclideanSpace.equiv (Fin d) ℝ).symm
(W *ᵥ (EuclideanSpace.equiv (Fin N) ℝ (x 0)))‖ < ε := by sorry
end ReservoirESNRead-back
What the Lean code literally says, in plain math · claude-opus-5
Read-back — esn_universal
The statement fixes two natural numbers and (implicit arguments, so is unconstrained and may be ; is assumed to satisfy ), a real with , a sequence , a map
where and carry the Euclidean () norm, and a real with .
Three hypotheses are assumed.
- is a weighting sequence: for every , for every , is antitone (non-increasing), and as .
- has the functional fading-memory property with radius and weight : for every there exists such that for all input sequences satisfying and for every , if the pointwise weighted bound holds for every , then . (The weighted condition is a pointwise bound by , non-strict, not a statement about an actual supremum.)
- , , .
Under these hypotheses the conclusion asserts the existence of: a natural number ; a real matrix ; a real matrix ; a vector ; a real matrix ; a function ; and two reals and , such that all of the following hold simultaneously.
- is a squashing function with Lipschitz constant : ; for every real ; is monotone non-decreasing; as and as ; and for all reals .
- .
- bounds in operator norm: for every , , the norms being Euclidean.
- , strictly.
- For every input sequence with for every , and for every sequence such that
and such that additionally for all and , one has
Several features of the quantifier structure are worth stating explicitly. The objects are chosen before and , hence uniformly over all inputs bounded by and over all state sequences. The indexing convention is that increases into the past: the recursion expresses in terms of , and the approximation is asserted only at index .
The final clause is a conditional statement about state sequences ; the statement does not assert that such an exists for a given , nor that it is unique. If for some bounded no sequence satisfies the recursion, the requirement is vacuously met for that . The extra requirement is an additional hypothesis narrowing the sequences quantified over (it is already entailed by the recursion together with the range condition on ). The readout is purely linear: , with no bias term. Nothing constrains to be positive, and may be . The constant is any number satisfying the operator bound, not necessarily the operator norm itself; likewise is any admissible Lipschitz constant. The hypothesis and the weighting hypothesis on enter the statement only as stated assumptions; itself appears in the conclusion nowhere.
The declaration is stated without a proof (its proof term is a placeholder).
The following problem is reported by Fable 5. It seems this theorem is a stronger version of the one in the original paper. If that's intended, please ignore the report and submit again.
Theorem 4.1 does not give an approximant with
nA * Lσ < 1: its conclusion is about generalized filters and the echo state property is only conditional (the authors confirm this in Gonon and Ortega, "Fading memory echo state networks are universal", Neural Networks 2021, arXiv:2010.12047, whose own construction is a nilpotent shift register with no bound on ‖A‖₂·Lσ). So the goal as stated is not the cited theorem. Either replacenA * Lσ < 1by "for every admissible input the bounded state sequence exists and is unique" and cite the 2021 paper, or keep it and state in the source field and NL that this strengthening is not proved in either paper.