Documentation

CslibFrontier.Algorithms.LinearAlgebra.SparseImpulseCertificate

Sparse decay and energy certificates for LTI impulse responses #

The certificates of CslibFrontier.Algorithms.LinearAlgebra.ImpulseCertificate check every residual with the dense LDLᵀ checker, on residuals computed with dense products, at a cost of order n³ whatever the sparsity. This module gives them sparse counterparts: the model, the certificate matrices and the residuals are sparse rows (Cslib.LinearAlgebra.ofSparse), the products are Cslib.LinearAlgebra.sparseMul and Cslib.LinearAlgebra.sparseResidual, and every semidefiniteness claim is checked by the envelope checker Cslib.LinearAlgebra.EnvLDLCert. Their soundness theorems state the same real facts as the dense ones, with ofSparse in place of ofLists, so the bounds proved there apply unchanged.

The exact-energy EnergyCert has no sparse counterpart: the observability Gramian is generally dense even for sparse A, while banded P and Q can enclose the energy.

Main results #

Sparse rows of identities, linear combinations and traces #

The sparse rows of the n × n identity matrix.

The sparse rows of a • M - b • N, with repeated columns merged.

theorem Cslib.LinearAlgebra.ofSparse_sparseLin {k : ℕ} (a b : ℚ) {M N : List (List (ℕ × ℚ))} (hM : M.length = k) :
ofSparse k k (sparseLin a b M N) = a • ofSparse k k M - b • ofSparse k k N

The trace ∑ i < k, M i i of the k × k matrix with sparse rows rows.

theorem Cslib.LinearAlgebra.trace_ofSparse (k : ℕ) (rows : List (List (ℕ × ℚ))) :
(ofSparse k k rows).trace = sparseTrace k rows

Sparse rational LTI models #

A finite-dimensional continuous-time LTI model ẋ = A x + B u, y = C x without direct feedthrough, with rational data given by sparse rows: A is n × n, B is n × m and C is p × n. The model also lists the sparse rows of Aᵀ, Bᵀ and Cᵀ, so that the residuals are products of rows by rows; SparseRatLTI.check verifies them.

noncomputable def Cslib.LinearAlgebra.SparseRatLTI.toSystem {n m p : ℕ} (G : SparseRatLTI n m p) :
LTISystem (Fin n) (Fin m) (Fin p)

The real system whose matrices are those of G, read over ℝ, with D = 0.

Whether G is well formed: A, B, C and the listed transposes have exactly the declared shapes, with strictly increasing columns in every row, and the transposes are those of A, B and C.

The sparse rows of Cᵀ C.

The sparse rows of Bᵀ P B.

Sparse decay certificates #

A sparse certificate for decay of the state and of the impulse response of a SparseRatLTI n m p model: the constants, a matrix P (sparse rows) and envelope 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, as in Cslib.LinearAlgebra.DecayCert. Each residual is recomputed from the model and P by the checker.

Whether c is a decay certificate for the model G: G is well formed, P is n × n, α > 0, 0 < lo ≤ hi, γ ≥ 0, β ≥ 0, and the five residuals, recomputed from G and P, are accepted as positive semidefinite by the envelope checker.

Soundness of the sparse 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 sparse rows. This is the statement of DecayCert.decayInequalities with ofSparse in place of ofLists; the bounds follow from DecayInequalities.

Sparse energy bounds #

A sparse energy upper-bound certificate for a SparseRatLTI n m p model: a matrix W (sparse rows) with envelope witnesses for W ⪰ 0 and -(Aᵀ W + W A + Cᵀ C) ⪰ 0, and a claimed bound on tr (Bᵀ W B), as in Cslib.LinearAlgebra.EnergyBoundCert.

Whether c is an energy upper-bound certificate for G: G is well formed, W is n × n, W ⪰ 0 and the recomputed -(Aᵀ W + W A + Cᵀ C) ⪰ 0 are accepted by the envelope checker, and tr (Bᵀ W B) ≤ c.bound.

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 the statement of EnergyBoundCert.integrableOn_Ioi_and_integral_le for the sparse model. It says nothing about internal stability.

A sparse energy lower-bound certificate for a SparseRatLTI n m p model: a sparse Lyapunov certificate (P and its witnesses) proving exponential stability, a matrix Q (sparse rows) with an envelope witness for Aᵀ Q + Q A + Cᵀ C ⪰ 0, and a claimed lower bound on tr (Bᵀ Q B), as in Cslib.LinearAlgebra.EnergyLowerCert. Q need not be positive semidefinite.

Whether c is an energy lower-bound certificate for G: G is well formed, the sparse Lyapunov certificate is accepted for A and P, Q is n × n, the recomputed Aᵀ Q + Q A + Cᵀ C ⪰ 0 is accepted by the envelope checker, 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. This is the statement of EnergyLowerCert.integrableOn_Ioi_and_le_integral for the sparse model.

Certified energy enclosure. If the kernel accepts a sparse lower-bound certificate c and a sparse upper-bound certificate d for G, the impulse-response energy is finite and lies in the interval [c.bound, d.bound].