Kernel-checked energy and decay certificates for LTI impulse responses #
A rational model Cslib.LinearAlgebra.RatLTI n m p lists the rows of A, B, C, D of
ẋ = A x + B u, y = C x + D u, and RatLTI.toSystem reads it as a real LTISystem on
Fin n → ℝ. An untrusted tool (for example SciPy's Lyapunov solver followed by rational
reconstruction and SymPy's LDLdecomposition) proposes a certificate. A Boolean checker, which the
kernel evaluates by decide +kernel, recomputes every residual matrix from the model and the
certificate and checks it with the LDLᵀ checker of Cslib.LinearAlgebra.LDLCert. Soundness
theorems turn acceptance into statements about the impulse response
h t = C exp (t A) B of the same model, through the analysis in
CslibFrontier.Foundations.Analysis.ODE.ImpulseBounds.
Cslib.LinearAlgebra.EnergyCert(exact energy): a Lyapunov certificate for stability, a GramianWwithAᵀ W + W A + Cᵀ C = 0exactly, and the energytr (Bᵀ W B). Acceptance proves∫₀^∞ ‖h t‖_F² dt = energy, with integrability.Wmay be singular.Cslib.LinearAlgebra.EnergyBoundCert(energy upper bound):W ⪰ 0withAᵀ W + W A + Cᵀ C ⪯ 0, so inexact rational reconstructions are accepted. Acceptance proves∫₀^∞ ‖h t‖_F² dt ≤ bound. It proves nothing about internal stability.Cslib.LinearAlgebra.EnergyLowerCert(energy lower bound): a Lyapunov certificate for stability and aQ, not necessarily positive semidefinite, withAᵀ Q + Q A + Cᵀ C ⪰ 0. Acceptance provesbound ≤ ∫₀^∞ ‖h t‖_F² dt, and with anEnergyBoundCertthe enclosure∫₀^∞ ‖h t‖_F² dt ∈ [lower, upper]with exact rational endpoints.Cslib.LinearAlgebra.DecayCert(decay):PwithAᵀ P + P A + 2 α P ⪯ 0,lo 1 ⪯ P ⪯ hi 1,Cᵀ C ⪯ γ PandBᵀ P B ⪯ β 1. Acceptance proves the real inequalitiesCslib.LinearAlgebra.DecayInequalities, from which follow exponential stability, the state bound‖x t‖₂² ≤ (hi / lo) exp (-2 α t) ‖x 0‖₂², the envelopes‖h t v‖₂² ≤ γ β exp (-2 α t) ‖v‖₂²and‖h t‖_F² ≤ γ tr (Bᵀ P B) exp (-2 α t), a peak bound, the output bound‖C x t‖₂² ≤ γ hi exp (-2 α t) ‖x 0‖₂², the energy tail∫_T^∞ ‖h t‖_F² ≤ γ tr (Bᵀ P B) exp (-2 α T) / (2 α), and numerical settling times and tail values (DecayConstants.impulseSettles,DecayConstants.stateSettles,DecayConstants.tailBelow). The sparse checker ofCslibFrontier.Algorithms.LinearAlgebra.SparseImpulseCertificateproves the same inequalities, so these bounds are stated once, forDecayInequalities.
Normalization and units #
‖y‖₂² is y ⬝ᵥ y and ‖M‖_F² is ∑ i, ∑ j, M i j ^ 2. Time is in the model's unit, and h
carries the units of output per unit of input impulse (input times time). Impulse bounds are per
input direction v or summed over the input basis (Frobenius), and state bounds are normalized by
‖x 0‖₂². Nothing is normalized by the initial output, which may vanish (h 0 = C B = 0 for the
repeated-pole client) although the impulse stores energy in the state.
Feedthrough #
Every certificate first checks RatLTI.check: exact shapes, and D = 0 (RatLTI.toSystem_D).
A model with direct feedthrough has the impulse response D δ₀ + h, whose energy is infinite, and
it receives none of these certificates. The analysis module states bounds on h alone.
Certified, not optimal #
Each accepted certificate gives a valid bound. It need not be the best one: a different W, P,
α, γ or β may give a smaller bound, and no optimality is claimed. A rejected certificate
proves nothing: rejection is not evidence of instability or of a larger energy.
Numerical times #
Cslib.LinearAlgebra.expLower N x = ∑_{k < N} x ^ k / k! is a rational lower bound for exp x
when x ≥ 0 (Cslib.LinearAlgebra.expLower_le_exp, from Real.sum_le_exp_of_nonneg). A
settling check γ β vmax² ≤ ε² expLower N (2 α T) therefore certifies
γ β vmax² exp (-2 α T) ≤ ε² in exact rational arithmetic. The symbolic bounds hold without it.
Main results #
Cslib.LinearAlgebra.EnergyCert.integrableOn_Ioi_and_integral_eq,Cslib.LinearAlgebra.EnergyCert.isExponentiallyStable.Cslib.LinearAlgebra.EnergyBoundCert.integrableOn_Ioi_and_integral_le.Cslib.LinearAlgebra.EnergyLowerCert.integrableOn_Ioi_and_le_integral,Cslib.LinearAlgebra.EnergyLowerCert.integrableOn_Ioi_and_integral_mem_Icc.Cslib.LinearAlgebra.DecayCert.decayInequalities, and forDecayInequalities:DecayInequalities.isExponentiallyStable,DecayInequalities.dotProduct_self_le,DecayInequalities.output_dotProduct_le,DecayInequalities.integral_Ioi_frobeniusSq_le_of_tailBelow,DecayInequalities.responseKernel_mulVec_sq_le,DecayInequalities.responseKernel_mulVec_sq_le_peak,DecayInequalities.frobeniusSq_le,DecayInequalities.integrableOn_Ioi_and_integral_Ioi_frobeniusSq_le,DecayInequalities.responseKernel_mulVec_sq_le_of_impulseSettles,DecayInequalities.dotProduct_self_le_of_stateSettles,DecayInequalities.sq_window_integral_le_of_tailBelow(inter-pulse contamination of a later measurement window, fromCslibFrontier.Foundations.Analysis.ODE.PulseContamination).
References #
- S. Boyd and C. Barratt, Linear Controller Design: Limits of Performance, 1991, §5.6.1.
- S. Boyd, L. El Ghaoui, E. Feron and V. Balakrishnan, Linear Matrix Inequalities in System and Control Theory, 1994, §5.1.3 and §6.2.
Rows of the matrices that the certificates check #
Rational LTI models #
Residual matrices, recomputed from the model and the certificate #
Certified lower bounds for the exponential #
The Taylor partial sum ∑_{k < N} x ^ k / k!, which the kernel evaluates exactly. For x ≥ 0
it is a lower bound for exp x (Cslib.LinearAlgebra.expLower_le_exp), so a check
a ≤ b * expLower N x certifies a exp (-x) ≤ b without trusting floating-point arithmetic.
Decay inequalities and their consequences #
The rational constants of a decay certificate.
The real facts that a decay certificate establishes for the system S, the real matrix P
and the constants k, with τ the exact value of tr (Bᵀ P B): α > 0, 0 < lo ≤ hi,
γ ≥ 0, β ≥ 0, Aᵀ P + P A + 2 α P ⪯ 0, lo 1 ⪯ P ⪯ hi 1, Cᵀ C ⪯ γ P and
Bᵀ P B ⪯ β 1. Both the dense checker (Cslib.LinearAlgebra.DecayCert.decayInequalities) and
the sparse one establish it, and every decay bound is proved from it once.
Whether the constants k certify settling of the impulse response below ε after time T
for inputs with ‖v‖₂² ≤ vmax2: T ≥ 0, vmax2 ≥ 0, eps2 = ε² > 0, and
γ β vmax2 ≤ ε² expLower N (2 α T). It reads only the constants, so it means something only
together with DecayInequalities for the same constants.
Whether the constants k certify settling of the state below ε after time T for initial
states with ‖x 0‖₂² ≤ r2: T ≥ 0, r2 ≥ 0, eps2 = ε² > 0, and
(hi / lo) r2 ≤ ε² expLower N (2 α T). It reads only the constants, so it means something only
together with DecayInequalities for the same constants.
Certified state decay. Every solution x : ℝ → Fin n → ℝ of x' = A *ᵥ x on [0, ∞)
satisfies ‖x t‖₂² ≤ (hi / lo) exp (-2 α t) ‖x 0‖₂² for t ≥ 0, where ‖y‖₂² = y ⬝ᵥ y.
Decay inequalities prove internal stability. ẋ = A x is exponentially stable in the
Euclidean norm, with constants √(hi / lo) and α.
Certified output decay from an initial state. Every solution of x' = A *ᵥ x on
[0, ∞) has ‖C x t‖₂² ≤ γ hi exp (-2 α t) ‖x 0‖₂² for t ≥ 0. The bound is normalized by
the initial state, not by the initial output.
Certified impulse-response envelope. ‖h t v‖₂² ≤ γ β exp (-2 α t) ‖v‖₂² for every
input direction v and t ≥ 0.
Certified peak bound. ‖h t v‖₂² ≤ γ β ‖v‖₂² for all t ≥ 0. This is an upper bound on
the peak, not its value.
Certified impulse-response settling. If k.impulseSettles vmax2 eps2 T N, then every
input direction with ‖v‖₂² ≤ vmax2 has ‖h t v‖₂² ≤ eps2 for all t ≥ T: the impulse
response stays within ε = √eps2 of 0 from time T on. This concerns the response to an
impulse, not to persistent forcing.
Certified state settling from a declared initial-state set. If
k.stateSettles r2 eps2 T N, every solution of x' = A *ᵥ x on [0, ∞) with
‖x 0‖₂² ≤ r2 has ‖x t‖₂² ≤ eps2 for all t ≥ T.
Certified Frobenius envelope. ‖h t‖_F² ≤ γ τ exp (-2 α t) for t ≥ 0, where
τ = tr (Bᵀ P B).
Certified energy tail. For T ≥ 0 the impulse response energy after T is finite and
∫_T^∞ ‖h t‖_F² ≤ γ τ exp (-2 α T) / (2 α), where τ = tr (Bᵀ P B).
Certified numerical energy tail. If k.tailBelow τ tail T N, then
∫_T^∞ ‖h t‖_F² dt ≤ tail, the integrand being integrable
(DecayInequalities.integrableOn_Ioi_and_integral_Ioi_frobeniusSq_le).
Certified inter-pulse contamination bound. For a single-input, single-output system
with decay inequalities and a numerical tail k.tailBelow τ tail T N, an integrable input p
that vanishes after time a, and the zero-state output y t = ∫ s, h⁺ (t - s) * p s with
h⁺ = (Set.Ici 0).indicator h, every window [a + T, a + T + W] with W ≥ 0 satisfies
(∫_{a+T}^{a+T+W} |y|)² ≤ ‖p‖₁² W tail and (∫_{a+T}^{a+T+W} y)² ≤ ‖p‖₁² W tail, where
‖p‖₁ = ∫ s, |p s|. With rational ‖p‖₁ and W the right-hand side is rational. This is
LTISystem.window_integral_bounds_of_tail with the certified tail; it answers how much a pulse
that ended at a can bias a gated or integrating reading taken T later, for a model at rest
before the pulse and with no direct feedthrough (which RatLTI.check enforces).
Dense decay certificates #
A certificate for decay of the state and of the impulse response of a RatLTI n m p model:
the constants, a matrix P (rows) and LDLᵀ witnesses for the five inequalities
Aᵀ P + P A + 2 α P ⪯ 0, lo 1 ⪯ P, P ⪯ hi 1, Cᵀ C ⪯ γ P and Bᵀ P B ⪯ β 1. Each
residual is recomputed from the model and P by the checker.
Soundness of the dense decay checker. If the kernel accepts c for G, the decay
inequalities hold for the real system of G and the real matrix P, with τ = tr (Bᵀ P B)
computed exactly on rows. The bounds then follow from DecayInequalities: stability
(DecayInequalities.isExponentiallyStable), state, output and impulse-response envelopes,
settling and energy tails.
Exact Gramian energy certificates #
An exact energy certificate for a RatLTI n m p model: a Lyapunov certificate (P and its
witnesses) proving exponential stability, a symmetric-or-not W with
Aᵀ W + W A + Cᵀ C = 0 exactly, and the claimed energy tr (Bᵀ W B). W need not be positive
definite, so singular Gramians of unobservable models are accepted.
The rows of the Lyapunov matrix
Pthat proves stability.- stable : LyapunovCert
The rows of the Gramian
W.- energy : ℚ
The claimed impulse-response energy
tr (Bᵀ W B).
An accepted exact energy certificate proves exponential stability of ẋ = A x.
Exact impulse-response energy. If the kernel accepts c for G, the squared Frobenius
norm of the impulse response is integrable on (0, ∞) and ∫₀^∞ ‖h t‖_F² dt = c.energy. The
model has no direct feedthrough (RatLTI.toSystem_D), so h is its whole impulse response.
Energy upper-bound certificates #
Certified impulse-response energy bound. If the kernel accepts c for G, the squared
Frobenius norm of the impulse response is integrable on (0, ∞) and
∫₀^∞ ‖h t‖_F² dt ≤ c.bound. This is a certified upper bound, not the optimal one, and it says
nothing about internal stability: unobservable modes may be unstable.
Energy lower-bound certificates #
An energy lower-bound certificate for a RatLTI n m p model: a Lyapunov certificate (P and
its witnesses) proving exponential stability, a matrix Q with an LDLᵀ witness for
Aᵀ Q + Q A + Cᵀ C ⪰ 0, and a claimed lower bound on tr (Bᵀ Q B). Q need not be positive
semidefinite.
The rows of the Lyapunov matrix
Pthat proves stability.- stable : LyapunovCert
The rows of
Q.- supplyW : LDLCert
- bound : ℚ
The claimed lower bound on the impulse-response energy.
Whether c is an energy lower-bound certificate for G: G is well formed without direct
feedthrough, the Lyapunov certificate is accepted, the recomputed Aᵀ Q + Q A + Cᵀ C ⪰ 0 is
accepted, and c.bound ≤ tr (Bᵀ Q B).
Certified impulse-response energy lower bound. If the kernel accepts c for G, the
squared Frobenius norm of the impulse response is integrable on (0, ∞) and
c.bound ≤ ∫₀^∞ ‖h t‖_F² dt. The proof is Q ⪯ W for the observability Gramian W, since
W - Q = ∫₀^∞ exp (t Aᵀ) (Aᵀ Q + Q A + Cᵀ C) exp (t A) dt; it uses the stability of A.
Certified energy enclosure. If the kernel accepts a lower-bound certificate c and an
upper-bound certificate d for G, the impulse-response energy is finite and lies in the
interval [c.bound, d.bound]: c.bound ≤ ∫₀^∞ ‖h t‖_F² dt ≤ d.bound.