Papers
Topics
Authors
Recent
Search
2000 character limit reached

Willems' Fundamental Lemma in Data-Driven Control

Updated 9 July 2026
  • Willems’ Fundamental Lemma is a theorem that characterizes all finite-horizon input-output trajectories of controllable discrete-time LTI systems via Hankel matrices of persistently exciting data.
  • It shows that a single trajectory with a persistently exciting input of order L+n can parameterize every possible length-L trajectory without explicit model identification.
  • This lemma underpins modern techniques in data-driven simulation, subspace identification, and predictive control, and its extensions address stochastic, descriptor, continuous-time, and nonlinear system settings.

Willems’ Fundamental Lemma is a behavioral and data-driven characterization of finite-horizon trajectories of discrete-time linear time-invariant systems. In its standard form, it states that, for a controllable system of state dimension nn, a single measured trajectory generated by an input that is persistently exciting of order L+nL+n suffices to parameterize every length-LL input-output trajectory of the same system through the column space of stacked Hankel matrices built from the measured data (Shakouri et al., 16 Mar 2025). In this sense, the lemma replaces explicit model identification by a direct trajectory representation from data, and it underlies modern data-driven simulation, subspace identification, and predictive control formulations such as DeePC (Berberich et al., 2022).

1. Formal statement in the behavioral setting

Consider the discrete-time LTI system

xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,

with xkRnx_k \in \mathbb{R}^n, ukRmu_k \in \mathbb{R}^m, and ykRpy_k \in \mathbb{R}^p. A behavioral formulation defines the set of all trajectories consistent with the system by

B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},

and its length-LL restriction by

BL(A,B,C,D)={[u[0,L1] y[0,L1]]:(u,y)B(A,B,C,D)}.\mathfrak{B}_L(A,B,C,D) = \left\{ \begin{bmatrix} u_{[0,L-1]} \ y_{[0,L-1]} \end{bmatrix} : (u,y)\in\mathfrak{B}(A,B,C,D)\right\}.

In this formulation, the key assumption is controllability of L+nL+n0. No observability or minimality assumption is required for the input-output statement in the behavioral/data-driven proofs summarized in the recent literature, even though some classical presentations use minimal realizations (Shakouri et al., 16 Mar 2025).

Given one measured trajectory L+nL+n1, define the depth-L+nL+n2 Hankel matrices

L+nL+n3

L+nL+n4

Each column of the stacked matrix L+nL+n5 is itself a valid length-L+nL+n6 trajectory segment, so one always has

L+nL+n7

Willems’ Fundamental Lemma states that this inclusion becomes an equality under a richness condition on the input (Shakouri et al., 16 Mar 2025).

A standard discrete-time formulation is

L+nL+n8

provided the measured input is persistently exciting of order L+nL+n9. Equivalently, for every LL0, there exists a coefficient vector LL1 such that

LL2

This representation is the central algebraic content of the lemma (Shakouri et al., 16 Mar 2025).

2. Persistency of excitation and data length

For an LL3-input signal, persistency of excitation of order LL4 is the rank condition

LL5

A necessary condition for this is that the Hankel matrix has at least LL6 columns: LL7 In the fundamental lemma, the relevant order is LL8, so the standard noise-free lower bound is

LL9

This is the usual sample-length requirement for a single experiment to generate a data matrix rich enough to span all length-xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,0 trajectories (Shakouri et al., 16 Mar 2025).

A closely related state-space rank condition appears in constructive proofs. If the input is persistently exciting of order xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,1, then for any consistent state sequence,

xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,2

where xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,3 is the shifted state Hankel. This identity is one of the technical mechanisms behind state-space proofs and constructive variants of the lemma (Shakouri et al., 16 Mar 2025).

Several later works refine the binary rank notion of excitation. A quantitative version introduces matrix-valued or singular-value-based excitation conditions such as

xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,4

or equivalently xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,5 for some xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,6. This preserves the same structural role as classical PE while making robustness margins explicit through lower bounds on singular values (Berberich et al., 2022). A related robust formulation emphasizes that ordinary full-rank tests are fragile under noise and replaces them by lower bounds on the smallest singular value of the relevant data matrices (Coulson et al., 2022).

This suggests a useful distinction. Classical PE is a feasibility condition for exact trajectory spanning in the noiseless setting, whereas quantitative PE is a conditioning condition for robust trajectory reconstruction, identification, and optimization in the presence of perturbations.

3. Universality and the necessity of PE

A recent development reframes the lemma through the notion of a universal input. Fix xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,7 and xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,8. An input xk+1=Axk+Buk,yk=Cxk+Duk,x_{k+1} = A x_k + B u_k,\quad y_k = C x_k + D u_k,9 is called universal for determining the xkRnx_k \in \mathbb{R}^n0-restricted behavior if, for every controllable xkRnx_k \in \mathbb{R}^n1 and every compatible measured output xkRnx_k \in \mathbb{R}^n2,

xkRnx_k \in \mathbb{R}^n3

In this terminology, Willems’ lemma gives the sufficiency direction: if the input is PE of order xkRnx_k \in \mathbb{R}^n4, then it is universal (Shakouri et al., 16 Mar 2025).

The main result of "A new perspective on Willems' fundamental lemma: Universality of persistently exciting inputs" (Shakouri et al., 16 Mar 2025) proves the converse: xkRnx_k \in \mathbb{R}^n5 Thus, persistency of excitation is not merely a sufficient richness requirement; it is exactly the necessary and sufficient condition for an input to work uniformly over the class of controllable systems (Shakouri et al., 16 Mar 2025).

The converse proof proceeds by contradiction. If xkRnx_k \in \mathbb{R}^n6 is not PE of order xkRnx_k \in \mathbb{R}^n7, then there exists a nonzero vector in xkRnx_k \in \mathbb{R}^n8, expressing a nontrivial linear dependence among all length-xkRnx_k \in \mathbb{R}^n9 sliding windows of the input. From this dependence one constructs a controllable pair ukRmu_k \in \mathbb{R}^m0, an initial state, and then an output map ukRmu_k \in \mathbb{R}^m1 with ukRmu_k \in \mathbb{R}^m2, such that the stacked Hankel ukRmu_k \in \mathbb{R}^m3 has a nontrivial left null vector. One can then exhibit a legitimate length-ukRmu_k \in \mathbb{R}^m4 trajectory not contained in its image, contradicting universality (Shakouri et al., 16 Mar 2025).

For ukRmu_k \in \mathbb{R}^m5, the paper further proves a stronger genericity statement: if the input is not PE of order ukRmu_k \in \mathbb{R}^m6, then for almost any controllable system ukRmu_k \in \mathbb{R}^m7 one can choose an initial state so that the associated stacked input-state Hankel is rank-deficient. The paper notes that such a generic failure statement need not hold in the same form for MIMO systems, even though the universality–PE equivalence remains valid (Shakouri et al., 16 Mar 2025).

A common misconception is therefore that PE is a conservative artifact of proof technique. The universality result shows that this interpretation is untenable when one asks for a single experiment that must work for all controllable plants of a given order. In that sense, the requirement ukRmu_k \in \mathbb{R}^m8 is exact rather than merely sufficient.

4. Variants and generalizations

A substantial literature extends the lemma beyond its standard deterministic, discrete-time, explicit-state setting.

For descriptor systems, the role of the state dimension is replaced by invariants of the quasi-Weierstraß form. If ukRmu_k \in \mathbb{R}^m9 is the dimension of the dynamic part and ykRpy_k \in \mathbb{R}^p0 the structured nilpotency index, then the corresponding PE order becomes ykRpy_k \in \mathbb{R}^p1 rather than ykRpy_k \in \mathbb{R}^p2, and one uses data truncated to ykRpy_k \in \mathbb{R}^p3 in the Hankel matrices (Faulwasser et al., 2022). A related descriptor-system formulation writes the PE order as ykRpy_k \in \mathbb{R}^p4, where ykRpy_k \in \mathbb{R}^p5 and ykRpy_k \in \mathbb{R}^p6 are pencil invariants, and shows that the non-causal algebraic part allows the last ykRpy_k \in \mathbb{R}^p7 samples to be omitted from the data Hankel used in the representation (Schmitz et al., 2022).

For stochastic systems, the behavioral idea is lifted from deterministic trajectories to ykRpy_k \in \mathbb{R}^p8-random variables and Polynomial Chaos Expansions. The resulting stochastic fundamental lemma characterizes admissible stochastic trajectories either coefficient-wise in the PCE basis or directly as random-variable trajectories parameterized by a random coefficient ykRpy_k \in \mathbb{R}^p9, while preserving a Hankel-based structure (Faulwasser et al., 2022). A later variant reduces the disturbance-data requirements by exploiting causality and PCE structure so that past disturbance Hankel blocks are no longer needed in the same way as in earlier formulations (Ou et al., 13 Feb 2025).

For continuous-time systems, two complementary directions appear. One line constructs a continuous-time counterpart from regularly sampled data and time-varying Hankel-like objects, together with a differential equation for a time-varying coefficient vector B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},0 that reproduces arbitrary piecewise differentiable trajectories from measured data (Lopez et al., 2022). Another line develops an input-output continuous-time version using jets, time shifts, and derivative-shift consistency conditions, thereby eliminating the need for internal state measurements (Lopez et al., 2024). A further development combines a continuous-time lemma with polynomial approximation arguments and derives suboptimality bounds for data-driven continuous-time LQ control (Schmitz et al., 2024).

For frequency-domain data, a version of the lemma replaces time-shifted Hankel structure by phase-ramp matrices B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},1 and lifted spectral data matrices B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},2. In that setting, collective persistency of excitation is formulated on measured frequency-response data and multiple input directions per frequency, enabling frequency-domain-data-driven simulation and a predictive control analogue called FreePC (Meijer et al., 2023, Meijer et al., 31 Jan 2025). A subsequent extension incorporates non-steady-state frequency-domain data by augmenting the system with a transient channel, allowing finite-record frequency data with transient contributions to be used directly (Meijer et al., 8 Apr 2025).

For nonlinear systems, one direction studies LPV embeddings and derives an LPV analogue of the lemma in the behavioral Ore-algebra setting (Verhoek et al., 2021). Another direction assumes the nonlinear system admits a finite-dimensional Koopman linear embedding and shows that sufficiently rich nonlinear trajectories span the trajectory space of the Koopman embedding, yielding a data-driven representation of the nonlinear system without explicitly selecting lifting functions (Shang et al., 2024). The links between such nonlinear extensions and kernel regression have also been formalized: the data equation can be recast in an implicit kernel form equivalent to a particular kernel regression problem, while retaining a PE requirement in the lifted coordinates (Molodchyk et al., 2024).

A further recent SISO relaxation replaces the classical PE perspective by input signal generators. In that framework, a generator dimension B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},3 is necessary and sufficient for informativity for almost all systems and initial conditions under generic assumptions, whereas B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},4 guarantees informativity for all initial conditions (Yang et al., 7 Apr 2026). This suggests an alternative dynamical-systems interpretation of input richness, rather than a purely rank-based one.

5. Applications in data-driven control and identification

The principal application of the lemma is non-parametric trajectory synthesis. DeePC and related data-driven MPC schemes impose linear constraints of the form

B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},5

with past and future blocks extracted from a Hankel matrix of one measured trajectory. Under PE of the required order and controllability, these feasibility constraints are equivalent to model-based consistency conditions, so that optimization may be carried out directly over trajectories represented by B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},6 (Berberich et al., 2022).

The same spanning property underlies subspace identification. In that context, sufficiently rich data are needed so that the relevant row and column spaces are spanned by measured Hankel blocks. The universality interpretation sharpens this point: PE is precisely the right richness notion when one wants an input that is informative for all controllable systems of the specified order, rather than only for one fixed plant (Shakouri et al., 16 Mar 2025).

Quantitative and robust versions make this useful in practice. Explicit lower bounds on

B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},7

can be derived from matrix-valued PE bounds on the input, providing constructive guarantees on B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},8 of the data matrix and thus on numerical robustness in least-squares reconstruction, identification, and predictive control (Berberich et al., 2022). Robust formulations motivated by this viewpoint compare predictive-control performance under different excitation levels and show that better singular-value conditioning of the data matrix yields improved robustness to noise (Coulson et al., 2022).

The lemma also supports system analysis tasks beyond time-domain prediction. Frequency-domain versions enable data-driven simulation, transfer-function evaluation at arbitrary frequencies, and predictive control from frequency-response measurements, including data collected in closed loop with a pre-stabilizing controller (Meijer et al., 31 Jan 2025). Multiple-dataset variants replace the single long experiment by several shorter experiments that are collectively persistently exciting, which is useful when data are fragmented or when unstable dynamics make long open-loop experiments undesirable (Waarde et al., 2020). Large noisy fragmented datasets have also motivated methods that estimate the invariant left-null-space structure associated with the lemma from many short experiments without assuming a known noise distribution (Kiani et al., 1 Apr 2026).

6. Scope, limitations, and recurring misconceptions

The standard exact statement is intrinsically noise-free. Small additive noise can make rank conditions appear satisfied while rendering the corresponding data matrices poorly conditioned, which is why robust formulations replace binary rank tests by singular-value or matrix-inequality bounds (Coulson et al., 2022). This does not invalidate the classical lemma; rather, it delineates the boundary between exact behavioral spanning and numerically reliable approximation.

Another recurring misconception is that observability is always required. Several classical state-space statements are written for minimal systems, but the behavioral input-output equality summarized in recent treatments requires controllability of B(A,B,C,D)={(u,y):x s.t. xk+1=Axk+Buk, yk=Cxk+Duk k},\mathfrak{B}(A,B,C,D) =\bigl\{(u,y): \exists x\text{ s.t. }x_{k+1}=Ax_k+Bu_k,\ y_k=Cx_k+Du_k\ \forall k\bigr\},9 and not observability or minimality of LL0 (Shakouri et al., 16 Mar 2025). By contrast, observability-type assumptions reappear in specific extensions, such as descriptor-system output-feedback MPC or continuous-time input-output formulations based on jets and lag conditions (Schmitz et al., 2022, Lopez et al., 2024).

A further misconception is that one necessarily needs one very long experiment. Single-trajectory statements do require PE of order LL1, but multi-dataset extensions replace this by collective PE across several shorter trajectories, and frequency-domain versions distribute richness across frequencies and input directions (Waarde et al., 2020, Meijer et al., 2023). This suggests that the essential object is not the chronological length of one record, but the rank content of the aggregated data.

Finally, current extensions remain structured by the same central theme: one seeks a data object whose column space equals a finite-horizon behavior. In discrete-time deterministic LTI systems, that object is the stacked Hankel built from one PE trajectory. In stochastic, descriptor, continuous-time, frequency-domain, LPV, Koopman-embedded, and kernelized settings, the technical details differ, but the governing principle remains the same: sufficiently rich data span the behavior, and trajectory generation becomes a linear-algebraic problem on measured data (Faulwasser et al., 2022).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (18)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Willems' Fundamental Lemma.