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.
We first axiomatize the scalar and vector comparison principles, and show they are derivable in dL resulting in axioms SCP and VCP, respectively.
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.
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.
Additionally, we show the existing dL axioms and proof rules for Darboux invariants and differential invariants, respectively, are derivable from comparison invariants.
2 Background: Differential Dynamic Logic
Differential dynamic logic (dL), a logic for modeling and reasoning about hybrid systems [27], forms the basis of this paper. We will briefly go over the syntax, semantics, and the proof calculus, followed by control systems modeling principles in dL. A detailed exposition of the logic can be found elsewhere [25, 27].
2.1 Syntax
Here we give an overview of the dL syntax, which comprises terms and formulas that are then combined to form hybrid programs modeling hybrid systems.
2.1.1 Terms
The term language of dL follows the following grammar, where x∈V is a variable in the set of all variables V, and c∈Q is a rational constant:
p,q::=x∣c∣p+q∣p⋅q∣η(p1,…,pn)∣(p)′.
Also, x=(x1,…,xn)⊤ is a vector of variables. It is worth noting that this paper frequently utilizes (fixed) function symbols like η(⋅), which are scalar functions, and η(⋅)=(η1(⋅),…,ηn(⋅))⊤
P. Panja, A. Platzer
are vector-valued functions, where η1(⋅),…,ηn(⋅) are scalar functions. All the function symbols are assumed to be continuous in their respective arguments. For further distinction, vector of terms are written in bold p=(p1,…,pn)⊤. The term language also includes differential terms (p)′ that allow reasoning about derivatives locally, along the evolution of associated ordinary differential equations (ODEs) [30], and are defined as follows:
The differential of a term p coincides with its syntactic Lie derivative along the ODE x′=f(x), with x′=(x1′,…,xn′)⊤ and f(x)=(f1(x),…,fn(x))⊤, when following the chain rule. Here we use Lf(x)(p) as an operator and use p˙ as the syntactic representation of the Lie derivative for brevity. For two vectors v and w the inner product is denoted as v⋅w and the Euclidean norm is ∥v∥=v⋅v. Since standard norms are not part of dL term syntax, squared Euclidean norms are used whenever necessary, as they are definable in first-order logic over real arithmetic (FOLR) as ∥v∥2=∑i=1nvi2.
2.1.2 Formulas
The formulas of dL are defined by the following grammar, where ∼∈{>,≥,=} is a comparison operator and α is a hybrid program [27]:
ϕ,ψ::=p∼q∣¬ϕ∣ϕ∧ψ∣ϕ∨ψ∣∀xϕ∣∃xϕ∣[α]ϕ∣⟨α⟩ϕ.
This grammar extends the standard first-order logic over real arithmetic (FOL R), with the box [α]ϕ and the diamond ⟨α⟩ϕ modalities, which express that all or some runs of the hybrid program α satisfy ϕ, respectively.
2.1.3 Hybrid Programs
The language of hybrid programs is defined by the following grammar, where x is a variable, p is a dL term, and Q is a formula of first-order real arithmetic [25, 27].
α,β::=x′=f(x)&Q∣α;β∣α∗
Continuous dynamics are modeled by the n-dimensional system of autonomous1 ODEs x′=f(x)&Q whose evolution is constrained by the domain Q; the ODE is modeled as x′=f(x) when Q≡true. The continuous and discrete fragments can be combined to model hybrid dynamics using the following program combinators: sequential composition α;β, which executes program α followed by program β, and (bounded) nondeterministic repetition α∗, which repeats the program α zero or arbitrarily more number of times. The syntax of the discrete fragment of dL and other program combinators can be found elsewhere [27].
Remark 1. This paper utilizes systems of ODEs of the form x′=f(x,τ),τ′=1&Q, where the variable τ is specifically meant for tracking time. Due to the ODE τ′=1, the system of ODEs as a whole is still autonomous in the extended state space [10, Ch. 1, §1.3]. This choice is made so that once can show ODE solutions remain bounded in a compact time interval, which would not have been possible to show syntactically in dL's proof calculus without the addition of the time variable τ.
1An ODE of the form x′=f(x) is called autonomous, if the right-hand side of the ODE, i.e., f(x) only depends on the state variable x and not explicitly on time.
P. Panja, A. Platzer
2.2 Semantics
The semantics of dL are defined such that states ν:V→R assign a real value to each variable in V. For some state ν∈S and some term p, where S⊆Rn denotes the set of all states, the semantics ν[p] is the real value of p when evaluated at ν. For a formula ϕ, the semantics [ϕ]⊆S is the set of states in which ϕ holds. First-order connectives have their usual semantics, e.g., [ϕ∧ψ]=[ϕ]∩[ψ].
Now we present the semantics of formulas most relevant to this paper, i.e., semantics of ODEs under the box modality. 2 Let φ:[0,T)→S (for some 0<T≤∞), be the unique solution of the ODE x′=f(x) extended maximally to the right [10, 38] with initial value φ(0)=ν, where ν∈S is some state:
ν∈[[x′=f(x)&Q]ψ] iff for all 0≤t<T, φ(ξ)∈[Q] for all 0≤ξ≤t such that φ(t)∈[ψ].
Informally it means, the formula [x′=f(x)&Q]ψ is true in the initial state ν if all states reached by the solution of the ODE from ν satisfy the postcondition ψ, while staying in the domain constraint Q.
2.3 Proof Calculus
The dL proof calculus enables deductive verification of hybrid dynamical systems by utilizing sound axioms and proof rules of dL via compositional reasoning principles of hybrid programs [25,27]. All derivations use classical sequent calculus with standard rules for logical connectives and sequents. A sequent is of the form Γ⊢Δ with semantics (⋀ψ∈Γψ)→Δ, and is valid if and only if the formula is valid. Completed proof branches are marked with *. Since first-order real arithmetic is decidable [8], we assume access to a decision procedure and mark steps justified by real arithmetic with the rule R. An axiom is sound if all its instances are valid. A proof rule is sound if validity of all its premises implies the validity of its conclusion. Axioms and proof rules are derivable if they can be obtained from sound dL axioms and proof rules. The soundness of the base dL axiomatization then guarantees the soundness of all derived axioms and proof rules [25,27,30]. An overview of the base dL calculus is provided in Appendix A.1.
Γ1⊢ϕ1⋯Γn⊢ϕn⋮(hybridprogramreasoning)Γ⊢[α]ϕ
Figure 1: Proofs proceed upwards by deduction, where each reasoning step is justified by sound dL axioms and proof rules.
2.4 Control Systems in dL
In general, control systems are modeled by parameterized ODEs with an explicit control parameter, which represents the control input. For a (compact) control admissible set U⊆Rm, following is a control system, where x∈X⊆Rn is the state variable and u∈U is the control input:
x′=f(x,u)
In dL, however, control systems are modeled as hybrid programs; discrete programs and continuous dynamics paired together along with nondeterministic repetition.
2The complete dL semantics including semantics of ODEs under the diamond modality can be found elsewhere [25, 27, 30].
P. Panja, A. Platzer
In the above formula, ctrl refers to the (discrete) controller and dyn refers to the continuous dynamics, i.e., a system of ODEs. The central reasoning principle for proving hybrid programs is the loop rule [27, Ch. 7, §7.3, Lemma 7.3]. This proof rule decomposes the hybrid program α∗ in an inductive fashion. The most crucial step is showing that formula Inv is an invariant for the hybrid program, more importantly the ODEs in α. Because of this reason the rest of this paper focuses on proving invariants of ODEs, specifically, control invariance of ODEs, which will be defined and looked into in detail in the later sections.
3 Comparison Principle
We begin our endeavor by first taking a look at comparison systems and the comparison principle, which are fundamental tools in the theory of dynamical systems enabling differential inequality reasoning using differential equations [6,9,20,38].
Comparison System. Informally, a comparison system is an auxiliary system of differential equations, which establishes a relation with the original system of differential equations enabling the analysis of properties that were not possible before. For example, for a system of ODEs x′=f(x), if one wants to show a property R(x) holds true given some property P(x) was true initially, instead of proving this implication directly, which often times can be difficult, one might construct a comparison system y′=g(x,y) that enables proving from P(x) a new suitable intermediate property Q(x,y), which implies the intended R(x).
At a high-level, the above dL formula shows how this relation with a comparison system can be established for a suitable Q(x,y) and y′=g(x,y).
Remark 2. Of course, formula (2) requires handling side conditions on the solutions of y′=g(x,y) to maintain soundness. In dL this sound reasoning is achieved by differential ghosts [25, 30, 37], which are proof-theoretic generalizations of comparison systems. The dL axioms DG and BDG allow introducing auxiliary dynamics that abstract from the existing dynamics to simplify proofs.
Lemma 1 (Differential Ghosts [30,37]). The axioms DG and BDG enable sound additions of linear and nonlinear ghost ODEs, respectively, to the existing systems.
A cleverly constructed comparison system can enable reasoning about properties of ODEs with (relative) ease. Once a suitable comparison system has been constructed, there also needs to be a way to relate this system to the original system of ODEs.
The comparison principle emerged as a powerful tool in the qualitative theory of dynamical systems [9, 35, 38], and provides a simple mechanism for relating the solutions of two different differential systems. It plays an integral part in the analysis of partial differential equations (PDEs) [16]. In deductive verification the comparison principle has been successfully leveraged [26] to prove invariance via Hamilton-Jacobi-Isaacs PDEs for differential hybrid games. For ODEs, the comparison principle has been widely used for stability analysis, generalizing the celebrated Lyapunov's direct method, and certifying invariance [6, 9, 20, 35, 38]. Next we will go over the scalar and vector comparison principles and axiomatize them in dL.
P. Panja, A. Platzer
3.1 Scalar Comparison
The scalar comparison principle proves properties about a system of ODEs by relating a scalar differential inequality with another scalar differential equation (comparison system). To demonstrate the scalar comparison principle, consider an n-dimensional system of ODEs x′=f(x,t) whose solution x(t) exists in some compact time interval I=[0,T] for some T>0. For a scalar function h:Rn→R satisfying the following differential inequality, the corresponding one-dimensional comparison system in z can be constructed
h′≥η(h(x),t),z′=η(z(t),t)(3)
where z is a fresh scalar variable and η:R×I→R is an appropriately chosen function (the exact criteria are investigated below). The comparison principle enables one to use the solutions h(x), i.e., h(x(t)) to relate the solutions x(t) of the original system to the solution z(t) of the comparison system. This sound reasoning is possible due an accompanying comparison theorem.
Definition 1 (Local Lipschitz [38, §10.IV]). A function η(⋅) is said to be locally Lipschitz if the following formula is valid, Br(a)≡t≥0∧∥x−a∥2<r2∧∥y−a∥2<r2 is an open ball of radius r.
Theorem 1 (Scalar Comparison Theorem [38, §9.IX]). Let g and h be scalar functions differentiable in I=[ξ,ξ+δ]⊆R and η:D→R locally Lipschitz for some real domain D. If h(ξ)≥g(ξ) and h′−η(h,t)≥g′−η(g,t) in I, then h≥g in I.
This theorem is a general version, which relates two differentiable functions on some (compact) interval. Following is a corollary based on Theorem 1 that directly relates to the system in (3) and is more useful in our case.
Corollary 1. Let h and z be differentiable scalar functions defined on the interval I=[0,T]⊂R where T>0. For some locally Lipschitz function η:R×I→R, if h(0)≥z(0), and if h′≥η(h,t) and z′=η(z,t) holds in I, then h(t)≥z(t) for all t∈I.
Proof. Since z′−η(z,t)=0 and h′−η(h,t)≥0, also h′−η(h,t)≥z′−η(z,t) in I. The rest follows directly from Theorem 1.
An important ingredient of Theorem 1 and Corollary 1 is that the function η(⋅) must be locally Lipschitz, making sure that there are no pathological behaviors in the solution of the differential inequality and the comparison system [38]. The validity of the formula LocLip(η) from Definition 1 ensures that the function η(⋅) is locally Lipschitz, and can be soundly utilized in dL to carry out proofs. Moreover, if η(⋅) is a polynomial, then LocLip(η) is a first-order logic formula over the reals (FOL R), and hence decidable [8].
Remark 3. The function η(⋅), which acts as the bridge relating the differential inequality and the comparison system is often called the comparison function [17]. Different comparison functions with different properties can be chosen depending on the proof requirement [17].
Example 1 (Invariance via Comparison). Consider the following 2D dynamical system
Figure 2: The phase portrait of the system αe with the invariant h≥0 from Example 1 is shown in (a). Figure (b) shows how η(h) changes as h changes. The right figure (c) shows that h(x(t)) is lower bounded by the solution z(t) of the comparison system z′=η(z).
here x=(x1,x2)⊤∈R2. For the system αe and the function h(x)=1−x12−x22, h(x)≥0 is an invariant, as illustrated 3 in Figure 2a. The invariance of h≥0 can be proved using the comparison principle from Corollary 1 by showing h˙≥η(h), where η(h):=h−h3, holds true. As we can see η(⋅) is a nonlinear locally Lipschitz function, Figure 2b shows how η(h) changes when h≥0 or h<0. Now we can construct the comparison system z′=η(z) whose solutions z(t) lower bounds h(x(t)) whenever h(x(0))≥z(0)≥0, making h≥0 an invariant, as can be seen in Figure 2c.
Lemma 2 (Scalar Comparison Principle). The axiom SCP internalizes the scalar comparison principle and is derived syntactically in dL, where the term h represents h(x), and h, z, η(⋅) are scalars.
Proof (Sketch). The axiom is proven syntactically in dL. The full proof can be found in Appendix B.1. At a high level, the proof utilizes axiom BDG to introduce the comparison system z′=η(z,τ) in the antecedent to match the succedent. This enables proving the new invariant exp(kτ)⋅(h−z)≥0 using axioms DC and DI. Where exp(⋅) is the real exponential function, k is the Lipschitz constant, and τ is a variable for tracking time with the associated ODE τ′=1. This new invariant paired with the fact η(⋅) being locally Lipschitz, i.e., LocLip( η), basically says exp(kτ)⋅(h−z) is monotonically increasing, hence proving the original invariant h≥z. □
Axiom SCP in the above lemma internalizes Corollary 1 in dL, which enables sound utilization of the comparison principle in various invariance proofs. At a high level, axiom SCP says for all runs of x′=f(x),τ′=1,z′=η(z,τ) & Q, h is lower-bounded by z, if h≥z was true initially, and for all runs of x′=f(x),τ′=1 & Q, the inequality h˙≥η(h,τ) holds true, for locally Lipschitz η(⋅). Next we will generalize to vectorial case.
3Figure 2 is only meant for illustration purposes and is not a formal proof. The invariance of h≥0 can be formally proven in dL by utilizing axiom SCP.
P. Panja, A. Platzer
3.2 Vector Comparison
Similar to the scalar comparison principle, the vector comparison principle relates the vectorial differential inequality h′≥η(h) to the comparison system z′=η(z). Here z=(z1,…,zn)⊤ is fresh vector of variables and η(⋅) is a locally Lipschitz vector-valued function. Consequently, one might think Theorem 1 and Corollary 1 can be naïvely carried over to the vectorial case to prove h≥z with component-wise ordering, i.e., ⋀i=1nhi≥zi. Unfortunately, this is not true in general and more regularity assumptions are required on η(⋅) [38, §10, Supplement I]. In order to better understand why that is the case consider the following trivial counterexample.
Counterexample 1. For the system x′=f(x), where x∈R2 and f(x)=(0,0)⊤, let h(x)=(0,0)⊤ and η(y1,y2)=(−y2,0)⊤, where h:R2→R2 and η:R2→R2. Clearly η(⋅) is a vector of polynomials, hence, locally Lipschitz, also the following inequality holds
h˙(x)=(0,0)⊤,η(h)=(0,0)⊤,hence,h˙≥η(h).
Now consider the comparison system z′=η(z), where z∈R2 is fresh, with the initial condition z(0)=(0,−1)⊤, this implies h(x(0))≥z(0) holds. Next compute the solutions of the comparison system
From this we can clearly see for all t>0 and any initial value x(0) that h(x(t))≥z(t), which shows η(⋅) just being locally Lipschitz is not enough.
The missing property is, if and only if the locally Lipschitz vector-valued function η(⋅) is quasimonotone increasing then Theorem 1 and Corollary 1 can be lifted to the vectorial case [38, §10.XII]. This property can be encoded as a logical formula and is defined as follows.
Definition 2 (Quasimonotone Increasing [38, §10.XII]). A vector-valued function η(⋅) is called quasimonotone increasing if the following formula is true.
Where x≥y is component-wise ordering i.e., xi≥yi for i=1,…,n.
This quasimonotonicity fact combined with the local Lipschitz condition can now be utilized to lift the scalar comparison theorem to the vectorial case as stated in the following theorem.
Theorem 2 (Vector Comparison Theorem [38, §10.XII]). Let η:D→Rn be quasimonotone increasing and locally Lipschitz for some real domain D, and let v and w be differentiable on I=[ξ,ξ+δ]⊆R. If v(ξ)≥w(ξ) and v′−η(v,t)≥w′−η(w,t) in I, then v≥w in I.
Similar to the scalar case, the above theorem is a general version for differentiable functions on some compact interval. Following is a direct corollary to Theorem 2, which is more suited to relate properties of ODEs.
Corollary 2. For some differentiable vector-valued functions h and z, let η(⋅) be quasimonotone increasing and locally Lipschitz. If h′≥η(h,t) and z′=η(z,t) hold, along with h(0)≥z(0) on I=[0,T]⊂R for some T>0. Then for all t∈I we have h≥z.
Proof. h′≥η(h,t) and z′=η(z,t) imply h′−η(h,t)≥z′−η(z,t). Rest by Theorem 2. □
P. Panja, A. Platzer
This observation termed as the vector comparison principle is axiomatized in dL, which helps in invariance proofs for vectorial postconditions. The following lemma shows the axiom VCP that internalizes Corollary 2 and is derived syntactically in dL's proof calculus.
Lemma 3 (Vector Comparison Principle). The following axiom derives syntactically in dL and enables reasoning about ODE properties using the vector comparison principle. Where h represents h(x), and h, z, and η(⋅) are vectors.
Proof (Sketch). The proof follows similar to the scalar case by introducing the comparison system z′=η(z,τ) using axiom BDG, which enables proving the new invariant exp(kτ)⋅(h−z)≥0 using DC and DI≻. But unlike the scalar case, this time it has to be shown that each component of z is upper-bounded by the respective component of h. In order to show this first exp(kτ)⋅(h−z)≥0 is equivalently rewritten as ⋀i=1n(exp(kτ)⋅(hi−zi)≥0), then we construct an intermediate vector z~=(h1,…,hi−1,zi,hi+1,…,hn)⊤ that agrees with every component of h except for the i-th, where it agrees with z, this enables showing ∥h−z~∥2=(hi−zi)2. This paired with the fact that η(⋅) is locally Lipschitz and more importantly quasimionotone increasing enables proving exp(kτ)⋅(h−z)≥0. The full proof can be found in Appendix B.1.
4 Control Invariance
With the two comparison principle axioms SCP and VCP in place we can move forward with our axiomatic analysis of control invariance.
Example 2 (Adaptive Cruise Control (ACC)). The following ODE models the dynamics of a vehicle following another vehicle in straight line with the explicit time variable τ∈R
Figure 3: Adaptive cruise control system as modeled in Example 2.
αacc≡x′=u,xl′=vl,τ′=1&Q.
Here x,xl∈R are the positions of the follower and lead vehicle, respectively. Variable u∈U is the control input, where U⊆R is some compact set, vl is the constant velocity of the lead vehicle, and Q≡vl≥0∧T≥τ is the domain constraint. For dynamics αacc we can model an adaptive cruise control system, as shown in Figure 3, in dL, which maintains a safe distance from the lead vehicle as follows
Safe→[(ctrl;αacc)∗]Safe(4)
where Safe≡xl−x≥dmin. Taking a closer look, the formula Safe encodes the safety condition that says the distance between the lead vehicle and the follower vehicle must be greater than or equal to the minimum distance ( dmin). Formula (4) can be proven safe in dL for the right implementation of the controller (ctrl). But, before one can construct such a controller one would like to prove whether a control input u∈U even exists that ensures safety, essentially asking the more general question of control invariance, which is formally defined next.
Definition 3 (Control Invariance). Given a control system x′=f(x,u), where x∈Rn and u∈U⊆Rm with f:Rn×Rm→Rn locally Lipschitz, and some set S⊆Rn, control invariance
P. Panja, A. Platzer
is the property that ensures there exists some control input u∈U such that when starting from the set S, the solution of the control system remains in the set S for all future times in the domain of existence i.e., φ(t)∈S, ∀t∈[0,T], for some T>0. The set S is also known as a control invariant set.
Informally, control invariance of S is a property that the system admits, from every state in S, at least one admissible control input that keeps the system inside S as long as the solution exists. One can observe that control invariance asks a more general question of “whether a control input even exists” such that a controller can be constructed for enforcing control invariance. Control invariance properties can be modeled in dL by existentially quantifying over the control input u for the control system x′=f(x,u) i.e.,
S→∃u[x′=f(x,u)&Q]S.(5)
The validity of formulas of the form (5) proves that there always exist some control input that keeps S invariant, implying control invariance. This shows that proving control invariance is more general than proving a control system stays invariant for a concrete controller implementation, like the adaptive cruise control hybrid program (4). Now we move on to developing sound axioms and proof rules, which enable verifying control invariance in dL, this is made possible by comparison invariants, which will be delved into next.
4.1 Comparison Invariants
We now introduce comparison invariants, which enable proving control invariance by proving a functional inequality on their Lie derivative. Comparison invariants are based on the ideas of the comparison principles with an additional regularity enforcement on the comparison functions.
Definition 4 (Class G Functions [17]). A scalar function η(⋅) and a vector-valued function η(⋅) are called (extended) class G if the functions are zero at zero and nondecreasing. They are characterized by the following logical formulas.
The following simple counterexample demonstrates why extra care needs to be taken when handling control systems and the reason comparison invariants require the added regularity over just locally Lipschitz comparison functions even for the scalar case.
Counterexample 2. Consider the control system x′=u, where x∈R and u∈U=[−1,0], with the requirement that h(x)≥0, with h(x):=x, stays invariant. In order to show invariance of h(x)≥0, by the comparison principle from Corollary 1, the system needs to satisfy the inequality
h˙(x)−η(h,t)≥0.
Now choosing η(h,t):=−1, which is locally Lipschitz, but does not satisfy η(0,t)=0 to be a class G function as per Definition 4. We get the inequality u+1≥0, since h˙(x)=x′=u. This shows that every admissible control in U satisfies this inequality, but when the system starts at x(0)=0, and the controller chooses u=−1, we get x(t)=−t<0, meaning h(x)≥0 is no longer invariant, and the system is unsafe. This demonstrates the need for η(0,t)=0, to make sure trajectories cannot escape at the boundary. Now choosing η(h,t):=−h, which is locally Lipschitz and also satisfies η(0,t)=0, but is decreasing and hence is not class G. Now the
P. Panja, A. Platzer
inequality becomes u+h≥0, although this condition still prevents an immediate boundary crossing, its dependence on h is reversed: increasing the value of h(x) decreases η(h,t) and changes the comparison bound in the opposite direction. Consequently, the ordering of the comparison condition is not consistent with the ordering of the h(x) values. By requiring η(⋅) to be nondecreasing, class G functions rule out this reversed dependence, which is useful for construction of practical controllers.
Definition 5 (Comparison Invariant). For a control system x′=f(x,u) with a control admissible set U⊆Rm, and a set S={x∈Rn:h≽0}, where h:Rn→R is a scalar function and ≽ is either ≥ or >, h is said to be a comparison invariant if there exists a comparison function η(⋅) that is locally Lipschitz and class G such that it satisfies the inequality
∀x∈S.∃u∈U.(Lf(x,u)(h)+η(h,t)≥0)
implying control invariance, essentially h≽0 stays invariant, where t∈[0,T] for some T>0.
A key requirement for comparison invariants is the existence of a comparison function that is not just locally Lipschitz but also of class G. As shown by Counterexample 2, this added regularity ensures that the Lie derivative of the comparison invariant h does not get too negative, while at the same time allowing the solution of the control system to, in a sense, move “forward.” The comparison function η(⋅) being class G means whenever h=0, the Lie derivative becomes h˙≥0. Semantically, this invariance argument is corroborated by the comparison principle, which ensures h is lower bounded by the solution of the comparison system z′=η(z), whenever h(0)≥z(0)≥0. Next we axiomatize scalar comparison invariants.
Theorem 3 (Scalar Comparison Invariants). The scalar comparison invariants axiom SCI and proof rule sCI are derivable in dL. Here U characterizes a compact control input set. ( ≽ is either ≥ or >.)
Proof (Sketch). The axiom SCI derives syntactically in dL's proof calculus, the full proof can be found in Appendix B.2.1. The proof utilizes axiom BDG to introduce the comparison system z′=η(z,τ), where z is a fresh scalar variable and η(⋅) is a locally Lipschitz class G function. Then the scalar comparison principle axiom SCP finishes the proof. Proof rule sCI is also derived syntactically as follows.
\begin{array}{r l}&{\wedge\mathrm{R},\mathrm{d W}\frac{\vdash\mathrm{L o c L i p}(\eta)\wedge\mathcal{G}(\eta)\quad Q\vdash\exists u(\mathcal{U}\wedge\dot{h}+\eta(h,\tau)\geq0)}{\vdash\mathrm{L o c L i p}(\eta)\wedge\mathcal{G}(\eta)\wedge[x^{\prime}=\mathbf{f}(x,u),\tau^{\prime}=1\&Q]\exists u(\mathcal{U}\wedge\dot{h}+\eta(h,\tau)\geq0)}}\\ &{\mathrm{s C I}\frac{h\succcurlyeq0\vdash\exists u[x^{\prime}=\mathbf{f}(x,u),\tau^{\prime}=1\&Q]h\succcurlyeq0}\end{array}
The proof utilizes axiom SCI, followed by ∧R and dW resulting in the required premises. ☐
From Theorem 3, proof rule sCI enables proving control invariance by reducing the box modality to two open premises with purely real arithmetic formulas. Importantly, when the comparison function η(⋅) is a polynomial the two resulting premises are formulas of first-order logic over the reals (FOL R) and are, hence, decidable by quantifier elimination [8].
P. Panja, A. Platzer
Example 3 (ACC Revisited). Now we take another look at the adaptive cruise control system from Example 2. Recall αacc≡x′=u,xl′=vl,τ′=1 & Q with Q≡vl≥0∧T≥τ. Also recall, Safe ≡xl−x≥dmin, we can encode this safety condition as h:=xl−x−dmin. Now we would like to prove control invariance for this system by proving the following dL formula
h≥0→∃u[αacc]h≥0.
From our previous developments we know we can prove such formulas using the scalar comparison invariants proof rule sCI:
The Lie derivative of h is computed as h˙=(xl)′−(x)′−(dmin)′=vl−u, observe dmin is a constant. Now in order to complete the proof we need to choose a class G function η(⋅), a sufficient choice is the linear function η(h,τ):=λh, for some positive λ. This function is a polynomial, hence locally Lipschitz, and satisfies the conditions of class G from Definition 4.
Now continuing with the right branch with the unfolded definition of Q, this resulting branch only involves first-order logic formulas over the reals, and hence is decidable [8]. Depending on the specification of the control constraint set U the branch can be closed by real arithmetic R, proving control invariance.
For the control constraint set U≡umax≥u∧u≥0, control invariance of the system can be proven, as u=0 is a valid control input that maintains the safe distance, moreover, the upper bound umax can be computed from the Lie derivative as vl+λh≥u.
Now, similar to how the scalar comparison principle was lifted to the vectorial case, scalar comparison invariants can also be lifted to the so-called vector comparison invariants.
Definition 6 (Vector Comparison Invariants). For a control system x′=f(x,u) with a control admissible set U⊆Rm, and a set S={x∈Rn:h≽0}, where h:Rn→Rn is a vector-valued function and ≽ is either ≥ or > with component-wise ordering i.e., hi≽0 for i=1,…,n, h is said to be a comparison invariant if there exists a vector-valued comparison function η(⋅) that is locally Lipschitz and class G such that it satisfies the following inequality
∀x∈S.∃u∈U.(Lf(x,u)(h)+η(h,t)≥0)
that implies control invariance, hence h≽0 stays invariant, where t∈[0,T] for some T>0.
As we can see from the above definition, vector comparison invariants lift scalar comparison invariants to n-dimensional vectors with component-wise ordering of the inequalities. Consequently, scalar comparison invariants are a special case of vector comparison invariants when n = 1. Next we axiomatize vector comparison invariants for vectorial control invariance proofs.
P. Panja, A. Platzer
Theorem 4 (Vector Comparison Invariants). The vector comparison invariants axiom VCI and proof rule vCI derive syntactically in dL. The compact control input set is represented by the formula U. ( ≽ is either ≥ or >.)
Proof (Sketch). Similar to the proofs of the previous axioms, the proof of axiom VCI uses axiom BDG to introduce the comparison system z′=η(z,τ), where z is a fresh vector of variables, then the proof is finished by axiom VCP. Similarly, the proof rule with two open premises is derived as follows. The full proof can be found in Appendix B.2.1.
\begin{array}{r l}&{\mathrm{A R,d W}\frac{\vdash\mathrm{L o c L i p}(\pmb{\eta})\wedge\mathcal{G}_{\mathrm{v e c}}(\pmb{\eta})\quad Q\vdash\exists u(\mathcal{U}\wedge\dot{\mathbf{h}}+\pmb{\eta}(\mathbf{h},\tau)\geq0)}{\vdash\mathrm{L o c L i p}(\pmb{\eta})\wedge\mathcal{G}_{\mathrm{v e c}}(\pmb{\eta})\wedge[x^{\prime}=\mathbf{f}(x,u),\tau^{\prime}=1\&Q]\exists u(\mathcal{U}\wedge\dot{\mathbf{h}}+\pmb{\eta}(\mathbf{h},\tau)\geq0)}}\\ &{\mathrm{V C I}\frac{\mathbf{h}\succcurlyeq0\vdash\exists u[x^{\prime}=\mathbf{f}(x,u),\tau^{\prime}=1\&Q]\mathbf{h}\succcurlyeq0}\end{array}
The required premises are derived using VCI, ∧R, and dW.
With this we successfully axiomatized scalar and vector comparison invariants in dL.
Comparison invariants are an important and general class of invariants, which will be further showcased in their use for axiomatizing control barrier functions next.
4.2 Control Barrier Functions
First introduced by Ames et al. [3–5], control barrier functions (CBFs) have risen to popularity in the past decade as a go-to method for synthesizing safe controllers. CBF-based quadratic programming as an optimal control method provides an efficient way for enforcing safety with formal guarantees [3]. However, these formal safety guarantees are only enforced by the synthesized controller if the CBF used to synthesize it was a valid CBF in the first place, and verifying which is a nontrivial task [11].
Definition 7 (Class K Functions [17]). A function is called an (extended) class K function if it is zero at zero and strictly increasing. Class K functions are encoded as the following.
Where η(⋅) and η(⋅) are scalar and vector-valued functions, respectively.
Observe that class K functions have a stronger requirement of strictly increasing as compared to class G, which are nondecreasing, meaning every class K function is also class G, but not the other way around.
Definition 8 (Control Barrier Function [5]). For a sublevel set S={x∈Rn:h(x)≥0}, where h:Rn→R is a continuously differentiable scalar function, h(x) is called a control barrier function for the control system x′=f(x,u) with the control admissible set U if there exists a class K function γ(⋅) such that the following inequality holds:
∀x∈S.∃u∈U.(Lf(x,u)(h(x))+γ(h(x))≥0)
implying h(x)≥0 stays invariant along x′=f(x,u).
P. Panja, A. Platzer
Remark 4. Definition 8 gives the standard definition of CBFs as found in the literature [3–5,11], where the class K function γ(⋅) is the special time-independent case of Definition 7. In order to reason about CBFs in dL, however, we require the use of Definition 7 with the special time-tracking variable τ in order to facilitate proofs, as previously mentioned in Remark 1.
We can already see that CBFs are essentially (scalar) comparison invariants with the added regularity that the comparison function η(⋅) is class K, rather than the more general class G. The key distinction is that class K functions are strictly increasing, so the allowable system behavior changes predictably with the CBF value. In practice, this gives CBFs additional structure for balancing safety with other control objectives, such as stability, tracking, or performance.
Corollary 3 (Control Barrier Functions). The following axiom and proof rule derive syntactically in dL and can be utilized to prove the validity of scalar control barrier functions. Here U characterizes a compact set.
Proof (Sketch). Axiom CBF is proven syntactically in dL using SCI. The full proof can be found in Appendix B.2.2. The proof rule cbf is derived as follows.
The required two open premises are derived using axiom CBF, followed by ∧R and dW.
The above corollary shows how CBFs can be axiomatized in dL, and happen to be a special instance of comparison invariants. The resulting axiom CBF and proof rule cbf enable proving control invariance using a valid CBF and conversely verify the validity of candidate CBFs.
As per Definition 8, standard CBFs are scalar functions, in many instances, however, these are not enough to enforce safety, especially when multiple safety constraints need to be satisfied at the same time. To this end, the so-called vector control barrier functions extend the standard scalar CBFs to vector-valued functions [1, 32]. Similar to scalar CBFs, these vector CBFs enforce safety by ensuring h(x)≥0, where the inequality is component-wise i.e., hi(x)≥0 for i=1,…,n, stays invariant. The following corollary axiomatizes vector CBFs in dL as a special instance of vector comparison invariants.
Corollary 4 (Vector Control Barrier Functions). The following axiom and proof rule can be used to verify vector control barrier functions, and are derivable in dL. Here the formula U characterizes a compact set.
Proof (Sketch). Both the axiom VCBF and proof rule vcbf are derived syntactically in dL. In particular, the proof of axiom VCBF utilizes the vector comparison invariants axiom VCI. The complete proof can be found in Appendix B.2.2. The proof rule derives from axiom VCBF as follows.
This axiomatization shows one can prove control invariance properties in dL using a valid control barrier function with the right choice of comparison function. Consequently, it is also possible to verify a candidate control barrier function in dL for a particular control system. In the next section we will see more special instances of comparison invariants.
5 Special Instances
We have already seen in the previous section how the axiomatization of control barrier functions, both scalar and vector, was made possible using comparison invariants. This section gives some more special cases of comparison invariants including Darboux invariants and differential invariants, further bolstering their versatility.
5.1 Darboux Invariants
Here we look at an important class of invariants known as Darboux invariants as they are inspired by Darboux polynomials [30, Section 3]. At a high-level any polynomial p that satisfies the polynomial inequality p˙≥gp for some cofactor polynomial g ensures p≽0 stays invariant.
Semantically this invariance property is ensured by Grönwall's lemma [30,38, §29.VI]. It will be shown that the same invariance observation can be drawn using the comparison principle, specifically, comparison invariants. Moreover, the two existing dL axioms DBX ≻ and VDBX internalizing Darboux invariants are derived syntactically using comparison invariants.
Corollary 5 (Scalar Darboux [30, Lemma 3.1]). The existing dL axiom DBX≻ for scalar Darboux invariants is derivable using axiom SCI. ( ≻ is either ≥ or >.)
Proof (Sketch). The axiom is derived when the comparison function is defined as η(p,τ)=g⋅p for some cofactor polynomial g=g(x,τ). The full derivation can be found in Appendix B.3. □
The corollary above showed the derivation of scalar Darboux invariants using scalar comparison invariants. Similarly, vectorial Darboux invariants can also be derived using vector comparison invariants as shown in the following corollary.
Corollary 6 (Vectorial Darboux [30, Lemma 4.1]). The existing dL axiom VDBX for vectorial Darboux invariants is derivable using axiom VCI.
Proof (Sketch). The axiom is derived by first rewriting p=0↔−p≥0∧p≥0, after which axiom VCI is applied with comparison functions, η(p,τ)=G⋅p. Where G is an essentially positive matrix or Metzler matrix [35,38]. The full proof can be found in Appendix B.3.
As we saw from Corollary 5 and Corollary 6, comparison invariants generalize Darboux invariants. Next we will see another special instance of comparison invariants, namely, differential invariants.
5.2 Differential Invariants
Another simple consequence of (scalar) comparison invariants are differential invariants. Differential invariants relate invariance of scalar inequalities of the form p≽0 to their Lie derivative inequality p˙≥0 over the entire domain Q. The following shows the derivation of the differential invariants proof rule dI≻ tailored to control systems.
Corollary 7 (Differential Invariants [27]). The existing differential invariants proof rule dI≻ is a special instance of comparison invariants and is derivable using rule sCI. ( ≻ is either ≥ or >.)
dI≻p≽0⊢∃u[x′=f(x,u),τ′=1&Q]p≽0Q⊢p˙≥0
Proof (Sketch). The proof is straight forward when the comparison function is the zero function, i.e., η(p,τ)=0⋅p. The full derivation can be found in Appendix B.3.
These special instances showcase the versatility of comparison invariants as the central unifying idea behind various proof techniques for invariance verification. It also shows that the chosen comparison systems in the comparison principle axioms SCP and VCP are very general, and can relate various invariance properties with the right choice of the scalar and vector comparison functions η(⋅) and η(⋅), respectively.
6 Related Work
Invariance in Dynamical Systems. Checking whether a given set is invariant under the flow of an ODE has been a central interest in the field of dynamical systems [7, 19, 33, 38], going all the way back to the theorem of Nagumo, which gives conditions for proving (positive) invariance of closed sets [7, 19]. The comparison principle, a prominent technique for relating solutions of two differential equations using differential inequalities, provides an alternative method for proving invariance of both open and closed sets [38]. More (relatively) recently barrier certificates, first introduced by Prajna et al. [31], gained popularity as a Lyapunov-like technique for verifying invariance [21]. Vector barrier certificates introduced by Sogokon et al. [35], generalizing scalar barrier certificates, primarily utilized the comparison principle as the basis.
Control Invariance. A similar question of whether a set is invariant under the flow of a control system has also been a central concern in control theory [7, 10, 33]. In the field of reachability analysis geometric set representations like zonotopes and ellipsoids have been utilized to characterize control invariant sets [7, 34]. First introduced by Ames et al. [4], control barrier functions have gained immense popularity in the past decade for being an efficient means for synthesizing safety enforcing controllers [3, 5, 39]. Recently, Clark [11] gave a semialgebraic framework using semidefinite programming for verifying control barrier functions.
P. Panja, A. Platzer
Deductive Verification. Unlike the numerical methods [7,11,34], deductive verification methods utilize a symbolic and logical approach to proving invariance of dynamical systems. To this end Taly et al. [36], and Ghorbal et al. [13] have shown ODE invariance can be proven using a hierarchy of sound but incomplete proof rules. In the logic dL, completeness of algebraic and semialgebraic invariance has been shown by Platzer and Tan [29], with later extensions to Noetherian functions [30]. Synthesis of control invariants, specifically control envelopes, have been successfully undertaken by Kabra et al. [15], using differential game logic (dGL). Recently Hellwig et al. [14], showed the verification of zonotope-based control envelopes in dL. Control invariance has also been studied by Platzer [26] from the lens of differential hybrid games.
7 Conclusion
In this paper we presented an axiomatization for verifying control invariance in differential dynamic logic (dL). This was made possible by first axiomatizing the scalar and vector comparison principles, which served as the central proof principles underlying our proofs. We introduced scalar and vector comparison invariants leading to a dedicated set of axioms and proof rules that reduce proving control invariance to proving a functional inequality on its Lie derivative. Finally, we axiomatized control barrier functions, which along with Darboux and differential invariants were shown to be special instances of comparison invariants.
For future work we will be implementing the presented axioms and proof rules in the theorem prover KeYmaera X [12]. Since all the presented axioms and proof rules were derived syntactically in dL, they can be implemented as tactics on top of a soundness-critical prover kernel [12]. We will further be looking at deriving completeness results for proving control invariance in dL.
Acknowledgements. We thank the anonymous reviewers for their helpful feedback. We also thank Adrian Kulmburg for his feedback on an earlier version of this work including his suggestion of utilizing the fact that locally Lipschitz functions are bounded on a compact domain in the proofs. This work was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – SFB 1608 – 501798263.
References
[1] Ahmed Allibhoy and Jorge Cortés. Control-barrier-function-based design of gradient flows for constrained nonlinear programming. IEEE Transactions on Automatic Control, 69(6):3499–3514, 2023. doi:10.1109/TAC.2023.3306492.
[2] Rajeev Alur. Principles of cyber-physical systems. MIT press, 2015. doi:10.1017/9781107588981.
[3] Aaron D Ames, Samuel Coogan, Magnus Egerstedt, Gennaro Notomista, Koushil Sreenath, and Paulo Tabuada. Control barrier functions: Theory and applications. In 2019 18th European control conference (ECC), pages 3420–3431. Ieee, 2019. doi:10.23919/ECC.2019.8796030.
[4] Aaron D Ames, Jessy W Grizzle, and Paulo Tabuada. Control barrier function based quadratic programs with application to adaptive cruise control. In 53rd IEEE conference on decision and control, pages 6271–6278. IEEE, 2014. doi:10.1109/CDC.2014.7040372.
[5] Aaron D Ames, Xiangru Xu, Jessy W Grizzle, and Paulo Tabuada. Control barrier function based quadratic programs for safety critical systems. IEEE Transactions on Automatic Control, 62(8):3861–3876, 2016. doi:10.1109/TAC.2016.2638961.
[6] Richard Bellman. Vector lyapunov functions. Journal of the Society for Industrial and Applied Mathematics, Series A: Control, 1(1):32–34, 1962. doi:10.1137/0301003.
P. Panja, A. Platzer
[7] Franco Blanchini, Stefano Miani, et al. Set-theoretic methods in control, volume 78. Springer, 2008. doi:10.1007/978-3-319-17933-9.
[8] Jacek Bochnak, Michel Coste, and Marie-Françoise Roy. Real algebraic geometry, volume 36. Springer Science & Business Media, 2013. doi:10.1007/978-3-662-03718-8.
[9] Debasish Chatterjee and Daniel Liberzon. Stability analysis of deterministic and stochastic switched systems via a comparison principle and multiple lyapunov functions. SIAM Journal on Control and Optimization, 45(1):174–206, 2006. doi:10.1137/040619429.
[10] Carmen Chicone. Ordinary differential equations with applications. Springer, 2006. doi:10.1007/978-3-031-51652-8.
[11] Andrew Clark. A semi-algebraic framework for verification and synthesis of control barrier functions. IEEE Transactions on Automatic Control, 2024. doi:10.1109/TAC.2024.3497001.
[12] Nathan Fulton, Stefan Mitsch, Jan-David Quesel, Marcus Völp, and André Platzer. KeYmaera X: An axiomatic tactical theorem prover for hybrid systems. In Amy P. Felty and Aart Middeldorp, editors, CADE, volume 9195 of LNCS, pages 527–538. Springer, 2015. doi:10.1007/978-3-319-21401-6_36.
[13] Khalil Ghorbal, Andrew Sogokon, and André Platzer. A hierarchy of proof rules for checking positive invariance of algebraic and semi-algebraic sets. Computer Languages, Systems and Structures, 47(1):19–43, 2017. doi:10.1016/j.cl.2015.11.003.
[14] Jonathan Hellwig, Lukas Schäfer, Long Qian, André Platzer, and Matthias Althoff. From zonotopes to proof certificates: A formal pipeline for safe control envelopes. In International Conference on Integrated Formal Methods, pages 248–267. Springer, 2025. doi:10.1007/978-3-032-10794-7_13.
[15] Aditi Kabra, Jonathan Laurent, Stefan Mitsch, and André Platzer. Cesar: control envelope synthesis via angelic refinements. In International Conference on Tools and Algorithms for the Construction and Analysis of Systems, pages 144–164. Springer, 2024. doi:10.1007/978-3-031-57246-3_9.
[16] Bernhard Kawohl and Nikolay Kutev. Comparison principle and lipschitz regularity for viscosity solutions of some classes of nonlinear partial differential equations. FUNKCIALAJ EKVACIOJ SERIO INTERNACIA, 43(2):241–254, 2000.
[17] Christopher M Kellett. A compendium of comparison function results. Mathematics of Control, Signals, and Systems, 26(3):339–374, 2014. doi:10.1007/s00498-014-0128-8.
[18] Hassan K Khalil and Jessy W Grizzle. Nonlinear systems, volume 3. Prentice hall Upper Saddle River, NJ, 2002.
[19] Thomas Mejstrik. Some remarks on nagumo's theorem. Czechoslovak mathematical journal, 62(1):235–242, 2012. doi:10.1007/s10587-012-0008-7.
[20] Sergey G Nersesov and Wassim M Haddad. On the stability and control of nonlinear dynamical systems via vector lyapunov functions. IEEE Transactions on automatic control, 51(2):203–215, 2006. doi:10.1109/TAC.2005.863496.
[21] Promit Panja and André Platzer. Correct-by-construction barrier certificate synthesis for safety verification of continuous dynamical systems. In 64th IEEE Conference on Decision and Control, CDC 2025, Rio de Janeiro, Brazil, December 9-12, 2025, pages 7701–7707. IEEE, 2025. doi:10.1109/CDC57313.2025.11312663.
[22] André Platzer. Differential dynamic logic for hybrid systems. J. Autom. Reas., 41(2):143–189, 2008. doi:10.1007/s10817-008-9103-8.
[23] André Platzer. Logical Analysis of Hybrid Systems: Proving Theorems for Complex Dynamics. Springer, Heidelberg, 2010. doi:10.1007/978-3-642-14509-4.
[24] André Platzer. The complete proof theory of hybrid systems. In LICS, pages 541–550. IEEE, 2012. doi:10.1109/LICS.2012.64.
[25] André Platzer. A complete uniform substitution calculus for differential dynamic logic. J. Autom. Reas., 59(2):219–265, 2017. doi:10.1007/s10817-016-9385-1.
[27] André Platzer. Logical Foundations of Cyber-Physical Systems. Springer, Cham, 2018. doi:10.1007/978-3-319-63588-0.
[28] André Platzer and Long Qian. Axiomatization of compact initial value problems: Open properties. J. ACM, 72(6):1–51, 2025. doi:10.1145/3763228.
[29] André Platzer and Yong Kiam Tan. Differential equation axiomatization: The impressive power of differential ghosts. In Anuj Dawar and Erich Grädel, editors, LICS, pages 819–828, New York, 2018. ACM. doi:10.1145/3209108.3209147.
[30] André Platzer and Yong Kiam Tan. Differential equation invariance axiomatization. J. ACM, 67(1):6:1–6:66, 2020. doi:10.1145/3380825.
[31] Stephen Prajna and Ali Jadbabaie. Safety verification of hybrid systems using barrier certificates. In International workshop on hybrid systems: Computation and control, pages 477–492. Springer, 2004. doi:10.1007/978-3-540-24743-2_32.
[32] Wei Ren, Jingjie Li, Junlin Xiong, and Xi-Ming Sun. Vector control lyapunov and barrier functions for safe stabilization of interconnected systems. SIAM Journal on Control and Optimization, 61(5):3209–3233, 2023. doi:10.1137/22m1530422.
[33] Shankar Sastry. Nonlinear systems: analysis, stability, and control, volume 10. Springer Science & Business Media, 2013. doi:10.1007/978-1-4757-3108-8.
[34] Lukas Schäfer, Felix Gruber, and Matthias Althoff. Scalable computation of robust control invariant sets of nonlinear systems. IEEE Transactions on Automatic Control, 69(2):755–770, 2023. doi:10.1109/TAC.2023.3275305.
[35] Andrew Sogokon, Khalil Ghorbal, Yong Kiam Tan, and André Platzer. Vector barrier certificates and comparison systems. In Klaus Havelund, Bill Roscoe, and Jan Peleska, editors, FM, volume 10951 of LNCS, pages 418–437. Springer, 2018. doi:10.1007/978-3-319-95582-7_25.
[36] Ankur Taly and Ashish Tiwari. Deductive verification of continuous dynamical systems. In IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (2009), pages 383–394. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik, 2009. doi:10.4230/LIPIcs.FSTTCS.2009.2334.
[37] Yong Kiam Tan and André Platzer. An axiomatic approach to existence and liveness for differential equations. Formal Aspects Comput., 33(4):461–518, 2021. Special issue for selected papers from FM'19. doi:10.1007/s00165-020-00525-0.
[38] Wolfgang Walter. Ordinary differential equations, volume 182. Springer Science & Business Media, 2013.
[39] Wei Xiao and Calin Belta. High-order control barrier functions. IEEE Transactions on Automatic Control, 67(7):3655–3662, 2021. doi:10.1109/TAC.2021.3105491.
A dL Proof Calculus
The lemmas listed in this Appendix give a brief list of dL's sound axioms and proof rules for reference. We primarily look at the axioms and proof rules for reasoning about differential equations. The complete proof calculus for hybrid systems along with its soundness proofs can be found elsewhere [24, 25, 27, 30].
A.1 Base Calculus
The following lemma states the base axioms and proof rules of dL, which are standard for modal and dynamic logics.
Proof. The soundness proofs of these axioms and proof rules can be found elsewhere [25,27]. ☐
Lemma 5 lists the differential equation axioms of dL. These sound axioms enable deductive verification of ODE properties, which serve as an essential tool for the analytic completeness of ODE invariance in dL [30].
Lemma 5 (Differential axioms). The following axioms enable sound reasoning of differential equations.
Proof. Soundness proofs of differential axioms of dL are presented elsewhere [25,27,30]. ☐
A.2 Derived Axioms and Rules
Lemma 6 lists some standard derived dL axioms and proof rules that are derived from the previously stated base axioms. These will come in handy throughout the proofs and derivations presented in this paper.
Proof. The proof of these derived axioms and proof rules can be found elsewhere [27,30]. ☐
B Proofs
This appendix provides the complete proofs of the presented axioms and proof rules. All the derivations are conducted syntactically in the sound proof calculus of dL.
P. Panja, A. Platzer
B.1 Comparison Principle
Here we provide the proofs of the axioms SCP and VCP, which internalize the scalar and vector comparison principles in dL, respectively, and serve as the basis for the rest of the presented axioms and proof rules.
Proof (Lemma 2). The axiom SCP is proven syntactically in dL's proof calculus. The following abbreviations are used throughout the proof.
The resulting premise from DC is proved by an application of dI≻, because Q⊢τ′≥0 is provable as τ′=1.
Continuing from there, the comparison system z′=η(z,τ) is introduced in the antecedent by an application of BDG, resulting in two premises. The left premise is abbreviated as a◯ and right premise as b◯, which will be proven separately.
Now continuing with the right premise b◯. We need to prove that the solution of the comparison system z′=η(z,τ) is bounded from above by cτ, where τ is the solution of the ODE τ′=1 and c is some real constant. Basically this implies that the solution of the comparison system does not blow-up in the (compact) domain of existence. In order to show this we first begin by applying axiom DI≻ followed by axiom ()′.
Continuing from there an application of axioms DE and [:=] replaces the prime variables. After which an application of dW removes the box modality. Observe that the formula Γ is kept soundly in the context as it is quantified.
Now we are left to prove the remaining real arithmetic. To do so first we need to unfold the definition of LocLip(η) with Br(a)≡t≥0∧∥x−a∥2<r2∧∥y−a∥2<r2 as follows.
Now instantiating the quantifiers as, δ≥0, a=0, r>0, k≥0, t=τ, x=z, and y=0, we get
τ≤δ2∧∥z∥2<r2→∥η(z,τ)−η(0,τ)∥2≤k2∥z∥2
The premise on the left of the implication is provable in real arithmetic. Since z and η(⋅) are scalars we can rewrite the right of the above implication without the norms, as following.
(η(z,τ)−η(0,τ))2≤k2z2(6)
Now by rewriting the following inequality we can derive the required inequality on 2z⋅η(z,τ) as follows.
0≤(z−η(z,τ))22z⋅η(z,τ)≤z2+η(z,τ)2
(7)
This shows in order to prove the given arithmetic we need to give an upper bound on z2 and η(z,τ)2, respectively. We already know ∥z∥2<r2, which implies z2<r2, since z is a scalar. Now we are left with determining a bound on η(z,τ)2. Continuing from (6) we can rearrange terms as following.
First using (6) we can replace some terms such that they cancel out. Then we use the standard inequality (a+b)2≤2a2+2b2 to get the following upper bound on η(z,τ)2.
Recall from Section 2.1.1, according to the term syntax of dL, fixed function symbols like η(⋅) are continuous in their respective arguments. Since we know η(⋅,τ) is locally Lipschitz and continuous in τ, therefore it is bounded on a compact domain. From the context of the sequent we know τ≥0 and τ≤δ2, which means the domain of τ i.e., the interval [0,δ2] is compact. This implies there exists some M≥0, such that η(0,τ)2≤M2 is true. This implies the following upper bound on η(z,τ)2.
η(z,τ)2≤2k2z2+2M2
With that we have all the ingredients for cooking up our upper bound. Finally, going back to inequality (7) we have
Now we can first cut in M≥0, whose square acts as the upper bound on η(0,τ)2, and then we can cut in c=r2(1+2k2)+2M2. The branch closes with the application of R.
Coming back to the left premise a◯ from the application of BDG, the proof continuous with the addition of h˙≥η(h,τ) to the domain constraint of the succedent by an application of DC. Next, M[′] monotonically rewrites the postcondition in the antecedent to h−z≥0.
Now we cut in the provable formula exp(kτ)⋅(h−z)≥0 using cut and R. After that the postcondition in the succedent is monotonically replaced by exp(kτ)⋅(h−z)≥0 using M[′].
Now we proceed to proving this new invariant exp(kτ)⋅(h−z)≥0. Where exp(⋅) is the real exponential function, k is the Lipschitz constant, and τ is the variable for tracking passage of time. The insight here is that by proving this new invariant we will essentially prove exp(kτ)⋅(h−z) is monotonically increasing, which would mean h−z≥0 is true for all time as long as the solution of the ODEs exists. We continue by applying axiom DI≻.
All the resulting differential variables appearing in the postcondition after applying ()' axiom are replaced by appropriate terms from the context of the ODE αxτz by DE and [:=].
Continuing from there, we first unfold Γ≡h≥z∧LocLip(η) then apply dW to remove the box modality, again LocLip(η) is kept soundly in the context since it is quantified.
We know that exp(kτ)≥0 always, this leaves us with proving k(h−z)+η(h,τ)−η(z,τ)≥0. Now we first unfold LocLip(η) and instantiate the quantifiers appropriately, in particular r>0, k≥0, x=z, and y=h.
Br(a)→∥η(z,τ)−η(h,τ)∥2≤k2∥z−h∥2
P. Panja, A. Platzer
Br(a) is provable for some arbitrary a, implying h and z are in the open ball of radius r. Continuing with the succedent.
After propositional rewriting the proof begins by adding τ≥0 to the domain constraint with the resulting premise from DC being proved by dI≻ as Q⊢τ′≥0 is provable as τ′=1.
Next we add the comparison system z′=η(z,τ) to the antecedent by an application of BDG, resulting in two premises with the left and right premise abbreviated as a◯ and b◯, respectively.
Continuing with the right premise b◯. This open premise requires us to prove that the solution of the newly introduced comparison system z′=η(z,τ) is upper bounded by the solution of the ODE τ′=1. Essentially saying that the solution z does not blow up in the compact domain of existence. This is shown by applying axiom DI≻ followed by dW.
Now instantiating the quantifiers as, δ≥0, a=0, r>0, k≥0, t=τ, x=z, and y=0, we get
τ≤δ2∧∥z∥2<r2→∥η(z,τ)−η(0,τ)∥2≤k2∥z∥2
The premise on the left of the implication is provable in real arithmetic. Now using Young's inequality i.e., ab≤pap+qbq, for p=q=2, we get the following relation.
2∥z∥∥η(z,τ)∥≤∥z∥2+∥η(z,τ)∥2
Also using the standard inequality (a+b)2≤2a2+2b2 after rewriting η(z,τ)=(η(z,τ)−η(0,τ))+η(0,τ) we get the following relation.
Now recall from Section 2.1.1 the term syntax of dL ensures that the function η(⋅,τ) is continuous in all its arguments, and we also know η(⋅,τ) is locally Lipschitz, which implies it is bounded on a compact domain. Now from the context we have τ≥0 and τ≤δ2, which means the interval [0,δ2] is compact. Hence, there exists a real M≥0 such that ∥η(0,τ)∥2≤M2. This gives us the following inequality.
∥η(z,τ)∥2≤2k2∥z∥2+2M2
We already know ∥z∥2≤r2, combining this with the above inequalities we get,
2∥z∥∥η(z,τ)∥≤∥z∥2+2k2∥z∥2+2M2≤r2(1+2k2)+2M2
Now using the Cauchy-Schwarz inequality i.e., ∣v⋅w∣≤∥v∥∥w∥, we get an upper bound on our required inequality.
2z⋅η(z,τ)≤2∥z∥∥η(z,τ)∥≤r2(1+2k2)+2M2
By cutting in M≥0 and c=r2(1+2k2)+2M2 and instantiating all the quantifiers as showed above the branch closes with R.
Continuing with the open premise a◯. We first add h˙≥η(h,τ) to the domain constraint in the succedent. Then we rewrite the postcondition in the succedent to h−z≥0 using M[′].
Next we cut in the provable formula exp(kτ)⋅(h−z)≥0. Where exp(⋅) is the real exponential function and k is the Lipschitz constant. Then the postcondition in the succedent is replaced by exp(kτ)⋅(h−z)≥0 using M[′], which acts as the new invariant.
Since all the vector inequality h−z≥0 is component-wise and exp(kτ) is a scalar, the real arithmetic equivalence exp(kτ)⋅(h−z)≥0↔⋀i=1n(exp(kτ)⋅(hi−zi)≥0), where each hi and zi are scalars. The postcondition in the succedent is rewritten to this equivalence using M[′].
Now with the application of ∧R we get n stacked open premises, each of them consisting a box modality with one of the scalar components of the original vector inequality.
From here we will only focus on the i-th component, as the same result can be followed for all the n premises. Since we have a scalar inequality in the postcondition we can continue by applying axiom DI≻.
All the resulting differential variables appearing in the postcondition after applying ()' axiom are replaced by appropriate terms from the i-th component of the ODE αxτz by DE and [:=].
Continuing from there, we first unfold Γ≡h≥z∧LocLip(η)∧QuasiMon(η) then apply dW to remove the box modality, LocLip(η) and QuasiMon(η) are kept soundly in the context as they are quantified.
First we rewrite h˙−η(h,τ)≥0↔⋀i=1n(h˙i−ηi(h,τ)≥0), since the vector inequality holds component-wise. Now observe that we have h˙i≥ηi(h,τ) in the assumption, which implies the following
We know that exp(kτ)≥0 always, this leaves us with proving k(hi−zi)+ηi(h,τ)−ηi(z,τ)≥0. We continue proving this inequality by first constructing the following vector,
z~=(h1,…,hi−1,zi,hi+1,…,hn)⊤
which says the vectors z~ and z agree on the i-th component, i.e., z~i=zi, and the vectors z~ and h agree on every component except i-th, i.e., z~j=hj for all j=i. Unfolding QuasiMon( η), we have by quasimonotonicity,
z≤z~→i=1⋀n(zi=z~i→ηi(z,τ)≤ηi(z~,τ))
we can rewrite the right side of the inner implication as,
Now unfolding the LocLip( η) with a=h, r>0, k≥0, t=τ, x=h, and y=z~, we get from Br(a)
∥h−h∥2<r2∧∥z~−h∥2<r2
Recall that the vectors z~ and h agree on all components except the i-th. Hence, we get this relation ∥z~−h∥2=(hi−zi)2<r2. From local Lipschitz we get,
∥η(h,τ)−η(z~,τ)∥2≤k2∥h−z~∥2
We know the i-th component is bounded by the norm,
This finishes the proof of the i-th component, which is one of the n open premises. By following this procedure n-times all the open premises are closed finishing the proof of axiom VCP.
B.2 Control Invariance
All the axioms and proof rules presented in this paper, which enable sound reasoning of control invariance in dL are proved here.
B.2.1 Comparison Invariants
Proof (Theorem 3). The following abbreviations are used throughout the proof.
(SCI) After propositional rewriting the proof starts by resolving the existential quantifier in the succedent using ∃R, such that the resulting right-hand side of the ODE f(x,u,τ) is still locally Lipschitz after replacing u with some Skolem function (also a polynomial). After that DC and dI≻ add τ≥0 to the domain constraint of the succedent.
Continuing with b◯. This open premise says we have to show the solution of the introduced comparison system z′=η(z,τ) is bounded from above by the solution of the ODE τ′=1. Following in similar steps from the proof of axiom SCP, we apply axiom DI≻ followed by ()′.
Here Br(a)≡t≥0∧∥x−a∥2<r2∧∥y−a∥2<r2, similarly we unfold the definition of G(η) as following.
∀t∀x∀y(η(0,t)=0∧(x≤y→η(x,t)≤η(y,t)))
Next instantiating the quantifiers as δ≥0, a=0, r>0, k≥0, t=τ, x=z, and y=0 we get the following from the definition of local Lipschitz.
τ≤δ2∧∥z∥2<r2→∥η(z,τ)−η(0,τ)∥2≤k2∥z∥2
Now from the definition of G(η) we know η(0,τ)=0, which implies the following.
τ≤δ2∧∥z∥2<r2→∥η(z,τ)∥2≤k2∥z∥2
The left of the implication is provable in real arithmetic. The terms right of the implication can be rewritten without norms as z and η(⋅) are scalars.
η(z,τ)2≤k2z2
Now after expanding and then rearranging the terms in the following inequality we get.
0≤(z−η(z,τ))22z⋅η(z,τ)≤z2+η(z,τ)2
We also already know that ∥z∥2<r2, rewriting it equivalently without the norm we get z2<r2. With that we have our upper bounds in z2 and η(z,τ)2, which are combined as follows to get the desired upper bound.
2z⋅η(z,τ)≤z2+η(z,τ)2≤z2+k2z2≤r2(1+k2)
The branch closes by cutting in c=r2(1+k2) followed by R.
Now continuing with the open left premise a◯ from the application of BDG. We first add z≽0 ( ≽ is either ≥ or >) to the domain constraint of the succedent using DC, resulting in two premises c◯ and d◯.
From there, the formula h≥z is cut into the antecedent by first cutting in ∃z(z=h), which combined with h≽0 implies h≥z. After that M[⋅] rewrites the postcondition in the antecedent to U∧h˙+η(h,τ)≥0, which is provable by resolving the existential quantifier.
Next the conjunction in the postcondition of the antecedent is decomposed using [⋅]∧. The formula [αxτ&Qτ]U is dropped from the context by weakening as it is not required from here on. After that an application of DC adds z≽0 to the domain constraint of the antecedent to match the succedent, resulting in two open premises labeled e◯ and f◯.
Getting back to the open right premise d◯, M[⋅] rewrites the postcondition of the box modality in the succedent to exp(kτ)⋅z≽0. Here exp(⋅) is the real exponential function, k is the Lipschitz constant, and τ is the time variable. After that an application of cut and R adds ∃z(h=z) to the antecedent.
Now after applying axioms DE, [=], and then weakening dW, we are left proving the resulting real arithmetic. Again all the quantified formulas are soundly kept into context.
We know exp(kη)≥0, so it suffices to prove kz+η(z,τ)≥0. Now unfolding LocLip(η) and G(η) with the quantifiers instantiated as δ≥0, a=0, r>0, k≥0, t=τ, x=z, and y=0 we get the following implication.
τ≤δ2∧∥z∥2<r2→∥η(z,τ)−η(0,τ)∥2≤k2∥z∥2
From the definition of G(η) we know η(0,τ)=0, which implies the following.
τ≤δ2∧∥z∥2<r2→∥η(z,τ)∥2≤k2∥z∥2
The terms right of the implication can be rewritten without the squared norms as z and η(⋅) are scalars.
η(z,τ)kz+η(z,τ)≥−kz≥0
The branch closes with an application of R.
RLocLip(η),G(η),∃z(h=z)⊢exp(kτ)⋅(kz+η(z,τ))≥0∗
Finally, coming back to the open premise f◯, the proof of this branch follows similarly to d◯. First, M[′] introduces the new invariant exp(kτ)⋅z≽0, where exp(⋅) is the real exponential function. Then an application of DI≽ followed by dW results in real arithmetic proof obligations.
Similar as before proving kz−η(z,τ)≥0 suffices to prove the given inequality. Unfolding LocLip(η) and G(η) with the quantifiers instantiated as δ≥0, a=0, r>0, k≥0, t=τ, x=z, and y=0 we get the following implication.
τ≤δ2∧∥z∥2<r2→∥η(z,τ)−η(0,τ)∥2≤k2∥z∥2
Then combining with the definition of G(η), we get the desired inequality kz+η(z,τ)≥0.
RLocLip(η),G(η),Q,τ≥0⊢exp(kτ)⋅(kz+η(z,τ))≥0∗
The branch is closed by an application of R finishing the proof of the scalar comparison invariants axiom SCI.
P. Panja, A. Platzer
(sCI) For the sake of completeness we give the derivation of the proof rule, as presented in the main text in the proof sketch of Theorem 3 here again. Proof rule sCI is also derived syntactically as follows.
(VCI) After some propositional rewriting the proof begins by resolving the existential quantifier in the succedent using ∃R, such that the resulting right-hand side of the ODE x′=f(x,u,τ) is still locally Lipschitz after replacing u with some Skolem function (also a polynomial). After that DC and dI≻ add τ≥0 to the domain constraint of the succedent.
Continuing with b◯. This premise says the solution of the introduced comparison system z′=η(z,τ) is bounded from above by the solution of the ODE τ′=1. Following in similar steps from the proof of axiom VCP, we apply axiom DI≻ followed by ().
Now instantiating the quantifiers as, δ≥0, a=0, r>0, k≥0, t=τ, x=z, and y=0, we get
τ≤δ2∧∥z∥2<r2→∥η(z,τ)−η(0,τ)∥2≤k2∥z∥2
The premise on the left of the implication is provable in real arithmetic. Now we unfold Gvec(η) as ⋀i=1nG(ηi), and from G(ηi) we know ηi(0,τ)=0, hence η(0,τ)=0, where 0 is the zero vector. Following from local Lipschitz we get the following.
∥η(z,τ)∥2≤k2∥z∥2
Now using Young's inequality i.e., ab≤pap+qbq, for p=q=2, we get the following relation.
2∥z∥∥η(z,τ)∥≤∥z∥2+∥η(z,τ)∥2
We already know ∥z∥2≤r2, combining this with the above inequalities we get,
2∥z∥∥η(z,τ)∥≤∥z∥2+k2∥z∥2≤r2(1+k2)
Now using the Cauchy-Schwarz inequality i.e., ∣v⋅w∣≤∥v∥∥w∥, we get an upper bound on our required inequality.
2z⋅η(z,τ)≤2∥z∥∥η(z,τ)∥≤r2(1+k2)
By cutting in c=r2(1+k2) and instantiating all the quantifiers as showed above the branch closes with R.
Now continuing with the open left premise a◯ from the application of BDG. We first add z≽0 ( ≽ is either ≥ or >) to the domain constraint of the succedent using DC, resulting in two premises c◯ and d◯.
Bringing our attention to the open premise c◯. An application of M[′] monotonically rewrites the postcondition in the succedent to h≥z. The resulting premise Q,τ≥0,z≽0,h≥z⊢h≽0 is provable in real arithmetic.
From there, the formula h≥z is cut into the antecedent by first cutting in ∃z(z=h), which combined with h≽0 implies h≥z. After which M[′] rewrites the postcondition in the antecedent to U∧h˙+η(h,τ)≥0, which is provable by resolving the existential quantifier.
Next the conjunction in the postcondition of the antecedent is decomposed using [⋅]∧. The formula [αxτ&Qτ]U is dropped from the context by weakening as it is not required from here on. After that an application of DC adds z≽0 to the domain constraint of the antecedent to match the succedent, resulting in two open premises labeled e◯ and f◯.
Continuing with the left premise e◯. The branch is closed after applying the vector comparison principle axiom VCP. Observe the fact that if a function η(⋅) is class G then it implies η(⋅) is also quasimonotone increasing, hence proving the resulting premise Gvec(η)⊢QuasiMon(η).
Getting back to the open right premise d◯, M[⋅] rewrites the postcondition of the box modality in the succedent to exp(kτ)⋅z≽0. Here exp(⋅) is the real exponential function, k is the Lipschitz constant, and τ is the time variable. After that an application of cut and R adds ∃z(h=z) to the antecedent.
Now observe that all the vector inequalities are component-wise, hence the real arithmetic equivalence exp(kτ)⋅z≽0↔⋀i=1n(exp(kτ)⋅zi≽0) is valid, where each zi is a scalar. The postcondition in the succedent is rewritten to this equivalence using M[⋅].
Now with the application of ∧R we get n stacked open premises, each of them consisting a box modality with one of the scalar components of the original vector inequality.
From here we will only look at the i-th premise, as the same result can be followed for all the n premises. Since we have a scalar inequality in the postcondition we can continue by applying axiom DI≻ followed by dW.
Now continuing with the proof of the resulting real arithmetic. We first construct the following vector.
z~=(z1,…,zi−1,0,zi+1,…,zn)⊤
The vector z~ agrees with z on every component except the i-th, the i-th component, however, agrees with the i-th component of the zero vector 0 (where all the components are 0). Now from the definition of Gvec(η) we know,
ηi(0,τ)=0∧(0≤z~→ηi(0,τ)≤ηi(z~,τ))
from which we get ηi(z~,τ)≥0 that can be rewritten as,
0≥−ηi(z~,τ)ηi(z,τ)≥ηi(z,τ)−ηi(z~,τ)
From the local Lipschitz condition with the quantifiers instantiated as a=z, x=z, y=z~, r>0, and k≥0 we get,
∥z~−z∥2<r2→∥η(z,τ)−η(z~,τ)∥2≤k2∥z−z~∥2
Now observe that z~j=zj for all j=i, this means ∥z~−z∥2=(0−zi)2<r2. We also know that each component is bounded by the norm, hence we get,
The branch closes by an application of R. This reasoning repeated n times to close all the n open premises. Finally coming to the open premise f◯. This branch closes by following the same reasoning as that of premise d◯, as they are proving the same postcondition for the same set of ODEs, i.e., αxτ.
M′[⋅],[⋅]∧,DI≽,RΓ,h≥z⊢[αxτ&Qτ]z≽0∗
This finishes the proof of the vector comparison invariants axiom VCI.
P. Panja, A. Platzer
(vCI) For the sake of completeness we also give the derivation of the proof rule vCI.
(CBF) The proof of the axiom is as follows. Observe that a class K function implies that the function is also class G, i.e., K(η)→G(η), which is unfolded as following.
This implication is provable in real arithmetic, hence the formula G(η) can be soundly cut into the sequent. This can also be seen from the fact that all strictly increasing functions are also non-decreasing. The postcondition in the antecedent is monotonically replaced by U∧h˙+η(h,τ)≥0 using M[′].
Continuing from there, axiom [⋅]∧ decomposes the conjunction in the postcondition of the antecedent into two separate box modalities with the postcondition separated. After this the axiom SCI can be applied, which finishes the proof.
(VCBF) The proof of the axiom begins by first cutting in Gvec(η) into the antecedent. This cut is sound because, strictly increasing functions are also non-decreasing, which means Kvec(η)→Gvec(η), and after unfolding the two definitions the following real arithmetic formula is provable.
i=1⋀nK(ηi)→i=1⋀nG(ηi)
After which the postcondition in the antecedent is rewritten monotonically to U∧h˙+η(h)≥0 using M[⋅], as the resulting premise with the existential quantifier can be resolved using ∃L.
Continuing from there, we first separate the conjunction in the postcondition of the antecedent into [αxτ&Q]U and [αxτ&Q]h˙+η(h,τ)≥0. After this with a straightforward application of axiom VCI finishes the proof.
This section gives the proofs for the special instances of comparison invariants, which include, scalar and vector Darboux invariants [30], and differential invariants [25, 30].
Darboux Invariants
Proof (Corollary 5). We prove the axiom DBX≻ for a parameterized system of ODEs. The proof begins by a straightforward application of SCI, the resulting left premise closes, because we choose the comparison function η(p,τ)=gp, for a cofactor polynomial g, which happens to be nondecreasing, hence satisfying LocLip(η)∧G(η). This is because all polynomials are locally Lipschitz and nondecreasing along with implies class G.
Continuing with a◯, we first rewrite the postcondition without the existential quantifier using M[⋅], after setting U≡true, we get desired formula as the antecedent.
Proof (Corollary 6). The existing vectorial Darboux invariants axiom VDBX is derivable from axiom VCI. The proof uses the abbreviation αxτ≡x′=f(x,u,τ),τ′=1.
The key insight here is the equivalence p=0↔(p≥0∧−p≥0), which converts the equality into a conjunction of inequalities. After this an application of [⋅]∧ decomposes the conjunction into separate box modalities, followed by the application of VCI. Observe that η(p,τ)=G⋅p. Here the square matrix G is chosen such that it matches the dimension of p, i.e., if p is an n-dimensional vector then G is n×n square matrix. More importantly G has to be such that the product G⋅p is locally Lipschitz and moreover it also has to be class G. The former is satisfied for all real polynomial entries i.e., any standard dL terms, for the latter, however, G has to be an essentially positive matrix or a Metzler matrix, which means all the off-diagonal elements are nonnegative [38, §10.XII].
P. Panja, A. Platzer
Differential Invariants
Proof (Corollary 7). The existing dL proof rule dI≿ is derived as follows using proof rule sCI.
The desired premise is obtained after setting U≡true and η(p,τ)=0⋅p, which is the zero function, hence is locally Lipschitz and nondecreasing (implying G(η)).