Documentation

CslibFrontier.Foundations.Analysis.ODE.Descriptor

Linear descriptor systems and their index-one decoupling #

A descriptor system (differential-algebraic equation) E ż = F z + G u + b has square real matrices E and F over an index type ι of unknowns, an input matrix G and a constant term b. Nothing is assumed about E: it is singular for every electrical circuit with a resistor or a source, and the rows it annihilates are algebraic constraints. A solution on a time set s is a curve z such that E z (not necessarily z) has derivative F z + G u + b within s (DescriptorSystem.IsSolutionOn). An algebraic component of z therefore needs no differentiability, and follows the input u instantaneously.

Index-one decoupling #

DescriptorSystem.IndexOneDecoupling S κ ρ consists of matrices P = [P₁; P₂] (row operations) and Q = [Q₁ Q₂] (a change of unknowns z = Q₁ x + Q₂ y) bringing the pencil into the form

P E Q = [[1, 0], [0, 0]], P F Q = [[A, 0], [0, 1]],

with P left invertible (P₁' P₁ + P₂' P₂ = 1) and Q invertible (Q₁ Q₁' + Q₂ Q₂' = 1, Q₁' Q₁ = 1, Q₁' Q₂ = 0). This is the Weierstrass form of a pencil with a zero nilpotent part, i.e. of index at most one. Then S decouples into the ODE ẋ = A x + B u + c on the differential coordinates x = Q₁' z, with B = P₁ G and c = P₁ b, and the algebraic equation y = -P₂ (G u + b), which has a unique solution for every input value. Every quantity is recovered: z = Q₁ x - Q₂ P₂ (G u + b) (IndexOneDecoupling.reconstruct). Nothing is discarded; the theorems below are an exact correspondence between solutions of S and of the ODE, with existence and uniqueness for every consistent initial state.

The decoupling is data, so an untrusted tool can find it and a checker can verify its identities exactly (Cslib.LinearAlgebra.DecouplingCert). A system that has no decoupling of this form, for example one of higher index, whose solutions depend on derivatives of the input, or one whose algebraic part is singular, is outside the supported class; no claim is made about it.

Stability #

DescriptorSystem.IsExponentiallyStableAt S z₀ says that all solutions with zero input converge to z₀ exponentially, uniformly, in the Euclidean norm of the full vector of unknowns. On its own this would hold vacuously for an inconsistent model without solutions, so the theorems that prove it also give the constant solution z₀ (IsEquilibrium.isSolutionOn) and a solution through every consistent initial state (IndexOneDecoupling.exists_isSolutionOn_Ici_iff).

Main definitions #

Main results #

structure DescriptorSystem (ι : Type u_1) (m : Type u_2) :
Type (max u_1 u_2)

A linear time-invariant descriptor system E ż = F z + G u + b, with unknowns indexed by ι and inputs indexed by m. E may be singular.

  • E : Matrix ι ι ℝ

    The matrix of the derivative terms.

  • F : Matrix ι ι ℝ

    The matrix of the undifferentiated terms.

  • G : Matrix ι m ℝ

    The input matrix.

  • b : ι → ℝ

    The constant term (constant sources).

def DescriptorSystem.IsSolutionOn {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] (S : DescriptorSystem ι m) (u : ℝ → m → ℝ) (z : ℝ → ι → ℝ) (s : Set ℝ) :

z solves E ż = F z + G u + b on the time set s: at each t ∈ s, the curve E z has derivative F z t + G u t + b within s. No differentiability of z itself is required.

def DescriptorSystem.IsEquilibrium {ι : Type u_1} {m : Type u_2} [Fintype ι] (S : DescriptorSystem ι m) (z₀ : ι → ℝ) :

z₀ is an equilibrium for zero input: F z₀ + b = 0.

def DescriptorSystem.deviation {ι : Type u_1} {m : Type u_2} (S : DescriptorSystem ι m) :

The deviation system E ż = F z + G u, without the constant term.

def DescriptorSystem.IsExponentiallyStableAt {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] (S : DescriptorSystem ι m) (z₀ : ι → ℝ) :

z₀ is (globally, uniformly) exponentially stable: there are constants M and α > 0 such that every solution with zero input on [0, ∞) satisfies ‖z t - z₀‖ ≤ M * exp (-(α * t)) * ‖z 0 - z₀‖ in the Euclidean norm. This alone is vacuous for a system without solutions; see the module documentation.

theorem DescriptorSystem.IsEquilibrium.isSolutionOn {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {z₀ : ι → ℝ} (h : S.IsEquilibrium z₀) (s : Set ℝ) :
S.IsSolutionOn 0 (fun (x : ℝ) => z₀) s

An equilibrium is a constant solution with zero input.

theorem DescriptorSystem.IsEquilibrium.isSolutionOn_iff {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {z₀ : ι → ℝ} (h : S.IsEquilibrium z₀) {u : ℝ → m → ℝ} {z : ℝ → ι → ℝ} {s : Set ℝ} :
S.IsSolutionOn u z s ↔ S.deviation.IsSolutionOn u (fun (t : ℝ) => z t - z₀) s

Deviation dynamics. If z₀ is an equilibrium, z solves S exactly when z - z₀ solves the deviation system, with the same input.

structure DescriptorSystem.IndexOneDecoupling {ι : Type u_1} {m : Type u_2} [Fintype ι] (S : DescriptorSystem ι m) (κ : Type u_3) (ρ : Type u_4) [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] :
Type (max (max u_1 u_3) u_4)

An index-one decoupling of S: row operations P = [P₁; P₂] with left inverse [P₁' P₂'] and a change of unknowns z = Q₁ x + Q₂ y with inverse [Q₁'; Q₂'], such that P E Q = [[1, 0], [0, 0]] and P F Q = [[A, 0], [0, 1]] for some A. The differential coordinates are indexed by κ, the algebraic ones by ρ.

def DescriptorSystem.IndexOneDecoupling.A {ι : Type u_1} {m : Type u_2} [Fintype ι] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] (D : S.IndexOneDecoupling κ ρ) :
Matrix κ κ ℝ

The state matrix P₁ F Q₁ of the reduced ODE.

def DescriptorSystem.IndexOneDecoupling.B {ι : Type u_1} {m : Type u_2} [Fintype ι] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] (D : S.IndexOneDecoupling κ ρ) :
Matrix κ m ℝ

The input matrix P₁ G of the reduced ODE.

def DescriptorSystem.IndexOneDecoupling.c {ι : Type u_1} {m : Type u_2} [Fintype ι] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] (D : S.IndexOneDecoupling κ ρ) :
κ → ℝ

The constant term P₁ b of the reduced ODE.

def DescriptorSystem.IndexOneDecoupling.reconstruct {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] (D : S.IndexOneDecoupling κ ρ) (x : κ → ℝ) (v : m → ℝ) :
ι → ℝ

The unknowns determined by the differential coordinates x and the input value v: Q₁ x - Q₂ P₂ (G v + b).

def DescriptorSystem.IndexOneDecoupling.deviation {ι : Type u_1} {m : Type u_2} [Fintype ι] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] (D : S.IndexOneDecoupling κ ρ) :

The same decoupling, for the deviation system (it only involves E and F).

theorem DescriptorSystem.IndexOneDecoupling.E_eq_mul_Q₁_mul_Q₁' {ι : Type u_1} {m : Type u_2} [Fintype ι] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} :
S.E = S.E * D.Q₁ * D.Q₁'

E factors through the differential coordinates: E = E Q₁ Q₁'. In particular E = 0 when there are no differential coordinates.

@[simp]
theorem DescriptorSystem.IndexOneDecoupling.Q₁'_mulVec_reconstruct {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} (x : κ → ℝ) (v : m → ℝ) :

The differential coordinates of a reconstructed vector are the given ones.

theorem DescriptorSystem.IndexOneDecoupling.isSolutionOn_iff {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} {u : ℝ → m → ℝ} {z : ℝ → ι → ℝ} {s : Set ℝ} (hs : UniqueDiffOn ℝ s) :
S.IsSolutionOn u z s ↔ (∀ t ∈ s, z t = D.reconstruct (D.Q₁'.mulVec (z t)) (u t)) ∧ ∀ t ∈ s, HasDerivWithinAt (fun (τ : ℝ) => D.Q₁'.mulVec (z τ)) (D.A.mulVec (D.Q₁'.mulVec (z t)) + D.B.mulVec (u t) + D.c) s t

Exact decoupling. On a time set with unique derivatives (such as [0, ∞)), z solves E ż = F z + G u + b exactly when (i) at every time it is reconstructed from its differential coordinates x = Q₁' z and the input value, and (ii) x solves ẋ = A x + B u + c.

theorem DescriptorSystem.IndexOneDecoupling.isSolutionOn_reconstruct {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} {u : ℝ → m → ℝ} {x : ℝ → κ → ℝ} {s : Set ℝ} (hx : ∀ t ∈ s, HasDerivWithinAt x (D.A.mulVec (x t) + D.B.mulVec (u t) + D.c) s t) :
S.IsSolutionOn u (fun (t : ℝ) => D.reconstruct (x t) (u t)) s

Reconstruction. Every solution x of the reduced ODE ẋ = A x + B u + c on s yields the solution t ↦ reconstruct (x t) (u t) of S, whose differential coordinates are x.

theorem DescriptorSystem.IndexOneDecoupling.exists_isSolutionOn_Ici_iff {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} {u : ℝ → m → ℝ} (hu : ContinuousOn u (Set.Ici 0)) (z₀ : ι → ℝ) :
(∃ (z : ℝ → ι → ℝ), S.IsSolutionOn u z (Set.Ici 0) ∧ z 0 = z₀) ↔ z₀ = D.reconstruct (D.Q₁'.mulVec z₀) (u 0)

Existence and consistent initial states. For an input continuous on [0, ∞), an initial state z₀ starts a solution of S on [0, ∞) exactly when it satisfies the algebraic constraint z₀ = reconstruct (Q₁' z₀) (u 0). In particular every x₀ : κ → ℝ is the differential part of a consistent initial state, reconstruct x₀ (u 0).

theorem DescriptorSystem.IndexOneDecoupling.eqOn_of_isSolutionOn_Ici {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] (D : S.IndexOneDecoupling κ ρ) {u : ℝ → m → ℝ} {z z' : ℝ → ι → ℝ} (hz : S.IsSolutionOn u z (Set.Ici 0)) (hz' : S.IsSolutionOn u z' (Set.Ici 0)) (h0 : z 0 = z' 0) :
Set.EqOn z z' (Set.Ici 0)

Uniqueness. Two solutions of S on [0, ∞) with the same input and the same initial state agree at all times t ≥ 0. No regularity of the input is needed: the differential coordinates of the two solutions differ by a solution of ẋ = A x starting at 0, and the algebraic coordinates are determined by the differential ones and the input.

def DescriptorSystem.IndexOneDecoupling.realization {ι : Type u_1} {m : Type u_2} [Fintype ι] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} {p : Type u_5} (H : Matrix p ι ℝ) :
LTISystem κ m p

The proper realization of S with output H z, after the equilibrium shift: ẋ = A x + B u, y = (H Q₁) x - (H Q₂ P₂ G) u.

theorem DescriptorSystem.IndexOneDecoupling.isSolutionOn_iff_realization {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} {p : Type u_5} (H : Matrix p ι ℝ) {z₀ : ι → ℝ} (hz₀ : S.IsEquilibrium z₀) {u : ℝ → m → ℝ} {z : ℝ → ι → ℝ} {s : Set ℝ} (hs : UniqueDiffOn ℝ s) :
S.IsSolutionOn u z s ↔ (∀ t ∈ s, z t = z₀ + D.Q₁.mulVec (D.Q₁'.mulVec (z t - z₀)) - D.Q₂.mulVec (D.P₂.mulVec (S.G.mulVec (u t)))) ∧ (realization H).IsSolutionOn u (fun (t : ℝ) => D.Q₁'.mulVec (z t - z₀)) s

Proper realization about an equilibrium. Let z₀ be an equilibrium and H an output map. On a time set with unique derivatives, z solves S with input u exactly when (i) z t = z₀ + Q₁ x t - Q₂ P₂ G u t with x = Q₁' (z - z₀), and (ii) x solves the state equation of realization H with input u. Then the output deviation is H (z t - z₀) = C x t + D u t (IndexOneDecoupling.output_eq). No derivative of u occurs.

theorem DescriptorSystem.IndexOneDecoupling.output_eq {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} {p : Type u_5} (H : Matrix p ι ℝ) {z₀ v : ι → ℝ} {w : m → ℝ} (h : v = z₀ + D.Q₁.mulVec (D.Q₁'.mulVec (v - z₀)) - D.Q₂.mulVec (D.P₂.mulVec (S.G.mulVec w))) :
H.mulVec v - H.mulVec z₀ = (realization H).C.mulVec (D.Q₁'.mulVec (v - z₀)) + (realization H).D.mulVec w

The output deviation of a solution in the form of isSolutionOn_iff_realization (i).

theorem DescriptorSystem.IndexOneDecoupling.isExponentiallyStableAt {ι : Type u_1} {m : Type u_2} [Fintype ι] [Fintype m] {S : DescriptorSystem ι m} {κ : Type u_3} {ρ : Type u_4} [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {D : S.IndexOneDecoupling κ ρ} {z₀ : ι → ℝ} (hz₀ : S.IsEquilibrium z₀) (hA : (Matrix.toEuclideanCLM D.A).IsExponentiallyStable) :

Stability of the descriptor system from the reduced ODE. If ẋ = A x is exponentially stable in the Euclidean norm, then every equilibrium z₀ of S is exponentially stable: all solutions with zero input converge to z₀, with constants from those of A and the norms of Q₁ and Q₁'. Solutions exist through every consistent initial state (exists_isSolutionOn_Ici_iff), so this is not vacuous.

Decouplings from block transforms #

def DescriptorSystem.IndexOneDecoupling.ofPartitioned {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (P : Matrix (κ ⊕ ρ) ι ℝ) (P' Q : Matrix ι (κ ⊕ ρ) ℝ) (Q' : Matrix (κ ⊕ ρ) ι ℝ) (A : Matrix κ κ ℝ) (hP : P' * P = 1) (hQ : Q * Q' = 1) (hE : P * S.E * Q = Matrix.fromBlocks 1 0 0 0) (hF : P * S.F * Q = Matrix.fromBlocks A 0 0 1) :

An index-one decoupling from square P and Q in partitioned form: P' P = 1, Q Q' = 1, P E Q = [[1, 0], [0, 0]] and P F Q = [[A, 0], [0, 1]].

theorem DescriptorSystem.IndexOneDecoupling.A_ofPartitioned {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (P : Matrix (κ ⊕ ρ) ι ℝ) (P' Q : Matrix ι (κ ⊕ ρ) ℝ) (Q' : Matrix (κ ⊕ ρ) ι ℝ) (A : Matrix κ κ ℝ) (hP : P' * P = 1) (hQ : Q * Q' = 1) (hE : P * S.E * Q = Matrix.fromBlocks 1 0 0 0) (hF : P * S.F * Q = Matrix.fromBlocks A 0 0 1) :
(ofPartitioned e P P' Q Q' A hP hQ hE hF).A = A

The state matrix of ofPartitioned is the block A of P F Q.

noncomputable def DescriptorSystem.IndexOneDecoupling.ofSchur {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (T : Matrix (κ ⊕ ρ) ι ℝ) (Tᵢ U : Matrix ι (κ ⊕ ρ) ℝ) (Uᵢ : Matrix (κ ⊕ ρ) ι ℝ) (E₁₁ F₁₁ : Matrix κ κ ℝ) (F₁₂ : Matrix κ ρ ℝ) (F₂₁ K : Matrix ρ κ ℝ) (F₂₂ : Matrix ρ ρ ℝ) (hT : Tᵢ * T = 1) (hU : U * Uᵢ = 1) (hE : T * S.E * U = Matrix.fromBlocks E₁₁ 0 0 0) (hF : T * S.F * U = Matrix.fromBlocks F₁₁ F₁₂ F₂₁ F₂₂) (hE₁₁ : IsUnit E₁₁.det) (hF₂₂ : IsUnit F₂₂.det) (hK : F₂₂ * K = F₂₁) :

Decoupling in Schur form. Let T, U be invertible transforms of the rows and of the unknowns with T E U = [[E₁₁, 0], [0, 0]] and T F U = [[F₁₁, F₁₂], [F₂₁, F₂₂]], where E₁₁ and F₂₂ are invertible, and let F₂₂ K = F₂₁. Then P = [[E₁₁⁻¹, -E₁₁⁻¹ F₁₂ F₂₂⁻¹], [0, F₂₂⁻¹]] T and Q = U [[1, 0], [-K, 1]] decouple S, with state matrix E₁₁⁻¹ (F₁₁ - F₁₂ K) (A_ofSchur).

theorem DescriptorSystem.IndexOneDecoupling.A_ofSchur {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (T : Matrix (κ ⊕ ρ) ι ℝ) (Tᵢ U : Matrix ι (κ ⊕ ρ) ℝ) (Uᵢ : Matrix (κ ⊕ ρ) ι ℝ) (E₁₁ F₁₁ : Matrix κ κ ℝ) (F₁₂ : Matrix κ ρ ℝ) (F₂₁ K : Matrix ρ κ ℝ) (F₂₂ : Matrix ρ ρ ℝ) (hT : Tᵢ * T = 1) (hU : U * Uᵢ = 1) (hE : T * S.E * U = Matrix.fromBlocks E₁₁ 0 0 0) (hF : T * S.F * U = Matrix.fromBlocks F₁₁ F₁₂ F₂₁ F₂₂) (hE₁₁ : IsUnit E₁₁.det) (hF₂₂ : IsUnit F₂₂.det) (hK : F₂₂ * K = F₂₁) :
(ofSchur e T Tᵢ U Uᵢ E₁₁ F₁₁ F₁₂ F₂₁ K F₂₂ hT hU hE hF hE₁₁ hF₂₂ hK).A = E₁₁⁻¹ * (F₁₁ - F₁₂ * K)

The state matrix of the Schur-form decoupling.

theorem DescriptorSystem.IndexOneDecoupling.Q₁'_ofSchur {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (T : Matrix (κ ⊕ ρ) ι ℝ) (Tᵢ U : Matrix ι (κ ⊕ ρ) ℝ) (Uᵢ : Matrix (κ ⊕ ρ) ι ℝ) (E₁₁ F₁₁ : Matrix κ κ ℝ) (F₁₂ : Matrix κ ρ ℝ) (F₂₁ K : Matrix ρ κ ℝ) (F₂₂ : Matrix ρ ρ ℝ) (hT : Tᵢ * T = 1) (hU : U * Uᵢ = 1) (hE : T * S.E * U = Matrix.fromBlocks E₁₁ 0 0 0) (hF : T * S.F * U = Matrix.fromBlocks F₁₁ F₁₂ F₂₁ F₂₂) (hE₁₁ : IsUnit E₁₁.det) (hF₂₂ : IsUnit F₂₂.det) (hK : F₂₂ * K = F₂₁) :
(ofSchur e T Tᵢ U Uᵢ E₁₁ F₁₁ F₁₂ F₂₁ K F₂₂ hT hU hE hF hE₁₁ hF₂₂ hK).Q₁' = Uᵢ.toRows₁

The differential coordinates of the Schur-form decoupling are the first rows of Uᵢ.

theorem DescriptorSystem.IndexOneDecoupling.P₁_ofSchur {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (T : Matrix (κ ⊕ ρ) ι ℝ) (Tᵢ U : Matrix ι (κ ⊕ ρ) ℝ) (Uᵢ : Matrix (κ ⊕ ρ) ι ℝ) (E₁₁ F₁₁ : Matrix κ κ ℝ) (F₁₂ : Matrix κ ρ ℝ) (F₂₁ K : Matrix ρ κ ℝ) (F₂₂ : Matrix ρ ρ ℝ) (hT : Tᵢ * T = 1) (hU : U * Uᵢ = 1) (hE : T * S.E * U = Matrix.fromBlocks E₁₁ 0 0 0) (hF : T * S.F * U = Matrix.fromBlocks F₁₁ F₁₂ F₂₁ F₂₂) (hE₁₁ : IsUnit E₁₁.det) (hF₂₂ : IsUnit F₂₂.det) (hK : F₂₂ * K = F₂₁) :
(ofSchur e T Tᵢ U Uᵢ E₁₁ F₁₁ F₁₂ F₂₁ K F₂₂ hT hU hE hF hE₁₁ hF₂₂ hK).P₁ = E₁₁⁻¹ * (T.toRows₁ - F₁₂ * F₂₂⁻¹ * T.toRows₂)

The differential rows of P in the Schur-form decoupling.

theorem DescriptorSystem.IndexOneDecoupling.P₂_ofSchur {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (T : Matrix (κ ⊕ ρ) ι ℝ) (Tᵢ U : Matrix ι (κ ⊕ ρ) ℝ) (Uᵢ : Matrix (κ ⊕ ρ) ι ℝ) (E₁₁ F₁₁ : Matrix κ κ ℝ) (F₁₂ : Matrix κ ρ ℝ) (F₂₁ K : Matrix ρ κ ℝ) (F₂₂ : Matrix ρ ρ ℝ) (hT : Tᵢ * T = 1) (hU : U * Uᵢ = 1) (hE : T * S.E * U = Matrix.fromBlocks E₁₁ 0 0 0) (hF : T * S.F * U = Matrix.fromBlocks F₁₁ F₁₂ F₂₁ F₂₂) (hE₁₁ : IsUnit E₁₁.det) (hF₂₂ : IsUnit F₂₂.det) (hK : F₂₂ * K = F₂₁) :
(ofSchur e T Tᵢ U Uᵢ E₁₁ F₁₁ F₁₂ F₂₁ K F₂₂ hT hU hE hF hE₁₁ hF₂₂ hK).P₂ = F₂₂⁻¹ * T.toRows₂

The algebraic rows of P in the Schur-form decoupling.

theorem DescriptorSystem.IndexOneDecoupling.Q₁_ofSchur {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (T : Matrix (κ ⊕ ρ) ι ℝ) (Tᵢ U : Matrix ι (κ ⊕ ρ) ℝ) (Uᵢ : Matrix (κ ⊕ ρ) ι ℝ) (E₁₁ F₁₁ : Matrix κ κ ℝ) (F₁₂ : Matrix κ ρ ℝ) (F₂₁ K : Matrix ρ κ ℝ) (F₂₂ : Matrix ρ ρ ℝ) (hT : Tᵢ * T = 1) (hU : U * Uᵢ = 1) (hE : T * S.E * U = Matrix.fromBlocks E₁₁ 0 0 0) (hF : T * S.F * U = Matrix.fromBlocks F₁₁ F₁₂ F₂₁ F₂₂) (hE₁₁ : IsUnit E₁₁.det) (hF₂₂ : IsUnit F₂₂.det) (hK : F₂₂ * K = F₂₁) :
(ofSchur e T Tᵢ U Uᵢ E₁₁ F₁₁ F₁₂ F₂₁ K F₂₂ hT hU hE hF hE₁₁ hF₂₂ hK).Q₁ = U.toCols₁ - U.toCols₂ * K

The differential columns of Q in the Schur-form decoupling.

theorem DescriptorSystem.IndexOneDecoupling.Q₂_ofSchur {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (T : Matrix (κ ⊕ ρ) ι ℝ) (Tᵢ U : Matrix ι (κ ⊕ ρ) ℝ) (Uᵢ : Matrix (κ ⊕ ρ) ι ℝ) (E₁₁ F₁₁ : Matrix κ κ ℝ) (F₁₂ : Matrix κ ρ ℝ) (F₂₁ K : Matrix ρ κ ℝ) (F₂₂ : Matrix ρ ρ ℝ) (hT : Tᵢ * T = 1) (hU : U * Uᵢ = 1) (hE : T * S.E * U = Matrix.fromBlocks E₁₁ 0 0 0) (hF : T * S.F * U = Matrix.fromBlocks F₁₁ F₁₂ F₂₁ F₂₂) (hE₁₁ : IsUnit E₁₁.det) (hF₂₂ : IsUnit F₂₂.det) (hK : F₂₂ * K = F₂₁) :
(ofSchur e T Tᵢ U Uᵢ E₁₁ F₁₁ F₁₂ F₂₁ K F₂₂ hT hU hE hF hE₁₁ hF₂₂ hK).Q₂ = U.toCols₂

The algebraic columns of Q in the Schur-form decoupling.

theorem DescriptorSystem.IndexOneDecoupling.P₂_G_B_ofSchur {ι : Type u_1} {m : Type u_2} {κ : Type u_3} {ρ : Type u_4} [Fintype ι] [Fintype κ] [Fintype ρ] [DecidableEq ι] [DecidableEq κ] [DecidableEq ρ] {S : DescriptorSystem ι m} (e : ι ≃ κ ⊕ ρ) (T : Matrix (κ ⊕ ρ) ι ℝ) (Tᵢ U : Matrix ι (κ ⊕ ρ) ℝ) (Uᵢ : Matrix (κ ⊕ ρ) ι ℝ) (E₁₁ F₁₁ : Matrix κ κ ℝ) (F₁₂ : Matrix κ ρ ℝ) (F₂₁ K : Matrix ρ κ ℝ) (F₂₂ : Matrix ρ ρ ℝ) (hT : Tᵢ * T = 1) (hU : U * Uᵢ = 1) (hE : T * S.E * U = Matrix.fromBlocks E₁₁ 0 0 0) (hF : T * S.F * U = Matrix.fromBlocks F₁₁ F₁₂ F₂₁ F₂₂) (hE₁₁ : IsUnit E₁₁.det) (hF₂₂ : IsUnit F₂₂.det) (hK : F₂₂ * K = F₂₁) {W : Matrix ρ m ℝ} {B : Matrix κ m ℝ} (hW : F₂₂ * W = T.toRows₂ * S.G) (hB : E₁₁ * B = T.toRows₁ * S.G - F₁₂ * W) :
(ofSchur e T Tᵢ U Uᵢ E₁₁ F₁₁ F₁₂ F₂₁ K F₂₂ hT hU hE hF hE₁₁ hF₂₂ hK).P₂ * S.G = W ∧ (ofSchur e T Tᵢ U Uᵢ E₁₁ F₁₁ F₁₂ F₂₁ K F₂₂ hT hU hE hF hE₁₁ hF₂₂ hK).B = B

Input maps of the Schur-form decoupling from solutions. If F₂₂ W = T₂ G and E₁₁ B = T₁ G - F₁₂ W, then P₂ G = W and the input matrix P₁ G of the reduced system is B.