The dual of the Kantorovich optimal transport problem is
where the Kantorovich potentials are measurable representatives satisfying
One standard form of the Kantorovich duality theorem assumes that are Polish spaces, are probability measures defined as Borel measures, and is sequentially lower semicontinuous. Then
The primal infimum is attained; its value may be . Nonnegativity can be replaced by a constant lower bound by shifting the cost. This duality for lower semicontinuous costs is also discussed in Beiglboeck, Leonard and Schachermayer's duality paper.
Equality of values does not by itself assert a dual maximum. A sufficient stronger setting for attainment on both sides is compact metric spaces and a finite continuous cost ; then continuous Kantorovich potentials attain the dual supremum. The general statement above correctly uses a supremum.
Fix any admissible pair of Kantorovich potentials and any transport plan . Its marginal distributions give
The right side is well defined because and are Lebesgue integrable with respect to . Integrating their pointwise feasibility inequality gives
Since this holds for every feasible pair and every transport plan,
This proves the required inequality directly from the transport constraints, without any convex optimization duality theorem. Whenever the extrema are attained, the supremum and infimum can respectively be written as a maximum and minimum. Even the Kantorovich duality theorem is unnecessary for this direction.