arXiv:2608.24598cs.LOAug 2026

Manuscript Offprint

arXiv:2608.24598

Comparison Invariants for Verifying Control Invariance

Promit Panja, André Platzer

Abstract

Control invariance validates that dynamical systems have a control input that preserves a given property at all times. This paper introduces a set of sound axioms and proof rules in differential dynamic logic (dL) that enable verification of control invariance. First, the scalar and vector comparison principles, relating a system of differential equations to a comparison system such that invariance properties can be established more easily, are axiomatized in dL. This axiomatization primarily utilizes differential ghosts, which are proof-theoretic generalizations of comparison systems. Next, with the comparison principles serving as the basis, comparison invariants are introduced, and sound axioms and proof rules are derived. Comparison invariants reduce the question of control invariance to a functional inequality on its Lie derivative for a suitable class of functions, moreover, the right choice of function can result in decidable arithmetic. Furthermore, the perennially popular control barrier functions (CBFs) used in safety-critical control are shown to be a special instance of comparison invariants. This yields an axiomatization of CBFs that leads to a dedicated set of proof rules. The rules allow for the verification of CBFs, which are traditionally used for synthesizing safe controllers without verification. Lastly, comparison invariants are shown to unify several other safety verification techniques, including Darboux invariants and differential invariants, further cementing their versatility.

1 Introduction

Control systems and cyber-physical systems are an integral part of modern society [2, 27], which are deployed in various domains such as aerospace, medical devices, autonomous vehicles, industrial robots, and power grids [23, 33]. Control systems are often termed safety-critical when safety is a primary concern, breach of which can cause catastrophic damage including loss of life [2, 23, 27]. Consequently, safety-critical control systems require formal safety guarantees. Making sure that a control system behaves safely under all admissible control inputs has been a central challenge in control theory and formal verification [18, 27, 33]. At the heart of this challenge lies control invariance, the principle that a system's differential equations can admit control inputs that preserve a desired property.

This paper studies deductive verification of control invariance by developing an axiomatic foundation in differential dynamic logic (dL) [22–25, 27–30], a logic for modeling and proving hybrid systems. In order to axiomatically prove control invariance we utilize the comparison principles [38] as the underlying proof technique. The comparison principles enable relating a system of differential equations with a comparison system aiding invariance proofs by establishing properties that were not possible before. Based on the comparison principles we introduce a new general class of invariants called comparison invariants, which reduce the question of control invariance to questions about real arithmetic, specifically a functional inequality on the Lie derivative of the invariants, proving sublevel sets as control invariant. Comparison invariants are used to further generalize various safety verification techniques including the ever popular control barrier functions [3].

Control barrier functions are a go-to choice in safety-critical control theory for synthesizing efficient safety enforcing controllers [3–5,39]. Due to their relative simplicity and their formal

P. Panja, A. Platzer

safety guarantees control barrier functions have attracted much success, especially in fields like safety-critical robotics. However, these formal guarantees are only enforced by the synthesized controllers if the control barrier function used to synthesize it was valid in the first place. Verifying whether a candidate control barrier function is valid or not is a nontrivial task [11]. Recently, there have been efforts in verifying control barrier functions, primarily utilizing sum-of-squares optimization using semidefinite programming [11], however, in-practice these methods can suffer from potential soundness issues due to round-off errors in floating-point solvers.

Due to a lack of formal logical embeddings for verifying control barrier functions, this work was motivated to bridge this gap by providing an axiomatic foundation for proving control invariance in general, and as a consequence, also control barrier functions. With this work our aim is to provide a unified proof framework in dL, which allows proving various control invariance properties via a general set of axioms and proof rules. Moreover, we propose a logical foundation for verifying control barrier functions for the safety-critical control community for synthesizing safe controllers, in which unverified candidate control barrier functions abound.

Contributions. The main contributions are summarized as follows.

  1. We first axiomatize the scalar and vector comparison principles, and show they are derivable in dL resulting in axioms SCP and VCP, respectively.

  2. Next, we introduce scalar and vector comparison invariants along with their respective axioms and proof rules, enabling sound verification of control invariance properties in dL.

  3. Further, we give an axiomatization of control barrier functions (CBFs), scalar and vector, and in the process show how they are a special case of comparison invariants.

  4. Additionally, we show the existing dL axioms and proof rules for Darboux invariants and differential invariants, respectively, are derivable from comparison invariants.

References (37)