
Convex synthesis and verification of control-Lyapunov and barrier
functions with input constraints
Hongkai Dai1and Frank Permenter1
Abstract— Control Lyapunov functions (CLFs) and control
barrier functions (CBFs) are widely used tools for synthesizing
controllers subject to stability and safety constraints. Paired
with online optimization, they provide stabilizing control actions
that satisfy input constraints and avoid unsafe regions of
state-space. Designing CLFs and CBFs with rigorous perfor-
mance guarantees is computationally challenging. To certify
existence of control actions, current techniques not only design
a CLF/CBF, but also a nominal controller. This can make
the synthesis task more expensive, and performance estimation
more conservative. In this work, we characterize polynomial
CLFs/CBFs using sum-of-squares conditions, which can be
directly certified using convex optimization. This yields a
CLF and CBF synthesis technique that does not rely on a
nominal controller. We then present algorithms for iteratively
enlarging estimates of the stabilizable and safe regions. We
demonstrate our algorithms on a 2D toy system, a pendulum
and a quadrotor.
I. INTRODUCTION
When synthesizing controllers for dynamical systems, it
is often paramount to ensure that the closed-loop system
always converges to the desired state and always avoids
unsafe regions. These goals can be met by using control
Lyapunov functions (CLFs) [27] for stability, and control
barrier functions (CBFs) [3] for safety. CLFs and CBFs are
designed such that their online minimization leads to desired
performance goals. Local verification amounts to certifying
these minimization problems are feasible on some subset of
state-space, which can be a challenging computational task.
CLFs and CBFs have been used extensively in controller
design for various applications, including legged locomotion
[14], [15], [22], autonomous driving [2], [7], [34], and robot
arm manipulation [21]. Recently, they have been used to
guide learning-based methods [8], [9], [17]. The CLFs/CBFs
are typically synthesized by hand or learned from data
[25], [12] without rigorous verification. In this paper, we
provide a new synthesis technique with formal guarantees
that is conceptually simpler than previous formal methods
[16], [19], [1], [32]. In particular, our technique allows
one to verify CLFs and CBFs by solving a single convex
optimization problem, under the assumption the dynamics
are control-affine and the input constraints are polyhedral
(for example, robots subject to torque limits for each motor).
This in turn leads to synthesis algorithms based on sequential
convex optimization.
The basis of our technique is Sum-Of-Squares (SOS)
optimization [6], [23], a widely used tool for controller
1Toyota Research Institute, US hongkai.dai,
frank.permenter@tri.global
Fig. 1: With our certified CLF, the QP controller can stabilize
the quadrotor from many distant states (including ones that
are 10 meters away or the initial roll angle of 140◦) to the
desired hovering state.
synthesis and verification, including CLF and CBF design
[29], [10], [16], [19], [1], [32]. These previous methods
either ignore input constraints [29], [10] or rely on the
joint synthesis of a nominal control law of polynomial form
[16], [19], [1], [32]. Reliance on this polynomial controller
is restrictive if the actual stable/safe control policy is not
polynomial. It also limits scalability, as the size of the SOS
program increases rapidly with the degree of the controller.
In this paper, we derive new necessary and sufficient
conditions for CLFs/CBFs for polynomial dynamical systems
with input constraints. We formulate these conditions as
SOS feasibility problems, and present an iterative algorithm
for enlarging an inner approximation of the stabilizable
and/or safe region via sequential SOS optimization. We
demonstrate our algorithm on different systems, including
a 2D toy example, an inverted pendulum and a quadrotor.
To our best knowledge this is the first formal method for
CLF/CBF synthesis that both accounts for input constraints
and explicitly avoids construction of a nominal controller.
II. BACKGROUND
In this section we give a brief introduction to Sum-Of-
Squares (SOS) techniques for certifying polynomial non-
negativity. To begin, a polynomial p(x)is a sum-of-squares
(sos) iff p(x) = Piqi(x)2for some polynomials qi(x).
Clearly p(x)being sos implies that p(x)≥0∀x. If p(x)
has degree 2d, then it is an sos polynomial if and only if
p(x) = m(x)TS m(x), S 0,(1)
where m(x)is a vector consisting of all monomials of degree
at most d. Given p(x)and m(x), existence of Scan be
checked using semidefinite programming [23], [6].
arXiv:2210.00629v1 [cs.RO] 2 Oct 2022