Table of Contents
Fetching ...

Computing Control Lyapunov-Barrier Functions: Softmax Relaxation and Smooth Patching with Formal Guarantees

Jun Liu, Maxwell Fitzsimmons

TL;DR

This paper addresses safe stabilization of nonlinear control-affine systems by constructing a single smooth Lyapunov-barrier function $W$ (a CLBF) that certifies both asymptotic stability and safety. The authors introduce a log-sum-exp softmax relaxation $h_{ ext{sm}}(x;\tau)$ to enlarge the certifiable safe set while preserving differentiability, and employ counterexample-guided refinement to enforce a strict barrier condition. A smooth patching theorem then combines a strictly compatible CBF $h$ and CLF $V$ into $W$, yielding an exact representation of the safe set as $\{W(x)\le 1\}$ with guaranteed decrease along system trajectories; the construction is SMT-verifiable via a Farkas’ lemma reformulation to handle boundary-band compatibility. The framework is demonstrated on benchmarks including a power converter, where the resulting CLBF often provides less conservative safe stabilization regions than state-of-the-art SOS-compatible designs, while offering formal guarantees. Overall, the work delivers a scalable, formally verified method for safe stabilization by unifying safety and stability into a single, smooth certificate.

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, which is always feasible under the strict compatibility condition. All conditions are formally verified using a satisfiability modulo theories (SMT) solver, enabled by a reformulation of Farkas' lemma for encoding strict compatibility. On benchmark systems, including a power converter, 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.

Computing Control Lyapunov-Barrier Functions: Softmax Relaxation and Smooth Patching with Formal Guarantees

TL;DR

This paper addresses safe stabilization of nonlinear control-affine systems by constructing a single smooth Lyapunov-barrier function (a CLBF) that certifies both asymptotic stability and safety. The authors introduce a log-sum-exp softmax relaxation to enlarge the certifiable safe set while preserving differentiability, and employ counterexample-guided refinement to enforce a strict barrier condition. A smooth patching theorem then combines a strictly compatible CBF and CLF into , yielding an exact representation of the safe set as with guaranteed decrease along system trajectories; the construction is SMT-verifiable via a Farkas’ lemma reformulation to handle boundary-band compatibility. The framework is demonstrated on benchmarks including a power converter, where the resulting CLBF often provides less conservative safe stabilization regions than state-of-the-art SOS-compatible designs, while offering formal guarantees. Overall, the work delivers a scalable, formally verified method for safe stabilization by unifying safety and stability into a single, smooth certificate.

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, which is always feasible under the strict compatibility condition. All conditions are formally verified using a satisfiability modulo theories (SMT) solver, enabled by a reformulation of Farkas' lemma for encoding strict compatibility. On benchmark systems, including a power converter, 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.

Paper Structure

This paper contains 22 sections, 5 theorems, 46 equations, 7 figures, 1 algorithm.

Key Result

Proposition 1

For all $x \in \mathbb{R}^n$,

Figures (7)

  • Figure 1: Smooth barrier function $h_{\mathrm{sm}}(x)$ (left) and its $1$-level set (right). As a comparison, the best verified safe controllable region obtained using SOS CBF-CLF is shown in dotted red. It can be seen that the softmax relaxation barrier outperforms the SOS approach dai2024verification. Data for comparisons in this and subsequent examples were extracted from published figures using the WebPlotDigitizer tool marin2017webplotdigitizer.
  • Figure 2: Smooth barrier function $h_{\mathrm{sm}}(x)$ (left) and its $1$-level set (right) obtained by softmax relaxation and counterexample-guided refinement (Algorithm \ref{['alg:cegis-softmax']}. As a comparison, the best verified safe controllable region obtained using SOS CBF-CLF is shown in dotted red. The softmax relaxation barrier outperforms the SOS approach dai2024verificationv1.
  • Figure 3: A smooth Lyapunov-barrier function patched from a strictly compatible CBF-CLF pair for Example \ref{['ex:2d_toy_verified']}. The green dash-dotted line represents the formally verified safe stabilization region, relative to the unsafe region (shaded in light red). For comparison, the best verified safe controllable region obtained using compatible SOS CBF-CLF dai2024verification is shown in dotted red, while the dashed red curve depicts the largest safe stabilization region certified by a quadratic CLF.
  • Figure 4: Simulated trajectories and corresponding barrier function values for Example \ref{['ex:2d_toy_verified']}. All trajectories converge, and the barrier function values remain below the safe threshold of 1.
  • Figure 5: A smooth control Lyapunov-barrier function patched from a strictly compatible CBF-CLF pair for Example \ref{['ex:2d_nonlinear_verified']}. The green dash-dotted line represents the formally verified safe stabilization region, relative to the unsafe region (shaded in light red). For comparison, the best verified safe controllable region obtained using compatible SOS CBF-CLF dai2024verificationv1 is shown in dotted red, while the dashed red curve depicts the largest safe stabilization region certified by a quadratic CLF.
  • ...and 2 more figures

Theorems & Definitions (19)

  • Definition 1
  • Definition 2
  • Proposition 1
  • proof
  • Definition 3
  • Example III.1
  • Example III.2
  • Definition 4
  • proof
  • Corollary 1
  • ...and 9 more