Echo state property under the spectral condition (Cor. 3.2(ii))
ProvedReservoirESN.esn_esp_of_spectral_conditionConsider the echo state network
where is the reservoir matrix, the input matrix, a bias vector, and is applied componentwise. Assume takes values in and is Lipschitz with constant , and that satisfies the operator bound for all . If
then for every input sequence uniformly bounded by the network has exactly one state sequence with all components in satisfying the displayed equation.
This is part (ii) of Corollary 3.2 of the source, specialized to the echo state property. Taking to be the spectral norm recovers the condition stated there, which is the sufficient condition that has circulated in the reservoir computing literature since Jaeger. The source notes that this condition is far from sharp and that sharper ones are known; the statement here is the classical one.
Formalization Note The bound on is stated as an operator inequality with an explicit constant rather than through a named matrix norm, so that any valid bound may be supplied and the spectral norm is one admissible choice. States and inputs are Euclidean, so that the operator bound refers to the Euclidean norm as in the source. The confinement of the state to is expressed componentwise, matching the codomain of the squashing function; it is what plays the role of the invariant ball. Uniqueness is asserted among sequences with components in .
import Mathlib import Definitions.Def_ReservoirESN open Matrix Metric ReservoirESN
namespace ReservoirESN
theorem esn_esp_of_spectral_condition {n N : ℕ}
(A : Matrix (Fin N) (Fin N) ℝ) (Cin : Matrix (Fin N) (Fin n) ℝ)
(ζ : EuclideanSpace ℝ (Fin N)) (σ : ℝ → ℝ) (Lσ nA M : ℝ)
(hσ : IsSquashing σ Lσ) (hnA : 0 ≤ nA)
(hA : ∀ v : EuclideanSpace ℝ (Fin N),
‖(EuclideanSpace.equiv (Fin N) ℝ).symm (A *ᵥ (EuclideanSpace.equiv (Fin N) ℝ v))‖
≤ nA * ‖v‖)
(hspec : nA * Lσ < 1) (hM : 0 < M) (hN : 0 < N)
(z : ℕ → EuclideanSpace ℝ (Fin n)) (hz : UnifBdd M z) :
∃! x : ℕ → EuclideanSpace ℝ (Fin N),
(∀ k i, x k i ∈ Set.Icc (-1 : ℝ) 1) ∧ IsESNSolution A Cin ζ σ z x := by sorry
end ReservoirESNRead-back
What the Lean code literally says, in plain math · claude-opus-5
Read-back — esn_esp_of_spectral_condition
Fix two natural numbers and (both implicit; is unconstrained and may be , while is required to satisfy ). The statement takes as data:
- a square real matrix and a real matrix ;
- a vector , where carries the Euclidean () norm;
- a function and three real numbers , , ;
- a sequence of inputs, again with the Euclidean norm.
The hypotheses are:
- is a squashing function with constant , meaning all six of: ; for every real ; is monotone non-decreasing; as ; as ; and for all real .
- .
- bounds in operator -norm: for every , , the norms being Euclidean. ( is not defined to be the operator norm or the spectral radius; it is any real number for which this bound is assumed.)
- Spectral-type condition: , strictly.
- and .
- The input is uniformly bounded by : for every .
The conclusion asserts the existence of a unique sequence satisfying the conjunction of two properties:
- (a) Range constraint. For every index and every coordinate , the real number lies in the closed interval .
- (b) Echo-state equation. For every and every coordinate ,
i.e. componentwise application of to .
Several features of this formulation deserve to be stated explicitly.
The recursion runs backwards in the index: is expressed in terms of , the later index, not the earlier one. There is no initial condition at ; the equation is imposed at every simultaneously, and uniqueness is uniqueness of the whole two-sided-in-spirit sequence as a function .
Uniqueness is asserted only within the class of sequences satisfying both (a) and (b); nothing is claimed about sequences satisfying (b) alone. Note, however, that hypothesis 1 already forces to take values in , so any sequence satisfying (b) automatically satisfies (a); condition (a) therefore constrains nothing beyond (b).
The parameters and the bound enter only as hypotheses; appears nowhere in the conclusion, and no quantitative bound, contraction rate, or continuous dependence on is claimed. Likewise , and are arbitrary subject to the stated constraints.
Edge cases the quantifiers silently admit: is allowed, in which case is the zero space, is empty, is identically and hypothesis 6 is automatic. is allowed (forcing for all ), and then hypothesis 4 holds for any . The case cannot occur, since a -Lipschitz is constant and cannot have limits and at ; so hypothesis 1 is never satisfied with . No continuity, boundedness or measurability is assumed of beyond what hypothesis 1 lists, and no assumption whatever is made on .