Skip to article
← All posts

Duality & geometry

c-transform as a generalized Legendre transform

Which families of supporting shapes survive averaging?

A convex function can be assembled from affine supporting functions. Optimal transport replaces affine supports by translated profiles of a cost. This construction gives cost-concave potentials, the functions appearing in the Kantorovich dual problem [1], [6].

Is the average of two cost-concave functions still cost-concave? For quadratic cost in Euclidean space, yes. For most other power costs, no—even on an interval. Squared geodesic distance on a round sphere provides another positive example. Throughout, “average” means an arithmetic average of functions, not a Wasserstein barycenter of measures.

Watercolor caricatures of Adrien-Marie Legendre and Joseph Fourier by Julien-Léopold Boilly
Adrien-Marie Legendre and Joseph Fourier, by Julien-Léopold Boilly, 1820. Bibliothèque de l’Institut de France; source and public-domain record. This is the historical Legendre portrait, not the frequently misidentified portrait of the politician Louis Legendre.

Definition of the c-transform

Let \(X,Y\) be compact spaces and \(c:X\times Y\to\mathbb R\) continuous. Initially take a finite continuous \(f\). A feasible dual pair satisfies \(f(x)+g(y)\le c(x,y)\). For fixed \(f\), its largest feasible partner is

\[f^c(y)=\inf_{x\in X}\{c(x,y)-f(x)\}.\]

The reverse transform uses the transposed cost \(\bar c(y,x)=c(x,y)\):

\[g^{\bar c}(x)=\inf_{y\in Y}\{c(x,y)-g(y)\}.\]

A function of the form \(g^{\bar c}\) is c-concave. It is a lower envelope of cost profiles. At a contact point, an individual profile touches it from above: this reverses the familiar picture of affine supports beneath a convex function.

Proposition 1 (closure by double transformation). The transform reverses order, and

\[f^{c\bar c}\ge f,\qquad f^{c\bar c c}=f^c.\]

The double transform is the smallest c-concave majorant of \(f\). In particular, \(f\) is c-concave exactly when \(f=f^{c\bar c}\).

Proof: use feasibility twice

Feasibility says \(f(x)\le c(x,y)-f^c(y)\) for every \(y\); take the infimum to get \(f\le f^{c\bar c}\). Applying the order-reversing transform gives \(f^c\ge f^{c\bar c c}\). Applying the same double-transform inequality to \(f^c\) gives the reverse inequality, hence the triple identity.

Every transformed function is therefore fixed by double transformation. Finally, if a c-concave \(h\) majorizes \(f\), monotonicity of the double transform gives \(h=h^{c\bar c}\ge f^{c\bar c}\). \(\square\)

Relation to the Legendre transform

On full dual Euclidean spaces, the convex conjugate is \(h^*(y)=\sup_x\{x\cdot y-h(x)\}\). Our infimum convention differs by signs. For the pairing cost \(c(x,y)=x\cdot y\),

\[f^c(y)=-(-f)^*(-y),\qquad f^{c\bar c}=-(-f)^{**}.\]

Under the properness assumptions of Fenchel–Moreau biconjugacy, the last expression is the closed concave envelope above \(f\). This infimum transform therefore differs from the usual supremum Legendre transform [2].

For the quadratic cost \(c(x,y)=\tfrac12|x-y|^2\) on \(\mathbb R^d\times\mathbb R^d\), let \(h(x)=\tfrac12|x|^2-f(x)\). Completing the square gives

\[f^c(y)=\tfrac12|y|^2-h^*(y),\qquad f^{c\bar c}(x)=\tfrac12|x|^2-h^{**}(x).\]

Thus, in the proper closed setting, c-concavity is exactly convexity of \(h\). If \(f_0,f_1\) are c-concave, then

\[\tfrac12|x|^2-\bigl((1-t)f_0+tf_1\bigr) =(1-t)h_0+th_1\]

is convex. This proves averaging stability. Restrictions on the target domain restrict the allowed supporting slopes; the full-space characterization cannot simply be reused with an arbitrary target subset.

Metric costs and Lipschitz potentials

Proposition 2 (metric potentials). On the same compact metric space \(X=Y\), with \(c=d\), c-concave functions are precisely the 1-Lipschitz functions. Consequently their convex combinations are c-concave.

Proof: the triangle inequality identifies the whole class

Each profile \(x\mapsto d(x,y)-g(y)\) is 1-Lipschitz, and so is its finite lower envelope. Conversely, if \(f\) is 1-Lipschitz, then \(d(x,y)-f(x)\ge-f(y)\), with equality at \(x=y\). Hence \(f^d=-f\), and \(f^{dd}=f\). \(\square\)

For an arbitrary finite input, one can also write \(f^{dd}(x)=\sup_y\{f(y)-d(x,y)\}\): this is its smallest 1-Lipschitz majorant. In particular, \(|x-y|^p\) with \(0<p\le1\) is a metric, so averaging is stable in that range too. For geodesic distance, the argument needs no curvature assumption. Squaring the distance changes this.

Closure under averaging for power costs

Theorem 1 (power costs on an interval). Let \(X=Y=[-3,3]\) and \(c_p(x,y)=|x-y|^p\), with \(p>0\). The class of c-concave functions is closed under arithmetic convex combinations if \(0<p\le1\) or \(p=2\). For every other exponent, a mean of two individual cost profiles already fails to be c-concave.

The metric argument proves the first range. For \(p=2\), the allowed centers form the convex interval \([-3,3]\). At each point an average of two supporting parabolas is itself a parabola, up to a constant, centered at the average of their centers; that center remains in the interval.

Proof of failure: a supporting profile has too little curvature

Each \(f_i(x)=c_p(x,y_i)\) is c-concave: it has itself as a cost-profile support at every point. If their smooth average \(f\) were c-concave, compactness and continuity of \(f^c\) would provide a profile \(c_p(x,y_*)+a\) touching it from above at zero. Necessarily

\[f'(0)=\partial_xc_p(0,y_*),\qquad f''(0)\le\partial_{xx}c_p(0,y_*).\]

When \(p>2\). Choose \(f(x)=\tfrac12(|x-1|^p+|x+1|^p)\). Its zero derivative forces \(y_*=0\), but

\[f''(0)=p(p-1)\gt 0=\partial_{xx}c_p(0,0),\]

a contradiction.

When \(1<p<2\). Choose \(f(x)=\tfrac12(|x+1|^p+|x+2|^p)\). The derivative fixes \(y_*=-r\), where

\[r=\left(\frac{1+2^{p-1}}2\right)^{1/(p-1)}.\]

Since \((p-2)/(p-1)<0\), strict convexity of this negative power and Jensen give

\[\frac{1+2^{p-2}}2 \gt \left(\frac{1+2^{p-1}}2\right)^{(p-2)/(p-1)} =r^{p-2}.\]

After multiplication by \(p(p-1)\), this says the average has greater curvature than its only possible touching cost profile. Both profiles are smooth near zero because \(r\ne0\). Again there is a contradiction. \(\square\)

Squared geodesic costs on spheres

For squared intrinsic geodesic distance on a round sphere, arithmetic combinations of finite c-concave functions are c-concave. The property extends to products of round spheres, including flat tori with their product metrics [3], [4]. Chordal distance from an ambient embedding is a different cost.

The proof uses an inequality between supporting cost profiles; positive sectional curvature alone is not enough. Fix a contact point \(x_0\), interpolate shortest logarithms to two centers, and define

\[y_t=\operatorname{Exp}_{x_0}\bigl((1-t)\operatorname{Log}_{x_0}y_0+t\operatorname{Log}_{x_0}y_1\bigr), \qquad q_t(x)=c(x,y_t)-c(x_0,y_t).\]

On these spaces, with the cut-locus cases obtained by limits,

\[q_t(x)\ge(1-t)q_0(x)+tq_1(x).\]
How the supporting-profile inequality proves averaging stability

If \(q_i(x)+f_i(x_0)\) supports \(f_i\) from above, then

\[(1-t)f_0(x)+tf_1(x) \le (1-t)f_0(x_0)+tf_1(x_0)+q_t(x).\]

Equality holds at \(x_0\). Thus the average has a cost-profile support at every point. Taking the lower envelope of all these supports recovers the average, proving c-concavity. The geometric inequality itself is the substantive theorem of Kim and McCann; it is not proved by this elementary envelope argument. \(\square\)

For smooth costs on bounded Euclidean domains, Figalli, Kim, and McCann characterize this convexity of the potential class by nonnegative cross-curvature, under bi-twist, nondegeneracy, and convexity of the cost-gradient images [5]. This condition is stronger than weak Ma–Trudinger–Wang. The power-cost counterexamples above show why additional hypotheses are needed.

Numerical experimentation

The panels below compute the transform and double transform of an editable function. The presets are the two averages in Theorem 1; they are regenerated for the selected exponent. The orange curve lies above the input and coincides with it exactly when the finite-grid function is c-concave. Refine the target grid before interpreting a small gap as a continuum obstruction.

Uniform grids on [−3,3], with 121–481 points. There is no entropic smoothing. Cost profiles in the background are selected supports of the computed double transform. Drag the input curve, or use the sample and height sliders for keyboard editing.

References

  1. Gabriel Peyré. Optimal Transport for Machine Learners. Book manuscript, 2025–2026.
  2. R. Tyrrell Rockafellar. Convex Analysis. Princeton University Press, 1970.
  3. Young-Heon Kim and Robert J. McCann. Towards the smoothness of optimal maps on Riemannian submersions and Riemannian products (of round spheres in particular). Journal für die reine und angewandte Mathematik 664, 1–27, 2012.
  4. Samuel Cohen, Brandon Amos, and Yaron Lipman. Riemannian Convex Potential Maps. ICML, PMLR 139, 2028–2038, 2021.
  5. Alessio Figalli, Young-Heon Kim, and Robert J. McCann. When is multidimensional screening a convex program? Journal of Economic Theory 146(2), 454–478, 2011.
  6. Cédric Villani. Optimal Transport: Old and New. Springer, 2009.

How these posts and numerical experiments were prepared: AI disclosure.

Subscribe with an RSS reader: RSS Atom

How to subscribe

RSS and Atom let a reader app collect new posts for you; they are not email subscriptions. Opening these links in Safari may display plain text instead of a subscription form.

  1. Open an RSS reader, such as NetNewsWire on Mac.
  2. Choose Add feed or Subscribe in your reader (NetNewsWire calls it New Web Feed), then paste the RSS feed URL below. You can also use the Atom link above.

To copy manually, select the URL and press Command+C on Mac or Ctrl+C on Windows/Linux.

Back to the blog · Gabriel Peyré