Convex: Theory, Methods & Applications
- Convex is a property of sets and functions ensuring every line segment between two points lies entirely within the set, underpinning diverse mathematical and algebraic frameworks.
- Advanced formulations of convexity encompass intrinsic mixing operations, categorical models via Giry monads, and convex envelopes that facilitate rigorous analysis and tractable optimization.
- Applications of convexity span optimization algorithms, graph theory, discrete tomography, and imaging, enabling robust, efficient problem-solving across disciplines.
Convex denotes a family of closure phenomena that preserve admissible combinations. In Euclidean and affine settings, a set is convex when it contains every segment between its points; in abstract algebraic settings, convexity is the existence of coherent mixing operations; in combinatorics it appears through closure systems with anti-exchange; in graph theory and network science it is expressed through geodesic containment; and in optimization it governs convex functions, convex envelopes, convex relaxations, and tractable modeling languages (0903.5522, Marc et al., 2016, Udell et al., 2014).
1. Abstract and algebraic formulations
A central generalization replaces ambient vector-space structure by intrinsic mixing. In Fritz’s formulation, a convex space is a set equipped with binary operations
satisfying the unit law , idempotency , parametric commutativity , and deformed parametric associativity
when (0903.5522). Writing , the structure isolates coherent finite mixing rather than linear addition itself.
The same notion has two equivalent categorical descriptions. First, convex spaces are algebras over the finitary Giry monad: for a set ,
and a convex structure on 0 is an evaluation map 1 satisfying the unit and associativity law
2
Second, convex spaces are precisely models of the Lawvere theory of finite stochastic maps 3; Proposition 3.7 identifies the binary-operation, monad-algebra, and Lawvere-theoretic viewpoints as equivalent (0903.5522).
This abstract definition recovers ordinary convex subsets of real vector spaces and also includes non-geometric examples. If 4 is a convex subset of a real vector space, then 5 yields a convex space. But convex spaces need not embed into vector spaces: semilattices form convex spaces of combinatorial type, where every nontrivial convex combination of two points is constant in 6, and the resulting operation is exactly an idempotent, commutative, associative meet (0903.5522). The same paper interprets convex subsets of vector spaces as probabilistic and semilattices as possibilistic, with convex spaces unifying both.
A formalized presentation in Coq develops the same idea as intrinsic barycentric structure. There a convex space carries operations 7 for 8, and every such space embeds into a conical space
9
with embedding 0 satisfying
1
This embedding linearizes barycentric identities and supports formal development of convex hulls, convex subsets, and convex functions on distribution spaces (Affeldt et al., 2020).
2. Convex functions, envelopes, and algebraic certificates
On ordered convex spaces, a function 2 is convex when
3
for all 4 and 5; concavity is obtained by reversing the order (Affeldt et al., 2020). In polynomial optimization, convexity is expressed through the Hessian: a polynomial 6 is convex iff 7 for all 8, equivalently 9 for all 0 (Ahmadi et al., 2024).
A central convex-analytic construction is the convex envelope
1
For a continuously differentiable ray-concave function 2 on a polytope 3, convex on every facet, the paper on ray-concave functions defines
4
where 5 are the two boundary intersections of the ray through 6, and proves that if 7 is positively homogeneous then 8 (Barrera et al., 2021). This yields explicit envelopes over arbitrary polytopes and includes a previously unknown envelope for the probability/reliability function 9.
A complementary algebraic certificate is sos-convexity. A polynomial is sos-convex when 0 is a sum of squares in 1, equivalently 2 for some polynomial matrix 3. For ternary quartic forms, the paper “Convex Ternary Quartics Are SOS-Convex” proves the exact equality
4
that is, every convex quartic form in three variables is sos-convex (Ahmadi et al., 2024). The result is presented as a convex analogue of Hilbert’s theorem for nonnegative ternary quartics, and the paper shows that exploiting the special linear compatibility relations of Hessian biquadratic forms is essential.
3. Optimization, projection, and computational frameworks
Convexity also governs the shape of optimization trajectories. For gradient descent on a convex 5-smooth function,
6
the optimization curve 7 is provably convex for
8
while monotone decrease of function values still holds on the larger interval 9 (Barzilai et al., 13 Mar 2025). The same paper constructs a one-dimensional convex 0-smooth counterexample showing that for every 1 and every
2
the optimization curve can be non-convex even though the objective still decreases monotonically. In contrast, for gradient flow 3, the objective curve 4 is convex for every convex 5-smooth 6, and the gradient norm is nonincreasing in both discrete and continuous time on the full natural stability range (Barzilai et al., 13 Mar 2025).
At the modeling-language level, Convex.jl treats convex programs as abstract syntax trees whose nodes carry sign, curvature, monotonicity, evaluability, and conic-form metadata. It checks disciplined convex programming compliance, canonicalizes to conic form, and dispatches to LP, SOCP, SDP, or exponential-cone solvers through Julia’s multiple dispatch (Udell et al., 2014). The target conic form is
7
and each atom is equipped with a graph-form template. The framework is explicitly presented as a convex optimization modeling system whose separation of atoms from methods makes extension by new convex primitives straightforward (Udell et al., 2014).
Convexity also organizes structural graph optimization. A convex graph invariant is a graph invariant that is convex as a function of the adjacency matrix 8. The elementary invariant is
9
and every convex graph invariant admits a representation
0
for suitable 1 and scalars 2 (Chandrasekaran et al., 2010). This yields invariant convex sets for maximum degree, spectral majorization, forbidden subgraph surrogates, and graph deconvolution; the same paper uses them in graph deconvolution, graph generation, and hypothesis testing between graph families (Chandrasekaran et al., 2010).
For projection problems, convexity connects set projection and multi-objective optimization. Given
3
the associated multi-objective convex problem is
4
The paper proves that exact solutions of the convex projection problem and the associated multi-objective problem coincide, and that approximate solutions transfer in both directions with sharp tolerance inflation factors 5 and 6 (Kováčová et al., 2021).
4. Convex geometries, representability, and neural codes
In closure theory, convexity appears as anti-exchange. A convex geometry is a closure system 7 such that 8 and, for every closed 9 and distinct 0, the implication
1
holds (Adaricheva et al., 2022). For transit functions 2, the induced interval convexity 3 is the family of 4-convex sets 5 satisfying 6 for all 7. Under the Peano axiom 8, or more strongly under 9, the paper on transit functions proves that
0
(Changat et al., 2024). This unifies a range of graph convexities, including geodesic, monophonic, toll, weak toll, 1, 2, all-path, and cut-vertex convexities.
Representation theory separates small and large regimes. One paper proves that every finite convex geometry can be represented in the plane by a wide variety of convex sets extending Richter–Rogers’ polygon construction, but that general convex geometries cannot be represented by ellipses in the plane, and that there is no uniform bound on the number of common supporting lines allowed between pairs of representing convex sets; in higher dimensions every finite convex geometry of convex dimension 3 is representable in 4 by ellipsoids arbitrarily close to a ball (Kincses, 2017). On the other hand, for the special case of a 5-element base set, the paper on colors and ellipses proves that all 5 convex geometries admit a representation by ellipses, while several properties of circle geometries—the opposite property, nested triangle property, area 6 property, and separation property—obstruct circle representability; it also introduces colored-circle representations as unary predicates augmenting circle models (Adaricheva et al., 2022).
A simplicial-complex variant is convex union representability. A complex 7 is 8-convex union representable if it is the nerve of convex open sets in 9 whose union is itself convex. The paper “Convex Union Representability and Convex Codes” proves that not every collapsible complex has this property: there exist shellable collapsible complexes and non-evasive complexes that are not convex union representable (Jeffs et al., 2018). It also proves strong necessary conditions, including collapse onto the star of any face and collapsibility of the Alexander dual. For neural codes, the neural ideal
0
and its canonical form provide algebraic signatures of convexity and non-convexity. In particular, certain minimal pseudo-monomials in the canonical form detect disconnected restricted nerves or hollow simplices, and therefore non-convexity of the code (Curto et al., 2018).
5. Graph, network, and discrete-matrix convexity
In graph theory, a subgraph induced by a node set 1 is convex if every geodesic path between any two nodes of 2 lies entirely inside the induced subgraph. A connected network is called convex if every connected subset of nodes is convex (Marc et al., 2016). This notion yields several regimes. Trees and cliques are globally convex for opposite structural reasons; random graphs are only locally convex; and core-periphery networks can be regionally convex, with a non-convex core and convex periphery (Marc et al., 2016). The paper introduces convex-hull growth measures such as
3
and local-convexity scales
4
and reports that the Western US power grid, European highways, and a coauthorship graph are the most convex among the nine empirical networks studied, whereas the Little Rock food web is the only one classified as truly non-convex (Marc et al., 2016).
Directed graph convexities based on directed 2-paths lead to a sharper combinatorial theory. For an oriented graph 5, the 6-convexity forbids an outside vertex from being the center of a directed path 7 with 8; the 9-convexity imposes the same restriction only for induced directed paths, equivalently when 00 (Araújo et al., 23 Jun 2026). The paper proves that recognition of convex geometries is polynomial-time for 01-convexity, but coNP-complete for 02-convexity, even on DAGs. On the subclass of acyclic indifference oriented graphs, however, 03-geometricity is characterized by 04-freeness and becomes polynomial-time decidable (Araújo et al., 23 Jun 2026).
Discrete tomography yields yet another meaning. A 05-matrix is convex when the 1s are consecutive in every row and every column. Writing 06 for the convex matrices with row-sum vector 07 and column-sum vector 08, the paper on convex 09-matrices studies when such classes are nonempty and how individual matrices can be reconstructed (Brualdi et al., 2021). It extends ranked essential sets from permutation matrices to convex matrices, proves that the ranked essential set uniquely determines a matrix in 10, and gives an 11 reconstruction algorithm. It also shows, for example, that
12
iff 13 and
14
and uses the term epitope for information that uniquely determines a matrix in 15 (Brualdi et al., 2021).
6. Spacetime, imaging, and functional shape priors
In Lorentzian geometry, convexity must be adapted to indefinite signature. A smooth function 16 on a spacetime 17 is a spacetime convex function when its Hessian 18 has Lorentzian signature and satisfies
19
for all 20 (Gibbons et al., 2017). The level sets 21 then have second fundamental form controlled by
22
so spacetime convex functions generate foliations by expanding spacelike hypersurfaces (Gibbons et al., 2017). The paper proves that a spacetime admitting such a function has no closed spacelike geodesics, excludes certain closed marginally trapped surfaces, induces convex or subharmonic functions on special initial data sets, and exhibits barrier phenomena in the Schwarzschild interior, where 23 is a maximal hypersurface (Gibbons et al., 2017).
In data-driven image segmentation, convexity is imposed through quasi-concavity of the soft mask 24: all super-level sets
25
are required to be convex (Chen et al., 19 May 2026). This is equivalent to
26
The paper develops exact zero- and first-order characterizations and a second-order sufficient condition based on tangent-space negativity of the Hessian. In two dimensions, the practical sufficient quantity is
27
and the condition 28 on points where 29 implies quasi-concavity (Chen et al., 19 May 2026). This yields a differentiable loss
30
implemented by fixed finite-difference convolutions, together with a Convex Gradient Projection Module that performs an unrolled proximal refinement of the output mask. The paper reports that on Swin-Unet the second-order prior improves Dice by 31, IoU by 32, reduces Hausdorff distance by 33, and increases per-image runtime from 34 s to 35 s (Chen et al., 19 May 2026).
Across these settings, convexity is not a single definition but a stable structural pattern: closure under mixtures, interval containment, anti-exchange closure, geodesic preservation, Hessian positivity, or level-set quasi-concavity. The recent literature shows that these forms are tightly interconnected but not interchangeable: some are probabilistic, some possibilistic, some combinatorial, some Lorentzian, and some algorithmic. What remains common is that convexity converts local consistency conditions into strong global consequences—uniqueness, representability, tractable optimization, or topological rigidity (0903.5522, Changat et al., 2024, Gibbons et al., 2017).