2. Math Toolkit I: Duality, LMIs & the S-Procedure

Lagrangian duality, semidefinite programming, Schur complements, S-lemma, quadratic constraints, dissipativity

Before you start

This module assumes:

How to study this module

Core reading. Work through one scalar Lagrangian, PSD matrices and the Lyapunov LMI, the definite-corner Schur complement, and one-constraint S-procedure. Then connect the sector inequality to the walkthrough, and read the elementary energy balance in dissipativity.

Practice route. Try the three readiness checks. If a skill is rusty, use its exact review link, then return. Work through Easy P1–P4, Medium P5–P8, and Hard P9–P12; each has a separate hint and a full worked solution. Reattempt a missed problem later without opening the answer.

Optional research reading. The supporting-hyperplane and Fenchel–Moreau detours, interior-point complexity, full KYP equivalence, and dynamic IQC refinements are research extensions. Learn what each certificate proves before returning to how the general theorem is established.

Readiness check — Three prerequisite skills

Try these before opening the answer. The review links lead to earlier material.

  1. What is the derivative of $(x-2)^2$? Review gradients.
  2. For $P=\operatorname{diag}(2,3)$, what is $x^\top Px$ at $x=(1,-1)^\top$? Review quadratic forms.
  3. Does $x=0$ satisfy the constraint $x-1\le0$ strictly? Review feasibility.
Show readiness answers

The derivative is $2(x-2)$. The quadratic form is $2(1)^2+3(-1)^2=5$. At $x=0$, $x-1=-1\lt0$, so the constraint is strictly satisfied. These are the operations underneath the first duality and matrix certificates.

Book contents · Apply this chapter to a real decision · Glossary

Contents
1. Lagrangian Duality & KKT 2. LMIs & Semidefinite Programs 3. The Schur Complement 4. The S-Procedure / S-Lemma 5. Quadratic Constraints 6. Dissipativity & the KYP Lemma Walkthrough: From a Quadratic Constraint to an LMI Interactive: S-Lemma in 2-D Interactive: Lyapunov LMI Feasibility Application lab & chapter review Exercises Graded practice: Easy, Medium & Hard Key Papers Flashcards

Almost every guarantee in this section is produced by the same four moves: dualise a constrained problem, write the certificate as a matrix inequality, use a Schur complement to make a quadratic term linear, and use the S-procedure to trade a "for all signals satisfying a constraint" statement for a single semidefinite condition. The Lagrangian methods of Modules 8–9 are the first move applied to a CMDP; LipSDP, the Sandwich layer, LipKernel, the Zames–Falb and Yin–Seiler–Arcak certificates of Modules 12–14 are the other three applied to a neural network. This page builds the tools slowly enough that those derivations can later be read line by line.

Notation on this page
Optimisation: decision variable $x\in\mathbb R^n$, Lagrange multipliers $\lambda\in\mathbb R^m_+$ (inequalities) and $\nu$ (equalities). Matrices: $\mathbb S^n$ symmetric $n\times n$ matrices, $\mathbb S^n_+$ the positive semidefinite (PSD) cone; $M\succeq 0$, $M\succ0$, $M\preceq0$, $M\prec0$ are matrix (Loewner) inequalities, never elementwise. Control: state $x_t$, input or disturbance $w_t$, output $z_t$ (see Primer D), storage function $V$, supply rate $s(w,z)$, $\ell_2$ gain $\gamma$ (see Primer D; in the RL modules and in the CMDP remarks of Section 1 $\gamma$ is the discount, elsewhere on this page it is a gain). Neural networks: weights $W_i$, activation $\varphi$ (see Primer E) slope-restricted in $[\alpha,\beta]$ (this $\beta$ is unrelated to the GP scaling $\beta_t$ of Modules 3–6), diagonal multiplier $T=\mathrm{diag}(\lambda_1,\dots,\lambda_n)\succeq0$. The clash between $\lambda$ (Lagrange multiplier) and $\lambda_i$ (entries of $T$) is deliberate: Section 4 shows that the entries of $T$ are Lagrange multipliers, one per neuron. LipSDP writes $\rho=L^2$ for the squared Lipschitz bound; LipKernel writes $\rho=L$. We follow LipSDP and say so whenever we switch. A few letters are reused locally and always re-introduced: $f_i,h_j$ are objective and constraint functions in Section 1 but $f,h$ are dynamics and output maps in Section 6 (neither is the barrier $h$ of Module 10); $A,B,C$ are generic matrix blocks in Sections 3–4 and system matrices in Section 6; $\rho(A)$ is the spectral radius of $A$ (see Primer A), unrelated to LipSDP's $\rho$.

1. Lagrangian Duality & KKT

Intuition — A starting example

Start with one price. In $\min (x-2)^2$ subject to $x\le1$, the unconstrained best point 2 is excluded, so the answer is $x=1$ with value 1. Write the constraint as $x-1\le0$ and attach a price $\lambda\ge0$: $L=(x-2)^2+\lambda(x-1)$. At a feasible point the added term is nonpositive, which is why minimizing this relaxed expression gives a lower bound. The sign and the order of the minimization/maximization are the main ideas to track; the graded problems compute the entire example.

In plain words. A constrained minimisation can be hard to solve directly. Duality turns it into an easier question. Attach a price $\lambda_i\ge0$ to each constraint, let the optimiser violate constraints if it pays the price, and see how low the cost can then go. Whatever the prices, this relaxed problem can only do better than the original one, so its value is a lower bound on the true optimum (weak duality). The dual problem looks for the prices that give the best lower bound. When that bound is exact (strong duality) and some prices attain it, those best prices, together with a primal optimum, are KKT multipliers in the sense of Primer B (for differentiable problems on an open domain). Exactness alone is not enough: the example $\min x$ s.t. $x^2\le0$ below has zero gap but no finite optimal price.

Symbols in this section

Duality is the art of bounding a hard minimisation from below by an easy maximisation. Nothing in this subsection assumes convexity until strong duality; the first two results hold for any problem, which is why they survive the non-convex policy spaces of Module 8.

Definition — Primal problem, Lagrangian, dual function
$$p^\star=\inf_{x\in\mathcal D} f_0(x)\quad\text{s.t.}\quad f_i(x)\le0,\ i=1,\dots,m,\qquad h_j(x)=0,\ j=1,\dots,p.$$

Here $f_0$ is the objective, $\mathcal D$ is the set on which all $f_i,h_j$ are defined, and a point $x\in\mathcal D$ satisfying every constraint is feasible (see Primer B).

The Lagrangian attaches a price to each constraint, $$L(x,\lambda,\nu)=f_0(x)+\sum_{i=1}^m\lambda_i f_i(x)+\sum_{j=1}^p\nu_j h_j(x),\qquad \lambda\in\mathbb R^m_+,\ \nu\in\mathbb R^p .$$ The dual function is its infimum over the domain without the original constraints, $g(\lambda,\nu)=\inf_{x\in\mathcal D}L(x,\lambda,\nu)$ (possibly $-\infty$; see Primer B), and the dual problem is $d^\star=\sup_{\lambda\ge0,\ \nu}\ g(\lambda,\nu)$.

We define $p^\star$ by an infimum and $d^\star$ by a supremum and write min or max only when an optimiser exists: in the example $\min x$ s.t. $x^2\le0$ below, $d^\star=\sup_{\lambda>0}\big(-1/(4\lambda)\big)=0$, but no finite $\lambda$ attains it. An empty feasible set gives $p^\star=+\infty$.

Theorem — Concavity of the dual and weak duality
For any primal problem (convex or not): (i) $g$ is concave (see Primer B) on $\mathbb R^m\times\mathbb R^p$; (ii) $g(\lambda,\nu)\le p^\star$ for every $\lambda\ge0$ and every $\nu$, hence $d^\star\le p^\star$. The number $p^\star-d^\star\ge0$ is the duality gap. In words: every nonnegative price vector yields a lower bound on the optimal cost, and the best bound is found by maximising a concave function, however hard the primal is. The one assumption, $\lambda\ge0$, is what makes a priced constraint penalise violation instead of rewarding it.
Proof sketch — Both statements in five lines each

(i) Concavity. For fixed $x$ the map $(\lambda,\nu)\mapsto L(x,\lambda,\nu)$ is affine (it is $f_0(x)$ plus a linear function of $(\lambda,\nu)$). Take $\theta\in[0,1]$ and two multiplier pairs $\mu=(\lambda,\nu)$, $\mu'=(\lambda',\nu')$. Then

$$g(\theta\mu+(1-\theta)\mu')=\inf_x\big[\theta L(x,\mu)+(1-\theta)L(x,\mu')\big]\ \ge\ \theta\inf_x L(x,\mu)+(1-\theta)\inf_x L(x,\mu')=\theta g(\mu)+(1-\theta)g(\mu'),$$

because the infimum of a sum is at least the sum of the infima (each term is bounded below by its own infimum). A pointwise infimum of affine functions is concave; no property of $f_i$ was used.

(ii) Weak duality. Let $\tilde x$ be primal feasible. Since $\lambda_i\ge0$ and $f_i(\tilde x)\le0$ we have $\sum_i\lambda_if_i(\tilde x)\le0$, and $h_j(\tilde x)=0$ kills the equality terms, so $L(\tilde x,\lambda,\nu)\le f_0(\tilde x)$. Therefore

$$g(\lambda,\nu)=\inf_{x\in\mathcal D}L(x,\lambda,\nu)\ \le\ L(\tilde x,\lambda,\nu)\ \le\ f_0(\tilde x).$$

Taking the infimum over feasible $\tilde x$ gives $g(\lambda,\nu)\le p^\star$; maximising over $\lambda\ge0,\nu$ gives $d^\star\le p^\star$. The only place the sign $\lambda\ge0$ enters is the step $\lambda_if_i(\tilde x)\le0$, which is why dual variables of inequalities live on the nonnegative orthant while those of equalities are free. $\blacksquare$

Connection to Module 8
Constrained RL uses the mirror image (maximisation): $\max_\pi J_r(\pi)$ s.t. $J_c(\pi)\le d$, Lagrangian $J_r(\pi)-\lambda\,(J_c(\pi)-d)$, dual function $D(\lambda)=\max_\pi L(\pi,\lambda)\ge p^\star$, which is convex in $\lambda$, and dual problem $\min_{\lambda\ge0}D(\lambda)$. Every inequality above flips, nothing else changes. See Module 8 for the CMDP version and its primal-dual algorithms.

Strong duality and Slater's condition

Theorem — Strong duality under Slater's condition
Suppose the problem is convex ($f_0,\dots,f_m$ convex, $h_j$ affine, $\mathcal D$ convex) and Slater's condition holds: there is a point $\bar x$ in the relative interior of $\mathcal D$ (see Primer B) with $f_i(\bar x)\lt0$ for all non-affine $f_i$ (affine inequalities only need $f_i(\bar x)\le0$) and $h(\bar x)=0$. Then $p^\star=d^\star$, and if $p^\star\gt-\infty$ the dual optimum is attained by some $(\lambda^\star,\nu^\star)$ (Boyd & Vandenberghe 2004, Sec. 5.2.3).

The affine hull of a set is the smallest affine subspace containing it; the relative interior is the interior measured inside that subspace. A line segment in $\mathbb R^2$ has empty ordinary interior, but every point except its endpoints lies in its relative interior. This matters when $\mathcal D$ is lower-dimensional, e.g. the probability simplex $\{x\ge0,\ \sum_ix_i=1\}$; the equality constraints themselves never need to hold strictly.

In words: for convex problems with a strictly feasible point, the best lower bound is exact and is achieved by a finite multiplier. Why each assumption matters: convexity makes the perturbation function $p^\star(u)$ of the collapsible below convex, so its epigraph has a supporting hyperplane at $u=0$ (theorem below); strict feasibility of every inequality keeps $0$ in the interior of the domain of $p^\star$, which rules out a vertical supporting hyperplane, i.e. an infinite multiplier. The support is then the graph of an affine function $p^\star(0)-(\lambda^\star)^{\top}u$ that never exceeds $p^\star(u)$: its slope is minus the optimal multiplier. The refinement that lets affine inequalities hold only non-strictly needs a separate (polyhedral) argument: the constraints $x\le0$, $-x\le0$ satisfy it at $\bar x=0$, yet the domain of their $p^\star$ is $\{u:u_1+u_2\ge0\}$, with $0$ on its boundary. Slater is sufficient, not necessary: linear programs have zero gap whenever they are feasible and bounded.

Theorem — Supporting and separating hyperplanes (Boyd & Vandenberghe 2004)

A hyperplane is $\{x:a^Tx=c\}$ with $a\ne0$. If nonempty convex sets $C,D\subset\mathbb R^n$ are disjoint and $D$ is open, there are $a\ne0,c\in\mathbb R$ such that $a^Tx\ge c\ge a^Ty$ for every $x\in C,y\in D$. Closedness of $C$ is not required.

For a convex function $f:\mathbb R^m\to\mathbb R\cup\{+\infty\}$, finite somewhere and never $-\infty$, every $u_0$ in the interior of $\{u:f(u)\lt+\infty\}$ admits $b\in\mathbb R^m$ with $f(u)\ge f(u_0)+b^T(u-u_0)$ for all $u$. The relative-interior version measures directions inside the affine hull of that domain.

Intuition. An affine lower bound touches the graph at the point in question. Convexity keeps the graph above it; an interior point prevents a vertical support. Separation is the corresponding statement for two sets, and will be used again in the S-lemma proof.

Boyd & Vandenberghe 2004, Sections 2.5 and 5.3

Going deeper — The geometry of the duality gap (perturbation function)

Drop the equality constraints for readability and define the perturbation function $p^\star(u)=\inf\{f_0(x):f_i(x)\le u_i,\ i=1..m\}$, so $p^\star(0)=p^\star$. It is nonincreasing in $u$ (looser constraints, smaller minimum). The dual function is a Legendre-type transform (see Primer B) of it:

$$g(\lambda)=\inf_{u}\big[p^\star(u)+\lambda^{\top}u\big]\qquad(\lambda\ge0).$$

Proof. ($\ge$) For any $x\in\mathcal D$ put $u=f(x)$; then $x$ is feasible for the $u$-perturbed problem, so $f_0(x)\ge p^\star(f(x))$ and $L(x,\lambda)\ge p^\star(u)+\lambda^{\top}u\ge\inf_u[\cdot]$. Take the infimum over $x$. ($\le$) Fix $u$ and any $x$ with $f(x)\le u$; because $\lambda\ge0$, $L(x,\lambda)\le f_0(x)+\lambda^{\top}u$; take the infimum over such $x$ to get $g(\lambda)\le p^\star(u)+\lambda^{\top}u$, then over $u$. $\blacksquare$

So $g(\lambda)$ is the largest intercept $c$ such that the affine function $u\mapsto c-\lambda^{\top}u$ lies below the graph of $p^\star$ everywhere; $d^\star$ is the best such intercept over all slopes $-\lambda\le0$. Because $p^\star$ is nonincreasing (and the primal is feasible), affine minorants with other slopes add nothing, so $d^\star$ is the value at $u=0$ of the closed convex envelope of $p^\star$, the supremum of all its affine minorants. Zero duality gap means the graph of $p^\star$ meets this envelope at $u=0$. A finite optimal multiplier is a further requirement: given zero gap, it exists iff a non-vertical supporting line touches the graph at $u=0$; its slope is then $-\lambda^\star$, which gives the sensitivity interpretation $\lambda^\star_i=-\partial p^\star(0)/\partial u_i$ when $p^\star$ is differentiable. The two can come apart: for $\min x$ s.t. $x^2\le0$ we have $p^\star(u)=-\sqrt u$ for $u\ge0$ and $p^\star=d^\star=0$, but $g(\lambda)=-1/(4\lambda)$ only tends to $0$ as $\lambda\to\infty$, because the tangent at $u=0$ is vertical (exactly what Slater's condition rules out). For a non-convex primal the graph can have a dent at $u=0$; the envelope then passes strictly below and the gap $p^\star-d^\star$ is the depth of the dent. A finite dual optimum can still exist there, but its line supports the envelope at $(0,d^\star)$, below the graph, which is why the touching-line test above presumes zero gap: for $\min x$ over $x\in\{-1,1\}$ s.t. $-x\le0$ we have $p^\star=1$ and $g(\lambda)=-|1-\lambda|$, so $d^\star=0$ is attained at $\lambda^\star=1$ despite a gap of $1$. Dual ascent maximises $g$, which only sees the envelope, so it targets the multiplier of the convexified problem (and converges to it under the step-size conditions above, when it exists); but the primal minimisers $x(\lambda_k)$ need not converge and can oscillate between minimisers on either side of the dent (for one constraint, typically the two points whose mixture the envelope represents), none of which is both feasible and optimal. This "primal recovery" failure motivates the state-augmentation construction discussed in Module 8.

The $x^2\le0$ example in detail. For $\lambda\gt0$ complete the square: $x+\lambda x^2=\lambda\big(x+\tfrac{1}{2\lambda}\big)^2-\tfrac{1}{4\lambda}$, so $g(\lambda)=-1/(4\lambda)$; at $\lambda=0$, $g(0)=\inf_x x=-\infty$. The feasible set is $\{0\}$, so $p^\star=0=\sup_{\lambda\ge0}g(\lambda)=d^\star$, but no finite $\lambda$ attains the supremum.

Theorem — Fenchel–Moreau, finite-dimensional form

Let $f:\mathbb R^m\to\mathbb R\cup\{+\infty\}$ be proper (finite somewhere), convex and lower semicontinuous, i.e. its epigraph $\{(u,t):t\ge f(u)\}$ is closed. Define the conjugate $f^*(b)=\sup_u(b^{\top}u-f(u))$ and the biconjugate $f^{**}(u)=\sup_b(b^{\top}u-f^*(b))$, the supremum of all affine lower bounds of $f$. Then $f=f^{**}$. For a proper $f$ that has at least one affine lower bound, $f^{**}$ is its closed convex envelope, the greatest lower-semicontinuous convex function below $f$. For a concave, upper-semicontinuous $P$ apply this to $-P$: affine upper bounds recover $P$.

Intuition. Each slope gives the best affine lower bound with that slope; their supremum fills non-convex dents from below, and convexity plus closedness mean there is no dent to fill. Here $g(\lambda)=\inf_u[p^\star(u)+\lambda^{\top}u]=-(p^\star)^*(-\lambda)$, so $d^\star$ is the closed convex envelope of $p^\star$ evaluated at $u=0$ (Boyd & Vandenberghe 2004, Sec. 3.3.2 and Ch. 5).

Theorem — Primal recovery from a saddle point

For the primal problem of this section, suppose $x^\star$ is feasible, $\lambda^\star\ge0$, $x^\star$ globally minimises $L(\cdot,\lambda^\star,\nu^\star)$ over $\mathcal D$, and $\lambda_i^\star f_i(x^\star)=0$ for every $i$. Then $x^\star$ is primal optimal, $(\lambda^\star,\nu^\star)$ is dual optimal, and the gap is zero. No convexity is needed: $g(\lambda^\star,\nu^\star)=L(x^\star,\lambda^\star,\nu^\star)=f_0(x^\star)$ because the constraint terms vanish, and weak duality $g(\lambda^\star,\nu^\star)\le d^\star\le p^\star\le f_0(x^\star)$ forces equality throughout (Boyd & Vandenberghe 2004, Sec. 5.4–5.5).

Intuition. A multiplier alone is not a solution: a Lagrangian minimiser counts as a recovered primal solution only after feasibility and complementary slackness are checked. In the $\{-1,1\}$ example both minimisers at $\lambda^\star=1$ fail ($x=-1$ is infeasible, $x=1$ violates $\lambda^\star f_1(x)=0$), as they must when there is a gap. Letting a policy depend on extra state, such as the current multiplier, is a different construction with its own assumptions and guarantees; Module 8 develops it.

The one non-convex problem that matters most here has no dent: Paternain et al., NeurIPS 2019 prove that a CMDP with bounded rewards and a Slater point has zero duality gap, because its perturbation function $P(\xi)=\max_\pi V_0(\pi)$ s.t. $V_i(\pi)\ge c_i+\xi_i$ is concave: the set of occupancy measures is convex (see Primer E), so any two feasible policies can be mixed at the level of occupancy measures, and the value is linear in the occupancy measure. Fenchel–Moreau then gives $P^\star=D^\star$ (their Theorem 1). This holds over the class of all policies; for an $\epsilon$-universal parameterised policy class their Theorem 2 only bounds how far the parameterised dual value $D^\star_\theta$ falls below the unrestricted optimum, $0\le P^\star-D^\star_\theta\le(B_{r_0}+\|\lambda^\star_\epsilon\|_1B_r)\,\Delta_\epsilon$, a term linear in $\epsilon$. Here $B_{r_i}$ bound the rewards, $B_r=\max_{i\ge1}B_{r_i}$, $\lambda^\star_\epsilon$ is the optimal multiplier of the unrestricted problem with every constraint tightened by $B_r\Delta_\epsilon$, and $\Delta_\epsilon=\epsilon/(1-\gamma)^2$ for the paper's unnormalised values (the paper prints $\epsilon/(1-\gamma)$, the right scale for returns normalised by $1-\gamma$). The parameterised problem's own duality gap $D^\star_\theta-P^\star_\theta$ is not bounded directly. This is the regime of Module 8, which derives the corrected constant.

Why occupancy measures form a convex set. For a finite discounted MDP with initial distribution $\mu$ and transition probabilities $P(s\mid s',a')$, let $d(s,a)=(1-\gamma)\sum_{t\ge0}\gamma^t\Pr(s_t=s,a_t=a)$. These nonnegative numbers satisfy the linear flow equations $\sum_a d(s,a)=(1-\gamma)\mu(s)+\gamma\sum_{s',a'}P(s\mid s',a')\,d(s',a')$, so a convex combination of two occupancy measures satisfies them too; conversely, every nonnegative solution is the occupancy measure of the stationary policy $\pi(a\mid s)=d(s,a)/\sum_bd(s,b)$ (any action where $\sum_bd(s,b)=0$). Values are linear in $d$: $V(\pi)=(1-\gamma)^{-1}\sum_{s,a}d(s,a)r(s,a)$. Mixing two policies at the level of $d$ therefore mixes their values linearly.

Theorem — Discounted CMDP duality and approximation (finite MDP)

Take finitely many states and actions, a fixed transition law and initial distribution, $0\le\gamma\lt1$, rewards $|r_i|\le B_{r_i}$ and unnormalised values $V_i(\pi)=\mathbb E_\pi\sum_{t\ge0}\gamma^tr_i(s_t,a_t)$, over all stationary randomised policies. (i) If some policy has $V_i(\pi)\gt c_i$ for every constraint $i=1,\dots,m$, then $P^\star=\max\{V_0(\pi):V_i(\pi)\ge c_i\ \forall i\}$ equals $D^\star=\min_{\lambda\ge0}\max_\pi\big[V_0(\pi)+\sum_i\lambda_i(V_i(\pi)-c_i)\big]$, with both optima attained. (ii) Suppose moreover that the class $\{\pi_\theta\}$ is $\epsilon$-universal: for every stationary $\pi$ some $\pi_\theta$ has $\sup_s\sum_a|\pi(a\mid s)-\pi_\theta(a\mid s)|\le\epsilon$. Put $\Delta_\epsilon=\epsilon/(1-\gamma)^2$ and $B_r=\max_{i\ge1}B_{r_i}$, and assume the problem with tightened thresholds $c_i+B_r\Delta_\epsilon$ is feasible with optimal multiplier $\lambda^\star_\epsilon$. Then $D^\star_\theta=\inf_{\lambda\ge0}\sup_\theta\big[V_0(\pi_\theta)+\sum_i\lambda_i(V_i(\pi_\theta)-c_i)\big]$ satisfies

$$0\le P^\star-D^\star_\theta\le\big(B_{r_0}+\|\lambda^\star_\epsilon\|_1B_r\big)\Delta_\epsilon .$$

In words: occupancy measures turn the unrestricted problem into a linear program, so there is no dent; restricting to the parameterised class costs at most a term linear in $\epsilon$. Part (ii) does not bound the parameterised problem's own gap $D^\star_\theta-P^\star_\theta$, and the approximation must hold uniformly over all states (Paternain et al. 2019, Theorems 1–2, specialised to finite MDPs with the unnormalised constant).

Proof of (ii). Write $\delta=B_r\Delta_\epsilon$, $D(\lambda)=\max_\pi\big[V_0(\pi)+\lambda^{\top}(V(\pi)-c)\big]$ and $P_\delta$ for the tightened optimum. The tightened problem has dual function $D(\lambda)-\delta\sum_i\lambda_i$, and it is again a linear program in $d$, so its gap is zero: $P_\delta=D(\lambda^\star_\epsilon)-\delta\|\lambda^\star_\epsilon\|_1\ge P^\star-\delta\|\lambda^\star_\epsilon\|_1$, using weak duality $D(\lambda)\ge P^\star$. Now approximate a tightened optimal policy by some $\pi_\theta$. By the return-error bound below, each value moves by at most $B_{r_i}\Delta_\epsilon$, so $\pi_\theta$ still satisfies $V_i\ge c_i$ and has $V_0(\pi_\theta)\ge P_\delta-B_{r_0}\Delta_\epsilon$. Because this $\pi_\theta$ is feasible, every $\lambda\ge0$ gives $\sup_\theta[\cdots]\ge V_0(\pi_\theta)$, hence $D^\star_\theta\ge P_\delta-B_{r_0}\Delta_\epsilon$; restricting the inner supremum to the class gives $D^\star_\theta\le D^\star=P^\star$. Combining the three inequalities gives the display. $\blacksquare$

Where $\epsilon/(1-\gamma)^2$ comes from. Run $\pi$ and $\pi_\theta$ from the same initial distribution and let $e_t$ be the $\ell_1$ distance between their state distributions at time $t$, so $e_0=0$. Adding and subtracting the joint law that pairs the first state distribution with the second policy shows that the state-action distributions differ by at most $e_t+\epsilon$. A transition kernel cannot increase $\ell_1$ distance: if $P_{ji}$ is the probability of moving to state $j$ from state-action pair $i$, then $\sum_j|\sum_iP_{ji}a_i|\le\sum_i|a_i|\sum_jP_{ji}=\sum_i|a_i|$. Hence $e_{t+1}\le e_t+\epsilon$, and by induction the time-$t$ state-action error is at most $(t+1)\epsilon$. With $|r|\le B_r$ the value error is at most $B_r\epsilon\sum_{t\ge0}(t+1)\gamma^t=B_r\epsilon/(1-\gamma)^2$, because $\big(\sum_{k\ge0}\gamma^k\big)^2$ contains each power $\gamma^t$ exactly $t+1$ times. For instance, $\gamma=0.9$, $B_r=1$, $\epsilon=0.01$ already allow a value error of $0.01/0.1^2=1$.

KKT conditions

Definition — Karush–Kuhn–Tucker conditions

First time? Primer B builds these conditions up from a picture, with worked examples, constraint qualifications and approximate KKT points.

For differentiable $f_i,h_j$ (see Primer B) on an open domain $\mathcal D$ (e.g. $\mathcal D=\mathbb R^n$; Boyd & Vandenberghe Sec. 5.5.3 assume open domains), a triple $(x^\star,\lambda^\star,\nu^\star)$ is a KKT point if $$\begin{aligned} &\text{primal feasibility:}\quad x^\star\in\mathcal D,\ \ f_i(x^\star)\le0,\ \ h_j(x^\star)=0;\qquad \text{dual feasibility:}\quad \lambda^\star\ge0;\\ &\text{complementary slackness:}\quad \lambda_i^\star f_i(x^\star)=0\ \ \forall i;\\ &\text{stationarity:}\quad \nabla f_0(x^\star)+\sum_i\lambda_i^\star\nabla f_i(x^\star)+\sum_j\nu_j^\star\nabla h_j(x^\star)=0 . \end{aligned}$$ Theorem. (a) If strong duality holds and $x^\star$, $(\lambda^\star,\nu^\star)$ are primal and dual optimal, they form a KKT point. (b) For a convex problem, every KKT point is primal-dual optimal with zero gap. In words: at a primal-dual optimal pair with zero gap, nonnegative prices on the active constraints balance the gradient of the objective; zero gap together with an attained dual optimum (both supplied by Slater's condition when $p^\star$ is finite) is what makes such prices exist (necessity), and convexity is what makes a local balance a global certificate (sufficiency). Zero gap alone is not enough: for $\min x$ s.t. $x^2\le0$ (the vertical-tangent example above) the gap is zero, yet stationarity $1+2\lambda x^\star=1\ne0$ fails for every $\lambda$. If $\mathcal D$ is instead a closed convex set (say $x\ge0$), stationarity must include the boundary of $\mathcal D$: $0\in\nabla_xL(x^\star,\lambda^\star,\nu^\star)+N_{\mathcal D}(x^\star)$ with $N_{\mathcal D}$ the normal cone (see Primer B). Example: $\min x$ over $\mathcal D=[0,\infty)$ has zero gap and $x^\star=0$, yet $f_0'(0)=1\ne0$.

Here $N_{\mathcal D}(x)=\{v:v^{\top}(y-x)\le0\ \text{for every}\ y\in\mathcal D\}$ is the set of outward normal vectors of $\mathcal D$ at $x$ (only $v=0$ at interior points, which recovers ordinary stationarity), and $0\in a+N$ means $a+v=0$ for some $v\in N$. In the example $N_{[0,\infty)}(0)=(-\infty,0]$, so the gradient $1$ is balanced by the normal $v=-1$.

Proof sketch — Why KKT is necessary under strong duality with attained optima and sufficient under convexity

(a) Strong duality gives the chain

$$f_0(x^\star)=g(\lambda^\star,\nu^\star)=\inf_xL(x,\lambda^\star,\nu^\star)\le L(x^\star,\lambda^\star,\nu^\star)=f_0(x^\star)+\sum_i\lambda^\star_if_i(x^\star)\le f_0(x^\star),$$

where the last step uses $\lambda^\star_i\ge0$, $f_i(x^\star)\le0$, $h_j(x^\star)=0$. The two ends are equal, so every inequality is an equality: $x^\star$ minimises $L(\cdot,\lambda^\star,\nu^\star)$ over the open set $\mathcal D$ (hence its gradient vanishes there: stationarity), and $\sum_i\lambda^\star_if_i(x^\star)=0$ with every term $\le0$ (hence each term is zero: complementary slackness).

(b) If the problem is convex, $L(\cdot,\lambda^\star,\nu^\star)$ is convex in $x$ and stationarity says $x^\star$ is its global minimiser, so $g(\lambda^\star,\nu^\star)=L(x^\star,\lambda^\star,\nu^\star)=f_0(x^\star)$ by complementary slackness. Weak duality closes the sandwich: $p^\star\ge d^\star\ge g(\lambda^\star,\nu^\star)=f_0(x^\star)\ge p^\star$. $\blacksquare$

Complementary slackness is the statement students most often misread: a multiplier can only be positive on an active constraint, and an inactive constraint has zero price. In the dual-ascent dynamics below this is exactly the "multiplier decays to zero while the constraint is slack" behaviour.

Dual ascent: what Lagrangian safe RL actually does

Algorithm idea — Dual ascent is projected gradient ascent on $g$
Let $x(\lambda)\in\arg\min_xL(x,\lambda)$ (inequality constraints only, for brevity). Then $f(x(\lambda))=(f_1(x(\lambda)),\dots,f_m(x(\lambda)))$ is a supergradient of $g$ at $\lambda$: $$g(\lambda')=\inf_xL(x,\lambda')\le L(x(\lambda),\lambda')=f_0(x(\lambda))+\lambda'^{\top}f(x(\lambda))=g(\lambda)+(\lambda'-\lambda)^{\top}f(x(\lambda))\quad\forall\lambda'.$$ Geometrically, the affine function $\lambda'\mapsto g(\lambda)+(\lambda'-\lambda)^{\top}f(x(\lambda))$ lies above the concave $g$ everywhere and touches it at $\lambda$, just as a tangent plane does when $g$ is differentiable. If moreover $x$ ranges over a compact set on which the $f_i$ are continuous and the minimiser $x(\lambda)$ is unique, $g$ is differentiable at $\lambda$ with $\nabla g(\lambda)=f(x(\lambda))$ (Danskin's theorem). Uniqueness alone is not enough on an unbounded domain: for $f_0(x)=x^2+x^4$, $f_1(x)=-x^4$ the minimiser at $\lambda=1$ is unique ($x=0$), yet $g(\lambda)=0$ for $\lambda\le1$ and $g(\lambda)=-\infty$ for $\lambda\gt1$. Projected supergradient ascent on the concave $g$ is $$\lambda_{k+1}=\big[\lambda_k+\eta\,f(x(\lambda_k))\big]_+ .$$ With a constant step $\eta$ and bounded supergradients, subgradient-method theory only guarantees that the best dual value found comes within $O(\eta)$ (see Primer 0) of $d^\star$; convergence of $\lambda_k$ to a dual optimum (when one exists) needs diminishing steps, e.g. $\sum_k\eta_k=\infty$ and $\sum_k\eta_k^2\lt\infty$.

For a vector $v$, $[v]_+$ means $([v]_+)_i=\max\{v_i,0\}$, the Euclidean projection onto the nonnegative orthant. The supergradient formula assumes an attained, exact inner minimum. In reward-maximising RL, take gradient ascent steps on $J_r-\lambda J_c$, while keeping the update $\lambda\leftarrow[\lambda+\eta(J_c-d)]_+$. Approximate policy updates do not automatically inherit the exact dual-ascent convergence theorem.

Here $O(\eta)$ means an error bounded by $C\eta$ for sufficiently small $\eta$, with $C$ independent of $\eta$. Later, $O(n^3)$ describes work bounded by a constant times $n^3$ as the matrix size grows. These statements suppress constants; they do not specify an exact error or runtime.

Algorithm 1: Dual ascent (the template behind every Lagrangian safe-RL method)
  1. Initialise $\lambda_0\ge0$, step size $\eta\gt0$.
  2. for $k=0,1,2,\dots$:
  3. primal step: $x_k\leftarrow\arg\min_xL(x,\lambda_k)$ // in RL: a few policy-gradient steps (see Primer E) on $J_r-\lambda_kJ_c$ (RCPO, PPO-Lagrangian)
  4. dual step: $\lambda_{k+1}\leftarrow[\lambda_k+\eta\,f(x_k)]_+$ // in RL: $f(x_k)=J_c(\pi_k)-d$, projection keeps $\lambda\ge0$
  5. return $(x_k,\lambda_k)$.

Read the dual step as a controller: the multiplier integrates the constraint violation (see Primer D), growing while $J_c\gt d$ and shrinking (until it hits zero) while the constraint is slack. This is precisely the update of Tessler et al., ICLR 2019 (RCPO, with $\lambda$ on the slowest timescale) and the reason Stooke et al., ICML 2020 could add proportional and derivative terms to it. Replacing the exact inner minimisation by one or two gradient steps turns dual ascent into gradient descent–ascent, whose oscillations and overshoot are the subject of Module 8. The same dualisation solves the trust-region subproblem of CPO through its low-dimensional dual (Module 9) and the CBF-QP safety filter in closed form via KKT (Module 10).

Worked example — A two-variable QP solved via KKT, its dual and the shadow price

Problem (a quadratic program, see Primer B). $\min_{x\in\mathbb R^2}(x_1-2)^2+(x_2-1)^2$ subject to $x_1+x_2\le1$. Convex, and $x=0$ is strictly feasible, so strong duality holds.

KKT. With $f_1(x)=x_1+x_2-1$, stationarity reads $2(x_1-2)+\lambda=0$, $2(x_2-1)+\lambda=0$, i.e. $x_1=2-\lambda/2$, $x_2=1-\lambda/2$. Case $\lambda=0$: $x=(2,1)$, but $f_1=2\gt0$, infeasible. Case $\lambda\gt0$: complementary slackness forces $x_1+x_2=1$, i.e. $3-\lambda=1$, so $\lambda^\star=2$ and $x^\star=(1,0)$ with $p^\star=1+1=2$.

Dual function. Minimising the Lagrangian in closed form (same stationarity equations) gives

$$g(\lambda)=\tfrac{\lambda^2}{4}+\tfrac{\lambda^2}{4}+\lambda\big((2-\tfrac{\lambda}{2})+(1-\tfrac{\lambda}{2})-1\big)=2\lambda-\tfrac{\lambda^2}{2},$$

a concave parabola maximised at $\lambda=2$ with $d^\star=4-2=2=p^\star$: zero gap, as promised.

Shadow price. Perturb the constraint to $x_1+x_2\le1+u$. The optimum is the squared distance from $(2,1)$ to the line $x_1+x_2=1+u$, $p^\star(u)=(2-u)^2/2$ for $u\le2$, so $-\mathrm dp^\star/\mathrm du\,|_{u=0}=2=\lambda^\star$. Relaxing the constraint by one unit is worth two units of objective, at the margin.

Worked example — computing a dual function by hand

Take the problem from Primer B's KKT examples: minimise $f_0(x)=(x_1-2)^2+(x_2-1)^2$ subject to $f_1(x)=x_1+x_2-1\le0$. Its optimum is $x^\star=(1,0)$ with $p^\star=2$.

Step 1: the Lagrangian. $L(x,\lambda)=(x_1-2)^2+(x_2-1)^2+\lambda(x_1+x_2-1)$.

Step 2: minimise over $x$, ignoring the constraint. Setting the gradient to zero, $2(x_1-2)+\lambda=0$ and $2(x_2-1)+\lambda=0$, gives $x_1=2-\lambda/2$ and $x_2=1-\lambda/2$.

Step 3: substitute back.

$$g(\lambda)=\frac{\lambda^2}{4}+\frac{\lambda^2}{4}+\lambda\,(3-\lambda-1)=2\lambda-\frac{\lambda^2}{2}.$$

Step 4: read off the bounds. Every price gives a lower bound on $p^\star=2$: $g(0)=0$, $g(1)=1.5$, $g(3)=1.5$. The best price maximises $g$: $g'(\lambda)=2-\lambda=0$ gives $\lambda^\star=2$ and $d^\star=g(2)=2=p^\star$. The gap is zero, as the strong duality theorem promises for this convex problem with a strictly feasible point (for example $x=(0,0)$). The best price $\lambda^\star=2$ is exactly the KKT multiplier found in Primer B.

Worked example — a duality gap from a yes/no decision

Duality gaps appear when the problem is not convex. Let the decision be yes or no, $x\in\mathcal D=\{0,1\}$, and minimise $f_0(x)=x$ subject to $f_1(x)=0.5-x\le0$. Only $x=1$ is feasible, so $p^\star=1$.

The dual function minimises $L(x,\lambda)=x+\lambda(0.5-x)$ over the two points of $\mathcal D$:

$$g(\lambda)=\min\big\{L(0,\lambda),\,L(1,\lambda)\big\}=\min\big\{0.5\lambda,\ 1-0.5\lambda\big\}.$$

The first term rises with $\lambda$ and the second falls, so the best price is where they cross, $\lambda=1$, with $d^\star=0.5$. The gap is $p^\star-d^\star=0.5$. The dual answers the question as if $x=0.5$ were allowed: it only sees the convex relaxation $x\in[0,1]$ of the yes/no choice. The same mechanism gives a gap when constrained RL optimises over a restricted, non-convex policy class (Module 8).

2. LMIs & Semidefinite Programs

In plain words. A symmetric matrix $M$ is positive semidefinite, $M\succeq0$, if the quadratic form $x^{\top}Mx$ is never negative: picture a bowl that does not dip below zero in any direction. A linear matrix inequality (LMI) asks for unknown numbers that make a matrix, built linearly from those numbers, positive semidefinite. That sounds exotic, but stability, gain and Lipschitz certificates all take this form. And the set of solutions is always convex, so computers can search it reliably.

Symbols in this section

A linear matrix inequality is a constraint on a vector of unknowns that says "this symmetric matrix, which depends affinely on the unknowns, is positive semidefinite". Its power comes from a coincidence: the PSD cone is convex, yet it can express Lyapunov, gain, robustness and Lipschitz conditions that look hopelessly nonlinear when written out entrywise.

Definition — The PSD cone and the Loewner order
For $M\in\mathbb S^n$ the following are equivalent and define $M\succeq0$: (i) $x^{\top}Mx\ge0$ for all $x\in\mathbb R^n$; (ii) all eigenvalues of $M$ are $\ge0$; (iii) $M=R^{\top}R$ for some matrix $R$. Replacing $\ge$ by $\gt$ (for $x\ne0$) defines $M\succ0$; $M\preceq0$ means $-M\succeq0$; $A\succeq B$ means $A-B\succeq0$. Two facts carry the whole page:
  • Cone. $\mathbb S^n_+$ is a closed convex cone: $\theta A+\mu B\succeq0$ for $A,B\succeq0$ and $\theta,\mu\ge0$, since $x^{\top}(\theta A+\mu B)x=\theta x^{\top}Ax+\mu x^{\top}Bx\ge0$.
  • Congruence. For any matrix $R$ of compatible size, $M\succeq0\Rightarrow R^{\top}MR\succeq0$, because $x^{\top}R^{\top}MRx=(Rx)^{\top}M(Rx)$. If $R$ is square and invertible the implication is an equivalence ($Rx$ ranges over all vectors).
Definition — Linear matrix inequality and semidefinite program
Given $F_0,F_1,\dots,F_m\in\mathbb S^n$, the constraint $$F(x)=F_0+\sum_{i=1}^m x_iF_i\ \succeq\ 0\qquad(x\in\mathbb R^m)$$ is a linear matrix inequality (LMI) in $x$; $F(x)\succ0$ is a strict LMI. A matrix unknown $P\in\mathbb S^n$ is covered by expanding $P=\sum_kp_kE_k$ in a basis of $\mathbb S^n$, so "$A^{\top}PA-P\prec0$ is an LMI in $P$" is a statement of this form with $m=n(n+1)/2$. A semidefinite program minimises a linear objective over LMI constraints: $$\min_{x}\ c^{\top}x\quad\text{s.t.}\quad F(x)\succeq0 .$$ Several LMIs are one LMI (block-diagonal matrices: Primer A): $F^{(1)}(x)\succeq0,\dots,F^{(k)}(x)\succeq0$ iff $\mathrm{blkdiag}\big(F^{(1)}(x),\dots,F^{(k)}(x)\big)\succeq0$, and a linear inequality $a^{\top}x\le b$ is a $1\times1$ LMI, so LPs are SDPs with diagonal $F$.

For example, a symmetric $2\times2$ unknown $P=\begin{bmatrix}p_1&p_2\\p_2&p_3\end{bmatrix}=p_1E_1+p_2E_2+p_3E_3$ with $E_1=\begin{bmatrix}1&0\\0&0\end{bmatrix}$, $E_2=\begin{bmatrix}0&1\\1&0\end{bmatrix}$, $E_3=\begin{bmatrix}0&0\\0&1\end{bmatrix}$ has three scalar unknowns, and for fixed $A$, $P-A^{\top}PA=\sum_kp_k(E_k-A^{\top}E_kA)$. So $A^{\top}PA-P\prec0$ is the strict LMI $F(p)\succ0$ with $F_0=0$ and $F_k=E_k-A^{\top}E_kA$. In size $n$ there are $n$ diagonal and $n(n-1)/2$ off-diagonal unknowns, $n(n+1)/2$ in total.

Theorem — The feasible set of an LMI is convex
If $F(x)\succeq0$ and $F(y)\succeq0$ then $F(\theta x+(1-\theta)y)\succeq0$ for all $\theta\in[0,1]$. Proof. $F$ is affine, so $F(\theta x+(1-\theta)y)=\theta F(x)+(1-\theta)F(y)$, a nonnegative combination of two PSD matrices, which is PSD by the cone property. $\blacksquare$ Hence an SDP is a convex problem: a linear objective over a convex set. Strong duality (Section 1) applies to SDPs under Slater's condition ($F(\bar x)\succ0$ for some $\bar x$), and interior-point solvers return primal and dual certificates together.
Going deeper — The dual of an SDP, and what a dual certificate proves

Dualise $\min_x c^{\top}x$ s.t. $F(x)\succeq0$ exactly as in Section 1, but with a matrix multiplier $Z\in\mathbb S^n$ and the pairing $\operatorname{tr}(ZF)$: $L(x,Z)=c^{\top}x-\operatorname{tr}\big(ZF(x)\big)=\sum_ix_i\big(c_i-\operatorname{tr}(F_iZ)\big)-\operatorname{tr}(F_0Z)$. This is affine in $x$, so its infimum is $-\infty$ unless every coefficient vanishes, and the dual problem is

$$d^\star=\max_{Z\succeq0}\ -\operatorname{tr}(F_0Z)\quad\text{s.t.}\quad\operatorname{tr}(F_iZ)=c_i,\ \ i=1,\dots,m .$$

Weak duality in one line. For primal-feasible $x$ and dual-feasible $Z$: $c^{\top}x+\operatorname{tr}(F_0Z)=\sum_ix_i\operatorname{tr}(F_iZ)+\operatorname{tr}(F_0Z)=\operatorname{tr}\big(F(x)Z\big)=\operatorname{tr}\big(Z^{1/2}F(x)Z^{1/2}\big)\ge0$. The condition $Z\succeq0$ plays the role of $\lambda\ge0$: the PSD cone is self-dual ($\operatorname{tr}(FZ)\ge0$ for every $F\succeq0$ iff $Z\succeq0$). If the primal is strictly feasible and $p^\star$ is finite, then $p^\star=d^\star$ and the dual optimum is attained (Slater for generalized inequalities, Boyd & Vandenberghe Sec. 5.9, Example 5.11), and an optimal pair satisfies $\operatorname{tr}\big(F(x^\star)Z^\star\big)=0$, i.e. $F(x^\star)Z^\star=0$: complementary slackness as a matrix product.

The two missing steps. Self-duality, converse direction: if $\operatorname{tr}(FZ)\ge0$ for every $F\succeq0$, test with $F=vv^{\top}$ to get $\operatorname{tr}(Zvv^{\top})=v^{\top}Zv\ge0$ for every $v$, i.e. $Z\succeq0$. Complementary slackness: for $F,Z\succeq0$, cyclicity of the trace gives $\operatorname{tr}(FZ)=\operatorname{tr}\big((F^{1/2}Z^{1/2})(F^{1/2}Z^{1/2})^{\top}\big)=\|F^{1/2}Z^{1/2}\|_F^2$, the sum of squared entries (Frobenius norm). If this trace is zero then $F^{1/2}Z^{1/2}=0$, hence $FZ=F^{1/2}(F^{1/2}Z^{1/2})Z^{1/2}=0$.

Why it matters for certificates. Any dual-feasible $Z$ proves the lower bound $c^{\top}x\ge-\operatorname{tr}(F_0Z)$ without trusting the solver, and infeasibility has a certificate too: the strict LMI $F(x)\succ0$ is infeasible iff there is $Z\succeq0$, $Z\ne0$, with $\operatorname{tr}(F_iZ)=0$ for all $i$ and $\operatorname{tr}(F_0Z)\le0$ (Boyd & Vandenberghe, Example 5.14). The easy direction is the same trace argument: $F(x)\succ0$ and $Z\ne0$ would give $0\lt\operatorname{tr}(F(x)Z)=\operatorname{tr}(F_0Z)\le0$.

Feasibility versus optimisation, and the first LMI that matters

Half of the certificates in this section are pure feasibility questions ("does a Lyapunov matrix exist?", see Primer D), the other half are optimisation problems ("what is the smallest Lipschitz bound this method can certify?"). Solvers do not distinguish them: to test strict feasibility of $F(x)\succ0$ one solves $\min t$ s.t. $F(x)+tI\succeq0$ and checks whether $t^\star\lt0$. The objectives we will meet are $\min\rho$ (LipSDP), $\min\gamma^2$ ($\ell_2$ gain) and, for a certified ellipsoid (see Primer A) $\mathcal E(P)=\{x:x^{\top}Px\le1\}$, $\min\operatorname{tr}P$, the linear proxy for "large $\mathcal E(P)$" that Yin, Seiler & Arcak and Pauli et al. use for regions of attraction. The volume of $\mathcal E(P)$ is proportional to $(\det P)^{-1/2}$, so $\max\log\det P$ would find the smallest ellipsoid; the largest one needs $\min\log\det P$, which is not convex in $P$. When the constraints permit it, a remedy is the variable $S=P^{-1}$ (constraints rewritten as LMIs in $S$, usually by a congruence) and $\max\log\det S$ (see Primer B): a concave objective over LMIs, i.e. a determinant-maximisation problem rather than an SDP with a linear objective, still solved efficiently by interior-point methods (Boyd et al. 1994, Sec. 2.2.4).

Two details. First, a negative feasible margin is all that is needed: any feasible pair $(x,t)$ with $t\lt0$ gives $F(x)\succeq-tI\succ0$, and conversely if $F(x)\succ0$ then any $t\lt0$ with $|t|\le\lambda_{\min}(F(x))$ is feasible; the auxiliary problem may be unbounded below, so no finite attained $t^\star$ is required. Second, the substitution $S=P^{-1}$ helps only if every constraint becomes an LMI in $S$: congruence of $A^{\top}P+PA\prec0$ with $S$ gives $SA^{\top}+AS\prec0$, but other constraints on $P$ may become nonlinear in $S$.

Theorem — The discrete-time Lyapunov LMI
For $A\in\mathbb R^{n\times n}$ the following are equivalent: (i) $A$ is Schur stable (see Primer D), i.e. its spectral radius satisfies $\rho(A)\lt1$; (ii) the LMI $P\succ0$, $A^{\top}PA-P\prec0$ is feasible; (iii) for some (equivalently, every) $Q\succ0$ the Stein equation $A^{\top}PA-P=-Q$ has a unique solution and it satisfies $P\succ0$. The matrix $P$ is the certificate: $V(x)=x^{\top}Px$ strictly decreases along $x_{t+1}=Ax_t$.
Proof sketch — LMI feasibility implies stability, and stability implies the Stein solution

(ii) $\Rightarrow$ (i). Since $A^{\top}PA-P\prec0$ there is $\epsilon\gt0$ with $A^{\top}PA-P\preceq-\epsilon I$ (take $\epsilon$ the smallest eigenvalue of $P-A^{\top}PA$). Along a trajectory, $V(x_{t+1})-V(x_t)=x_t^{\top}(A^{\top}PA-P)x_t\le-\epsilon\|x_t\|^2\le-\tfrac{\epsilon}{\lambda_{\max}(P)}V(x_t)$, so $V(x_t)\le(1-\epsilon/\lambda_{\max}(P))^tV(x_0)\to0$ geometrically; because $V(x)\ge\lambda_{\min}(P)\|x\|^2$ with $\lambda_{\min}(P)\gt0$, every trajectory converges to $0$, which for a linear map means $\rho(A)\lt1$ (an eigenvector of an eigenvalue with $|\lambda|\ge1$ would not decay).

(i) $\Rightarrow$ (iii). If $\rho(A)\lt1$ the series $P=\sum_{k\ge0}(A^{\top})^kQA^k$ converges, is $\succeq Q\succ0$, and satisfies $A^{\top}PA-P=\sum_{k\ge1}(A^{\top})^kQA^k-\sum_{k\ge0}(A^{\top})^kQA^k=-Q$. Uniqueness: the linear map $P\mapsto A^{\top}PA-P$ has eigenvalues $\lambda_i\lambda_j-1$ ($\lambda_i$ eigenvalues of $A$), all nonzero when $\rho(A)\lt1$. Finally (iii) $\Rightarrow$ (ii) is immediate with $Q=I$. $\blacksquare$ The second interactive explorer solves exactly this Stein equation for a $2\times2$ system and draws the certificate.

Convergence and uniqueness without operator eigenvalues. For Schur-stable $A$ and any $q$ with $\rho(A)\lt q\lt1$ there is $c\ge1$ with $\|A^k\|_2\le c\,q^k$ (Primer D). Each summand therefore has norm $\|(A^{\top})^kQA^k\|_2\le c^2\|Q\|_2\,q^{2k}$, and the series converges by comparison with a geometric series. If $P_1,P_2$ both solve the Stein equation, $H=P_1-P_2$ satisfies $H=A^{\top}HA$; iterating gives $H=(A^{\top})^kHA^k\to0$, so $H=0$.

Why SDP solvers work, what they cost, and the tooling

The interior of the LMI set has a natural barrier (see Primer B), $\phi(x)=-\log\det F(x)$: it is smooth and convex on $\{F(x)\succ0\}$ (strictly convex when $F_1,\dots,F_m$ are linearly independent, which holds whenever the feasible set is nonempty and bounded) and blows up at the boundary. Nesterov and Nemirovski showed that it is self-concordant (made precise in the theorem below), which is what makes damped Newton steps on $t\,c^{\top}x+\phi(x)$ predictable. Following the central path while increasing $t$ needs $O(\sqrt{n}\log(1/\varepsilon))$ Newton iterations for an $n\times n$ LMI and accuracy $\varepsilon$; in practice the iteration count is a few tens and nearly size independent (Boyd, El Ghaoui, Feron & Balakrishnan 1994, Ch. 2). The cost is in each Newton step: forming the $m\times m$ Newton system costs on the order of $m\,n^3+m^2n^2$ and solving it $m^3$. With a handful of variables and a large matrix this is $O(n^3)$ per step; with a full matrix variable, $m\sim n^2$, it becomes $O(n^6)$. LipSDP-Neuron on a network with $n$ hidden neurons sits in between: about $n$ diagonal multipliers and a matrix of size about $n$ (plus the input dimension), so a dense Newton step costs roughly $O(n^4)$. That is why the dense SDP becomes impractical for large networks and Module 12 turns to sparse and layer-wise variants.

Theorem — Log-determinant path following (Boyd et al. 1994)

Let $F(x)=F_0+\sum_i x_iF_i\in\mathbb S^n$, let $\{x:F(x)\succ0\}$ be nonempty, and remove redundant variable directions so that $\nabla^2\phi$ is positive definite, where $\phi=-\log\det F$. For a direction $h$, set $\psi(s)=\phi(x+sh)$. Then $|\psi'''(0)|\le2\,\psi''(0)^{3/2}$ and $|\psi'(0)|\le\sqrt{n\,\psi''(0)}$: $\phi$ is a self-concordant barrier with parameter $n$. Suppose the linear-objective SDP has finite optimum, a central path exists, and a starting point in a fixed Newton neighbourhood of that path is available with certified gap bound $G_0>\varepsilon>0$. A standard short-step path-following method reaches duality gap at most $\varepsilon$ in $O(\sqrt n\log(G_0/\varepsilon))$ Newton steps (up to an additive initial step count).

Intuition. The derivative inequalities limit how rapidly curvature changes along any line. That makes a Newton step and a small increase in the path parameter predictable. The count assumes a suitable start and exact arithmetic; finding the start, solving each linear system and controlling numerical error are additional work. For $F=x>0$, $\phi=-\log x$ has $\phi^{(2)}=1/x^2$ and $|\phi^{(3)}|=2/x^3$, exactly the curvature bound.

Boyd et al. 1994, Chapter 2

Tooling. In Python, CVXPY parses LMIs written as M << 0 and hands them to a solver; in MATLAB, YALMIP does the same. MOSEK and Clarabel are interior-point solvers (high accuracy, $O(n^3)$–$O(n^6)$ per iteration); SCS is a first-order ADMM solver that scales further at the price of $10^{-3}$–$10^{-5}$ accuracy. The stack varies by paper: Pauli et al.'s ADMM training (L-CSS 2022) and Zames–Falb analysis (CDC 2021) solve their SDPs with YALMIP and MOSEK, whereas LipKernel's direct parameterisations need no solver at all and are implemented in PyTorch.

Background — ADMM and copies of the weights

ADMM is the alternating direction method of multipliers. It keeps two copies of the variable, writes the task as $\min_{W,Z}\ell(W)+I_C(Z)$ subject to $W=Z$, where $I_C$ is zero on the certificate-feasible set $C$ and $+\infty$ outside it, and alternates three steps: minimise the loss plus an agreement penalty over $W$, project onto $C$ to update $Z$, and update a multiplier that accumulates the disagreement $W-Z$. This describes the training strategy; convergence guarantees for convex splitting do not automatically apply to a neural-network loss.

For example, with $C=[-1,1]$, the constrained copy of a scalar weight $2$ is pulled back to $1$. With penalty $r>0$ and scaled multiplier $u$, the agreement penalty is $(r/2)\|W-Z+u\|^2$; after the two minimisations, set $u^+=u+W-Z$. This split makes the certificate step explicit.

Common mistake — Matrix inequality is not elementwise inequality
$M\succeq0$ says $x^{\top}Mx\ge0$ for every $x$; it says nothing about the signs of the entries. $\begin{bmatrix}1&2\\2&1\end{bmatrix}$ has only positive entries but eigenvalues $3$ and $-1$, so it is not PSD; $\begin{bmatrix}2&-1\\-1&2\end{bmatrix}$ has a negative entry and eigenvalues $1,3$, so it is positive definite. Likewise $A\succeq B$ does not mean $A_{ij}\ge B_{ij}$, and $A\succeq B\succeq0$ does not imply $A^2\succeq B^2$. When a paper writes $M\preceq0$ for a certificate, it means "all eigenvalues nonpositive"; checking a certificate returned by a solver means computing those eigenvalues.
Caveat — A solver status is not a certificate
Interior-point solvers return $M\preceq0$ only up to a tolerance (typically $10^{-8}$) and may return a matrix with a slightly positive eigenvalue. To certify, impose a margin ($M\preceq-\epsilon I$) or recompute the eigenvalues of the returned matrix afterwards. The certificate is the matrix, not the solver's "optimal" flag; this matters when the certified quantity is a safety bound that will be used downstream, as in Module 12.

A numerical eigenvalue check is evidence of feasibility. To turn it into a rigorous certificate, include an error bound: if $\widehat M$ is the computed matrix, $\|M-\widehat M\|_2\le\delta$, and a validated upper bound gives $\lambda_{\max}(\widehat M)\le-\delta$, then $M\preceq0$, because $\lambda_{\max}(M)\le\lambda_{\max}(\widehat M)+\|M-\widehat M\|_2$. A strict margin is useful when it exceeds the combined matrix-assembly and eigenvalue errors.

Why it matters
Which of the problems in this section are SDPs? LipSDP with fixed weights (Fazlyab et al., NeurIPS 2019): $\min\rho$ s.t. $M(\rho,T)\preceq0$, affine in $(\rho,T)$. The stability LMI of Yin, Seiler & Arcak, TAC 2022: affine in $(P,\lambda)$. Zames–Falb multipliers, dissipativity of RNNs, the $\ell_2$-gain LMI of Section 6. What is not an SDP: any of these with the weights $W_i$ as unknowns, because $W^{\top}W$ and $W^{\top}TW$ are quadratic. Section 3 and the walkthrough show how far the Schur complement can push the boundary, and Module 13 shows how to sidestep the solver entirely by parameterising solutions of the LMI.
Worked example — what the set described by an LMI looks like

Consider the LMI in two unknowns $x$ and $y$:

$$\begin{bmatrix}x & 1\\ 1 & y\end{bmatrix}=\underbrace{\begin{bmatrix}0&1\\1&0\end{bmatrix}}_{F_0}+x\underbrace{\begin{bmatrix}1&0\\0&0\end{bmatrix}}_{F_1}+y\underbrace{\begin{bmatrix}0&0\\0&1\end{bmatrix}}_{F_2}\ \succeq\ 0 .$$

A symmetric $2\times2$ matrix is positive semidefinite exactly when both diagonal entries and the determinant are nonnegative. Here that means $x\ge0$, $y\ge0$ and $xy-1\ge0$. The solution set is the region on and above the hyperbola $y=1/x$ in the first quadrant. It is convex, but its boundary is curved, so finitely many linear inequalities could not describe it.

  • $(x,y)=(2,0.5)$: $xy=1$, on the boundary. The matrix has eigenvalues $0$ and $2.5$.
  • $(x,y)=(2,0.4)$: $xy=0.8\lt1$, outside. The determinant is $-0.2$, so one eigenvalue is negative.
  • $(x,y)=(0.5,3)$: $xy=1.5$, inside.

Averaging the two feasible points $(2,0.5)$ and $(0.5,3)$ gives $(1.25,1.75)$, with $xy=2.19\ge1$: feasible again, as convexity guarantees.

Worked example — a stability certificate that the identity matrix cannot give

The system $x_{t+1}=Ax_t$ with $A=\begin{bmatrix}0.5&1\\0&0.5\end{bmatrix}$ is stable: both eigenvalues are $0.5$, so $\rho(A)=0.5\lt1$ and every trajectory goes to zero. The Lyapunov LMI asks for $P\succ0$ with $A^{\top}PA-P\prec0$, so that $V(x)=x^{\top}Px$ decreases at every step.

The obvious guess fails. With $P=I$, $V(x)=\|x\|^2$ is the squared length. But from $x_0=(0,1)$ the first step gives $x_1=(1,0.5)$, with $\|x_1\|=1.118\gt1$: the length grows before it shrinks. Correspondingly, $A^{\top}A-I$ has a positive eigenvalue, so $P=I$ is not a certificate.

Solving for $P$. Solve the Stein equation $A^{\top}PA-P=-I$, which is linear in the three unknown entries of $P$:

$$P=\begin{bmatrix}1.3333&0.8889\\0.8889&4.2963\end{bmatrix},\qquad\text{eigenvalues }1.087\text{ and }4.543 .$$

So $P\succ0$ and $A^{\top}PA-P=-I\prec0$: a valid certificate. Along the same trajectory $V(x_0)=4.2963$ and $V(x_1)=3.2963$. $V$ drops by exactly $\|x_0\|^2=1$, because $V(x_{t+1})-V(x_t)=x_t^{\top}(A^{\top}PA-P)x_t=-\|x_t\|^2$. A tilted ellipse measures progress where the round circle could not.

3. The Schur Complement

In plain words. Checking whether a big symmetric matrix is positive definite can be split into two smaller checks: one diagonal block must be positive definite, and a "leftover" matrix, the Schur complement, must be too. Used in reverse, the same fact turns a nonlinear condition, such as "a squared length is at most $t$", into a linear matrix inequality in a larger matrix. That is how most LMIs on this page are built.

Symbols in this section

The Schur complement is the tool that turns "quadratic in the unknown" into "linear in a bigger matrix". Every LMI on this page that contains a term like $W^{\top}W$, $c^{\top}P^{-1}c$ or $PBR^{-1}B^{\top}P$ was produced by it.

Theorem — Schur complement (both signs)
Let $M=\begin{bmatrix}A&B\\B^{\top}&C\end{bmatrix}$ with $A\in\mathbb S^p$, $C\in\mathbb S^q$.
  • If $C\succ0$: $\ M\succeq0\iff A-BC^{-1}B^{\top}\succeq0$, and $M\succ0\iff A-BC^{-1}B^{\top}\succ0$.
  • If $A\succ0$: $\ M\succeq0\iff C-B^{\top}A^{-1}B\succeq0$, and $M\succ0\iff C-B^{\top}A^{-1}B\succ0$.
  • Negative form (apply the above to $-M$): if $C\prec0$, $\ M\preceq0\iff A-BC^{-1}B^{\top}\preceq0$.
The matrix $A-BC^{-1}B^{\top}$ is the Schur complement of $C$ in $M$. In words: a block matrix with a definite corner block is (semi)definite iff what remains after completing the square on that corner is; the corner must be definite so that it can be inverted. (If $C$ is only PSD, the nonstrict statement needs the pseudo-inverse (see Primer A) and the range condition $(I-CC^{\dagger})B^{\top}=0$; we will not need it.)
Derivation — Complete proof by congruence transformation

Assume $C\succ0$ and define the invertible block-triangular matrix $R=\begin{bmatrix}I&-BC^{-1}\\0&I\end{bmatrix}$. Multiply out, one factor at a time:

$$MR^{\top}=\begin{bmatrix}A&B\\B^{\top}&C\end{bmatrix}\begin{bmatrix}I&0\\-C^{-1}B^{\top}&I\end{bmatrix}=\begin{bmatrix}A-BC^{-1}B^{\top}&B\\B^{\top}-CC^{-1}B^{\top}&C\end{bmatrix}=\begin{bmatrix}A-BC^{-1}B^{\top}&B\\0&C\end{bmatrix},$$
$$R\,(MR^{\top})=\begin{bmatrix}I&-BC^{-1}\\0&I\end{bmatrix}\begin{bmatrix}S&B\\0&C\end{bmatrix}=\begin{bmatrix}S&B-BC^{-1}C\\0&C\end{bmatrix}=\begin{bmatrix}S&0\\0&C\end{bmatrix},\qquad S:=A-BC^{-1}B^{\top}.$$

So $RMR^{\top}=\mathrm{blkdiag}(S,C)$. By the congruence fact of Section 2 with the invertible $R^{\top}$, $M\succeq0\iff RMR^{\top}\succeq0\iff S\succeq0$ and $C\succeq0$; the second condition is given, so $M\succeq0\iff S\succeq0$. The strict version is identical with $\succ$. Swapping the roles of the blocks (conjugate with $\begin{bmatrix}I&0\\-B^{\top}A^{-1}&I\end{bmatrix}$) gives the second bullet, and applying the first bullet to $-M$ gives the negative form. $\blacksquare$

The scalar picture. For vectors $x,y$ the identity behind the algebra is completing the square:

$$x^{\top}Ax+2x^{\top}By+y^{\top}Cy=(y+C^{-1}B^{\top}x)^{\top}C\,(y+C^{-1}B^{\top}x)+x^{\top}(A-BC^{-1}B^{\top})x .$$

Minimising over $y$ kills the first term (choose $y=-C^{-1}B^{\top}x$), so the quadratic form is nonnegative for all $(x,y)$ iff its minimum over $y$, the Schur-complement form, is nonnegative in $x$.

The standard uses

(a) A quadratic constraint on the inverse becomes an LMI. For $P\succ0$, the ellipsoid $\mathcal E(P)=\{x:x^{\top}Px\le1\}$ lies in the slab $\{|c^{\top}x|\le1\}$ iff $c^{\top}P^{-1}c\le1$. Indeed, with $y=P^{1/2}x$, Cauchy–Schwarz (Primer A) gives $c^{\top}x=(P^{-1/2}c)^{\top}y\le\|P^{-1/2}c\|\,\|y\|$ with equality attainable, so $\max_{\mathcal E(P)}c^{\top}x=\sqrt{c^{\top}P^{-1}c}$. The condition $1-c^{\top}P^{-1}c\ge0$ is nonlinear in $P$, but it is the Schur complement of $P$ in

$$\begin{bmatrix}1&c^{\top}\\c&P\end{bmatrix}\succeq0,$$

which is linear in $P$. Read with a point $x$ in place of $c$, the same LMI says $x^{\top}P^{-1}x\le1$, i.e. "$x$ lies in the ellipsoid with shape matrix $P^{-1}$", and it is jointly linear in $(x,P)$: the standard way to put a point, or the vertices of a polytope, inside an ellipsoid whose shape is a decision variable. Back to the slab: with $c=W_i^{\top}/(\bar v_i-v_{*,i})$ ($W_i$ the $i$-th row of the first weight matrix, the ellipsoid centred at the equilibrium) and a congruence with $\mathrm{diag}(\bar v_i-v_{*,i},I)$, it becomes the constraint $\begin{bmatrix}(\bar v_i-v_{*,i})^2&W_i\\W_i^{\top}&P\end{bmatrix}\succeq0$ of Yin, Seiler & Arcak, TAC 2022 and of Pauli et al., CDC 2021: it keeps the certified ellipsoid inside the region where the local sector bounds of the activations are valid (Module 14).

Derivation — Keeping the ellipsoid inside both ends of the activation interval

Write $\delta x=x-x_*$ and $v_i-v_{*,i}=W_i\delta x$. To guarantee $\underline v_i\le v_i\le\bar v_i$, define $m_i=\min\{\bar v_i-v_{*,i},v_{*,i}-\underline v_i\}>0$. It suffices to require $|W_i\delta x|\le m_i$ throughout $\delta x^TP\delta x\le1$, equivalently $\begin{bmatrix}m_i^2&W_i\\W_i^T&P\end{bmatrix}\succeq0$. Using only $\bar v_i-v_{*,i}$ assumes this is the smaller available margin.

(b) Riccati inequality. With $R\succ0$, the continuous-time Riccati inequality $A^{\top}P+PA+Q+PBR^{-1}B^{\top}P\preceq0$ is quadratic in $P$. Apply the negative form with the $(2,2)$ block $-R\prec0$:

$$\begin{bmatrix}A^{\top}P+PA+Q&PB\\B^{\top}P&-R\end{bmatrix}\preceq0\iff A^{\top}P+PA+Q-(PB)(-R)^{-1}(B^{\top}P)\preceq0\iff A^{\top}P+PA+Q+PBR^{-1}B^{\top}P\preceq0,$$

and the left-hand side is an LMI in $P$. Exercise 2.3 does the same for the $\ell_2$-gain version.

(c) Spectral-norm bounds (Primer A). For $\gamma\gt0$, $\|W\|_2\le\gamma\iff W^{\top}W\preceq\gamma^2I\iff\begin{bmatrix}\gamma I&W^{\top}\\W&\gamma I\end{bmatrix}\succeq0$ (Schur complement of the lower-right block: $\gamma I-W^{\top}(\gamma I)^{-1}W\succeq0$). The right-hand side is linear in $(W,\gamma)$, which is why norm-bounded layers are "LMI-representable", and why layer conditions such as the SLL condition $W^{\top}W\preceq T$ ($T$ diagonal) and the Sandwich layer's LMI in Module 13 can be satisfied by construction.

(d) From analysis to training. In LipSDP the last layer enters through $W_l^{\top}W_l$. With the weights fixed this is a constant, but for training Pauli et al., L-CSS 2022 need the certificate to be linear in $W_l$; the Schur complement with a $-I$ block achieves exactly that. Step 6 of the walkthrough does the computation.

Worked example — two uses of the Schur complement

Testing a matrix. Is $M=\begin{bmatrix}2&1\\1&1\end{bmatrix}$ positive definite? The top-left block $A=2$ is positive, and its Schur complement is $C-B^{\top}A^{-1}B=1-1\cdot\tfrac12\cdot1=0.5\gt0$. So $M\succ0$. Check: the eigenvalues are $(3\pm\sqrt5)/2$, about $0.382$ and $2.618$, both positive.

Turning a nonlinear condition into an LMI. The condition $\|x\|^2\le t$ is quadratic in $x$. With $C=I\succ0$, the Schur complement theorem gives

$$\begin{bmatrix}t & x^{\top}\\ x & I\end{bmatrix}\succeq0\quad\Longleftrightarrow\quad t-x^{\top}I^{-1}x=t-\|x\|^2\ \ge\ 0 ,$$

and the matrix on the left is affine in the unknowns $(t,x)$: an LMI. For $x=(3,4)$ we have $\|x\|^2=25$, and the block matrix is positive semidefinite for $t=25$ (on the boundary) and $t=26$, but not for $t=24$.

4. The S-Procedure / S-Lemma

In plain words. Many certificates need a statement of the form "whenever this quadratic inequality holds, that one holds too". Checking it point by point is impossible, because there are infinitely many points. The S-procedure instead looks for one number $\tau\ge0$ such that "the second quadratic minus $\tau$ times the first" is nonnegative everywhere. If such a $\tau$ exists, the implication is proved: wherever the first quadratic is nonnegative, the second is at least $\tau$ times it, hence nonnegative too. With a single constraint that holds strictly somewhere, the S-lemma adds the converse: if the implication is true, such a $\tau$ exists.

Symbols in this section

A robustness question almost always has the shape "for all signals that satisfy this quadratic constraint, is that quadratic form nonpositive?" The S-procedure replaces the universal quantifier by one nonnegative multiplier per constraint and one matrix inequality. It is a Lagrangian relaxation in disguise, and for a single strictly feasible constraint it is exact.

Definition — The S-procedure (sufficient condition)
Let $\sigma_0,\dots,\sigma_m:\mathbb R^n\to\mathbb R$ be quadratic functions, $\sigma_i(\xi)=\xi^{\top}A_i\xi+2b_i^{\top}\xi+c_i$ with $A_i\in\mathbb S^n$. If there exist $\tau_1,\dots,\tau_m\ge0$ such that $$\sigma_0(\xi)-\sum_{i=1}^m\tau_i\,\sigma_i(\xi)\ \ge\ 0\qquad\text{for all }\xi\in\mathbb R^n,$$ then $\sigma_0(\xi)\ge0$ for every $\xi$ with $\sigma_1(\xi)\ge0,\dots,\sigma_m(\xi)\ge0$. Because a quadratic function is nonnegative on all of $\mathbb R^n$ iff its homogenised matrix is PSD, the premise is the LMI $$\begin{bmatrix}A_0&b_0\\b_0^{\top}&c_0\end{bmatrix}-\sum_{i=1}^m\tau_i\begin{bmatrix}A_i&b_i\\b_i^{\top}&c_i\end{bmatrix}\succeq0\qquad(\text{for homogeneous forms: }A_0-\textstyle\sum_i\tau_iA_i\succeq0),$$ which is linear in the multipliers $\tau$.
Proof sketch — Sufficiency (two lines) and the homogenisation claim

Sufficiency. Take $\xi$ with $\sigma_i(\xi)\ge0$ for all $i$. Since $\tau_i\ge0$, $\sum_i\tau_i\sigma_i(\xi)\ge0$, and the premise gives $\sigma_0(\xi)\ge\sum_i\tau_i\sigma_i(\xi)\ge0$. $\blacksquare$ Compare with weak duality: the multipliers price the constraints and the premise says the priced objective is nonnegative everywhere; the conclusion follows on the feasible set because the prices are nonnegative.

Homogenisation. Write $\sigma(\xi)=\begin{bmatrix}\xi\\1\end{bmatrix}^{\top}N\begin{bmatrix}\xi\\1\end{bmatrix}$ with $N=\begin{bmatrix}A&b\\b^{\top}&c\end{bmatrix}$. If $N\succeq0$ then clearly $\sigma\ge0$. Conversely, if $\sigma(\xi)\ge0$ for all $\xi$, then for $t\ne0$, $\begin{bmatrix}\xi\\t\end{bmatrix}^{\top}N\begin{bmatrix}\xi\\t\end{bmatrix}=t^2\sigma(\xi/t)\ge0$, and the case $t=0$ follows by continuity; so $N\succeq0$. $\blacksquare$

Theorem — S-lemma (Yakubovich; one constraint is lossless)
Let $A,B\in\mathbb S^n$ and suppose there is a point $\bar\xi$ with $\bar\xi^{\top}A\bar\xi\gt0$ (strict feasibility). Then $$\Big[\ \xi^{\top}A\xi\ge0\ \Rightarrow\ \xi^{\top}B\xi\ge0\ \Big]\quad\Longleftrightarrow\quad\exists\,\tau\ge0:\ \ B-\tau A\succeq0 .$$ The same equivalence holds for inhomogeneous quadratic functions $\sigma_1,\sigma_0$ (with $\sigma_1(\bar\xi)\gt0$) and the LMI of the definition above with $m=1$. For $m\ge2$ constraints the S-procedure is in general only sufficient. See the survey by Pólik & Terlaky, SIAM Review 2007, which attributes the result to Yakubovich (1971) and collects the exceptions.

In words: if a quadratic inequality follows from another one, then it follows for the most naive reason, namely because it is a nonnegative multiple of it plus something globally nonnegative. Why strict feasibility matters: take $\sigma_1(\xi)=-\xi^2$ and $\sigma_0(\xi)=\xi$ on $\mathbb R$. The feasible set is $\{0\}$, so the implication holds trivially, but $\xi+\tau\xi^2\lt0$ for small negative $\xi$ whatever $\tau\ge0$ is: no multiplier exists. The direction "$\Leftarrow$" is the S-procedure; the content of the lemma is "$\Rightarrow$".

Proof sketch — Losslessness via Dines' theorem and a separating line

The proof rests on a classical fact about pairs of real quadratic forms: by Dines, Bull. AMS 1941, the joint range $K=\{(\xi^{\top}A\xi,\ \xi^{\top}B\xi):\xi\in\mathbb R^n\}\subset\mathbb R^2$ is a convex cone. (This is false for three forms in general, which is one reason the S-lemma stops at one constraint.)

Assume the implication holds. Then no $\xi$ has $\xi^{\top}A\xi\ge0$ and $\xi^{\top}B\xi\lt0$, so $K$ does not meet the open convex quadrant $\mathcal M=\{(u,v):u\gt0,\ v\lt0\}$. By the separating-hyperplane theorem of Section 1 (which needs no closedness of $K$, because $\mathcal M$ is open) there are $(p,q)\ne0$ and $c$ with $pu+qv\ge c$ on $K$ and $pu+qv\le c$ on $\mathcal M$; and $c=0$, since $0\in K$ gives $c\le0$ while points of $\mathcal M$ arbitrarily close to the origin give $c\ge0$. So $pu+qv\ge0$ on $K$ and $pu+qv\le0$ on $\mathcal M$. On $\mathcal M$, letting $u\to\infty$ forces $p\le0$ and letting $v\to-\infty$ forces $q\ge0$. On $K$ the inequality reads $p\,\xi^{\top}A\xi+q\,\xi^{\top}B\xi\ge0$ for all $\xi$.

If $q\gt0$, divide by $q$ and set $\tau=-p/q\ge0$: $\xi^{\top}(B-\tau A)\xi\ge0$ for all $\xi$, i.e. $B-\tau A\succeq0$. If $q=0$ then $p\lt0$ and the inequality says $\xi^{\top}A\xi\le0$ for all $\xi$, contradicting the strictly feasible $\bar\xi$. So $q\gt0$ and the multiplier exists. $\blacksquare$ Strict feasibility is used exactly once, to exclude the degenerate separating line $u=0$.

The multiplier reading

Consider the non-convex problem $p^\star=\min_\xi q_0(\xi)$ s.t. $q_1(\xi)\le0$ with one quadratic constraint (a trust-region subproblem when $q_1(\xi)=\|\xi\|^2-1$). Its dual is $d^\star=\max_{\tau\ge0}\inf_\xi[q_0(\xi)+\tau q_1(\xi)]$. For any level $t$,

$$t\le p^\star\iff\big[q_1(\xi)\le0\Rightarrow q_0(\xi)-t\ge0\big]\iff\exists\tau\ge0:\ q_0(\xi)-t+\tau q_1(\xi)\ge0\ \forall\xi\iff\exists\tau\ge0:\ \inf_\xi[q_0+\tau q_1]\ge t\ \Longrightarrow\ t\le d^\star,$$

where the middle equivalence is the S-lemma (applied to $-q_1$ and $q_0-t$, assuming a strictly feasible point $q_1(\bar\xi)\lt0$). Taking $t=p^\star$ (assumed finite) gives $p^\star\le d^\star$, weak duality gives the reverse, and the $\tau$ produced by the S-lemma attains the dual optimum. Hence $p^\star=d^\star$: a non-convex QCQP (quadratically constrained quadratic program) with a single quadratic constraint has no duality gap, and the S-procedure multiplier $\tau$ is its Lagrange multiplier. With two or more quadratic constraints the gap can be positive, and the S-procedure certifies only the dual value $d^\star\le p^\star$: a valid but possibly conservative bound.

Key equation — From quadratic constraints to an LMI (the engine of LipSDP)
Suppose a stacked vector $\xi$ (for a network: all increments of inputs and activations) is known to satisfy $n$ quadratic constraints $\xi^{\top}Q_i\xi\ge0$, $i=1,\dots,n$, and we want to certify $\xi^{\top}M\xi\le0$ for all such $\xi$. The S-procedure says it suffices that $$M+\sum_{i=1}^n\lambda_iQ_i\ \preceq\ 0\qquad\text{for some }\lambda_1,\dots,\lambda_n\ge0,$$ because then $\xi^{\top}M\xi\le\xi^{\top}M\xi+\sum_i\lambda_i\xi^{\top}Q_i\xi=\xi^{\top}\big(M+\sum_i\lambda_iQ_i\big)\xi\le0$. When $Q_i$ is the slope-restriction constraint of neuron $i$ (Section 5), $\sum_i\lambda_iQ_i$ assembles into the block matrix $\begin{bmatrix}-2\alpha\beta T&(\alpha+\beta)T\\(\alpha+\beta)T&-2T\end{bmatrix}$ with $T=\mathrm{diag}(\lambda_1,\dots,\lambda_n)$: the diagonal multiplier of LipSDP is the vector of S-procedure multipliers, one per neuron.
Key insight — Two sources of conservatism, and one exact case
A certificate of this kind is loose for two independent reasons. (1) Abstraction: the set $\{\xi:\xi^{\top}Q_i\xi\ge0\ \forall i\}$ is an outer approximation of the pairs $(\Delta x,\Delta\varphi)$ that the activation can actually produce; any property proved on the larger set holds on the smaller one, but not conversely. (2) Several constraints: with $n\ge2$ neurons the S-procedure is only sufficient. In the scalar network of the walkthrough there is one neuron, so (2) disappears, and for ReLU (1) disappears too, because every slope in $[0,1]$ is a chord slope of ReLU; the SDP then returns the true Lipschitz constant. For tanh the abstraction is not exact (no chord of tanh has slope exactly $0$ or $1$), yet the bound is still tight because chord slopes come arbitrarily close to $1$ near the origin; for an activation whose slopes stay well below $1$, such as $\varphi(v)=v/2$ (also slope-restricted in $[0,1]$), the $[0,1]$ certificate is loose by that factor. In general LipSDP returns an upper bound. Module 12 quantifies the gap between this bound, the naive product bound and empirical estimates (interactive).
Lemma — Finsler (the S-procedure for an equality constraint) and the elimination lemma
Let $Q\in\mathbb S^n$, $B\in\mathbb R^{m\times n}$, and let the columns of $N$ form a basis of $\ker B$. The following are equivalent: (i) $\xi^{\top}Q\xi\lt0$ for all $\xi\ne0$ with $B\xi=0$; (ii) $N^{\top}QN\prec0$; (iii) $Q-\mu B^{\top}B\prec0$ for some $\mu\in\mathbb R$; (iv) $Q+XB+B^{\top}X^{\top}\prec0$ for some matrix $X\in\mathbb R^{n\times m}$. (i)$\iff$(ii) is a change of coordinates on $\ker B$: every $\xi$ with $B\xi=0$ is $\xi=N\eta$, and $\xi^{\top}Q\xi=\eta^{\top}N^{\top}QN\eta$, with $\xi\ne0$ iff $\eta\ne0$ because the columns of $N$ are independent. (iii)$\Rightarrow$(iv): take $X=-\tfrac{\mu}{2}B^{\top}$. (iv)$\Rightarrow$(i): for $B\xi=0$ the added term is $2\xi^{\top}XB\xi=0$. The only nontrivial step, (i)$\Rightarrow$(iii), is a compactness argument: $Q$ is negative definite on $\ker B$, and a large enough $\mu$ makes $-\mu B^{\top}B$ dominate off it. Read (iii) as an S-procedure for the single constraint $\|B\xi\|^2\le0$ (equivalently $B\xi=0$) with multiplier $\mu$, and (iv) as the same idea with a free matrix multiplier $X$ attached to the linear constraint $B\xi=0$. Its generalisation, the elimination lemma, states that, for $G\in\mathbb S^n$, $U\in\mathbb R^{n\times p}$, $V\in\mathbb R^{n\times q}$, the inequality $G+UXV^{\top}+VX^{\top}U^{\top}\succ0$ is feasible in $X\in\mathbb R^{p\times q}$ iff $\tilde U^{\top}G\tilde U\succ0$ and $\tilde V^{\top}G\tilde V\succ0$, where the columns of $\tilde U,\tilde V$ form bases (independent columns, not merely spanning sets) of $\ker U^{\top}$ and $\ker V^{\top}$. It is the standard way to remove controller variables from synthesis LMIs, and slack variables such as $X$ in (iv) are the standard way to decouple a Lyapunov matrix from system matrices (Boyd et al. 1994, Sec. 2.6.2 and its Notes, which also give Finsler's lemma).
Worked example — finding the multiplier that proves an implication

Claim: if $x^2\le1$, then $2-x-x^2\ge0$. In S-procedure form, $\sigma_1(x)=1-x^2\ge0$ should imply $\sigma_0(x)=2-x-x^2\ge0$. (The claim is true, because $2-x-x^2=(1-x)(2+x)$ is nonnegative on $[-1,1]$.)

Step 1: the certificate condition. We need $\tau\ge0$ with $\sigma_0(x)-\tau\sigma_1(x)\ge0$ for all real $x$:

$$(2-x-x^2)-\tau(1-x^2)=(\tau-1)x^2-x+(2-\tau)\ \ge\ 0\quad\text{for all }x .$$

Step 2: when is a quadratic nonnegative everywhere? Its leading coefficient must be positive, $\tau\gt1$, and its discriminant must be at most zero: $1-4(\tau-1)(2-\tau)\le0$. Expanding gives $4\tau^2-12\tau+9\le0$, that is, $(2\tau-3)^2\le0$, so $\tau=1.5$ exactly.

Step 3: the certificate. With $\tau=1.5$ the difference is $0.5x^2-x+0.5=0.5(x-1)^2\ge0$, a perfect square. So for every $x$ with $1-x^2\ge0$ we get $2-x-x^2\ge1.5\,(1-x^2)\ge0$. Any other $\tau$, for example $1.4$ or $1.6$, makes the difference negative somewhere. The S-lemma guaranteed that this search would succeed, because the constraint is strictly feasible ($\sigma_1(0)=1\gt0$) and the implication is true.

5. Quadratic Constraints

In plain words. A neural network's activation function, or an uncertain part of a plant, is hard to handle exactly. A quadratic constraint replaces it by one simple fact it is known to satisfy, written as a quadratic inequality between its input and its output. For ReLU, the fact is "the output lies between 0 and the input": a sector. Certificates then hold for every function obeying that fact, so they are safe but can be loose. The S-procedure of Section 4 combines such facts, each with a nonnegative weight, into one LMI.

Symbols in this section

A quadratic constraint (QC) is the control-theoretic way to say "I do not know this nonlinearity exactly, but I know a quadratic inequality its input–output pairs satisfy." Activations, uncertain plants and delays are all treated the same way, which is what lets the same LMI machinery certify a Lipschitz constant and a closed-loop region of attraction.

Definition — Sector-bounded and slope-restricted nonlinearities
A function $\varphi:\mathbb R\to\mathbb R$ with $\varphi(0)=0$ is sector-bounded in $[\alpha,\beta]$ if $\alpha v^2\le v\varphi(v)\le\beta v^2$ for all $v$, equivalently $(\varphi(v)-\alpha v)(\beta v-\varphi(v))\ge0$, equivalently $$\begin{bmatrix}v\\\varphi(v)\end{bmatrix}^{\top}\begin{bmatrix}-2\alpha\beta&\alpha+\beta\\\alpha+\beta&-2\end{bmatrix}\begin{bmatrix}v\\\varphi(v)\end{bmatrix}\ \ge\ 0 .$$ It is slope-restricted in $[\alpha,\beta]$ ($0\le\alpha\lt\beta\lt\infty$ in LipSDP's Definition 1) if every chord has slope in $[\alpha,\beta]$: $$\alpha\le\frac{\varphi(a)-\varphi(b)}{a-b}\le\beta\qquad\forall a\ne b,$$ i.e. the increment $(a-b,\ \varphi(a)-\varphi(b))$ lies in the sector $[\alpha,\beta]$. Multiplying by $(a-b)^2$ and rearranging gives the same $2\times2$ matrix applied to the increment. Slope restriction with $\varphi(0)=0$ implies the sector bound (take $b=0$); the converse fails (a sector-bounded function need not be monotone).

The matrix identity is worth checking once: $(\varphi-\alpha v)(\beta v-\varphi)=-\alpha\beta v^2+(\alpha+\beta)v\varphi-\varphi^2$, and doubling it gives $-2\alpha\beta v^2+2(\alpha+\beta)v\varphi-2\varphi^2$, which is exactly the quadratic form. A loop transformation normalises any sector: if $\varphi$ is in $[\alpha,\beta]$, then $\tilde\varphi(v)=(\varphi(v)-\alpha v)/(\beta-\alpha)$ is in $[0,1]$ (and slope restriction transforms the same way), with the linear part $\alpha v$ absorbed into the rest of the loop. This is why many results are stated for $[0,1]$ only, and why the absolute-stability criteria for such Lur'e loops (see Primer D) (circle, Popov, Zames–Falb) are usually derived in the normalised setting; LipSDP instead keeps $\alpha,\beta$ explicit in the multiplier. Tight intervals for common activations: ReLU and tanh are slope-restricted in $[0,1]$ (tanh has slope $1-\tanh^2(v)\in(0,1]$, so $\alpha=0$ is tight globally); the sigmoid in $[0,\tfrac14]$ (hence also in $[0,1]$; these are slope intervals, and since $\sigma(0)=\tfrac12$ the origin-centred sector definition applies to the shifted $\sigma(v)-\tfrac12$); leaky ReLU with slope $a\in[0,1)$ on negative inputs in $[a,1]$. Softmax is not elementwise (see Primer E) but is the gradient of the convex log-sum-exp, and gradients of $\beta$-smooth convex functions satisfy the incremental QC with $T=\lambda I$ (theorem below). GroupSort and MaxMin are 1-Lipschitz but not slope-restricted, which is why Module 12 needs new QCs for them.

Theorem — Cocoercivity of convex gradients (Fazlyab et al. 2019)

Let $F:\mathbb R^n\to\mathbb R$ be differentiable and convex, and suppose $\|\nabla F(x)-\nabla F(y)\|_2\le\beta\|x-y\|_2$ for all $x,y$, with $\beta>0$. Then $\Delta g=\nabla F(x)-\nabla F(y)$ satisfies $\beta(x-y)^{\top}\Delta g\ge\|\Delta g\|_2^2$ (cocoercivity). Multiplying by $2\lambda\ge0$ gives exactly the incremental sector QC of $\nabla F$ with $\alpha=0$ and $T=\lambda I$.

Intuition. Convexity aligns the gradient change with the displacement; smoothness prevents that gradient change from being too large relative to its alignment. Lipschitz continuity alone does not imply this inequality. For softmax, $F(x)=\log\sum_i e^{x_i}$ and $p=\nabla F(x)$ has entries $p_i=e^{x_i}/\sum_je^{x_j}$; the Hessian is $\operatorname{diag}(p)-pp^{\top}$. For any $z$, its quadratic form is $\sum_i p_i z_i^2-(\sum_i p_i z_i)^2$, between $0$ and $\|z\|_2^2$ by Cauchy–Schwarz and $0\le p_i\le1$. Hence the conservative choice $\beta=1$ is valid.

Fazlyab et al. 2019, Sec. 2.2 (softmax example)

Definition — Incremental versus non-incremental quadratic constraints
A map $\phi:\mathbb R^n\to\mathbb R^n$ satisfies the incremental QC defined by a set $\mathcal Q\subset\mathbb S^{2n}$ if for every $Q\in\mathcal Q$ and all $x,y$: $$\begin{bmatrix}x-y\\\phi(x)-\phi(y)\end{bmatrix}^{\top}Q\begin{bmatrix}x-y\\\phi(x)-\phi(y)\end{bmatrix}\ge0$$ (LipSDP Definition 2). A non-incremental QC relates $(x-x_*,\ \phi(x)-\phi(x_*))$ to a single fixed point $x_*$ (an equilibrium), as in the local sector constraints of Yin, Seiler & Arcak. Incremental constraints are the right abstraction for global Lipschitz bounds and contraction (two arbitrary trajectories); non-incremental ones for stability of one equilibrium, where they can be made local and much tighter. Restricted to $[-\bar v,\bar v]$ with $\bar v\gt0$, tanh satisfies the local sector $[\tanh(\bar v)/\bar v,\,1]$ instead of the global $[0,1]$. Around an equilibrium input $v_*\in(\underline v,\bar v)$ the offset local sector, i.e. the sector condition for $(v-v_*,\ \varphi(v)-\varphi(v_*))$ with $v\in[\underline v,\bar v]$, has $\beta=1$ and $\alpha=\min\big\{\tfrac{\tanh\bar v-\tanh v_*}{\bar v-v_*},\tfrac{\tanh v_*-\tanh\underline v}{v_*-\underline v}\big\}$, the smaller of the two endpoint chord slopes (Yin, Seiler & Arcak, Sec. II-C). The interval itself is certified by the Schur-complement LMI of Section 3(a).
Background — Contraction and incremental stability

A discrete-time map $F$ is a contraction in a chosen norm if $\|F(x)-F(y)\|\le q\|x-y\|$ for all $x,y$ with a fixed $q\lt1$. Iteration then gives $\|x_t-y_t\|\le q^t\|x_0-y_0\|$ for any two trajectories $x_{t+1}=F(x_t)$, $y_{t+1}=F(y_t)$. An incremental QC can help prove such a bound, but a finite Lipschitz constant greater than or equal to one does not establish contraction.

For $F(x)=x/2$, two initial points a distance $8$ apart are distances $4,2,1$ apart after one, two and three steps. A weighted norm $\|x\|_P=\sqrt{x^TPx}$ with $P\succ0$ is a constant contraction metric when the same shrinking inequality holds in it. This is stronger than merely bounding a network output difference.

Lemma — Diagonal multipliers for elementwise slope-restricted activations (Fazlyab et al. 2019, Lemma 1)
Let $\varphi:\mathbb R\to\mathbb R$ be slope-restricted in $[\alpha,\beta]$ and $\phi(x)=[\varphi(x_1)\ \cdots\ \varphi(x_n)]^{\top}$. Then for every $T\in\mathcal T_n=\{T=\sum_{i=1}^n\lambda_ie_ie_i^{\top}:\ \lambda_i\ge0\}$ (diagonal, PSD) and all $x,y\in\mathbb R^n$, $$\begin{bmatrix}x-y\\\phi(x)-\phi(y)\end{bmatrix}^{\top}\begin{bmatrix}-2\alpha\beta T&(\alpha+\beta)T\\(\alpha+\beta)T&-2T\end{bmatrix}\begin{bmatrix}x-y\\\phi(x)-\phi(y)\end{bmatrix}\ \ge\ 0 .$$ Proof. Expanding the form with $T$ diagonal gives $\sum_i\lambda_i\big[-2\alpha\beta(x_i-y_i)^2+2(\alpha+\beta)(x_i-y_i)(\varphi(x_i)-\varphi(y_i))-2(\varphi(x_i)-\varphi(y_i))^2\big]$, and each bracket is the scalar slope-restriction QC of neuron $i$, hence $\ge0$; a nonnegative combination of nonnegative terms is nonnegative. $\blacksquare$ (Fazlyab et al., NeurIPS 2019; note their $\rho=L^2$.)
Pitfall — Why the multiplier must be diagonal for incremental constraints (the LipSDP-Network error)
The NeurIPS 2019 version of LipSDP also allowed coupling terms $\lambda_{ij}(e_i-e_j)(e_i-e_j)^{\top}$ in $T$ ("LipSDP-Network"). Expanding such a term gives $\lambda_{ij}$ times the scalar QC evaluated at the difference pair $\big(\Delta x_i-\Delta x_j,\ \Delta\varphi_i-\Delta\varphi_j\big)$, which is nonnegative only if that pair has chord slope in $[\alpha,\beta]$. But $\Delta\varphi_i=s_i\Delta x_i$ and $\Delta\varphi_j=s_j\Delta x_j$ with two independent chord slopes $s_i,s_j\in[\alpha,\beta]$ taken at different places on the graph of $\varphi$, and $(s_i\Delta x_i-s_j\Delta x_j)/(\Delta x_i-\Delta x_j)$ can be anything. Pauli, Koch, Berberich, Kohler & Allgöwer, L-CSS 2022 give the counterexample: ReLU, $T=(e_1-e_2)(e_1-e_2)^{\top}$, $x=(0,1)$, $y=(-1.5,0)$, so $\Delta x=(1.5,1)$, $\Delta\varphi=(0,1)$ and, with $\alpha=0,\beta=1$, the form equals $2\Delta x^{\top}T\Delta\varphi-2\Delta\varphi^{\top}T\Delta\varphi=2(-0.5)-2(1)=-3\lt0$ (the difference pair has slope $-2$). They also exhibit a two-neuron tanh network fitting $\cos$ on $[-\pi/2,\pi/2]$, true Lipschitz constant about $1$, for which the coupled LMI is feasible for arbitrarily small $L$. The arXiv text of the paper prints the value of the form as $-2$; evaluating the stated numbers gives $-3$, negative either way. The current arXiv version of LipSDP keeps only diagonal $T$ (LipSDP-Neuron and LipSDP-Layer). Coupled "repeated nonlinearity" multipliers remain valid for non-incremental QCs at a single input, where $\varphi(z_i)$ and $\varphi(z_j)$ are the same function at two arguments and the chord between them genuinely has slope in $[\alpha,\beta]$; Revay, Wang & Manchester, TAC 2024 (Remark 5) state the same restriction for incremental IQCs and contraction. Full story in Module 12.

Integral quadratic constraints, briefly

When the "nonlinearity" is a dynamic operator $w=\Delta(v)$ (an uncertain plant, a delay, or an activation seen in feedback over time), pointwise QCs are replaced by integral quadratic constraints (Megretski & Rantzer, TAC 1997): $\Delta$ satisfies the IQC defined by the multiplier $\Pi$ (a bounded, Hermitian-matrix-valued function of $\omega$) if, for every square-integrable input $v$ (see Primer D),

$$\int_{-\infty}^{\infty}\begin{bmatrix}\hat v(j\omega)\\\hat w(j\omega)\end{bmatrix}^{*}\Pi(j\omega)\begin{bmatrix}\hat v(j\omega)\\\hat w(j\omega)\end{bmatrix}\mathrm d\omega\ \ge\ 0\qquad\text{whenever }w=\Delta(v).$$
Background — Complex vectors and Hermitian matrices

Here $j^2=-1$, $\hat v(j\omega)$ is the Fourier transform of the time signal $v$, and $M^*=\overline M^T$ is conjugate transpose. A Hermitian matrix satisfies $M=M^*$; its quadratic form $z^*Mz$ is real, and $M\succeq0$ means this is nonnegative for every complex vector $z$. Thus complex congruence $R^*MR$ plays the same role as real congruence $R^TMR$.

For example, $z=(1,j)^T$ gives $z^*z=2$, whereas $z^Tz=0$: conjugation is essential to energy. Also $e^{j\theta}=\cos\theta+j\sin\theta$, and $\overline{a+jb}=a-jb$. The largest singular value of $G$ is $\sqrt{\lambda_{\max}(G^*G)}$. These are the complex versions of the real matrix operations used above.

Their theorem is the basic robustness result for such loops.

Theorem — IQC robust stability (Megretski & Rantzer 1997, Theorem 1)

Signals live in $\mathcal L_{2e}$, i.e. have finite energy $\|v\|_{[0,T]}^2=\int_0^T\|v(t)\|^2dt$ on every finite interval; $\mathcal L_2$ are those with finite energy on $[0,\infty)$. Let $G$ be a stable, proper, real-rational transfer matrix ($G\in\mathcal{RH}_\infty$: entries are ratios of real polynomials, numerator degree at most denominator degree, no poles in the closed right half-plane), and let $\Delta:\mathcal L_{2e}\to\mathcal L_{2e}$ be causal (its output up to time $T$ depends only on its input up to $T$) and bounded ($\Delta(0)=0$ and $\|\Delta(v)\|_{[0,T]}\le K\|v\|_{[0,T]}$ for all $v,T$; see Primer D). Let $\Pi$ be measurable, Hermitian-valued and bounded ($\|\Pi(j\omega)\|_2\le c$ for all $\omega$). Consider the loop $v=Gw+d_v$, $w=\tau\Delta(v)+d_w$ with external signals $d_v,d_w$. Suppose

  • (i) for every $\tau\in[0,1]$ the loop is well posed: every $(d_v,d_w)$ determines a unique causal solution $(v,w)$;
  • (ii) for every $\tau\in[0,1]$, $\tau\Delta$ satisfies the IQC defined by $\Pi$ for every $v\in\mathcal L_2$;
  • (iii) there is $\epsilon\gt0$ with $\begin{bmatrix}G(j\omega)\\I\end{bmatrix}^{*}\Pi(j\omega)\begin{bmatrix}G(j\omega)\\I\end{bmatrix}\preceq-\epsilon I$ for all $\omega\in\mathbb R$.

Then the loop with $\tau=1$ is stable: the map from $(d_v,d_w)$ to $(v,w)$ has a finite induced energy gain. In words: the plant strictly violates the quadratic inequality that the uncertainty satisfies, so no nonzero signal can circulate with growing energy. Assumption (iii) must hold with a uniform margin $\epsilon$; (i) and (ii) must hold along the whole path $\tau\in[0,1]$ because the proof starts from the trivially stable open loop $\tau=0$ and increases $\tau$ continuously.

The proof is a homotopy in $\tau$; the dissipativity route of Scherer's tutorial replaces the homotopy by hard IQCs (valid on every finite horizon) and a storage function, so check which hypotheses a paper uses. A pointwise-in-time QC, such as the sector or slope constraint of a static nonlinearity, integrates to an IQC with a constant multiplier that holds on every finite horizon, i.e. a hard IQC. The converse fails: a constant multiplier alone does not make an IQC hard for a dynamic operator. The delay $w(t)=v(t-h)$, $h\gt0$, with zero initial history ($v(t)=0$ for $t\lt0$) satisfies the IQC with $\Pi=\mathrm{diag}(-I,I)$ over the infinite horizon (input and output energies are equal), but on a finite horizon $[0,T]$ the integral is $\int_0^T(\|w\|^2-\|v\|^2)\,dt=-\int_{\max(0,T-h)}^{T}\|v(t)\|^2dt$, minus the input energy in the last delay interval, which is negative whenever the input has energy there. With the constant sector multiplier, the theorem reproduces the circle criterion; the Popov criterion (Primer D), for time-invariant sector nonlinearities, uses the frequency-dependent multiplier $1+q\,j\omega$ with a scalar $q\ge0$ chosen as part of the certificate; because this factor grows without bound in $\omega$ when $q\gt0$, Popov is a separate theorem rather than a direct instance of the bounded-multiplier statement above. A dynamic multiplier ($\Pi$ depends on $\omega$) captures memory: for slope-restricted nonlinearities the Zames–Falb class is the classical example, and Pauli et al., CDC 2021 bring its acausal FIR version (see Primer D) to neural-network loops. The computational recipe is always the same: factorise $\Pi=\Psi^{*}P\Psi$ (here $P$ is the multiplier's middle matrix, not a storage matrix), append the state of the filter $\Psi$ to the plant state, and the frequency-domain test becomes an LMI in a storage matrix $X$ and the multiplier parameters $P$, via the KYP lemma of Section 6 or, in the time domain, via dissipativity and the S-procedure; the tutorial of Scherer, IEEE CSM 2022 is the reference for this route, which Module 14 follows.

Theorem — A scalar FIR Zames–Falb IQC

Let $\varphi:\mathbb R\to\mathbb R$ be nondecreasing, globally Lipschitz, and $\varphi(0)=0$. For any real two-sided square-summable sequence $v$, set $w_t=\varphi(v_t)$. Choose finitely many coefficients $h_k\ge0$ ($k\in\mathbb Z$, $h_0=0$) with $\sum_kh_k\lt1$ and define the FIR filter $(Hv)_t=\sum_kh_kv_{t-k}$; it is acausal if some $h_k$ with $k\lt0$ is nonzero, since it then uses future samples. Then

$$\sum_{t\in\mathbb Z}w_t\big(v_t-(Hv)_t\big)\ge0.$$

With $M(e^{j\omega})=1-\sum_kh_ke^{-jk\omega}$ this is the IQC with $\Pi=\begin{bmatrix}0&M^*\\M&0\end{bmatrix}$, up to a positive factor. Zero-extending a one-sided sequence gives this infinite-horizon statement. For example, $(Hv)_t=\tfrac14v_{t-1}+\tfrac14v_{t+1}$ is admissible and acausal. Lipschitz continuity ensures $w\in\ell_2$; nonnegativity and the coefficient sum are essential to this sufficient class.

Intuition. Pairing ordered samples of a monotone graph gives at least as much inner product as shifting one sequence relative to the other. A nonnegative weighted sum of these shift inequalities gives the result. Future samples are allowed in an analysis filter; this theorem alone is neither an online implementation nor a hard finite-horizon IQC.

Scalar special case of the acausal FIR class of Pauli et al., CDC 2021.

Theorem — A factorised frequency test as an augmented LMI

Assume the chosen multiplier has a stable proper finite-dimensional real-rational factorisation $\Pi=\Psi^*P\Psi$ with a constant middle matrix $P=P^{\top}$, and $G$ is stable proper real-rational. Realise the cascade $r=\Psi[G;I]w$ as $\dot\chi=A_a\chi+B_aw$, $r=C_a\chi+D_aw$, with $A_a$ Hurwitz. Then the strict frequency inequality $[G;I]^*\Pi[G;I]\prec0$, including its limit at infinity, is equivalent to the existence of a symmetric $X$ satisfying

$$\begin{bmatrix}A_a^TX+XA_a&XB_a\\B_a^TX&0\end{bmatrix}+\begin{bmatrix}C_a&D_a\end{bmatrix}^TP\begin{bmatrix}C_a&D_a\end{bmatrix}\prec0.$$

No controllability is needed for this strict KYP form. It is affine in $(X,P)$ only when the filter and plant realisations are fixed. A frequency factorisation alone does not imply a hard IQC. A direct finite-horizon dissipation proof additionally needs a valid finite-horizon IQC for this filter (including any terminal correction), the stated initial-state convention and a storage with the required nonnegative terminal contribution.

Intuition. The filter turns a frequency weight into an ordinary quadratic output supply. Adding its state makes that supply available to KYP. Stability and finite dimension are assumptions on the chosen factorisation, not automatic properties of an arbitrary bounded function of frequency.

Strict KYP lemma of Section 6 applied to the filtered plant; see Scherer, IEEE CSM 2022.

Derivation — The augmented plant–filter realisation

With plant $\dot x=Ax+Bw$, $v=Cx+Dw$, split the filter input blocks as $B_\psi=[B_v\ B_w]$, $D_\psi=[D_v\ D_w]$, where the filter is $\dot\eta=A_\psi\eta+B_\psi[v;w]$, $r=C_\psi\eta+D_\psi[v;w]$, and put $\chi=(x,\eta)$. Substituting $v=Cx+Dw$ into the filter equations gives

$$\dot\chi=\underbrace{\begin{bmatrix}A&0\\B_vC&A_\psi\end{bmatrix}}_{A_a}\chi+\underbrace{\begin{bmatrix}B\\B_vD+B_w\end{bmatrix}}_{B_a}w,\qquad r=\underbrace{\begin{bmatrix}D_vC&C_\psi\end{bmatrix}}_{C_a}\chi+\underbrace{(D_vD+D_w)}_{D_a}w.$$

Use zero initial plant and filter states for the transfer-function identity. This triangular $A_a$ is Hurwitz when $A$ and $A_\psi$ are Hurwitz. In the strict frequency test $X$ is only required to be symmetric; a direct storage proof must separately justify its terminal sign.

Worked example — a Lipschitz bound for one neuron from a quadratic constraint

Take the one-neuron network $f(x)=w_2\,\mathrm{ReLU}(w_1x)$ with $w_1=2$ and $w_2=3$. Its true Lipschitz constant is $|w_1w_2|=6$, the slope where the neuron is on. Can the quadratic-constraint machinery find it without knowing where the neuron is on or off?

Step 1: the fact. ReLU is slope-restricted in $[0,1]$. Let $\Delta v=w_1\Delta x$ be the pre-activation increment and $\Delta z$ the neuron's output increment. The incremental QC of the lemma above, with $\alpha=0$ and $\beta=1$, reads $2\lambda\,\Delta z\,(w_1\Delta x-\Delta z)\ge0$ for any $\lambda\ge0$.

Step 2: what we want. $|\Delta f|\le L\,|\Delta x|$, that is, $L^2\Delta x^2-w_2^2\Delta z^2\ge0$ for all increments the neuron can produce.

Step 3: the S-procedure. It suffices that

$$L^2\Delta x^2-w_2^2\Delta z^2-2\lambda\,\Delta z\,(w_1\Delta x-\Delta z)\ \ge\ 0\ \text{ for all }(\Delta x,\Delta z)\quad\Longleftrightarrow\quad\begin{bmatrix}L^2 & -\lambda w_1\\ -\lambda w_1 & 2\lambda-w_2^2\end{bmatrix}\succeq0 .$$

Step 4: solve. The $2\times2$ test needs $2\lambda-9\ge0$ and a nonnegative determinant, $L^2(2\lambda-9)-4\lambda^2\ge0$. At $\lambda=9/2$ the determinant is $-4\lambda^2\lt0$ whatever $L$ is, so $\lambda\gt9/2$, and then $L^2\ge4\lambda^2/(2\lambda-9)$. Minimising over $\lambda$ gives $\lambda=9$ and $L^2=36$: $L=6$, the exact constant. The matrix is then $\begin{bmatrix}36&-18\\-18&9\end{bmatrix}$, with eigenvalues $0$ and $45$.

Any other admissible multiplier, $\lambda\gt9/2$, still gives a valid bound, just a looser one: $\lambda=12$ gives $L\approx6.20$. Choosing the multipliers well is exactly what the SDP in LipSDP does, for thousands of neurons at once (Module 12).

6. Dissipativity & the KYP Lemma

In plain words. Think of a system as a tank of energy. The input pours energy in, the output takes energy out, and the tank's content, the storage $V$, can never be negative. A system is dissipative if the stored energy grows by at most what the supply rate $s$ allows. With the supply rate $s=\gamma^2\|w\|^2-\|z\|^2$, dissipativity says "the output energy is at most $\gamma^2$ times the input energy": a gain bound. For linear systems with quadratic storage, finding $V$ is an LMI, and the KYP lemma links that LMI to the frequency response.

Symbols in this section

Dissipativity is the energy bookkeeping that turns "the system cannot amplify its input by more than $\gamma$" into a matrix inequality, and it is the reason a stack of neural-network layers can be certified layer by layer.

Definition — Dissipativity, storage function, supply rate (Willems 1972)
A system $x_{t+1}=f(x_t,w_t)$, $z_t=h(x_t,w_t)$ is dissipative with respect to the supply rate $s(w,z)$ if there is a storage function $V\ge0$ with $$V(x_{t+1})-V(x_t)\ \le\ s(w_t,z_t)\qquad\text{for all }t\text{ and all trajectories}$$ (continuous time: $\dot V\le s(w,z)$). Summing the dissipation inequality over $t=0,\dots,N-1$ and using $V(x_N)\ge0$ gives $\sum_{t\lt N}s(w_t,z_t)\ge-V(x_0)$: the net "energy" that can be extracted from the system, $-\sum_ts(w_t,z_t)$, never exceeds its initial storage $V(x_0)$. A dissipative system can store or dissipate the supplied energy, but it cannot generate energy (Willems, Arch. Rational Mech. Anal. 1972). A QSR supply rate is a quadratic form in the output and input, $$s(w,z)=\begin{bmatrix}z\\w\end{bmatrix}^{\top}\begin{bmatrix}Q&S\\S^{\top}&R\end{bmatrix}\begin{bmatrix}z\\w\end{bmatrix}.$$ Special cases: Lyapunov stability ($w\equiv0$, $s=0$: $V$ is nonincreasing along trajectories, which proves Lyapunov stability of the equilibrium $x=0$ when $V$ is continuous and positive definite, $V(0)=0$ and $V(x)\gt0$ for $x\ne0$; a storage that is merely $\ge0$ proves nothing, since $V\equiv0$ always qualifies); $\ell_2$ gain at most $\gamma$ ($Q=-I$, $S=0$, $R=\gamma^2I$, $s=\gamma^2\|w\|^2-\|z\|^2$); passivity ($Q=R=0$, $S=I$, $s=2w^{\top}z$). Papers differ on whether the vector is ordered $(z,w)$ or $(w,z)$; check before copying a $(Q,S,R)$ triple.

For the gain supply the telescoped inequality reads $\sum_{t\lt N}\|z_t\|^2\le\gamma^2\sum_{t\lt N}\|w_t\|^2+V(x_0)$; with $V(x_0)=0$ (in particular $x_0=0$ when $V(0)=0$, as for every quadratic storage) and $N\to\infty$ this is $\|z\|_2\le\gamma\|w\|_2$, an $\ell_2$-gain bound; otherwise the initial storage enters as the bias term $V(x_0)$. Dissipativity is thus a Lyapunov argument with an input, and, like Lyapunov's theorem, it becomes an LMI as soon as the system is linear and the storage is quadratic.

Key equation — The dissipativity LMI of a discrete-time linear system
For $x_{t+1}=Ax_t+Bw_t$, $z_t=Cx_t+Dw_t$ with storage $V(x)=x^{\top}Px$, $P\succeq0$, the dissipation inequality holds for all $(x_t,w_t)$ iff $$\begin{bmatrix}A&B\\I&0\end{bmatrix}^{\top}\begin{bmatrix}P&0\\0&-P\end{bmatrix}\begin{bmatrix}A&B\\I&0\end{bmatrix}-\begin{bmatrix}C&D\\0&I\end{bmatrix}^{\top}\begin{bmatrix}Q&S\\S^{\top}&R\end{bmatrix}\begin{bmatrix}C&D\\0&I\end{bmatrix}\ \preceq\ 0,$$ i.e. $\begin{bmatrix}A^{\top}PA-P&A^{\top}PB\\B^{\top}PA&B^{\top}PB\end{bmatrix}-\begin{bmatrix}C&D\\0&I\end{bmatrix}^{\top}\Pi\begin{bmatrix}C&D\\0&I\end{bmatrix}\preceq0$ with $\Pi$ the QSR matrix. Derivation. $V(x^+)-V(x)-s(w,z)$ is the quadratic form of the displayed matrix in the vector $(x,w)$, because $x^+=Ax+Bw$ and $(z,w)=\begin{bmatrix}C&D\\0&I\end{bmatrix}(x,w)$; a quadratic form is nonpositive for all vectors iff its matrix is $\preceq0$. The matrix is affine in $(P,\Pi)$, so it is an LMI in $P$ (for fixed supply) and also in the supply parameters, e.g. in $\gamma^2$. This is the structure of the certificate $\begin{bmatrix}I&0\\A_{\rm tot}&B_{\rm tot}\\C_{\rm tot}&D_{\rm tot}\end{bmatrix}^{\top}\mathrm{diag}(-X,X,P)\begin{bmatrix}\cdot\end{bmatrix}\prec0$ in the Zames–Falb paper and of the layer conditions in Pauli, Gramlich & Allgöwer, L4DC 2023, where a 1-D convolution is a finite-impulse-response system with nilpotent $A$.
Derivation — Reading the augmented Zames–Falb certificate

Let $\chi$ be the combined plant/filter state with $\chi^+=A_{\rm tot}\chi+B_{\rm tot}w$, let $r=C_{\rm tot}\chi+D_{\rm tot}w$ be the filter output, and let $V(\chi)=\chi^{\top}X\chi$. The dot in the certificate repeats the left factor $H=\begin{bmatrix}I&0\\A_{\rm tot}&B_{\rm tot}\\C_{\rm tot}&D_{\rm tot}\end{bmatrix}$, and $H(\chi,w)=(\chi,\chi^+,r)$, so

$$(\chi,w)^{\top}H^{\top}\mathrm{diag}(-X,X,P)H(\chi,w)=V(\chi^+)-V(\chi)+r^{\top}Pr .$$

Hence $H^{\top}\mathrm{diag}(-X,X,P)H\prec0$ says $V(\chi^+)-V(\chi)\lt-r^{\top}Pr$ for every nonzero $(\chi,w)$: a dissipation inequality with supply $-r^{\top}Pr$. Summed over time, the IQC makes $\sum_tr_t^{\top}Pr_t\ge0$, so the storage must decrease; this is how the multiplier enters the stability proof.

Theorem — Kalman–Yakubovich–Popov lemma (Rantzer 1996 form)
Let $A\in\mathbb R^{n\times n}$, $B\in\mathbb R^{n\times m}$, $M\in\mathbb S^{n+m}$, with $\det(j\omega I-A)\ne0$ for all $\omega\in\mathbb R$ and $(A,B)$ controllable (see Primer D). Then the following are equivalent:
  • (i) $\begin{bmatrix}(j\omega I-A)^{-1}B\\I\end{bmatrix}^{*}M\begin{bmatrix}(j\omega I-A)^{-1}B\\I\end{bmatrix}\preceq0$ for all $\omega\in\mathbb R\cup\{\infty\}$;
  • (ii) there exists $P\in\mathbb S^n$ with $\ M+\begin{bmatrix}A^{\top}P+PA&PB\\B^{\top}P&0\end{bmatrix}\preceq0$.
The equivalence for strict inequalities holds even without controllability (Rantzer, Systems & Control Letters 1996). In words: a frequency-domain inequality that must hold at infinitely many frequencies is equivalent to one finite-dimensional LMI. With $M=\begin{bmatrix}C^{\top}C&C^{\top}D\\D^{\top}C&D^{\top}D-\gamma^2I\end{bmatrix}$, (i) reads $G(j\omega)^{*}G(j\omega)\preceq\gamma^2I$ for all $\omega$, with $G(s)=C(sI-A)^{-1}B+D$, and (ii) is the gain LMI of the walkthrough above without its side constraint $P\succeq0$. If $A$ is Hurwitz, (i) says exactly $\|G\|_\infty\le\gamma$, i.e. the $\mathcal L_2$ gain is at most $\gamma$, and every $P$ satisfying (ii) is automatically $\succeq0$: the $(1,1)$ block gives $A^{\top}P+PA\preceq-C^{\top}C\preceq0$, and for Hurwitz $A$ this Lyapunov inequality forces $P\succeq0$. This is the bounded-real lemma. Stability cannot be dropped: $A=B=C=1$, $D=0$ satisfies (i) with $\gamma=1$, since $|1/(j\omega-1)|\le1$, and (ii) with $P=-1$, yet the system is unstable and its gain from $w$ to $z$ is unbounded. With the passivity supply $s=2w^{\top}z$ instead, $\dot V-s\le0$ is (ii) with $M=\begin{bmatrix}0&-C^{\top}\\-C&-(D+D^{\top})\end{bmatrix}$, and (i) reads $G(j\omega)+G(j\omega)^{*}\succeq0$: the positive-real lemma.

The value at $\omega=\infty$ means the limiting inequality as $|\omega|\to\infty$. Since $(j\omega I-A)^{-1}B\to0$, the stacked matrix tends to $[0;I]$, so this tests the lower-right block of $M$. It includes the direct input-output term even when the dynamic part disappears.

Proof sketch — The easy direction (ii) ⇒ (i), and what the hard direction buys

Fix $\omega$ and write $\Phi(\omega)=\begin{bmatrix}(j\omega I-A)^{-1}B\\I\end{bmatrix}$. Multiply (ii) from the left by $\Phi^{*}$ and from the right by $\Phi$ (congruence, Section 2, so $\preceq0$ is preserved). The $M$-term becomes the left-hand side of (i). For the $P$-term, put $X=(j\omega I-A)^{-1}B$, so that $j\omega X=AX+B$, and compute

$$\Phi^{*}\begin{bmatrix}A^{\top}P+PA&PB\\B^{\top}P&0\end{bmatrix}\Phi=X^{*}(A^{\top}P+PA)X+X^{*}PB+B^{\top}PX=(AX+B)^{*}PX+X^{*}P(AX+B)=(j\omega X)^{*}PX+X^{*}P(j\omega X)=(-j\omega+j\omega)X^{*}PX=0 .$$

So the $P$-term contributes nothing and (i) follows. $\blacksquare$ The same cancellation, in the time domain, is the statement that a quadratic storage function integrates to zero along a periodic (sinusoidal) steady state. The hard direction (i) $\Rightarrow$ (ii) is what makes SDP-based robust control complete rather than merely sufficient; Rantzer's proof is a separation argument on a convex set, in the same spirit as the S-lemma proof of Section 4. For the discrete-time version (no eigenvalues of $A$ on the unit circle) replace $(j\omega I-A)^{-1}$ by $(e^{j\omega}I-A)^{-1}$, $\omega\in[0,2\pi)$, and the whole $P$-term by $\begin{bmatrix}A^{\top}PA-P&A^{\top}PB\\B^{\top}PA&B^{\top}PB\end{bmatrix}$, the storage block of the discrete-time dissipativity LMI above (replacing only the $(1,1)$ block would be wrong). The easy direction is the same computation: with $z=e^{j\omega}$ and $X=(zI-A)^{-1}B$ we have $zX=AX+B$, so the $P$-term contributes $(AX+B)^{*}P(AX+B)-X^{*}PX=(|z|^2-1)X^{*}PX=0$.

Derivation — Why a Hurwitz $A$ forces $P\succeq0$

Suppose $A^{\top}P+PA\preceq0$ (the $(1,1)$ block of (ii) when the $(1,1)$ block of $M$ is $\succeq0$, as for the gain and passivity supplies) and set $Q=-(A^{\top}P+PA)\succeq0$. Along the unforced system $x(t)=e^{At}x_0$, $\tfrac{d}{dt}\,x^{\top}Px=x^{\top}(A^{\top}P+PA)x=-x^{\top}Qx$. Because $A$ is Hurwitz, $x(t)\to0$, and integrating from $0$ to $\infty$ gives $x_0^{\top}Px_0=\int_0^\infty x(t)^{\top}Qx(t)\,dt\ge0$ for every $x_0$, so $P\succeq0$.

Theorem — Positive-real lemma, stable controllable form (Rantzer 1996)

Let $A\in\mathbb R^{n\times n}$ be Hurwitz, $B\in\mathbb R^{n\times m}$, $C\in\mathbb R^{m\times n}$, $D\in\mathbb R^{m\times m}$, and assume $(A,B)$ controllable. For the square transfer matrix $G(s)=C(sI-A)^{-1}B+D$, the condition $G(j\omega)+G(j\omega)^*\succeq0$ at all real frequencies and at infinity is equivalent to the existence of $P=P^T\succeq0$ with

$$\begin{bmatrix}A^TP+PA&PB-C^T\\B^TP-C&-(D+D^T)\end{bmatrix}\preceq0.$$

Equivalently, $V=x^TPx$ satisfies $\dot V\le2w^Tz$ for every state and input. The implication from this storage inequality to the frequency inequality needs no controllability; that assumption supplies the nonstrict converse here.

Intuition. Input and output have matching dimensions so their inner product represents supplied power. The matrix inequality says that the stored energy cannot increase faster than this power supply. Hurwitz stability forces the KYP matrix to be a nonnegative storage, by the unforced-trajectory calculation above.

The KYP lemma above with the passivity supply (Rantzer 1996).

Incremental dissipativity and layer-wise composition

Replace the signals by differences of two trajectories, $\Delta x=x^a-x^b$, $\Delta w$, $\Delta z$, and the storage by a function of $\Delta x$: a system is incrementally dissipative if $V(\Delta x_{t+1})-V(\Delta x_t)\le s(\Delta w_t,\Delta z_t)$. For a static layer $y=f(u)$ there is no state and the inequality reduces to $s(\Delta u,\Delta y)\ge0$; with the weighted gain supply $s=\|\Delta u\|^2_{X_{k-1}}-\|\Delta y\|^2_{X_k}$ (where $\|v\|_X^2=v^{\top}Xv$, $X\succ0$) this says $\|\Delta y\|_{X_k}\le\|\Delta u\|_{X_{k-1}}$: a Lipschitz bound in weighted norms.

Theorem — Cascades of incrementally dissipative layers are Lipschitz (LipKernel, Theorem 7)
Let layers $k=1,\dots,l$ map $u_k\mapsto y_k$ with $u_{k+1}=y_k$, and let each satisfy $\|\Delta u_k\|^2_{X_{k-1}}-\|\Delta y_k\|^2_{X_k}\ge0$ for matrices $X_0,\dots,X_l\succ0$. Then $\|\Delta y_l\|^2_{X_l}\le\|\Delta u_1\|^2_{X_0}$. With $X_0=\rho^2I$ and $X_l=I$ the network is $\rho$-Lipschitz (in LipKernel's convention $\rho$ is the constant itself, not its square). Proof. Sum the layer inequalities. Because $\Delta u_{k+1}=\Delta y_k$, the term $-\|\Delta y_k\|^2_{X_k}$ of layer $k$ cancels the term $+\|\Delta u_{k+1}\|^2_{X_k}$ of layer $k+1$, and the sum telescopes to $\|\Delta u_1\|^2_{X_0}-\|\Delta y_l\|^2_{X_l}\ge0$. $\blacksquare$ (Pauli, Wang, Manchester & Allgöwer, Automatica 2026.)
Key insight — The interface matrices are what beats the product bound
If every $X_k$ is a scalar multiple of the identity, $X_k=c_kI$, layer $k$'s condition says its Lipschitz constant is at most $\sqrt{c_{k-1}/c_k}$ and the telescoped bound is the product $\sqrt{c_0/c_l}=\rho$ of the layer-wise constants: the naive bound of Module 12. General matrices $X_k$ let a layer be "loose" in directions the next layer attenuates, which is why layer-wise dissipativity with matrix interfaces (GLipSDP, Pauli, Gramlich & Allgöwer 2024, Theorem 1) is lossless with respect to full LipSDP for fully connected networks (made precise in the theorem below), and why LipKernel can enforce each layer's LMI by construction and still obtain a tighter end-to-end bound than the product of layer-wise constants (in LipKernel's two-layer illustration, bound $1$ with ellipsoidal interfaces versus almost $2$ with spherical ones; Module 13). Each layer LMI is exactly the dissipativity LMI above, with the activation handled by the slope-restriction QC and a diagonal multiplier: dissipativity supplies the storage, the QC supplies the abstraction, the S-procedure glues them, and the Schur complement makes the result linear.
Theorem — Splitting a fully connected LipSDP certificate

Consider fixed affine weights in a feedforward chain $z_k=\varphi_k(W_kz_{k-1}+b_k)$, $k=1,\dots,l$, and final affine output $W_{l+1}z_l+b_{l+1}$. Each $\varphi_k$ is elementwise slope-restricted in $[0,1]$. Use exactly the scalar sector QCs with nonnegative diagonal multipliers $T_k$ and no cross-neuron couplings. For arbitrary increment variables $v_0,\dots,v_l$, define

$$q_k=2v_k^TT_kW_kv_{k-1}-2v_k^TT_kv_k.$$

The global LipSDP inequality $\rho\|v_0\|^2-\|W_{l+1}v_l\|^2-\sum_k q_k\ge0$ for all increments is equivalent to existence of symmetric interface matrices $X_1,\dots,X_{l-1}$, with $X_0=\rho I$, $X_l=W_{l+1}^{\top}W_{l+1}$, such that

$$\begin{bmatrix}X_{k-1}&-W_k^TT_k\\-T_kW_k&2T_k-X_k\end{bmatrix}\succeq0,\qquad k=1,\dots,l.$$

The interface matrices have no imposed diagonal or scalar structure; semidefinite boundary cases are allowed. Each $X_{k-1}$ is automatically PSD as a principal block. Optimising over the same multiplier family therefore gives equal infimal values of $\rho$.

Intuition. Summing the local inequalities proves one direction. The converse decomposes the positive semidefinite block-tridiagonal global matrix along its chain, as in the cited splitting theorem. Thus splitting adds no loss to this SDP; the activation abstraction and S-procedure can still overestimate the true Lipschitz constant. Singular interface matrices give quadratic forms, not norms, but the telescoping argument still holds.

Pauli, Gramlich & Allgöwer 2024, Theorem 1 and Sec. IV.

Worked example — the gain of a first-order system from a storage function

System: $x_{t+1}=0.5\,x_t+w_t$ with output $z_t=x_t$. Try storage $V(x)=p\,x^2$ with supply rate $s(w,z)=\gamma^2w^2-z^2$. The dissipation inequality $p(0.5x+w)^2-px^2\le\gamma^2w^2-x^2$ must hold for all $x$ and $w$. Collecting terms gives

$$\begin{bmatrix}x\\w\end{bmatrix}^{\top}\begin{bmatrix}1-0.75p & p/2\\ p/2 & p-\gamma^2\end{bmatrix}\begin{bmatrix}x\\w\end{bmatrix}\ \le\ 0\ \text{ for all }(x,w)\quad\Longleftrightarrow\quad\begin{bmatrix}1-0.75p & p/2\\ p/2 & p-\gamma^2\end{bmatrix}\preceq0 .$$

For a $2\times2$ matrix to be $\preceq0$, both diagonal entries must be $\le0$ and the determinant $\ge0$. The diagonal gives $p\ge4/3$, but at $p=4/3$ the determinant is $-4/9\lt0$, so $p\gt4/3$. The determinant condition then becomes $\gamma^2\ge p+p^2/(3p-4)$. The right side is smallest at $p=2$, where it equals $4$. So $\gamma=2$, certified by $V(x)=2x^2$. The matrix is then $\begin{bmatrix}-0.5&1\\1&-2\end{bmatrix}$, with eigenvalues $0$ and $-2.5$.

Sanity check. A constant input $w_t=1$ settles at $x=0.5x+1$, that is, $x=2$: the output is twice the input. The frequency response $G(e^{j\omega})=1/(e^{j\omega}-0.5)$ has its largest magnitude at $\omega=0$, also $1/(1-0.5)=2$. The storage-function LMI found the exact gain, as the KYP lemma promises for linear systems.

Walkthrough: From a Quadratic Constraint to an LMI

LipSDP in miniature. Take the scalar one-hidden-neuron network $f(x)=w_1\,\varphi(w_0x+b_0)+b_1$ with $\varphi$ slope-restricted in $[0,1]$ (ReLU, tanh), and find the smallest $\rho$ such that $|f(x)-f(y)|^2\le\rho\,|x-y|^2$ for all $x,y$. Every step is a section of this page; Module 12 repeats the same six steps with matrices.

Interactive: S-Lemma in 2-D

Two quadratic forms on $\mathbb R^2$: the constraint $\xi^{\top}A\xi\ge0$ and the target $\xi^{\top}B\xi\ge0$. Set each matrix through its eigenvalues and rotation, then move the multiplier $\tau$ and watch whether $B-\tau A\succeq0$ (its two eigenvalues use a closed formula evaluated in floating point). Writing a nonzero $\xi=ru$ with $\|u\|=1$ gives $\xi^{\top}A\xi=r^2\,u^{\top}Au$, so the sign of a homogeneous quadratic form depends only on the direction of $\xi$ (and both forms vanish at $\xi=0$); that is why everything is drawn on the unit circle.

Derivation — How the explorer searches for the best multiplier

The button approximately maximises $h(\tau)=\lambda_{\min}(B-\tau A)=\min_{\|u\|=1}(u^TBu-\tau u^TAu)$. This is concave because it is an infimum of affine functions of $\tau$. Ternary search (see Primer B) compares two interior points and discards a third of the interval that cannot contain a better value. For these sliders (eigenvalues in $[-3,3]$ in steps of $0.1$), strict feasibility gives $\lambda_{\max}(A)\ge0.1$ and $\|B\|_2\le3$, so $h(\tau)\le3-0.1\tau$, while $h(0)\ge-3$; hence $h(\tau)\lt h(0)$ for $\tau\gt60$, and no maximiser lies above 60.

Automatic maximisation is disabled when $A\preceq0$: then every $u^{\top}Au\le0$, so $h(\tau)$ is nondecreasing and it may grow without bound, approach an unattained limit, or attain a maximum. For example, when $A=0$, it is constant and every $\tau\ge0$ is a maximiser. The current multiplier can still be checked directly.

S-Lemma in 2-D

Left: directions where the constraint holds are coloured green if the target also holds and red if it fails; grey directions are outside the constraint set. The wedges are sampled per degree, so a very thin violation may not show; the verdict below uses analytic formulas evaluated in floating point, and a red dashed ray marks the worst feasible direction when the implication fails. The outer ring shows the sign of $\xi^{\top}(B-\tau A)\xi$: the certificate is valid iff the ring is entirely purple. Right: the three forms as functions of the angle; $B-\tau A\succeq0$ iff the thick purple curve stays above zero.

Derivation — How the verdict tests every feasible direction

The implication test minimises analytically over direction rather than checking only the drawn wedges, but evaluates the formulas in floating point with tolerance $10^{-9}$. For $M=\begin{bmatrix}a&b\\b&d\end{bmatrix}$, $u(\theta)^TMu(\theta)=(a+d)/2+(a-d)\cos(2\theta)/2+b\sin(2\theta)$. On each feasible angular arc, its minimum occurs at an endpoint or an included minimum of this sinusoid. Values within the tolerance of zero are treated as zero; they are not exact proofs of boundary feasibility.

Interactive: Lyapunov LMI Feasibility

A $2\times2$ discrete-time system $x_{t+1}=Ax_t$. The explorer solves the Stein equation $A^{\top}PA-P=-I$ in closed form (three unknowns, one linear system), tests $P\succ0$, and draws the eigenvalues of $A$ against the unit circle, the certified level set $x^{\top}Px=1$ and one trajectory. By the theorem of Section 2, $P\succ0$ iff the LMI $A^{\top}PA-P\prec0$, $P\succ0$ is feasible iff $A$ is Schur stable.

Derivation — The three linear equations the explorer solves

Write $A=\begin{bmatrix}a&b\\c&d\end{bmatrix}$ and $P=\begin{bmatrix}p&q\\q&r\end{bmatrix}$. Matching the three independent entries of $A^TPA-P=-I$ gives $(a^2-1)p+2acq+c^2r=-1$, $abp+(ad+bc-1)q+cdr=0$, and $b^2p+2bdq+(d^2-1)r=-1$. Gaussian elimination solves for $(p,q,r)$. Positive definiteness then requires $p\gt0$ and $pr-q^2\gt0$. If elimination meets a pivot below its numerical threshold, the explorer reports that no reliable unique solution was found. In exact arithmetic the Stein map $P\mapsto A^{\top}PA-P$ is singular iff $\lambda_i\lambda_j=1$ for some pair of eigenvalues of $A$, which rules out Schur stability; a tiny pivot is only numerical evidence of (near-)singularity, not a proof.

Derivation — How the initial state is placed on the ellipse

The slider controls the ellipse parameter $\theta$: if $P$ has eigenvalues $\mu_1,\mu_2\gt0$ with orthonormal eigenvectors $u_1,u_2$, then $x_0=\frac{\cos\theta}{\sqrt{\mu_1}}u_1+\frac{\sin\theta}{\sqrt{\mu_2}}u_2$. This guarantees $x_0^TPx_0=1$ but generally differs from the polar angle of $x_0$. Without a positive definite $P$, the initial point is instead chosen on a circle of radius 0.6. Hollow eigenvalue markers indicate values beyond the plotting range.

Lyapunov LMI Feasibility

Left: eigenvalues of $A$ (orange) and the unit circle. Right: the ellipse $x^{\top}Px=1$ (blue) and the trajectory (orange) started on it; along a valid certificate $V(x_{t+1})-V(x_t)=-\|x_t\|^2\lt0$, so the trajectory can never leave the ellipse. Try $a_{11}=a_{22}=1.05$, $a_{12}=a_{21}=0$: the Stein solution has negative entries and no certificate exists.

From the mathematics to a real decision

Learning objectives

A commissioning decision

Two temperature sensors monitor adjacent zones of the robot enclosure. Define the dimensionless deviations $x_1=(T_1-40)/5$ and $x_2=(T_2-40)/5$, with temperatures in degrees Celsius. The permitted operating box is $|x_1|\le1$, $|x_2|\le1$, corresponding to 35–45 degrees in each zone. A candidate fixed controller has already been substituted into a linear minute-sampled model.

$$x_{t+1}=Ax_t,\qquad A=\begin{bmatrix}0.6&0.1\\0.1&0.7\end{bmatrix}.$$

Assume this map is exact inside the operating box, there is no disturbance for the initial calculation, and the equilibrium really is $(40,40)$ degrees. These assumptions make the example an analysis of a proposed closed loop, not a procedure for identifying its coefficients. The practical question is whether a specified family of initial temperatures stays inside the box while approaching equilibrium.

Use the quadratic energy $V(x)=x^\top Px$ with the proposed storage matrix $P=I$. Here $I$ is the two-dimensional identity. A positive definite storage weights directions in state space; it is not physical heat energy unless a separate physical derivation supplies that interpretation. We need its decrease, rather than that extra interpretation, for this decision.

Worked decision, with its limits

Form the residual. The Lyapunov inequality is $A^\top PA-P\prec0$. With $P=I$, multiplication gives

$$Q=I-A^\top A=\begin{bmatrix}0.63&-0.13\\-0.13&0.50\end{bmatrix},\qquad V(Ax)-V(x)=-x^\top Qx.$$

The two eigenvalues of $Q$ are approximately 0.419656 and 0.710344, both positive. Therefore the energy decreases for every nonzero vector, rather than only for a plotted trajectory. Equivalently, the largest eigenvalue of the symmetric positive definite $A$ is $q=0.761803$, so $\|Ax\|_2\le q\|x\|_2$. This establishes a contraction in the chosen Euclidean norm.

Connect energy to temperatures. If $V(x)\le1$, then each coordinate satisfies $|x_i|\le\|x\|_2\le1$. Thus the unit disk lies inside the physical operating box. Its invariance follows because $V$ decreases. The model was assumed only inside the box, but the induction remains valid: the initial state lies in the disk, the model maps it back into the disk, and the same assumption applies again.

Check one starting condition. At $x_0=(0.6,-0.8)$, the temperatures are $(43,36)$ degrees and $V(x_0)=1$. The next state is $(0.28,-0.50)$, giving temperatures $(41.4,37.5)$ and energy $0.28^2+0.50^2=0.3284$. The specific decrease exceeds the uniform guarantee because this vector is not aligned with the slowest contracting direction.

Read the limitation. The disk is a sufficient certified region. A corner such as $(1,-1)$ lies in the permitted box but outside this disk because its energy is 2. That does not mean it is unsafe; the certificate simply does not cover that starting point. To enlarge the region one could seek a different $P$ and prove its ellipsoid remains inside the box. Stability alone never supplies that containment argument.

A tempting wrong approach

Common mistake — Ignoring the coupling

Checking only $0.6\lt1$ and $0.7\lt1$ treats the sensors as independent scalar loops. Off-diagonal terms can defeat that reasoning: replacing both off-diagonal entries by 0.6 creates a symmetric matrix with a largest eigenvalue above 1. The original residual tests the complete map, including heat transferred between zones. Similarly, requiring every entry of $Q$ to be positive would reject a valid certificate because its off-diagonal entries are negative.

Transfer the argument

Exercise 2.B1 — Medium: Certify a rectangular startup specification

The startup procedure guarantees $|x_i|\le0.7$. Show that every allowed startup is covered by the disk certificate. Give a uniform coordinate bound at startup and after one update.

Review: Lyapunov matrix inequalities.

Show hint

Bound $V$ over the box, then apply the induced-norm contraction to its largest possible radius.

Show worked solution

The largest startup energy is $2(0.7)^2=0.98\le1$. Thus every startup lies in the invariant disk. The energy argument alone gives each coordinate magnitude at most $\sqrt{0.98}\approx0.989949$, and after one update at most $q\sqrt{0.98}\approx0.754147$. The original startup specification gives the sharper initial bound 0.7; the norm argument is deliberately uniform over subsequent directions. Convert a coordinate bound to degrees by multiplying by 5.

Exercise 2.B2 — Hard: Replace convergence by a disturbance tube

Now assume $x_{t+1}=Ax_t+w_t$ with $\|w_t\|_2\le0.05$ every minute. Derive an invariant Euclidean radius and decide whether the unit disk remains invariant. Can every trajectory still converge to zero?

Review: Storage and gain bounds.

Show hint

Use $\|Ax+w\|_2\le q\|x\|_2+0.05$. Consider a constant disturbance along a unit eigenvector for $q$.

Show worked solution

A radius $R$ is invariant when $qR+0.05\le R$, hence $R\ge0.05/(1-q)\approx0.209911$. The unit disk also satisfies the condition because $q+0.05\approx0.811803\le1$. Repeatedly applying the scalar inequality yields $\|x_t\|_2\le q^t\|x_0\|_2+0.05(1-q^t)/(1-q)$. A constant disturbance $0.05v$ along the slow eigenvector $v$ produces the nonzero equilibrium $Rv$. Thus the valid statement is an ultimate bound, with zero convergence only under additional assumptions on the disturbance.

Synthesis and bridge

An LMI is useful when its matrix inequality closes the whole decision chain: decrease of storage, an invariant sublevel set, containment in physical limits, and applicability of the model on that set. Numerical feasibility is evidence for only one link. The calculation also shows how the same storage can answer a revised commissioning request after disturbances are introduced.

Next, imagine the heat-transfer residual is learned rather than exactly known. A small posterior variance does not automatically replace the disturbance assumption. The GP toolkit explains which extra assumptions turn a statistical model into an error envelope usable in this kind of set argument.

Exercises

Graded practice — Build the argument yourself

There are 12 new problems: four Easy, four Medium, and four Hard. Start with the level that lets you make progress without opening the solution. Easy problems rebuild individual operations; Medium problems combine them; Hard problems ask for proofs, boundary cases, and the limits of a guarantee. The required concepts are explained on this page or in the linked earlier material.

Easy — Warm up one skill at a time.

Exercise 2.P1 — Easy: KKT with one active constraint

Minimize $(x-2)^2$ over $x\le1$. Write the Lagrangian with constraint $x-1\le0$, and find the optimum and multiplier using stationarity, feasibility and complementary slackness.

Review if needed: Primer B: constrained optimization. Apply here: this module's explanation.

Show hint

The unconstrained minimizer is excluded, so check the endpoint $x=1$.

Show worked solution

The Lagrangian is $L(x,\lambda)=(x-2)^2+\lambda(x-1)$ with $\lambda\ge0$. Stationarity is $2(x-2)+\lambda=0$. The feasible point closest to 2 is $x^\star=1$, with value 1; substituting gives $\lambda^\star=2$.

Primal feasibility holds at equality, dual feasibility holds because $2\ge0$, and complementary slackness is $2(1-1)=0$. The objective is convex and the constraint affine; a strictly feasible point is $x=0$. Thus the KKT conditions certify a global optimum. The nonzero price reflects that relaxing the bound lets the objective improve.

Exercise 2.P2 — Easy: Positive entries do not mean PSD

Compare $A=\begin{bmatrix}2&1\\1&2\end{bmatrix}$ and $B=\begin{bmatrix}1&2\\2&1\end{bmatrix}$. Compute their eigenvalues and identify which is PSD. Find one vector exposing the negative direction of the other.

Review if needed: Primer A: positive semidefiniteness. Apply here: this module's explanation.

Show hint

For equal diagonal entries, $(1,1)$ and $(1,-1)$ are eigenvectors.

Show worked solution

For $A$, those directions have eigenvalues $2+1=3$ and $2-1=1$, both positive, so $A\succ0$. For $B$, the eigenvalues are $1+2=3$ and $1-2=-1$, so $B$ is indefinite despite all entries being positive.

Take $v=(1,-1)^\top$. Then $Bv=-v$ and $v^\top Bv=-v^\top v=-2\lt0$. PSD means the quadratic form is nonnegative in every direction. It is a matrix-order condition, not an entrywise sign check.

Exercise 2.P3 — Easy: First Schur-complement calculation

Find all real $t$ for which $M(t)=\begin{bmatrix}t&2\\2&1\end{bmatrix}\succeq0$. When is it positive definite?

Review if needed: Primer A: block matrices. Apply here: this module's explanation.

Show hint

Use the bottom-right block 1, which is strictly positive.

Show worked solution

The Schur complement of the bottom-right entry is $t-2(1^{-1})2=t-4$. Since that corner is positive, $M(t)\succeq0$ exactly when $t-4\ge0$, or $t\ge4$. Strict positive definiteness requires $t\gt4$.

At $t=4$, the matrix is $vv^\top$ for $v=(2,1)^\top$: it is PSD but singular. The vector $(1,-2)^\top$ lies in its nullspace. Checking this boundary case helps keep semidefinite and definite conclusions separate.

Exercise 2.P4 — Easy: Read a scalar sector constraint

Let $y=\max\{0,x\}$. Verify $y(x-y)\ge0$ separately for $x\ge0$ and $x\lt0$. Write the inequality as a quadratic form in $z=(x,y)^\top$.

Review if needed: Primer E: ReLU activation. Apply here: this module's explanation.

Show hint

For ReLU the product is zero in both cases; the cross term of $z^\top Qz$ is twice the off-diagonal entry.

Show worked solution

If $x\ge0$, then $y=x$, so $y(x-y)=x\cdot0=0$. If $x\lt0$, then $y=0$ and the product is again zero. Hence ReLU obeys the sector inequality.

$$y(x-y)=xy-y^2=\begin{bmatrix}x\\y\end{bmatrix}^{\!\top}\begin{bmatrix}0&1/2\\1/2&-1\end{bmatrix}\begin{bmatrix}x\\y\end{bmatrix}\ge0.$$

The quadratic constraint also admits many pairs that are not on the ReLU graph, such as $(x,y)=(2,1)$. Certificates built only from it deliberately cover a larger set of input-output pairs.

Medium — Combine definitions and compute a certificate.

Exercise 2.P5 — Medium: A scalar Lyapunov LMI

For $x_{t+1}=0.8x_t$, find $P\gt0$ satisfying $0.8^2P-P=-1$. Show how the result proves decrease of $V(x)=Px^2$. Would any $P\gt0$ work for the strict decrease inequality?

Review if needed: Primer D: Lyapunov decrease. Apply here: this module's explanation.

Show hint

Solve $-0.36P=-1$, then separate the normalization from the sign condition.

Show worked solution

The normalized equation gives $P=1/0.36=25/9\approx2.77778$. Along the system, $V(x_{t+1})-V(x_t)=(0.64-1)Px_t^2=-x_t^2$, strictly negative for $x_t\ne0$. Since $P\gt0$, $V$ is positive definite and certifies asymptotic stability.

Every $P\gt0$ satisfies the strict inequality because $-0.36P\lt0$. The equation with right-hand side $-1$ chooses one scale for the certificate; stability depends on the sign, not that normalization. For an unstable scalar factor 1.1, the coefficient becomes $+0.21$, and no positive $P$ can give decrease.

Exercise 2.P6 — Medium: An S-procedure certificate on an interval

Prove that $1-x^2\ge0$ implies $2-x^2\ge0$ using a nonnegative multiplier $\tau$ and a globally nonnegative residual. Then find every $\tau\ge0$ for which the residual works.

Review if needed: Primer 0: implications. Apply here: this module's explanation.

Show hint

Expand $(2-x^2)-\tau(1-x^2)$ and require its constant and quadratic coefficients to be nonnegative.

Show worked solution

The residual is $(2-\tau)+(\tau-1)x^2$. It is nonnegative for every real $x$ exactly when $2-\tau\ge0$ and $\tau-1\ge0$, hence $1\le\tau\le2$. For instance, $\tau=1$ leaves the constant 1.

At a point where $1-x^2\ge0$, write $2-x^2=[(2-x^2)-\tau(1-x^2)]+\tau(1-x^2)$. Both terms are nonnegative, so the implication follows. This direction uses only the displayed certificate; the converse supplied by the S-lemma requires its additional strict-feasibility assumption.

Exercise 2.P7 — Medium: Lift a quadratic epigraph into an LMI

For $x=(x_1,x_2)^\top$ and scalar $t$, express $x_1^2+x_2^2\le t$ as an LMI with an identity block. Verify the least feasible $t$ when $x=(3,4)^\top$.

Review if needed: Primer B: convex sets and epigraphs. Apply here: this module's explanation.

Show hint

Put $t$ in the top-left corner and $x$ in the off-diagonal blocks.

Show worked solution
$$\begin{bmatrix}t&x^\top\\x&I_2\end{bmatrix}=\begin{bmatrix}t&x_1&x_2\\x_1&1&0\\x_2&0&1\end{bmatrix}\succeq0.$$

The bottom-right block is $I_2\succ0$, so the Schur complement gives $t-x^\top I_2^{-1}x=t-x_1^2-x_2^2\ge0$. The larger matrix is affine in all three unknowns, even though the original inequality contains squares.

For $(3,4)$, $x^\top x=9+16=25$, so the least feasible value is $t=25$. At equality the block matrix is singular; requiring it to be positive definite would impose the stricter condition $t\gt25$.

Exercise 2.P8 — Medium: Turn energy bookkeeping into a gain bound

A discrete-time system obeys $V_{t+1}-V_t\le4w_t^2-z_t^2$, with $V_t\ge0$ and $V_0=0$. Derive a finite-horizon bound between input and output energies. If $\sum_{t=0}^{T-1}w_t^2=3$, what output-energy bound follows?

Review if needed: Primer D: signal energy and gain. Apply here: this module's explanation.

Show hint

Sum the storage differences; the intermediate terms telescope.

Show worked solution

Summing from $t=0$ to $T-1$ gives $V_T-V_0\le4\sum w_t^2-\sum z_t^2$. Rearranging and using $V_0=0$, $V_T\ge0$ yields $\sum z_t^2\le4\sum w_t^2-V_T\le4\sum w_t^2$.

The output energy is therefore at most $4(3)=12$. Taking square roots gives a signal-norm gain bound of 2, not 4. With nonzero initial storage the bound would instead contain $+V_0$, representing energy initially present in the system. An infinite-horizon statement follows by taking limits when the input has finite total energy.

Hard — Explain why the argument works and where it stops.

Exercise 2.P9 — Hard: Compute the whole dual function

For the first practice problem, compute $g(\lambda)=\inf_{x\in\mathbb R}[(x-2)^2+\lambda(x-1)]$ for $\lambda\ge0$. Maximize it and compare with the constrained primal value.

Review if needed: Primer B: derivatives and minimizers. Apply here: this module's explanation.

Show hint

Complete the square in $x$, or substitute the stationary point $x=2-\lambda/2$.

Show worked solution
$$L(x,\lambda)=\left(x-2+\frac\lambda2\right)^2+\lambda-\frac{\lambda^2}{4},\qquad g(\lambda)=\lambda-\frac{\lambda^2}{4}.$$

The squared term has infimum zero, attained at $x=2-\lambda/2$. The dual function is a concave parabola. Its derivative is $1-\lambda/2$, so its maximum on $\lambda\ge0$ occurs at $\lambda=2$, with $g(2)=1$.

The primal optimum is also 1 at $x=1$, giving zero gap and primal recovery. For any other nonnegative $\lambda$, $1-g(\lambda)=(\lambda-2)^2/4\ge0$: every price supplies a valid lower bound, while the best price makes it exact.

Exercise 2.P10 — Hard: A singular corner needs a range check

For real numbers $a,b$, characterize when $\begin{bmatrix}a&b\\b&0\end{bmatrix}\succeq0$. Explain why replacing the inverse of the zero corner by zero would give an incomplete test.

Review if needed: Primer A: PSD quadratic forms. Apply here: this module's explanation.

Show hint

Test the quadratic form on $(1,t)^\top$ for arbitrary $t$.

Show worked solution

The quadratic form at $(1,t)^\top$ is $a+2bt$. If $b\ne0$, choosing $t$ with the opposite sign and sufficiently large magnitude makes it negative. Therefore PSD forces $b=0$. Once $b=0$, the matrix is PSD exactly when $a\ge0$.

Using a pseudoinverse of the zero corner gives only the condition $a\ge0$ and misses the necessary $b=0$. The general semidefinite Schur-complement rule needs a range condition in addition to the pseudoinverse. The definite-corner version avoids this issue because an invertible corner has the entire space as its range.

Exercise 2.P11 — Hard: Compose a slope bound with weights

Let $F(x)=3\varphi(2x+1)-4$, where $\varphi$ is slope-restricted in $[0,1]$, meaning $0\le[\varphi(a)-\varphi(b)]/(a-b)\le1$ for $a\ne b$. Prove that $F$ is 6-Lipschitz and its squared-gain bound is $\rho=36$. Is the bound attained for ReLU?

Review if needed: Primer B: Lipschitz continuity. Apply here: this module's explanation.

Show hint

Biases cancel in differences. Apply the slope bound to the two hidden inputs, then multiply by the output weight.

Show worked solution

Slope restriction implies $|\varphi(a)-\varphi(b)|\le|a-b|$. Hence $|F(x)-F(y)|=3|\varphi(2x+1)-\varphi(2y+1)|\le3|2x-2y|=6|x-y|$. Squaring gives $|F(x)-F(y)|^2\le36|x-y|^2$, so the page's squared convention is $\rho=36$.

For ReLU, choose two distinct inputs $x,y\gt-1/2$. Both hidden inputs are positive, and $F(x)-F(y)=6(x-y)$, so the ratio is exactly 6 and no smaller global Lipschitz constant works. A certificate that reports $\rho=36$ must be square-rooted before being read as a norm gain.

Exercise 2.P12 — Hard: A feasible certificate can be conservative

Consider $A=\begin{bmatrix}0.5&2\\0&0.5\end{bmatrix}$. Show that the system is Schur stable but $P=I$ fails the Lyapunov decrease test. Solve $A^\top PA-P=-I$ for symmetric $P=\begin{bmatrix}p&q\\q&r\end{bmatrix}$ and check $P\succ0$.

Review if needed: Primer D: eigenvalues and discrete-time stability. Apply here: this module's explanation.

Show hint

The diagonal entries give the eigenvalues. Match the three independent entries of the Stein equation in order $p,q,r$.

Show worked solution

The eigenvalues are both 0.5, so the system is stable. Yet $A^\top A-I=\begin{bmatrix}-0.75&1\\1&3.25\end{bmatrix}$ has a positive quadratic form on $(0,1)^\top$, so Euclidean energy need not decrease at every step.

Matching entries of the equation gives $-3p/4=-1$, $p-3q/4=0$, and $4p+2q-3r/4=-1$. Thus $p=4/3$, $q=16/9$, and $r=356/27$. The first principal minor is positive and the determinant is $1168/81\gt0$, hence $P\succ0$.

The resulting weighted energy decreases by $\|x\|_2^2$ each step. Failing one chosen certificate, $P=I$, does not prove instability; one must distinguish failure of a particular candidate from infeasibility of the entire LMI.

Further practice — Original problems and research connections

The original exercises below retain their numbering. Some compare later methods or ask for longer research derivations; use the graded set above first, and return to a research-connection problem after reading the relevant linked module.

Exercise 2.1 — Weak duality for a maximisation problem (derivation)

Consider the RL-style problem $p^\star=\sup_{\pi\in\Pi}J_r(\pi)$ s.t. $J_c(\pi)\le d$, with an arbitrary nonempty (possibly non-convex) set $\Pi$ and bounded $J_r,J_c$. Supremum notation is needed because this policy class need not attain its best value. Define $L(\pi,\lambda)=J_r(\pi)-\lambda(J_c(\pi)-d)$ and $D(\lambda)=\sup_{\pi\in\Pi}L(\pi,\lambda)$. (a) Prove $D(\lambda)\ge p^\star$ for every $\lambda\ge0$. (b) Prove that $D$ is convex. (c) Explain which step would fail if $\lambda\lt0$ were allowed.

Show answer

(a) Let $\tilde\pi$ be feasible, $J_c(\tilde\pi)\le d$. Then $-\lambda(J_c(\tilde\pi)-d)\ge0$ because $\lambda\ge0$ and $J_c(\tilde\pi)-d\le0$, so $L(\tilde\pi,\lambda)\ge J_r(\tilde\pi)$. Hence $D(\lambda)=\sup_\pi L(\pi,\lambda)\ge L(\tilde\pi,\lambda)\ge J_r(\tilde\pi)$. Taking the supremum over feasible $\tilde\pi$ gives $D(\lambda)\ge p^\star$. No property of $\Pi$ was used, which is why the bound holds for neural-network policy classes.

(b) For fixed $\pi$, $\lambda\mapsto L(\pi,\lambda)=J_r(\pi)+\lambda d-\lambda J_c(\pi)$ is affine. A pointwise supremum of affine functions is convex: for $\theta\in[0,1]$, $L(\pi,\theta\lambda+(1-\theta)\lambda')=\theta L(\pi,\lambda)+(1-\theta)L(\pi,\lambda')\le\theta D(\lambda)+(1-\theta)D(\lambda')$, and taking the supremum of the left side over $\pi$ gives $D(\theta\lambda+(1-\theta)\lambda')\le\theta D(\lambda)+(1-\theta)D(\lambda')$.

(c) Only the sign step in (a): with $\lambda\lt0$ and a strictly feasible $\tilde\pi$ ($J_c\lt d$) the term $-\lambda(J_c-d)$ is negative, so $L(\tilde\pi,\lambda)\lt J_r(\tilde\pi)$ and the chain breaks. Convexity in (b) survives, but $D(\lambda)$ with $\lambda\lt0$ is no longer guaranteed to upper-bound $p^\star$, so minimising over all real $\lambda$ can undershoot $p^\star$. Example: one step, two actions with (reward, cost) $=(1,0)$ and $(0,2)$, threshold $d=1$. The first action is feasible, so $p^\star=1$, and $D(\lambda)=\max\{1+\lambda,\,-\lambda\}$ (a mixed policy never beats the better action, because $L$ is linear in the mixing weights). Over $\lambda\ge0$ the minimum is $D(0)=1=p^\star$; over all real $\lambda$ it is $D(-\tfrac12)=\tfrac12\lt p^\star$, a false "bound". (Whether the unrestricted problem is bounded below at all depends on the instance.) This is why the projection $[\cdot]_+$ in the dual update is not optional.

Exercise 2.2 — The dual of a small LP

Derive the Lagrange dual of $\min 2x_1+3x_2$ s.t. $x_1+x_2\ge4$, $x_1+3x_2\ge6$, $x\ge0$ (keep $x\ge0$ as the domain $\mathcal D$). Solve both problems and verify zero gap and complementary slackness.

Show answer

Write the constraints as $4-x_1-x_2\le0$ and $6-x_1-3x_2\le0$ with multipliers $y_1,y_2\ge0$:

$$L(x,y)=2x_1+3x_2+y_1(4-x_1-x_2)+y_2(6-x_1-3x_2)=4y_1+6y_2+(2-y_1-y_2)x_1+(3-y_1-3y_2)x_2 .$$

Minimising over $x\ge0$: each linear term has infimum $0$ if its coefficient is $\ge0$ and $-\infty$ otherwise. So $g(y)=4y_1+6y_2$ when $y_1+y_2\le2$ and $y_1+3y_2\le3$, else $-\infty$. The dual is $\max 4y_1+6y_2$ s.t. $y_1+y_2\le2$, $y_1+3y_2\le3$, $y\ge0$: the familiar LP dual (constraints transposed, right-hand side and cost swapped).

Primal solution. The vertices of the feasible region are $(6,0)$, $(0,4)$ and the intersection $x_1+x_2=4$, $x_1+3x_2=6$, i.e. $(3,1)$; costs $12$, $12$ and $9$. So $x^\star=(3,1)$, $p^\star=9$.

Dual solution. Vertices $(2,0)$, $(0,1)$ and the intersection of $y_1+y_2=2$, $y_1+3y_2=3$, i.e. $(1.5,0.5)$; values $8$, $6$ and $9$. So $y^\star=(1.5,0.5)$, $d^\star=9=p^\star$.

The dual also has vertex $(0,0)$ with value zero. A shorter optimality check avoids any issue with the unbounded primal region: $(3,1)$ is primal feasible with cost 9, and $(1.5,0.5)$ is dual feasible with value 9. Weak duality places every feasible primal cost above every feasible dual value, so these matching values prove both points optimal.

Complementary slackness. Both primal constraints are active at $x^\star$ and both multipliers are positive; both $x_i^\star\gt0$ and both dual constraints are tight (the coefficients $2-y_1-y_2$ and $3-y_1-3y_2$ vanish at $y^\star$), so stationarity holds with $x^\star$ minimising $L(\cdot,y^\star)$. The prices say: raising the first requirement from $4$ to $5$ costs $1.5$, raising the second costs $0.5$.

Exercise 2.3 — Schur-complement the bounded-real Riccati inequality (derivation)

Let $\gamma^2I-D^{\top}D\succ0$. Show that the Riccati inequality $$A^{\top}P+PA+C^{\top}C+(PB+C^{\top}D)(\gamma^2I-D^{\top}D)^{-1}(B^{\top}P+D^{\top}C)\preceq0$$ is equivalent to the $2\times2$ block LMI of the $\ell_2$-gain walkthrough, and that this is in turn equivalent to $$\begin{bmatrix}A^{\top}P+PA&PB&C^{\top}\\B^{\top}P&-\gamma^2I&D^{\top}\\C&D&-I\end{bmatrix}\preceq0 .$$

Show answer

First equivalence. Put $X=A^{\top}P+PA+C^{\top}C$, $Y=PB+C^{\top}D$, $Z=D^{\top}D-\gamma^2I\prec0$. The negative-form Schur complement (Section 3, $(2,2)$ block negative definite) gives

$$\begin{bmatrix}X&Y\\Y^{\top}&Z\end{bmatrix}\preceq0\iff X-YZ^{-1}Y^{\top}\preceq0\iff X+Y(\gamma^2I-D^{\top}D)^{-1}Y^{\top}\preceq0,$$

using $Z^{-1}=-(\gamma^2I-D^{\top}D)^{-1}$. The last expression is the Riccati inequality.

Second equivalence. In the $3\times3$ block matrix the $(3,3)$ block is $-I\prec0$. Its negative-form Schur complement is

$$\begin{bmatrix}A^{\top}P+PA&PB\\B^{\top}P&-\gamma^2I\end{bmatrix}-\begin{bmatrix}C^{\top}\\D^{\top}\end{bmatrix}(-I)^{-1}\begin{bmatrix}C&D\end{bmatrix}=\begin{bmatrix}A^{\top}P+PA+C^{\top}C&PB+C^{\top}D\\B^{\top}P+D^{\top}C&D^{\top}D-\gamma^2I\end{bmatrix},$$

exactly the $2\times2$ block LMI. Note the direction of the trade: the Riccati form is quadratic in $P$, the $2\times2$ form is linear in $P$ but contains the constant products $C^{\top}C$, $D^{\top}D$, and the $3\times3$ form is jointly affine in $(P,C,D,\gamma^2)$ with $A,B$ fixed, which is what one types into a solver and what allows $C$ and $D$ (or $W_l$ in LipSDP) to become variables.

Exercise 2.4 — The S-lemma bounds a quadratic over an ellipsoid

Let $P\succ0$ and $B\in\mathbb S^n$. (a) Use the S-lemma to show that $\max\{x^{\top}Bx:\ x^{\top}Px\le1\}=\min\{\tau\ge0:\ \tau P-B\succeq0\}=\max\{0,\ \lambda_{\max}(P^{-1/2}BP^{-1/2})\}$. (b) Evaluate for $P=\mathrm{diag}(1,4)$ and $B=\begin{bmatrix}1&1\\1&1\end{bmatrix}$ and confirm with Cauchy–Schwarz.

Show answer

(a) A number $t$ is an upper bound iff $[\,1-x^{\top}Px\ge0\Rightarrow t-x^{\top}Bx\ge0\,]$. The constraint is strictly feasible ($x=0$), so by the inhomogeneous S-lemma this holds iff there is $\tau\ge0$ with $t-x^{\top}Bx-\tau(1-x^{\top}Px)\ge0$ for all $x$. Homogenising, this quadratic function is nonnegative iff

$$\begin{bmatrix}\tau P-B&0\\0&t-\tau\end{bmatrix}\succeq0\iff\tau P-B\succeq0\ \text{ and }\ t\ge\tau .$$

The smallest admissible $t$ for a given $\tau$ is $t=\tau$, so the maximum equals $\min\{\tau\ge0:\tau P-B\succeq0\}$. Finally $\tau P-B\succeq0\iff\tau I-P^{-1/2}BP^{-1/2}\succeq0$ (congruence with $P^{-1/2}$) $\iff\tau\ge\lambda_{\max}(P^{-1/2}BP^{-1/2})$; together with $\tau\ge0$ the smallest admissible multiplier is $\tau^\star=\max\{0,\lambda_{\max}(P^{-1/2}BP^{-1/2})\}$. The $\max\{0,\cdot\}$ matters only when $B\prec0$: then every $x\ne0$ has $x^{\top}Bx\lt0$ and the maximum $0$ is attained at $x=0$ (e.g. $P=I$, $B=-I$, where $\lambda_{\max}=-1$). The multiplier $\tau^\star$ is the Lagrange multiplier of the constraint, and the argument shows that this problem, which is non-convex unless $B\preceq0$, has zero duality gap.

(b) $P^{-1/2}=\mathrm{diag}(1,\tfrac12)$, so $P^{-1/2}BP^{-1/2}=\begin{bmatrix}1&\tfrac12\\\tfrac12&\tfrac14\end{bmatrix}$ with trace $1.25$ and determinant $0$: eigenvalues $0$ and $1.25$. The maximum is $1.25$. Check: $x^{\top}Bx=(x_1+x_2)^2=(x_1\cdot1+(2x_2)\cdot\tfrac12)^2\le(x_1^2+4x_2^2)(1+\tfrac14)\le1.25$, with equality at $x\propto(1,\tfrac14)$ scaled to the ellipse.

Exercise 2.5 — The slope-restriction QC for tanh

(a) Show that $\tanh$ is slope-restricted in $[0,1]$ and sector-bounded in $[0,1]$, and that $\alpha=0$ cannot be improved globally. (b) Write the incremental QC with $\alpha=0$, $\beta=1$ and verify it numerically for $a=1$, $b=-1$. (c) On the interval $|v|\le\bar v$, what local slope bound $\alpha_{\rm loc}\gt0$ holds, and why does it help in Module 14?

Show answer

(a) $\tanh'(v)=1-\tanh^2(v)\in(0,1]$. By the mean value theorem every chord slope $(\tanh a-\tanh b)/(a-b)$ equals $\tanh'(c)$ for some $c$ between $a$ and $b$, so it lies in $(0,1]\subset[0,1]$. Since $\tanh(0)=0$, taking $b=0$ gives $0\le v\tanh(v)\le v^2$: the sector bound. Because $\tanh'(v)\to0$ as $|v|\to\infty$, chord slopes come arbitrarily close to $0$, so no $\alpha\gt0$ works globally.

(b) With $\Delta v=a-b$, $\Delta\varphi=\tanh a-\tanh b$ the QC is $2\Delta v\,\Delta\varphi-2\Delta\varphi^2\ge0$, i.e. $\begin{bmatrix}\Delta v\\\Delta\varphi\end{bmatrix}^{\top}\begin{bmatrix}0&1\\1&-2\end{bmatrix}\begin{bmatrix}\Delta v\\\Delta\varphi\end{bmatrix}\ge0$. For $a=1,b=-1$: $\Delta v=2$, $\Delta\varphi=2\tanh(1)\approx1.5232$, so $2\cdot2\cdot1.5232-2\cdot1.5232^2\approx6.093-4.640=1.453\ge0$.

(c) On $|v|\le\bar v$ the derivative is at least $1-\tanh^2(\bar v)$, so chords between points of the interval have slope in $[\alpha_{\rm loc},1]$ with $\alpha_{\rm loc}=1-\tanh^2(\bar v)\gt0$. For the non-incremental sector about the origin with $\bar v\gt0$, which is what the stability analysis of Module 14 uses, one can do better: $\tanh(v)/v$ decreases in $|v|$ (tanh is concave on $[0,\infty)$), so on $|v|\le\bar v$ the sector is $[\tanh(\bar v)/\bar v,\,1]$, and $\tanh(\bar v)/\bar v=\tanh'(c)\ge1-\tanh^2(\bar v)$ for some $c\in(0,\bar v)$ by the mean value theorem (for $\bar v=1$: $0.762$ versus $0.420$). This is the local sector of Yin, Seiler & Arcak; around an equilibrium $v_*\ne0$ the offset version of Section 5 applies. A positive lower slope makes the QC matrix $\begin{bmatrix}-2\alpha\beta&\alpha+\beta\\\alpha+\beta&-2\end{bmatrix}$ strictly more restrictive (its $(1,1)$ entry becomes negative), which shrinks the abstraction on the fixed interval and can reduce conservatism; the price is that the certificate must guarantee $|v|\le\bar v$ on the certified set, which is the Schur-complement LMI of Section 3(a).

A larger certified region of attraction is not automatic: a tighter sector needs a smaller interval $\bar v$, and then the interval-containment LMI of Section 3(a) is more restrictive; the certified region reflects both effects.

Exercise 2.6 — The $\ell_2$-gain LMI of a scalar discrete-time system by hand (derivation)

Take $x_{t+1}=ax_t+bw_t$, $z_t=cx_t$ with $a=0.5$, $b=1$, $c=1$. (a) Derive the dissipativity LMI for $V=px^2$ and the supply $\gamma^2w^2-z^2$. (b) Show that $\gamma=2$ is certified with $p=2$. (c) Show that no $\gamma\lt2$ can be certified, and reconcile this with the frequency response.

Show answer

(a) $V(x^+)-V(x)-s=p(ax+bw)^2-px^2-\gamma^2w^2+c^2x^2=(pa^2-p+c^2)x^2+2pab\,xw+(pb^2-\gamma^2)w^2$, so the LMI is

$$\begin{bmatrix}pa^2-p+c^2&pab\\pab&pb^2-\gamma^2\end{bmatrix}=\begin{bmatrix}1-0.75p&0.5p\\0.5p&p-\gamma^2\end{bmatrix}\preceq0,\qquad p\ge0 .$$

(b) With $p=2$, $\gamma=2$: $\begin{bmatrix}-0.5&1\\1&-2\end{bmatrix}$ has trace $-2.5$ and determinant $1-1=0$, so its eigenvalues are $0$ and $-2.5$: negative semidefinite. Hence $\sum_t z_t^2\le4\sum_t w_t^2+2x_0^2$, an $\ell_2$ gain of at most $2$.

(c) A $2\times2$ matrix is $\preceq0$ iff both diagonal entries are $\le0$ and the determinant is $\ge0$. The $(1,1)$ entry requires $p\ge4/3$. The boundary $p=4/3$ is infeasible: there the $(1,1)$ entry is $0$ while the off-diagonal entry is $2/3$, so the determinant is $-4/9\lt0$. Hence $p\gt4/3$, $1-0.75p\lt0$, and the determinant condition $(1-0.75p)(p-\gamma^2)\ge0.25p^2$ becomes, after dividing by the negative number $1-0.75p$ (which reverses the inequality), $\gamma^2\ge p+\frac{0.25p^2}{0.75p-1}=p+\frac{p^2}{3p-4}$ for $p\gt4/3$. The right-hand side tends to $+\infty$ at both ends of $(4/3,\infty)$ and its derivative $1+\frac{3p^2-8p}{(3p-4)^2}$ vanishes at $3p^2-8p+4=0$, i.e. $p=2$ (the root $p=2/3$ is outside the interval), where it equals $2+4/2=4$. So $\gamma^2\ge4$ for every feasible $p$: the LMI certifies exactly $\gamma^\star=2$. This matches the frequency domain: $H(z)=c\,b/(z-a)=1/(z-0.5)$ has $\sup_\omega|H(e^{j\omega})|=1/(1-0.5)=2$ at $\omega=0$, and the $\ell_2$ gain of a stable linear system equals its $\mathcal H_\infty$ norm, as the (discrete-time) KYP lemma guarantees. For a stable linear system with an unrestricted storage the LMI is not conservative; conservatism enters with the QC abstraction of nonlinearities and with structural restrictions on the storage.

Key Papers

PaperVenueContributionWhy read it
Boyd, El Ghaoui, Feron & Balakrishnan — Linear Matrix Inequalities in System and Control TheorySIAM Studies in Applied Mathematics 15, 1994The book that defined the toolbox: Schur complements, S-procedure, Lyapunov, Riccati and bounded-real LMIs, interior-point solution.Free PDF. Chapter 2 for LMIs, interior-point methods, elimination and the S-procedure; the later chapters catalogue the classical control LMIs (Lyapunov, Lur'e systems, IQCs, synthesis) behind Modules 11–14.
Boyd & Vandenberghe — Convex OptimizationCambridge University Press, 2004Lagrangian duality, KKT, Slater, sensitivity, SDPs and interior-point methods.Chapter 5 is the source of Section 1; Sections 5.1–5.6 in one sitting.
Pólik & Terlaky — A Survey of the S-LemmaSIAM Review 49(3):371–418, 2007Complete account of the S-lemma: several proofs (including via Dines), extensions, and where it fails with two or more constraints.The reference to open before believing any "the S-procedure is lossless here" claim.
Dines — On the mapping of quadratic formsBull. AMS 47(6):494–498, 1941The joint range of two real quadratic forms is a convex cone.A five-page note; the classical fact that makes the S-lemma proof a separation argument.
Willems — Dissipative dynamical systems part I: General theoryArch. Rational Mech. Anal. 45(5):321–351, 1972Storage functions, supply rates, available storage and required supply.The origin of the vocabulary of Section 6 and of every "storage matrix" in LipKernel.
Rantzer — On the Kalman–Yakubovich–Popov lemmaSystems & Control Letters 28(1):7–10, 1996A short, complete proof of the KYP lemma with the controllability condition made explicit.Four pages, including the hard direction that Section 6 only sketches.
Megretski & Rantzer — System analysis via integral quadratic constraintsIEEE TAC 42(6):819–830, 1997Unifies small-gain, passivity, circle/Popov and multiplier criteria as IQCs; stability theorem by homotopy.The robust-control foundation of every IQC-based neural-network certificate.
Scherer — Dissipativity and Integral Quadratic Constraints: Tailored Computational Robustness Tests for Complex InterconnectionsIEEE Control Systems Magazine 42(3):115–139, 2022Tutorial: factorised multipliers $\Pi=\Psi^{*}P\Psi$, hard and soft IQCs, LMI tests through dissipativity plus the S-procedure.Read before Module 14; it is the machinery Pauli, Gramlich and Scherer use for NN loops and 2-D systems.
Fazlyab, Robey, Hassani, Morari & Pappas — Efficient and Accurate Estimation of Lipschitz Constants for Deep Neural Networks (LipSDP)NeurIPS 2019Slope restriction as an incremental QC, S-procedure with diagonal multipliers, Lipschitz estimation as an SDP.The destination of the walkthrough. Use the current arXiv version, which keeps only diagonal $T$.
Pauli, Koch, Berberich, Kohler & Allgöwer — Training robust neural networks using Lipschitz boundsIEEE L-CSS 6:121–126, 2022 (also ACC 2021)Counterexample to coupled multipliers; Schur-complemented training LMI with fixed $T$ and $\alpha=0$; ADMM training.Step 6 of the walkthrough and the diagonal-multiplier caveat, from the paper that established it.
Paternain, Chamon, Calvo-Fullana & Ribeiro — Constrained Reinforcement Learning Has Zero Duality GapNeurIPS 2019Zero duality gap for CMDPs under Slater, via concavity of the perturbation function on the convex set of occupancy measures.The destination of Section 1: the geometric picture of the duality gap, made rigorous for a non-convex problem.
Yin, Seiler & Arcak — Stability Analysis Using Quadratic Constraints for Systems With Neural Network ControllersIEEE TAC 67(4):1980–1987, 2022Lyapunov function plus local sector QCs plus a Schur-complement LMI for the region of attraction of an LTI plant with an NN controller.Sections 3(a) and 5 in action on a real closed loop; the template Module 14 extends.
Pauli, Wang, Manchester & Allgöwer — LipKernel: Lipschitz-Bounded Convolutional Neural Networks via Dissipative LayersAutomatica 188 (2026) 112959Layer-wise incremental dissipativity with interface matrices; telescoping yields Lipschitz-by-design CNNs with fast inference.The composition theorem of Section 6 used at scale; note its $\rho$ is the constant, not its square.

Flashcards