Abstract
We present a computational framework for synthesizing a single smooth Lyapunov function that certifies both asymptotic stability and safety. We show that the existence of a strictly compatible pair of control barrier and control Lyapunov functions (CBF-CLF) guarantees the existence of such a function on the exact safe set certified by the barrier. To maximize the certifiable safe domain while retaining differentiability, we employ a log-sum-exp (softmax) relaxation of the nonsmooth maximum barrier, together with a counterexample-guided refinement that inserts half-space cuts until a strict barrier condition is verifiable. We then patch the softmax barrier with a CLF via an explicit smooth bump construction. All conditions are formally verified using a satisfiability modulo theories (SMT) solver. On benchmark systems, we show that the certified safe stabilization regions obtained with the proposed approach are often less conservative than those achieved by state-of-the-art sum-of-squares (SOS) compatible CBF-CLF designs.
Introduction
In modern autonomous systems, control laws must simultaneously ensure stability (reaching a goal) and safety (avoiding obstacles or state constraints). Traditionally, Control Lyapunov Functions (CLFs) handle stability, while Control Barrier Functions (CBFs) handle safety. However, merging these two requirements into a single, smooth, and formally verified Control Lyapunov-Barrier Function (CLBF) is challenging. Existing methods, like Sum-of-Squares (SOS) programming, often rely on rigid templates that result in conservative estimates of the safe region. This paper introduces a framework to overcome these limitations using softmax relaxations and smooth patching.
Methodology
Softmax Relaxation and Refinement
Safe sets are often defined by the intersection of multiple constraints ($h_1, h_2, \dots$). This creates non-differentiable corners. We use a log-sum-exp (softmax) function to create a smooth approximation $h_{sm}$ that stays strictly within the true safe set.
To ensure the barrier condition is met, we employ a counterexample-guided refinement process. If an initial barrier fails formal verification, the algorithm identifies counterexamples and inserts "half-space cuts" to refine the set.
Smooth Patching
Once a valid barrier and a CLF are obtained, they are merged using an explicit "bump function" construction. This "patches" the two functions into a single $C^1$ smooth function $W$. This construction is guaranteed to be feasible under a "strict compatibility" condition, which only needs to hold on the boundary of the safe set.
Formal Verification via SMT
We use Satisfiability Modulo Theories (SMT) solvers (specifically dReal) for formal verification. By reformulating Farkas’ Lemma, we translate the control feasibility problem into a format that SMT solvers can check efficiently, eliminating the need for complex quantifier elimination.
Key Results
Reduced Conservatism
The proposed method consistently identifies larger certified safe stabilization regions compared to traditional SOS-based designs. While SOS methods are often restricted by polynomial templates, our softmax and patching approach can capture nearly the entire feasible safe set.
Computational Efficiency and Smoothness
Formal verification is highly efficient; for a 3D power converter model, the compatibility check took approximately 0.59 seconds. Furthermore, the resulting CLBF allows for smooth control laws via Sontag’s universal formula, avoiding the discontinuities often found in optimization-based controllers.
Conclusion
This framework provides a robust path for synthesizing smooth CLBFs with formal guarantees. By relaxing the compatibility requirements to the boundary and using flexible geometric tools like softmax, we achieve significantly less conservative results than state-of-the-art SOS methods. Future work will focus on incorporating input constraints and scaling to higher-dimensional systems through compositional verification.
Summary updated