Structured index-one decouplings of sparse descriptor systems #
Cslib.LinearAlgebra.DecouplingCert asks an untrusted tool for the dense matrices P, Q of
the Weierstrass form and their inverses, and checks eleven dense products. For a circuit, E
and F are very sparse, but P and Q are not: they contain the inverse of the algebraic block.
This file checks a decoupling in Schur form instead, and never forms that inverse.
The certificate Cslib.LinearAlgebra.SparseDecouplingCert consists of sparse transforms T, U
of the rows and of the unknowns, with sparse inverses Tᵢ, Uᵢ, such that
T E U = [[E₁₁, 0], [0, 0]], T F U = [[F₁₁, F₁₂], [F₂₁, F₂₂]]
for a k × k block E₁₁, with sparse LU factors of E₁₁ and F₂₂ (so both are invertible),
the r × k matrix K = F₂₂⁻¹ F₂₁ and the state matrix A = E₁₁⁻¹ (F₁₁ - F₁₂ K). For a circuit,
T is a permutation and U is a permutation followed by a few eliminations for the floating
capacitors. The checker SparseDecouplingCert.check takes E and F as sparse rows (read with
Cslib.LinearAlgebra.ofSparse; sparseOfRows converts dense rows, and a netlist builds them
from its stamps) and recomputes, with sparse rational products,
Tᵢ T = 1, U Uᵢ = 1, the blocks of T E U and T F U, E₁₁ = L U and F₂₂ = L' U'
(triangular, with nonzero diagonals), F₂₂ K = F₂₁, E₁₁ A = F₁₁ - F₁₂ K.
Acceptance yields an index-one decoupling of any real system with these E and F
(SparseDecouplingCert.toDecoupling) with state matrix A
(SparseDecouplingCert.A_toDecoupling), through the general construction
DescriptorSystem.IndexOneDecoupling.ofSchur of
CslibFrontier.Foundations.Analysis.ODE.Descriptor:
P = [[E₁₁⁻¹, -E₁₁⁻¹ F₁₂ F₂₂⁻¹], [0, F₂₂⁻¹]] T, Q = U [[1, 0], [-K, 1]],
with inverses Tᵢ [[E₁₁, F₁₂], [0, F₂₂]] and [[1, 0], [K, 1]] Uᵢ. These matrices are real and
are never computed: only their sparse factors are checked. Every theorem about
DescriptorSystem.IndexOneDecoupling applies to the result.
Main definitions #
Cslib.LinearAlgebra.SparseDecouplingCert,SparseDecouplingCert.check.Cslib.LinearAlgebra.realOfSparse,Cslib.LinearAlgebra.sparseOfRows.
Main results #
Sparse rows: zero tests, differences and blocks #
Triangular factors #
Structured decoupling certificates #
Whether c is an index-one decoupling in Schur form of the pencil (E, F) with N
unknowns, given by sparse rows. All products are sparse and exact over ℚ.
The facts that an accepted certificate provides, as real matrices: the hypotheses of
DescriptorSystem.IndexOneDecoupling.ofSchur, and the equation E₁₁ A = F₁₁ - F₁₂ K.
- hT : (realOfSparse N N c.Tᵢ).submatrix id ⇑(blockEquiv ⋯).symm * (realOfSparse N N c.T).submatrix (⇑(blockEquiv ⋯).symm) id = 1
- hU : (realOfSparse N N c.U).submatrix id ⇑(blockEquiv ⋯).symm * (realOfSparse N N c.Uᵢ).submatrix (⇑(blockEquiv ⋯).symm) id = 1
- hE : (realOfSparse N N c.T).submatrix (⇑(blockEquiv ⋯).symm) id * realOfSparse N N E * (realOfSparse N N c.U).submatrix id ⇑(blockEquiv ⋯).symm = Matrix.fromBlocks (realOfSparse c.k c.k (blk₁₁ c.k (c.bar E))) 0 0 0
- hF : (realOfSparse N N c.T).submatrix (⇑(blockEquiv ⋯).symm) id * realOfSparse N N F * (realOfSparse N N c.U).submatrix id ⇑(blockEquiv ⋯).symm = Matrix.fromBlocks (realOfSparse c.k c.k (blk₁₁ c.k (c.bar F))) (realOfSparse c.k c.r (blk₁₂ c.k (c.bar F))) (realOfSparse c.r c.k (blk₂₁ c.k (c.bar F))) (realOfSparse c.r c.r (blk₂₂ c.k (c.bar F)))
E₁₁is invertible.F₂₂is invertible.- hK : realOfSparse c.r c.r (blk₂₂ c.k (c.bar F)) * realOfSparse c.r c.k c.K = realOfSparse c.r c.k (blk₂₁ c.k (c.bar F))
F₂₂ K = F₂₁.
Soundness. An accepted certificate for the sparse rows of S.E and S.F gives an
index-one decoupling of S, by DescriptorSystem.IndexOneDecoupling.ofSchur.
The state matrix of the decoupling is the matrix of the checked SparseDecouplingCert.A.
The differential coordinates of the decoupling are the first c.k rows of Uᵢ.
Descriptor stability from the reduced matrix. If c is an accepted structured
decoupling of the sparse rows of S.E and S.F, z₀ is an equilibrium and ẋ = A x is
exponentially stable for the checked reduced matrix c.A, then every solution with zero input
of S converges to z₀ exponentially, in the Euclidean norm.