Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Fading memory of a contracting reservoir (Prop. 3.1(ii))

Proved
ReservoirESN.fmp_of_contracting

by olivier · Sep 11, 2026 · Mathlib 0df444a (Lean v4.33.1)

echo-state-networkfading-memorymachine-learningreservoir-computing

Let FFF be a reservoir map contracting with ratio r<1r < 1r<1 on the ball of radius LLL, uniformly over inputs of norm at most MMM, and let www be a weighting sequence. Then the induced filter has the fading memory property with respect to www: for every ε>0\varepsilon > 0ε>0 there is δ>0\delta > 0δ>0 such that any two admissible input sequences whose difference has weighted norm at most δ\deltaδ produce bounded solutions whose present states differ by less than ε\varepsilonε.

This is the second half of part (ii) of Proposition 3.1. The point of the source is that fading memory is not an extra hypothesis: it comes for free from the same contractivity condition that gives the echo state property. In the earlier literature the two were treated separately, contractivity being studied as a sufficient condition for the echo state property alone.

Fading memory is the continuity notion under which the approximation theory of Boyd and Chua, and the later universality results for reservoir systems, are stated; it is what licenses treating the input/output map as an operator that can be approximated.

Formalization Note Uniform continuity of the reservoir map in the input is an explicit hypothesis. It corresponds to the continuity assumption of Theorem 3.1 in the source, which is automatic on the compact balls of a finite-dimensional space; in a general normed space it must be required, since contractivity constrains only the dependence on the state. Continuity of the filter is stated in ε\varepsilonε-δ\deltaδ form against the weighted norm rather than the supremum norm, which is essential: a bound holding at each instant separately does not give continuity in the intended topology. The conclusion concerns the state at the present instant, which is the reservoir functional associated with the filter.

Preamble
import Mathlib
import Definitions.Def_ReservoirESN

open Matrix Metric ReservoirESN
Formal statement
namespace ReservoirESN

theorem fmp_of_contracting {E S : Type*} [NormedAddCommGroup E] [NormedAddCommGroup S]
    [CompleteSpace S] (F : S → E → S) (L M r : ℝ) (w : ℕ → ℝ)
    (hF : IsContracting F L M r) (hcont : UnifContInput F L M) (hw : IsWeighting w) :
    HasFadingMemory F L M w := by sorry

end ReservoirESN
Source
L. Grigoryeva, J.-P. Ortega, Echo state networks are universal, Neural Networks 108 (2018), 495-508, https://arxiv.org/abs/1806.00797, p. 11, Proposition 3.1, part (ii): the induced filter has the fading memory property.
Read-back

What the Lean code literally says, in plain math · claude-opus-5

Fix two real normed vector spaces (more precisely, two normed additive commutative groups) EEE and SSS, of arbitrary dimension, and assume SSS is complete. Fix a map

F:S×E→S,F : S \times E \to S,F:S×E→S,

three real numbers L,M,rL, M, rL,M,r, and a sequence of real numbers w:N→Rw : \mathbb{N} \to \mathbb{R}w:N→R. All of EEE, SSS, FFF, LLL, MMM, rrr, www are universally quantified; no finite-dimensionality, continuity, measurability or linearity is assumed of FFF beyond what the three hypotheses below state, and EEE is not assumed complete.

Throughout, sequences are indexed by N\mathbb{N}N read as "steps into the past": index kkk refers to the instant kkk steps before the present, and k=0k = 0k=0 is the present.

Hypothesis 1 (FFF is contracting with data L,M,rL, M, rL,M,r). All six of the following hold: 0≤r0 \le r0≤r; r<1r < 1r<1; 0<L0 < L0<L; 0<M0 < M0<M; for all x∈Sx \in Sx∈S and z∈Ez \in Ez∈E with ∥x∥≤L\|x\| \le L∥x∥≤L and ∥z∥≤M\|z\| \le M∥z∥≤M one has ∥F(x,z)∥≤L\|F(x,z)\| \le L∥F(x,z)∥≤L; and for all x,y∈Sx, y \in Sx,y∈S and z∈Ez \in Ez∈E with ∥x∥≤L\|x\| \le L∥x∥≤L, ∥y∥≤L\|y\| \le L∥y∥≤L, ∥z∥≤M\|z\| \le M∥z∥≤M,

∥F(x,z)−F(y,z)∥≤r ∥x−y∥.\|F(x,z) - F(y,z)\| \le r\,\|x - y\|.∥F(x,z)−F(y,z)∥≤r∥x−y∥.

Since LLL and MMM are strictly positive, these conditions are not vacuous.

Hypothesis 2 (uniform continuity in the input on the balls of radii LLL and MMM). For every ε>0\varepsilon > 0ε>0 there exists δ>0\delta > 0δ>0 such that for every state x∈Sx \in Sx∈S with ∥x∥≤L\|x\| \le L∥x∥≤L and every pair of inputs z,z′∈Ez, z' \in Ez,z′∈E with ∥z∥≤M\|z\| \le M∥z∥≤M, ∥z′∥≤M\|z'\| \le M∥z′∥≤M and ∥z−z′∥<δ\|z - z'\| < \delta∥z−z′∥<δ, one has ∥F(x,z)−F(x,z′)∥<ε\|F(x,z) - F(x,z')\| < \varepsilon∥F(x,z)−F(x,z′)∥<ε. The δ\deltaδ is uniform in xxx as well as in z,z′z, z'z,z′.

Hypothesis 3 (www is a weighting sequence). For every kkk, 0<wk0 < w_k0<wk​ and wk≤1w_k \le 1wk​≤1; www is antitone (j≤k⇒wk≤wjj \le k \Rightarrow w_k \le w_jj≤k⇒wk​≤wj​); and wk→0w_k \to 0wk​→0 as k→∞k \to \inftyk→∞.

Conclusion (fading memory for FFF with data L,M,wL, M, wL,M,w). For every ε>0\varepsilon > 0ε>0 there exists δ>0\delta > 0δ>0 such that: for all input sequences z,z′:N→Ez, z' : \mathbb{N} \to Ez,z′:N→E and all state sequences x,x′:N→Sx, x' : \mathbb{N} \to Sx,x′:N→S satisfying

  • ∥zk∥≤M\|z_k\| \le M∥zk​∥≤M and ∥zk′∥≤M\|z'_k\| \le M∥zk′​∥≤M for every kkk;
  • ∥xk∥≤L\|x_k\| \le L∥xk​∥≤L and ∥xk′∥≤L\|x'_k\| \le L∥xk′​∥≤L for every kkk;
  • the reservoir recursion holds for every k∈Nk \in \mathbb{N}k∈N (including k=0k = 0k=0):
xk=F(xk+1, zk),xk′=F(xk+1′, zk′);x_k = F\bigl(x_{k+1},\, z_k\bigr), \qquad x'_k = F\bigl(x'_{k+1},\, z'_k\bigr);xk​=F(xk+1​,zk​),xk′​=F(xk+1′​,zk′​);
  • and the weighted-difference bound holds termwise: for every kkk,
∥zk−zk′∥ wk≤δ,\|z_k - z'_k\|\, w_k \le \delta,∥zk​−zk′​∥wk​≤δ,

one has the strict estimate at the present instant

∥x0−x0′∥<ε.\|x_0 - x'_0\| < \varepsilon.∥x0​−x0′​∥<ε.

Several points are literal features of the statement. The parameter rrr appears only in Hypothesis 1; it does not occur in the conclusion. The completeness of SSS is assumed but appears nowhere in the conclusion's wording. The conclusion asserts nothing about the existence of solution sequences xxx: it is a statement about arbitrary pairs of sequences that already satisfy the recursion and the uniform bounds, so for input pairs admitting no such bounded solution the inner claim is vacuously satisfied. The state bounds ∥xk∥≤L\|x_k\| \le L∥xk​∥≤L and ∥xk′∥≤L\|x'_k\| \le L∥xk′​∥≤L are hypotheses imposed on the sequences, not derived. The weighted condition is a bound on each individual term ∥zk−zk′∥wk\|z_k - z'_k\| w_k∥zk​−zk′​∥wk​ by δ\deltaδ (equivalently, δ\deltaδ bounds the supremum over kkk), stated with a non-strict ≤\le≤, while the conclusion ∥x0−x0′∥<ε\|x_0 - x'_0\| < \varepsilon∥x0​−x0′​∥<ε is strict. The order of quantifiers is: δ\deltaδ depends only on ε\varepsilonε (and on F,L,M,wF, L, M, wF,L,M,w), and is then uniform over all admissible quadruples (z,z′,x,x′)(z, z', x, x')(z,z′,x,x′). Only the present-time discrepancy ∥x0−x0′∥\|x_0 - x'_0\|∥x0​−x0′​∥ is controlled; nothing is asserted about ∥xk−xk′∥\|x_k - x'_k\|∥xk​−xk′​∥ for k≥1k \ge 1k≥1.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me