---
title: Control Lyapunov-Barrier Functions
url: https://www.emergentmind.com/topics/control-lyapunov-barrier-function-clbf
type: topic
---

# Control Lyapunov-Barrier Functions

A Control Lyapunov-Barrier Function (CLBF) is a certificate for safety-critical control that merges Lyapunov-type stabilization and barrier-type safety into a single object or, in some parts of the literature, into a single synthesis framework. In its scalar-certificate form, a CLBF is a function \(V\) whose value decreases under a suitable feedback while its level sets separate safe and unsafe states; in reach-avoid formulations, this is often written by requiring \(V=0\) on a goal set, \(V\ge c\) on an unsafe set, \(V<c\) on the safe region, and \(\langle \nabla V(x), f(x,u)\rangle+\lambda V(x)\le 0\) under an admissible controller [2310.02869]. A closely related formulation uses a safe threshold \(c\) and interprets \(h(x):=c-V(x)\) as the barrier, so that safety is encoded by \(V(x)\le c\) and stability by dissipation of \(V\) [2509.25375].

## 1. Core definitions and conceptual scope

The CLBF concept sits at the intersection of two classical certificates. A Control Lyapunov Function (CLF) establishes convergence toward an equilibrium or goal by enforcing a decay inequality such as
\[
L_f V(x) + L_g V(x)\,u \le -c\,V(x),
\]
or, more generally, \(\dot V\le -\alpha(V)\). A Control Barrier Function (CBF) establishes forward invariance of a safe set \(\mathcal{C}=\{x\mid h(x)\ge 0\}\) by enforcing
\[
L_f h(x) + L_g h(x)\,u \ge -\kappa\,h(x).
\]
A CLBF unifies these requirements by using one scalar quantity to encode both attraction and exclusion [2509.25375].

One common continuous-time safe-stabilization formulation takes a state \(x_\star\), a safe region \(\mathcal{X}_s\), and a threshold \(c>0\), and requires
\[
V(x_\star)=0,\qquad V(x)>0\ \text{for }x\neq x_\star,
\]
together with
\[
x\in \mathcal{X}_s \Rightarrow V(x)\le c,\qquad x\notin \mathcal{X}_s \Rightarrow V(x)>c,
\]
and a dissipation condition
\[
\inf_{u\in\mathcal{U}} \big(\nabla V(x)^\top f(x,u)\big)+\lambda V(x)\le 0.
\]
In this view, \(V\) is simultaneously a Lyapunov function and a barrier through its sublevel sets [2509.25375].

A reach-avoid variant specializes the definition to a compact domain \(D\), an open goal set \(G\), a closed unsafe set \(U\), and a safe region \(S=D\setminus \overline{G\cup U}\). The certificate must satisfy
\[
V(x)=0\ \text{on }G,\quad V(x)>0\ \text{on }D\setminus G,\quad V(x)\ge c\ \text{on }U,\quad V(x)<c\ \text{on }D\setminus U,
\]
with a controller ensuring
\[
\langle \nabla V(x), f(x,u(x))\rangle+\lambda V(x)\le 0,\qquad x\in S.
\]
This formulation makes the “reach” and “avoid” parts explicit in the value conditions alone [2310.02869].

There is also a discrete-time, data-driven analogue. In the constrained-MDP formulation used for model-free robot learning, a CLBF \(V:S\to\mathbb{R}\) satisfies \(V(s_{\text{goal}})=0\), \(V(s)>0\) away from the goal, \(V(s)\ge \hat c\) on unsafe or irrecoverable states, \(V(s)<\hat c\) on safe states, and an expected decrease condition
\[
\mathbb{E}_{s'\sim P(\cdot\mid s,\pi(s))}\big[V(s')-V(s)+\lambda V(s)\big]\le 0.
\]
The role of the barrier threshold is then played by \(\hat c\), while reachability is encoded through expected decay under the policy [2305.09793].

The term itself is not used uniformly. Some works reserve “CLBF” for a single scalar certificate \(V\). Others use the term more operationally for controller synthesis schemes that combine CLF and CBF constraints, especially in quadratic-programming pipelines. That distinction is explicit in work that states it does not define a single composite CLBF while still pursuing the same joint safety-and-stability objective [2403.14226].

## 2. PDE and analytic constructions

A major line of work constructs CLBFs directly from partial differential equations, thereby avoiding trajectory-based training. In harmonic CLBFs, the certificate is defined on the safe region \(S\) as the solution of the Laplace equation
\[
\Delta V(x)=0,\qquad x\in S,
\]
with Dirichlet conditions
\[
V(x)=0\ \text{on }\overline{G},\qquad V(x)=c\ \text{on }\partial D\cup U.
\]
Because harmonic functions satisfy strong and weak maximum principles, the solution has no interior local maxima or minima, so \(0<V(x)<c\) throughout the interior of \(S\). This realizes the CLBF value conditions by construction, and the paper proves uniqueness of the harmonic solution for a given reach-avoid specification [2310.02869].

The associated controller is chosen by aligning the dynamics with the steepest descent direction of \(V\). For general nonlinear dynamics \(\dot x=f(x,u)\),
\[
u^\ast(x)=\arg\min_{u\in U_{\text{ctrl}}} \langle f(x,u), \nabla V(x)\rangle.
\]
For control-affine dynamics \(\dot x=f(x)+g(x)u\), this reduces to a linear optimization in \(u\), and under box input constraints the solution saturates componentwise according to the sign of \(g(x)^\top\nabla V(x)\). This yields a runtime controller that is analytically simple once the PDE has been solved offline [2310.02869].

The same work also studies a superharmonic Poisson variant,
\[
\Delta V(x)=-6,
\]
with the same boundary conditions. That variant can increase visual contrast between safe and unsafe regions, but it may introduce interior local minima, whereas the harmonic construction avoids interior minima by the maximum principle. In the reported 2D quadrotor landing problem, the harmonic CLBF achieved \(100\%\) goal reachability and safety over \(100{,}000\) random initial conditions, with mean time \(23.221\) s and standard deviation \(1.765\), outperforming the cited rCLBF-QP and Robust-MPC baselines on that task [2310.02869].

A more global analytic characterization comes from a Zubov–Hamilton–Jacobi–Bellman formulation for safe stabilization. There, a value function \(V\) is defined by an exit-time optimal-control problem over the safe null-controllability domain \(D\), and a bounded CLBF is obtained through a Zubov transformation \(W=\beta(V)\). The resulting viscosity solution satisfies
\[
-\sup_{u\in\mathbb{R}^m}\Big\{\nabla W(x)^\top(f(x)+g(x)u)+(1-W(x))\,\varphi(W(x))\,\eta(x,u)\Big\}=0,
\]
with \(W(0)=0\) and \(W=1\) on the boundary of the maximal safe stabilizable set. In that formulation, the sublevel condition \(W<1\) exactly characterizes the largest safe domain of attraction, so the solution is a maximal CLBF in the sense that no other CLBF can certify a larger safe stabilizable set [2604.00941].

These PDE-based constructions occupy different points on the design spectrum. Harmonic CLBFs encode reach-avoid geometry directly on a fixed domain and produce a unique certificate with strong geometric structure. Zubov-type formulations characterize the maximal safe stabilizable region but require solving a fully nonlinear PDE. Both make explicit that CLBF synthesis can be posed as a boundary-value or viscosity-solution problem rather than solely as online optimization or offline learning [2310.02869][2604.00941].

## 3. Online synthesis, quadratic programs, and compatibility

In many implementations, CLBF objectives are enforced through optimization rather than by directly evaluating a closed-form feedback. A standard synthesis pattern embeds CLF decrease and CBF invariance as constraints in a quadratic program,
\[
\min_{u,\delta}\ \|u-u_{\mathrm{nom}}\|^2 + p\,\delta^2
\]
subject to
\[
L_f V(x)+L_g V(x)\,u \le -c\,V(x)+\delta,\qquad
L_f h(x)+L_g h(x)\,u \ge -\kappa\,h(x),
\]
with \(\delta\) used to relax the CLF when necessary. This architecture is ubiquitous because it makes safety hard and stabilization soft, but it also exposes a basic issue: separate existence of a CLF and a CBF does not imply that a bounded input exists that satisfies both inequalities simultaneously [2509.25375].

That feasibility question has become a central theme. One line of work derives exact necessary and sufficient compatibility conditions for a CLF \(V\) and a CBF \(b\) under polytopic input bounds \(A u\le c\), independent of any nominal controller. By writing the joint CLF-CBF-input constraints as a linear inequality system in \(u\), applying Farkas’ lemma, and then translating emptiness of the resulting semialgebraic set into Positivstellensatz and SOS conditions, compatibility can be verified or synthesized directly over a region \(\mathcal{C}\cap\mathcal{D}\) [2406.18914]. A closely related bounded-control verification framework gives exact conditions for ball and box input sets and then constructs a single smooth CLBF by a patching formula
\[
W(x)=(1-b(x))\,\tilde V(x)+b(x)\,h(x),
\]
where \(b(x)\) is a smooth bump supported on a boundary band. In that framework the safe set is certified exactly by \(\{x\mid W(x)\le 1\}\) [2511.10510].

Compatibility also motivates alternatives to the standard slack-weighted QP. One paper shows, via a literature example, that the usual CLF-CBF-QP can produce slow convergence and oscillatory inputs because the slack weight mediates an undesirable trade-off between stabilization and safety. It then replaces the CLF constraint by a cost that penalizes deviation from Sontag’s formula using
\[
Q(x)=g(x)^\top \nabla W(x)\nabla W(x)^\top g(x),
\]
and solves a QP with only CBF constraints. Under a control-sharing assumption, this yields local asymptotic stability and safety on an explicit domain of attraction \(A=W^\ast\cap C\) [2403.14226].

A broader implementation lesson is that “CLBF-based control” often refers to a synthesis stack rather than to a unique analytic formula. Spacecraft attitude control under reaction-wheel constraints, for example, uses an optimal-decay CLF-CBF-QP with a decision variable \(\rho\in[0,1]\) that scales the CLF decay rate online to mitigate chattering at low sampling frequencies, while zeroing CBFs enforce hard wheel-momentum bounds [2409.19936]. High-order CLF-CBF-QP controllers for bicyclist safety in autonomous driving similarly treat safety as hard through HOCBF inequalities and stabilization as soft through a slackened HOCLF constraint [2512.12776]. These are CLBF methodologies in the operational sense, even when they do not define a single scalar CLBF.

## 4. Data-driven and learned CLBFs

A second major direction learns the certificate from data. In robust neural CLBFs, the system is modeled as
\[
\dot x = f_\theta(x)+g_\theta(x)u
\]
with parametric uncertainty \(\theta\in\Theta=\operatorname{conv}\{\theta_i\}\). A neural certificate \(V_\phi(x)\) is trained so that \(V_\phi(x^\star)=0\), \(V_\phi(x)\le c\) on the safe set, \(V_\phi(x)>c\) on the unsafe set, and
\[
L_{f_{\theta_i}}V_\phi(x)+L_{g_{\theta_i}}V_\phi(x)\,u+\lambda V_\phi(x)\le 0
\]
holds across all scenario vertices. The runtime controller solves a small robust QP over these scenario inequalities. In simulation, this approach matched or exceeded robust MPC while reducing computational costs by an order of magnitude across tasks including car tracking, obstacle avoidance, satellite rendezvous, and flight control with a learned ground-effect model [2109.06697].

A model-free alternative appears in constrained reinforcement learning. The Lyapunov Barrier Actor-Critic (LBAC) treats the CLBF as a critic \(Q_{LB}(s,a)\), defines \(V(s)=Q_{LB}(s,\pi(s))\), and enforces a discrete expected-decrease condition from replay-buffer data without an explicit dynamics model. The method uses terminal-cost shaping, Lagrangian penalties, and a theorem that links a sufficiently large unsafe terminal cost \(C\) to the threshold property \(V(s)\ge \hat c\) on unsafe states and \(V(s)<\hat c\) on safe states. In simulation and on a real Crazyflie 2.0 platform, the learned CLBF reduced safety violations relative to model-free RL baselines and avoided the CLF-CBF conflicts observed with a model-based QP controller [2305.09793].

More recently, Safe and Stable Diffusion (\(S^2\)Diff) recasts CLBF enforcement as trajectory sampling from a distribution
\[
p(U)\propto p_{\mathrm{safe}}(U)\,p_{\mathrm{stable}}(U)\,p_{\mathrm{cost}}(U),
\]
where safety is encoded by the hard condition \(V(x_t)\le c\), and stability is encoded by a soft penalty on
\[
\nabla V(x_t)^\top f(x_t,u_t)+\lambda V(x_t)>0.
\]
The paper follows Romdlony–Jayawardhana’s unified CLBF view, but replaces pointwise QP enforcement by diffusion-guided trajectory generation and CLBF learning. Its theory is phrased in Almost Lyapunov terms: dissipation may fail on a small set \(\Omega\), yet one still obtains almost-sure exponential decay with an additive buffer. Empirically, over eight environments \(S^2\)Diff reports average safety rate \(98.75\%\), average normalized terminal error \(0.226\), and average inference time \(45.64\) ms, compared with \(78.75\%\), \(0.384\), and \(10.06\) ms for rCLBF-QP, and \(66.25\%\), \(0.501\), and \(249.53\) ms for MPC [2509.25375].

Across these learning-based formulations, the CLBF serves three related roles: as a certificate to constrain learning, as a shaping function that defines safe sublevel sets, and as a surrogate objective whose derivative is easier to supervise than long-horizon reward alone. What changes is the enforcement mechanism—robust QP, actor-critic constraint learning, or diffusion-based trajectory guidance [2109.06697][2305.09793][2509.25375].

## 5. High-order, stochastic, and sampled-data extensions

Relative degree is a persistent obstacle for CLBF design. When the safety output does not depend on the control at first order, standard CBF inequalities cease to be directly usable. One response is to use high-order barrier constructions. Another is to redesign the CLBF itself. For scalar second-order control-affine systems with an unsafe half-space \(\mathcal{D}=\{x\mid x_1\le d\}\), a nonlinear scaling-based design defines
\[
W(x)=(1+\theta\,\sigma(x_1))V(x)-k,
\]
where \(V\) is a quadratic CLF and \(\sigma\) is a logistic function centered near the safety boundary. The paper derives explicit parameter conditions, including
\[
0<l\le \frac{2}{\gamma},
\]
to ensure \(W>0\) on the unsafe set and \(L_F W<0\) on the set where \(L_G W=0\). Sontag’s formula then yields a safe stabilizer, and the same construction is used as an add-on safety term for feedback-linearized task-space control of a planar robot manipulator [2509.15071].

Stochastic generalizations replace deterministic Lie derivatives by the infinitesimal generator. A high-relative-degree stochastic CLF/CBF framework constructs recursive barrier quantities through
\[
L\,\phi(x,u)=\nabla \phi(x)^\top(f(x)+g(x)u)+\tfrac12\operatorname{tr}\!\big(\Sigma(x)\Sigma(x)^\top\nabla^2\phi(x)\big),
\]
and enforces the final CLF and barrier inequalities in a QP with slack on the Lyapunov side. Safety is obtained almost surely, while stability is in probability. The paper treats relative-degree-2 car navigation and a relative-degree-4 two-link pendulum with elastic actuator, making explicit that diffusion enters through second-order terms in both the Lyapunov and barrier recursions [2004.03856].

A direct stochastic CLBF construction appears in model predictive control for nonlinear affine systems. There, a stochastic CLBF
\[
W_c(x)=V(x)+\sum_{i=1}^{n_B}\lambda_i B_i(x)+\kappa
\]
combines an unconstrained stochastic CLF \(V\), obtained through dynamic feedback linearization, with multiple stochastic CBFs \(B_i\). The resulting sampled-data MPC enforces generator-based CLBF drift constraints and integrates event-triggering to improve performance during sampling intervals. The safety statement is forward invariance with probability \(1\), while the sampled-data closed loop is shown to be mean-square exponentially stable for sufficiently small intersample times [2211.06175].

Not all work in this area is supportive of existing CLBF recovery formulations. A recent finite-time CBF paper explicitly identifies two limitations of CLBF-based recovery controllers for initially unsafe states: chattering near the safety boundary and lack of explicit control-bound handling. It proposes a strengthened constraint \(s(x)=h(x)-r\) and a linear inequality
\[
L_f s(x)+L_g s(x)u+k\,s(x)\ge 0
\]
that guarantees finite-time return to the safe set under control bounds when a reachability-based comparison condition is satisfied. That result is presented as an alternative to CLBF-based finite-time recovery, not as a CLBF itself [2603.22445].

Sampled-data execution is another extension. Event- and self-triggered CLBF control co-designs the input and the next execution time so as to maximize margins to the CLF and CBF boundaries at each update. The greedy formulation introduces margins \(\rho_1,\rho_2\) in the inequalities and computes a control that allows longer inter-execution intervals, with explicit lower bounds on dwell time under Lipschitz assumptions [2302.12435].

## 6. Applications, limitations, and terminology

CLBF methods have been used in a wide range of domains. Reach-avoid navigation with harmonic CLBFs has been demonstrated on Roomba, differential-drive, car-like, and quadrotor systems, including a 2D landing problem with obstacle avoidance [2310.02869]. Learned and robust CLBF variants have been evaluated on inverted pendulum, Segway, neural lander, 2D and 3D quadrotor, spacecraft rendezvous, and F-16 aircraft models [2109.06697][2509.25375]. CLF-CBF methodologies closely tied to the CLBF objective have also been applied to tumor dynamics with positivity constraints, autonomous-driving scenarios involving bicyclists, spacecraft attitude control with reaction-wheel limitations, and ac/dc power converters [2403.14226][2512.12776][2409.19936][2401.06901].

The main strengths of CLBF formulations are structural unification and explicit certificates. A single thresholded function can encode reachability and safety simultaneously; this removes gradient conflicts that arise when CLF and CBF objectives are designed independently, a point emphasized by the model-free RL work and by QP-based analyses of CLF-CBF conflict [2305.09793][2403.14226]. In QP realizations, the same unification appears operationally: safety is imposed as a barrier constraint, stabilization as a Lyapunov inequality, and the optimizer mediates the trade-off under input bounds [2409.19936].

The limitations are equally consistent across the literature. PDE-based constructions can suffer from the curse of dimensionality, since finite-element or viscosity-solution computations scale poorly with state dimension [2310.02869][2604.00941]. SOS-based verification and synthesis require polynomial models or polynomial approximations and can become conservative or computationally expensive as degree and state dimension grow [2210.00629][2406.18914][2511.10510]. Learning-based methods depend on model accuracy, data coverage, or differentiable surrogates, and their guarantees are often scenario-based, almost-sure, or “almost Lyapunov” rather than pointwise everywhere [2109.06697][2305.09793][2509.25375]. High-order and sampled-data settings introduce additional feasibility and numerical-conditioning issues, especially under hard control bounds [2211.06175][2603.22445].

A final source of confusion is terminological rather than technical. In one usage, a CLBF is literally a single scalar certificate \(V\) or \(W\) whose level sets simultaneously encode safety and stabilization. In another, “CLBF-based control” denotes any synthesis framework that enforces CLF and CBF conditions together, typically through a QP, even if no single analytic composite function is written down [2403.14226][2409.19936]. Both usages are established in current research. The first emphasizes certificate construction; the second emphasizes controller realization.

Source: https://www.emergentmind.com/topics/control-lyapunov-barrier-function-clbf