Documentation

CslibFrontier.Algorithms.LinearAlgebra.SmallGainCertificate

Kernel-checked small-gain certificates on frequency bands #

The small-gain theorem LTISystem.feedback_isHurwitz_of_norm_loop_le needs a bound |σ H₂(iω) H₁(iω)| ≤ ρ < 1 for every real ω. For rational SISO models this module certifies such a bound band by band with the gain checks of CslibFrontier.Algorithms.LinearAlgebra.FrequencyCertificate.

A list of bands with lower edges lo₀ = 0, lo₁, …, lo_k stands for [lo₀, lo₁], [lo₁, lo₂], …, [lo_k, ∞) in |ω| (Cslib.LinearAlgebra.coverBands); every real ω lies in one of them (Cslib.LinearAlgebra.exists_mem_coverBands). The edges need not be increasing: a band whose upper edge lies below its lower edge is empty, and the covering argument does not need it.

Both checks are Boolean functions closed by decide +kernel. They concern the transfer functions only: the Hurwitz property of the two state matrices is a separate certificate (for instance Cslib.LinearAlgebra.LyapunovCert.isExponentiallyStable_of_check), as is well-posedness.

Main definitions #

Main results #

Covering the frequency axis #

def Cslib.LinearAlgebra.coverBands {α : Type u_1} (lo : α → ℚ) :
List α → List (FreqBand × α)

The bands of a list of band records with lower edges lo a₀, …, lo a_k: [lo a₀, lo a₁], …, [lo a_{k-1}, lo a_k], [lo a_k, ∞) in |ω|, each paired with its record.

theorem Cslib.LinearAlgebra.exists_mem_coverBands {α : Type u_1} {lo : α → ℚ} {l : List α} (h : Option.map lo l.head? = some 0) (ω : ℝ) :
∃ x ∈ coverBands lo l, x.1.Mem ω

The bands cover the frequency axis. If the first lower edge is 0, every real ω lies in one of the bands.

Banded certificates #

One band of a loop-gain certificate: it starts at |ω| = lo, ends where the next band of the list starts (or extends to ∞), and carries upper bounds gain₁Sq on |H₁|² and gain₂Sq on |H₂|².

  • lo : ℚ

    The lower edge of the band.

  • gain₁Sq : ℚ

    The upper bound on |H₁ (i ω)|² on the band.

  • gain₂Sq : ℚ

    The upper bound on |H₂ (i ω)|² on the band.

def Cslib.LinearAlgebra.loopGainCheck {n₁ n₂ : ℕ} (G₁ : RatLTI n₁ 1 1) (G₂ : RatLTI n₂ 1 1) (σ : ℚ) (bands : List LoopBand) :

The banded loop-gain check for the SISO loop of G₁ and G₂ with sign σ: the first band starts at 0, and on each band of coverBands LoopBand.lo bands both gain bounds are accepted by RatLTI.gainLe and σ² g₁ g₂ < 1.

One band of a certificate |H| < 1: it starts at |ω| = lo, ends where the next band starts (or extends to ∞), and carries an upper bound gainSq on |H|².

  • lo : ℚ

    The lower edge of the band.

  • gainSq : ℚ

    The upper bound on |H (i ω)|² on the band.

The banded check |H| < 1: the first band starts at 0, and on each band the bound is accepted by RatLTI.gainLe and is below 1.

theorem Cslib.LinearAlgebra.RatLTI.norm_loop_le_of_loopGainCheck {n₁ n₂ : ℕ} {G₁ : RatLTI n₁ 1 1} {G₂ : RatLTI n₂ 1 1} {σ : ℚ} {bands : List LoopBand} (h : loopGainCheck G₁ G₂ σ bands = true) :
∃ ρ < 1, ∀ (ω : ℝ), ‖↑↑σ * (G₂.toSystem.transferFunction (↑ω * Complex.I) 0 0 * G₁.toSystem.transferFunction (↑ω * Complex.I) 0 0)‖ ≤ ρ

Soundness of the loop-gain check: there is ρ < 1 with |σ H₂(iω) H₁(iω)| ≤ ρ for every real ω.

theorem Cslib.LinearAlgebra.RatLTI.norm_le_of_gainBelowOneCheck {n : ℕ} {G : RatLTI n 1 1} {bands : List GainBand} (h : gainBelowOneCheck G bands = true) :
∃ ρ < 1, ∀ (ω : ℝ), ‖G.toSystem.transferFunction (↑ω * Complex.I) 0 0‖ ≤ ρ

Soundness of the check |H| < 1: there is ρ < 1 with |H(iω)| ≤ ρ for every real ω.

theorem Cslib.LinearAlgebra.RatLTI.feedback_isHurwitz_of_loopGainCheck {n₁ n₂ : ℕ} {G₁ : RatLTI n₁ 1 1} {G₂ : RatLTI n₂ 1 1} {σ : ℚ} {bands : List LoopBand} (hw : G₁.toSystem.WellPosed G₂.toSystem ↑σ) (h₁ : G₁.toSystem.A.IsHurwitz) (h₂ : G₂.toSystem.A.IsHurwitz) (h : loopGainCheck G₁ G₂ σ bands = true) :
(G₁.toSystem.feedback G₂.toSystem (↑σ) hw).A.IsHurwitz

Banded small gain. If the state matrices of the SISO models G₁ and G₂ are Hurwitz, the loop with sign (or gain) σ is well-posed, and the banded loop-gain check accepts, then the closed loop is internally stable: its state matrix is Hurwitz.

theorem Cslib.LinearAlgebra.RatLTI.feedback_isHurwitz_of_gainBelowOneCheck {n : ℕ} {G : RatLTI n 1 1} {bands : List GainBand} {k : Type u_1} [Fintype k] [DecidableEq k] {Δ : LTISystem k (Fin 1) (Fin 1)} {σ : ℝ} (hw : G.toSystem.WellPosed Δ σ) (hG : G.toSystem.A.IsHurwitz) (hΔ : Δ.A.IsHurwitz) (hσ : |σ| ≤ 1) (hΔ1 : ∀ (ω : ℝ), ‖Δ.transferFunction (↑ω * Complex.I) 0 0‖ ≤ 1) (h : gainBelowOneCheck G bands = true) :

Banded small gain against a unit-bounded block. If the state matrix of the SISO model G is Hurwitz and the check |H| < 1 accepts, then for every SISO system Δ with a Hurwitz state matrix and |Δ(iω)| ≤ 1 for all ω, every well-posed feedback loop of G and Δ with |σ| ≤ 1 is internally stable: the supplied realization has a Hurwitz state matrix. With G a model of -W₂ T this is the small-gain step of the sufficiency proof of the robust-stability test for multiplicative uncertainty; relating the realization to the perturbed plant–controller loop is client work (see LTISystem.feedback_isHurwitz_of_norm_le).