Documentation

CslibFrontier.Foundations.Analysis.ODE.ImpulseBounds

Energy and decay bounds for LTI impulse responses #

For a linear system ẋ = A x and a curve x solving it on [0, ∞), and any real matrices W and C, the quadratic energy V t = x t ⬝ᵥ W *ᵥ x t has derivative x ⬝ᵥ (Aᵀ W + W A) *ᵥ x (Matrix.hasDerivWithinAt_dotProduct_mulVec), so with R = Aᵀ W + W A + Cᵀ C the storage identity holds on every [0, T] (Matrix.integral_mulVec_dotProduct_eq): ∫₀ᵀ ‖C x‖² = V 0 - V T + ∫₀ᵀ x ⬝ᵥ R *ᵥ x. Two cases are classical (Boyd and Barratt, §5.6.1; Boyd, El Ghaoui, Feron and Balakrishnan, §6.2):

A decay inequality Aᵀ P + P A + 2 α P ⪯ 0 gives V t ≤ exp (-2 α t) V 0 for V built on P (Matrix.dotProduct_mulVec_le_exp_neg_mul, from le_exp_mul_sub_mul_of_hasDerivWithinAt), and with lo 1 ⪯ P ⪯ hi 1, lo > 0, the state bound ‖x t‖₂² ≤ (hi / lo) exp (-2 α t) ‖x 0‖₂² (Matrix.dotProduct_self_le_exp_neg_mul). With Cᵀ C ⪯ γ P the output of a trajectory satisfies ‖C x t‖₂² ≤ γ hi exp (-2 α t) ‖x 0‖₂² (Matrix.mulVec_dotProduct_le_exp_neg_mul).

Impulse responses #

For an LTISystem with response kernel h t = C exp (t A) B, the impulse v δ₀ moves the state to B v (LTISystem.responseKernel_mulVec_eq), and h t *ᵥ v = C *ᵥ (exp (t A) *ᵥ B *ᵥ v). Applying the results above to these trajectories, and summing over the columns of h, gives:

Norms and normalization #

Vectors are coordinate vectors n → ℝ. The squared Euclidean norm ‖y‖₂² is written y ⬝ᵥ y, and the squared Frobenius norm of a matrix M is written out as ∑ i, ∑ j, M i j ^ 2; no matrix norm instance is used. The impulse-response energy ∫₀^∞ ‖h t‖_F² dt is the time-domain definition of the squared H₂ norm; no frequency-domain identity is used. Integrals are Lebesgue integrals over Set.Ioi 0, stated together with integrability, so a divergent integral is never hidden behind Lean's convention that a non-integrable function has integral 0. These results concern the response kernel h only; a system with direct feedthrough D ≠ 0 has the impulse response D δ₀ + h, whose energy is infinite, so a theorem about the full impulse response must also check D = 0.

References #

theorem Matrix.integral_mulVec_dotProduct_eq {n : Type u_1} {p : Type u_2} [Fintype n] [Fintype p] {A W : Matrix n n ℝ} {C : Matrix p n ℝ} {x : ℝ → n → ℝ} (hx : ∀ t ∈ Set.Ici 0, HasDerivWithinAt x (A.mulVec (x t)) (Set.Ici 0) t) {T : ℝ} (hT : 0 ≤ T) :
∫ (t : ℝ) in 0..T, C.mulVec (x t) ⬝ᵥ C.mulVec (x t) = x 0 ⬝ᵥ W.mulVec (x 0) - x T ⬝ᵥ W.mulVec (x T) + ∫ (t : ℝ) in 0..T, x t ⬝ᵥ (A.transpose * W + W * A + C.transpose * C).mulVec (x t)

Storage identity. For a solution x of x' = A *ᵥ x on [0, ∞), any W and C, and T ≥ 0, with R = Aᵀ W + W A + Cᵀ C: ∫₀ᵀ ‖C x‖² = x 0 ⬝ᵥ W *ᵥ x 0 - x T ⬝ᵥ W *ᵥ x T + ∫₀ᵀ x ⬝ᵥ R *ᵥ x.

theorem Matrix.integrableOn_Ioi_and_integral_le {n : Type u_1} {p : Type u_2} [Fintype n] [Fintype p] {A W : Matrix n n ℝ} {C : Matrix p n ℝ} {x : ℝ → n → ℝ} (hx : ∀ t ∈ Set.Ici 0, HasDerivWithinAt x (A.mulVec (x t)) (Set.Ici 0) t) (hR : ∀ (y : n → ℝ), y ⬝ᵥ (A.transpose * W + W * A + C.transpose * C).mulVec y ≤ 0) (hW : ∀ (y : n → ℝ), 0 ≤ y ⬝ᵥ W.mulVec y) :
MeasureTheory.IntegrableOn (fun (t : ℝ) => C.mulVec (x t) ⬝ᵥ C.mulVec (x t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, C.mulVec (x t) ⬝ᵥ C.mulVec (x t) ≤ x 0 ⬝ᵥ W.mulVec (x 0)

Dissipation inequality on [0, ∞). If Aᵀ W + W A + Cᵀ C ⪯ 0 and W ⪰ 0 as quadratic forms, then for every solution x of x' = A *ᵥ x on [0, ∞) the output energy ‖C x‖² is integrable on (0, ∞) with integral at most x 0 ⬝ᵥ W *ᵥ x 0. No stability of A is assumed.

theorem Matrix.integrableOn_Ioi_and_integral_eq {n : Type u_1} {p : Type u_2} [Fintype n] [Fintype p] {A W : Matrix n n ℝ} {C : Matrix p n ℝ} {x : ℝ → n → ℝ} (hx : ∀ t ∈ Set.Ici 0, HasDerivWithinAt x (A.mulVec (x t)) (Set.Ici 0) t) (hR : A.transpose * W + W * A + C.transpose * C = 0) (hx₀ : Filter.Tendsto x Filter.atTop (nhds 0)) :
MeasureTheory.IntegrableOn (fun (t : ℝ) => C.mulVec (x t) ⬝ᵥ C.mulVec (x t)) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, C.mulVec (x t) ⬝ᵥ C.mulVec (x t) = x 0 ⬝ᵥ W.mulVec (x 0)

Gramian equation on [0, ∞). If Aᵀ W + W A + Cᵀ C = 0 and the solution x of x' = A *ᵥ x tends to 0, then the output energy ‖C x‖² is integrable on (0, ∞) with integral exactly x 0 ⬝ᵥ W *ᵥ x 0. Neither W ⪰ 0 nor observability is assumed.

theorem Matrix.dotProduct_mulVec_le_exp_mul {n : Type u_1} [Fintype n] {A : Matrix n n ℝ} {x : ℝ → n → ℝ} {P : Matrix n n ℝ} (hx : ∀ t ∈ Set.Ici 0, HasDerivWithinAt x (A.mulVec (x t)) (Set.Ici 0) t) {K : ℝ} (hK : ∀ (y : n → ℝ), y ⬝ᵥ (A.transpose * P + P * A).mulVec y ≤ K * y ⬝ᵥ P.mulVec y) {t : ℝ} (ht : 0 ≤ t) :
x t ⬝ᵥ P.mulVec (x t) ≤ Real.exp (K * t) * x 0 ⬝ᵥ P.mulVec (x 0)

Energy decay in coordinates. If Aᵀ P + P A ⪯ K P as quadratic forms, every solution of x' = A *ᵥ x on [0, ∞) satisfies x t ⬝ᵥ P *ᵥ x t ≤ exp (K t) (x 0 ⬝ᵥ P *ᵥ x 0) for t ≥ 0.

theorem Matrix.dotProduct_mulVec_le_exp_neg_mul {n : Type u_1} [Fintype n] {A P : Matrix n n ℝ} {x : ℝ → n → ℝ} (hx : ∀ t ∈ Set.Ici 0, HasDerivWithinAt x (A.mulVec (x t)) (Set.Ici 0) t) {α : ℝ} (hP : (-(A.transpose * P + P * A + (2 * α) • P)).PosSemidef) {t : ℝ} (ht : 0 ≤ t) :
x t ⬝ᵥ P.mulVec (x t) ≤ Real.exp (-(2 * α) * t) * x 0 ⬝ᵥ P.mulVec (x 0)

Certified decay rate. If Aᵀ P + P A + 2 α P ⪯ 0, every solution of x' = A *ᵥ x on [0, ∞) satisfies V (x t) ≤ exp (-2 α t) V (x 0) for V y = y ⬝ᵥ P *ᵥ y and t ≥ 0.

theorem Matrix.dotProduct_self_le_exp_neg_mul {n : Type u_1} [Fintype n] {A P : Matrix n n ℝ} {x : ℝ → n → ℝ} [DecidableEq n] (hx : ∀ t ∈ Set.Ici 0, HasDerivWithinAt x (A.mulVec (x t)) (Set.Ici 0) t) {α m M : ℝ} (hP : (-(A.transpose * P + P * A + (2 * α) • P)).PosSemidef) (hm : 0 < m) (hlow : (P - m • 1).PosSemidef) (hup : (M • 1 - P).PosSemidef) {t : ℝ} (ht : 0 ≤ t) :
x t ⬝ᵥ x t ≤ M / m * Real.exp (-(2 * α) * t) * x 0 ⬝ᵥ x 0

Certified state decay. If moreover m 1 ⪯ P ⪯ M 1 with m > 0, every solution of x' = A *ᵥ x on [0, ∞) satisfies ‖x t‖₂² ≤ (M / m) exp (-2 α t) ‖x 0‖₂² for t ≥ 0, where ‖y‖₂² = y ⬝ᵥ y.

theorem Matrix.mulVec_dotProduct_le_exp_neg_mul {n : Type u_1} [Fintype n] {A P : Matrix n n ℝ} {x : ℝ → n → ℝ} [DecidableEq n] {p : Type u_2} [Fintype p] {C : Matrix p n ℝ} (hx : ∀ t ∈ Set.Ici 0, HasDerivWithinAt x (A.mulVec (x t)) (Set.Ici 0) t) {α γ M : ℝ} (hP : (-(A.transpose * P + P * A + (2 * α) • P)).PosSemidef) (hC : (γ • P - C.transpose * C).PosSemidef) (hγ : 0 ≤ γ) (hup : (M • 1 - P).PosSemidef) {t : ℝ} (ht : 0 ≤ t) :
C.mulVec (x t) ⬝ᵥ C.mulVec (x t) ≤ γ * M * Real.exp (-(2 * α) * t) * x 0 ⬝ᵥ x 0

Certified output decay from an initial state. If Aᵀ P + P A + 2 α P ⪯ 0, Cᵀ C ⪯ γ P with γ ≥ 0 and P ⪯ M 1, every solution of x' = A *ᵥ x on [0, ∞) satisfies ‖C x t‖₂² ≤ γ M exp (-2 α t) ‖x 0‖₂² for t ≥ 0. The bound is normalized by the initial state, not by the initial output, which may vanish although the state stores energy.

theorem Matrix.hasDerivWithinAt_exp_smul_mulVec {n : Type u_1} [Fintype n] [DecidableEq n] (A : Matrix n n ℝ) (y : n → ℝ) (t : ℝ) :
t ∈ Set.Ici 0 → HasDerivWithinAt (fun (τ : ℝ) => (NormedSpace.exp (τ • A)).mulVec y) (A.mulVec ((NormedSpace.exp (t • A)).mulVec y)) (Set.Ici 0) t

Every exp (t • A) *ᵥ y solves x' = A *ᵥ x on [0, ∞).

theorem Matrix.tendsto_exp_smul_mulVec {n : Type u_1} [Fintype n] {A : Matrix n n ℝ} [DecidableEq n] (hA : (toEuclideanCLM A).IsExponentiallyStable) (y : n → ℝ) :

An exponentially stable ẋ = A x drives every exp (t • A) *ᵥ y to 0.

A stable system has finite output energy. If ẋ = A x is exponentially stable, then for every C and every initial state u the output energy density ‖C exp (t A) u‖₂² is integrable on (0, ∞).

theorem Matrix.integrableOn_Ioi_and_le_integral {n : Type u_1} [Fintype n] {A : Matrix n n ℝ} [DecidableEq n] {W : Matrix n n ℝ} {p : Type u_2} [Fintype p] {C : Matrix p n ℝ} (hR : ∀ (y : n → ℝ), 0 ≤ y ⬝ᵥ (A.transpose * W + W * A + C.transpose * C).mulVec y) (hA : (toEuclideanCLM A).IsExponentiallyStable) (u : n → ℝ) :

Energy lower bound from a reversed dissipation inequality. If Aᵀ W + W A + Cᵀ C ⪰ 0 as a quadratic form and ẋ = A x is exponentially stable, then for every u the output energy density ‖C exp (t A) u‖₂² is integrable on (0, ∞) and its integral is at least u ⬝ᵥ W *ᵥ u. W need not be positive semidefinite. With the observability Gramian G (Matrix.dotProduct_mulVec_eq_integral) this is W ⪯ G as quadratic forms.

theorem Matrix.dotProduct_mulVec_eq_integral {n : Type u_1} [Fintype n] {A : Matrix n n ℝ} [DecidableEq n] {W : Matrix n n ℝ} {p : Type u_2} [Fintype p] {C : Matrix p n ℝ} (hW : W.transpose = W) (hR : A.transpose * W + W * A + C.transpose * C = 0) (hA : (toEuclideanCLM A).IsExponentiallyStable) (y z : n → ℝ) :

The observability Gramian as an integral. If W is symmetric, Aᵀ W + W A + Cᵀ C = 0 and ẋ = A x is exponentially stable, then for all y, z y ⬝ᵥ W *ᵥ z = ∫₀^∞ (C exp (t A) y) ⬝ᵥ (C exp (t A) z) dt, the integrand being integrable. With y, z standard basis vectors this is W = ∫₀^∞ exp (t Aᵀ) Cᵀ C exp (t A) dt entrywise.

theorem Matrix.posSemidef_of_lyapunov_eq {n : Type u_1} [Fintype n] {A : Matrix n n ℝ} [DecidableEq n] {W : Matrix n n ℝ} {p : Type u_2} [Fintype p] {C : Matrix p n ℝ} (hW : W.IsHermitian) (hR : A.transpose * W + W * A + C.transpose * C = 0) (hA : (toEuclideanCLM A).IsExponentiallyStable) :

A Gramian solution is positive semidefinite. If W is symmetric, Aᵀ W + W A + Cᵀ C = 0 and ẋ = A x is exponentially stable, then W ⪰ 0. W may be singular: neither observability nor W ≻ 0 is required.

Exact energy from the Gramian equation #

theorem LTISystem.integral_frobeniusSq_eq {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] [Fintype p] {S : LTISystem n m p} {W : Matrix n n ℝ} (hR : S.A.transpose * W + W * S.A + S.C.transpose * S.C = 0) {T : ℝ} (hT : 0 ≤ T) :
∫ (t : ℝ) in 0..T, ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2 = (S.B.transpose * W * S.B).trace - ((NormedSpace.exp (T • S.A) * S.B).transpose * W * (NormedSpace.exp (T • S.A) * S.B)).trace

Finite-horizon storage identity. If Aᵀ W + W A + Cᵀ C = 0, then for T ≥ 0 ∫₀ᵀ ‖h t‖_F² = tr (Bᵀ W B) - tr (X Tᵀ W X T) with X T = exp (T A) B. No stability is assumed.

Exact input-direction energy. If Aᵀ W + W A + Cᵀ C = 0 and ẋ = A x is exponentially stable, then ‖h t v‖₂² is integrable on (0, ∞) and ∫₀^∞ ‖h t v‖₂² = (B v)ᵀ W (B v).

theorem LTISystem.integrableOn_Ioi_and_integral_frobeniusSq_eq {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] [Fintype p] {S : LTISystem n m p} {W : Matrix n n ℝ} (hR : S.A.transpose * W + W * S.A + S.C.transpose * S.C = 0) (hA : (Matrix.toEuclideanCLM S.A).IsExponentiallyStable) :
MeasureTheory.IntegrableOn (fun (t : ℝ) => ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2 = (S.B.transpose * W * S.B).trace

Exact impulse-response energy. If Aᵀ W + W A + Cᵀ C = 0 and ẋ = A x is exponentially stable, then ‖h t‖_F² = ∑ i, ∑ j, h t i j ^ 2 is integrable on (0, ∞) and ∫₀^∞ ‖h t‖_F² = tr (Bᵀ W B). W need not be positive definite.

Upper bounds from a dissipation inequality #

theorem LTISystem.integrableOn_Ioi_and_integral_mulVec_le {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] [Fintype p] {S : LTISystem n m p} {W : Matrix n n ℝ} (hW : W.PosSemidef) (hR : (-(S.A.transpose * W + W * S.A + S.C.transpose * S.C)).PosSemidef) (v : m → ℝ) :

Input-direction energy bound. If W ⪰ 0 and Aᵀ W + W A + Cᵀ C ⪯ 0, then ‖h t v‖₂² is integrable on (0, ∞) and ∫₀^∞ ‖h t v‖₂² ≤ (B v)ᵀ W (B v). No stability of A is assumed, and none follows.

theorem LTISystem.integrableOn_Ioi_and_integral_frobeniusSq_le {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] [Fintype p] {S : LTISystem n m p} {W : Matrix n n ℝ} (hW : W.PosSemidef) (hR : (-(S.A.transpose * W + W * S.A + S.C.transpose * S.C)).PosSemidef) :
MeasureTheory.IntegrableOn (fun (t : ℝ) => ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2) (Set.Ioi 0) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi 0, ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2 ≤ (S.B.transpose * W * S.B).trace

Impulse-response energy bound. If W ⪰ 0 and Aᵀ W + W A + Cᵀ C ⪯ 0, then ‖h t‖_F² is integrable on (0, ∞) and ∫₀^∞ ‖h t‖_F² ≤ tr (Bᵀ W B). No stability of A is assumed, and none follows.

Lower bounds from a reversed dissipation inequality #

Input-direction energy lower bound. If Aᵀ W + W A + Cᵀ C ⪰ 0 and ẋ = A x is exponentially stable, then ‖h t v‖₂² is integrable on (0, ∞) and (B v)ᵀ W (B v) ≤ ∫₀^∞ ‖h t v‖₂². W need not be positive semidefinite.

theorem LTISystem.integrableOn_Ioi_and_le_integral_frobeniusSq {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] [Fintype p] {S : LTISystem n m p} {W : Matrix n n ℝ} (hR : (S.A.transpose * W + W * S.A + S.C.transpose * S.C).PosSemidef) (hA : (Matrix.toEuclideanCLM S.A).IsExponentiallyStable) :
MeasureTheory.IntegrableOn (fun (t : ℝ) => ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2) (Set.Ioi 0) MeasureTheory.volume ∧ (S.B.transpose * W * S.B).trace ≤ ∫ (t : ℝ) in Set.Ioi 0, ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2

Impulse-response energy lower bound. If Aᵀ W + W A + Cᵀ C ⪰ 0 and ẋ = A x is exponentially stable, then ‖h t‖_F² is integrable on (0, ∞) and tr (Bᵀ W B) ≤ ∫₀^∞ ‖h t‖_F². W need not be positive semidefinite.

Decay envelopes #

theorem LTISystem.responseKernel_mulVec_sq_le {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] [Fintype p] {S : LTISystem n m p} {P : Matrix n n ℝ} [DecidableEq m] {α γ β : ℝ} (hP : (-(S.A.transpose * P + P * S.A + (2 * α) • P)).PosSemidef) (hC : (γ • P - S.C.transpose * S.C).PosSemidef) (hB : (β • 1 - S.B.transpose * P * S.B).PosSemidef) (hγ : 0 ≤ γ) (v : m → ℝ) {t : ℝ} (ht : 0 ≤ t) :
(S.responseKernel t).mulVec v ⬝ᵥ (S.responseKernel t).mulVec v ≤ γ * β * Real.exp (-(2 * α) * t) * v ⬝ᵥ v

Certified impulse-response envelope. If Aᵀ P + P A + 2 α P ⪯ 0, Cᵀ C ⪯ γ P with γ ≥ 0, and Bᵀ P B ⪯ β 1, then ‖h t v‖₂² ≤ γ β exp (-2 α t) ‖v‖₂² for every input direction v and t ≥ 0, where ‖y‖₂² = y ⬝ᵥ y.

theorem LTISystem.frobeniusSq_responseKernel_le {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] [Fintype p] {S : LTISystem n m p} {P : Matrix n n ℝ} {α γ : ℝ} (hP : (-(S.A.transpose * P + P * S.A + (2 * α) • P)).PosSemidef) (hC : (γ • P - S.C.transpose * S.C).PosSemidef) (hγ : 0 ≤ γ) {t : ℝ} (ht : 0 ≤ t) :
∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2 ≤ γ * (S.B.transpose * P * S.B).trace * Real.exp (-(2 * α) * t)

Certified Frobenius envelope. If Aᵀ P + P A + 2 α P ⪯ 0 and Cᵀ C ⪯ γ P with γ ≥ 0, then ‖h t‖_F² ≤ γ tr (Bᵀ P B) exp (-2 α t) for t ≥ 0.

theorem LTISystem.integrableOn_Ioi_and_integral_Ioi_frobeniusSq_le {n : Type u_1} {m : Type u_2} {p : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] [Fintype p] {S : LTISystem n m p} {P : Matrix n n ℝ} {α γ : ℝ} (hα : 0 < α) (hP : (-(S.A.transpose * P + P * S.A + (2 * α) • P)).PosSemidef) (hC : (γ • P - S.C.transpose * S.C).PosSemidef) (hγ : 0 ≤ γ) {T : ℝ} (hT : 0 ≤ T) :
MeasureTheory.IntegrableOn (fun (t : ℝ) => ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2) (Set.Ioi T) MeasureTheory.volume ∧ ∫ (t : ℝ) in Set.Ioi T, ∑ i : p, ∑ j : m, S.responseKernel t i j ^ 2 ≤ γ * (S.B.transpose * P * S.B).trace * Real.exp (-(2 * α) * T) / (2 * α)

Certified energy tail. If α > 0, Aᵀ P + P A + 2 α P ⪯ 0 and Cᵀ C ⪯ γ P with γ ≥ 0, then for T ≥ 0 the tail ‖h t‖_F² is integrable on (T, ∞) and ∫_T^∞ ‖h t‖_F² ≤ γ tr (Bᵀ P B) exp (-2 α T) / (2 α).