[Paper Review] Control software analysis, part II: Closed-loop analysis
This paper proposes a formal method for verifying closed-loop stability and performance of control software by integrating control theory with program analysis. It uses concurrent modeling of plant and controller, applies absolute stability theory via quadratic Lyapunov functions, and demonstrates through example that sector-bounded nonlinearities (e.g., saturation) can be formally analyzed to prove stability within invariant ellipsoidal sets.
The analysis and proper documentation of the properties of closed-loop control software presents many distinct aspects from the analysis of the same software running open-loop. Issues of physical system representations arise, and it is desired that such representations remain independent from the representations of the control program. For that purpose, a concurrent program representation of the plant and the control processes is proposed, although the closed-loop system is sufficiently serialized to enable a sequential analysis. While dealing with closed-loop system properties, it is also shown by means of examples how special treatment of nonlinearities extends from the analysis of control specifications to code analysis.
Motivation & Objective
- Address the gap in formal verification of closed-loop control software, particularly stability and performance under nonlinearities.
- Enable independent analysis of plant and controller representations to enhance modularity and verification flexibility.
- Extend open-loop software analysis (from Part I) to include system-level stability and performance guarantees.
- Provide a formal framework to verify undocumented or autocoded control software using invariant set analysis.
- Integrate control theory concepts like sector nonlinearity and Lyapunov functions into program analysis for verifiable code properties.
Proposed method
- Model the closed-loop system as two concurrent processes: one for the real-time controller and one for the physical plant.
- Represent the plant and controller using discrete-time dynamics with sampling and zero-order hold, enabling equivalent discrete-time system analysis.
- Apply absolute stability theory using a quadratic Lyapunov function $ V(x) = x^T P x $ to prove stability under saturation nonlinearity.
- Use the S-procedure to handle the sector-bounded nonlinearity $ \mathbf{SAT}(Cx) $, transforming the stability condition into a linear matrix inequality (LMI).
- Employ Schur complements and matrix transformations to derive sufficient conditions for invariance of the set $ \mathcal{E}_P $, ensuring decay of the Lyapunov function.
- Construct a proof chain from controller specifications to code-level invariants, enabling formal verification of stability and boundedness.
Experimental results
Research questions
- RQ1How can control system stability be formally verified in the presence of nonlinearities such as actuator saturation in embedded control software?
- RQ2What formal method enables the separation of plant and controller representations while preserving closed-loop system properties?
- RQ3Can Lyapunov-based stability analysis be systematically mapped to program states and code annotations for software verification?
- RQ4How can sector-bounded nonlinearities be formally treated in the context of control software verification using forward analysis?
- RQ5What is the feasibility and structure of generating machine-checkable proofs of stability for undocumented or autocoded control software?
Key findings
- A quadratic Lyapunov function $ V(x) = x^T P x $ with the given matrix $ P $ was shown to decay along all trajectories for initial conditions where the controller is at rest and the plant state lies within the ellipse $ \mathcal{E}_Q $, proving local stability.
- The set of initial plant states $ x_{p,0} \in \mathcal{E}_Q $ is contained within the invariant set $ \mathcal{E}_P $, ensuring boundedness of the closed-loop system.
- The stability condition was reduced to a matrix inequality involving $ \tilde{P} = P - 0.16\mu C^T C $, which was verified via Schur complement and matrix inversion techniques.
- The analysis demonstrates equivalence to classical absolute stability results, validating the method’s theoretical soundness.
- The framework enables formal verification of stability for both documented and undocumented control software, including autocoded implementations.
- The method supports integration into autocoding pipelines, allowing automatic generation of annotated, verifiable C code with embedded stability proofs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.