Friday, December 4, 2026

ConvexLogic7over6

ConvexLogic7over6

Convex Analysis Meets Linear Logic (7/6): The Categorical View

A bonus post in the series summarizing discussions between Dr. Thu-Le Tran and Opus Low.

Posts 5 and 6 used the words “tensor” and “linear map” informally. Here we fix the structure precisely, in categorical language, and re-derive the main identities from it. The picture is simple: for each space, the closed convex functions form a poset, conjugation is an order-reversing involution on it, and every linear map AA moves functions between the posets of two spaces, in two directions that are adjoint to each other.


1. The ingredients

The base category

Let Vec\mathbf{Vec} be the category whose objects are the Euclidean spaces Rn\mathbb{R}^n and whose morphisms are all linear maps. Each space is identified with its dual through the inner product, so the transpose of A:X→ZA: X \to Z is a linear map A⊤:Z→XA^\top: Z \to X, and (AB)⊤=B⊤A⊤(AB)^\top = B^\top A^\top.

A poset over each space

For each space XX let Γ(X)\Gamma(X) be the set of closed convex functions on XX defined in post 2: the proper, convex, lower semicontinuous functions, together with the two constants +∞+\infty and −∞-\infty. Ordered pointwise, Γ(X)\Gamma(X) is a complete lattice.

A single function ff is just an element of the poset Γ(X)\Gamma(X). It is not a functor and not a morphism. What varies from space to space is the poset itself.

Conjugation

On each Γ(X)\Gamma(X), the conjugate f↦f∗f \mapsto f^* is an order-reversing involution: f≤gf \le g implies g∗≤f∗g^* \le f^*, and f∗∗=ff^{**} = f. Equivalently, it is an order isomorphism from Γ(X)\Gamma(X) to the opposite poset Γ(X)op\Gamma(X)^{\mathrm{op}}.


2. A linear map moves functions in two directions

Let A:X→ZA: X \to Z be linear.

Definition: pullback and pushforward

  • The pullback A∗:Γ(Z)→Γ(X)A^*: \Gamma(Z) \to \Gamma(X) is A∗F=F∘AA^*F = F \circ A.

  • The pushforward A!:Γ(X)→Γ(Z)A_!: \Gamma(X) \to \Gamma(Z) is A!f=cl⁡(Af)A_! f = \operatorname{cl}(Af), where (Af)(z)=inf⁡{f(x):Ax=z}(Af)(z) = \inf \{ f(x) : Ax = z \} with inf⁡∅=+∞\inf \emptyset = +\infty, and cl⁡\operatorname{cl} denotes the closed convex hull g↦g∗∗g \mapsto g^{**}.

Both land in the right place: F∘AF \circ A is convex and lower semicontinuous (and is a constant ±∞\pm\infty when FF is, or when the range of AA misses the domain of FF), and cl⁡(Af)\operatorname{cl}(Af) is in Γ(Z)\Gamma(Z) by construction. Both are monotone.

Proposition 1 (Galois connection)

For F∈Γ(Z)F \in \Gamma(Z) and f∈Γ(X)f \in \Gamma(X),

A∗F≤f  ⟺  F≤A!f.A^*F \le f \iff F \le A_! f.

Proof. First, F≤AfF \le Af if and only if F(Ax)≤f(x)F(Ax) \le f(x) for all xx. For the forward direction, f(x)≥(Af)(Ax)≥F(Ax)f(x) \ge (Af)(Ax) \ge F(Ax). For the converse, for each zz every xx with Ax=zAx = z satisfies f(x)≥F(z)f(x) \ge F(z), so the infimum does too. Second, cl⁡(Af)\operatorname{cl}(Af) is the largest element of Γ(Z)\Gamma(Z) below AfAf, and F∈Γ(Z)F \in \Gamma(Z), so F≤AfF \le Af if and only if F≤cl⁡(Af)F \le \operatorname{cl}(Af). □\square

So A∗A^* is the left adjoint of A!A_!.

Proposition 2 (compatibility with composition)

For linear maps B:W→XB: W \to X and A:X→ZA: X \to Z, we have (AB)∗=B∗A∗(AB)^* = B^* A^* and (AB)!=A!B!(AB)_! = A_! B_!.

Proof. The first identity is F∘(AB)=(F∘A)∘BF \circ (AB) = (F \circ A) \circ B. For the second, right adjoints of composable left adjoints compose, and adjoints are unique: A!B!A_! B_! is right adjoint to B∗A∗=(AB)∗B^* A^* = (AB)^*, as is (AB)!(AB)_!. □\square

Proposition 2 is the precise content of the word “functoriality” in post 6. In the language of categories, X↦Γ(X)X \mapsto \Gamma(X) with A↦A∗A \mapsto A^* is a functor Vecop→Poset\mathbf{Vec}^{\mathrm{op}} \to \mathbf{Poset}, and A↦A!A \mapsto A_! is the corresponding covariant family of right adjoints.


3. Conjugation exchanges the two directions

Proposition 3

For every f∈Γ(X)f \in \Gamma(X) and every linear A:X→ZA: X \to Z,

(A!f)∗=f∗∘A⊤.(A_! f)^* = f^* \circ A^\top.

No closure and no condition is needed.

Proof. Since (cl⁡g)∗=g∗(\operatorname{cl} g)^* = g^* for any gg, it suffices to compute (Af)∗(Af)^*:

(Af)∗(w)=sup⁡z(⟨z,w⟩−inf⁡Ax=zf(x))=sup⁡x(⟨Ax,w⟩−f(x))=f∗(A⊤w).□(Af)^*(w) = \sup_z \Big( \langle z, w \rangle - \inf_{Ax = z} f(x) \Big) = \sup_x \big( \langle Ax, w \rangle - f(x) \big) = f^*(A^\top w). \quad \square

Corollary

Because A!fA_! f and FF belong to Γ\Gamma, we can conjugate once more and obtain, for all f∈Γ(X)f \in \Gamma(X) and F∈Γ(Z)F \in \Gamma(Z),

A!f=(f∗∘A⊤)∗,(A∗F)∗=(A⊤)! F∗.A_! f = \big( f^* \circ A^\top \big)^*, \qquad (A^* F)^* = (A^\top)_! \, F^*.

The second identity follows from the first applied to A⊤A^\top and F∗F^*: (A⊤)!F∗=(F∗∗∘A)∗=(F∘A)∗(A^\top)_!F^* = (F^{**} \circ A)^* = (F \circ A)^*.

In words: conjugation turns pullback into pushforward along the transpose. The closure that appears in the textbook form (F∘A)∗=cl⁡(A⊤F∗)(F \circ A)^* = \operatorname{cl}(A^\top F^*) is not an extra hypothesis here; it is built into the definition of A!A_!.

Corollary (transposed morphisms)

Combining Proposition 1 with order reversal of conjugation,

F∘A≤f  ⟺  f∗∘A⊤≤F∗.F \circ A \le f \iff f^* \circ A^\top \le F^*.

Both sides say the same thing about the pair (A,A⊤)(A, A^\top): if AA does not increase cost from (X,f)(X, f) to (Z,F)(Z, F), then A⊤A^\top does not increase cost from (Z,F∗)(Z, F^*) to (X,f∗)(X, f^*).

Numerical check

The script code/category_checks.py tests these identities on grids. For non-separable convex ff on R2\mathbb{R}^2 and PP the projection (x1,x2)↦x1(x_1, x_2) \mapsto x_1, we have (P!f)∗=f∗(⋅,0)(P_! f)^* = f^*(\cdot, 0), with maximum error 00 on the window ∣y1∣≤1|y_1| \le 1. For FF on R\mathbb{R}, the conjugate of F(x1)F(x_1) viewed on R2\mathbb{R}^2 equals F∗(y1)F^*(y_1) on the line y2=0y_2 = 0 with error 00, and is at least 8.68.6 on y2=3y_2 = 3 (a stand-in for +∞+\infty). For A=ΣA = \Sigma and A⊤=ΔA^\top = \Delta, the two inequalities F∘Σ≤fF \circ \Sigma \le f and f∗∘Δ≤F∗f^* \circ \Delta \le F^* agree in all six “true” and all six “false” random trials. These are grid checks, not proofs; the proofs are those above.


4. Sum and infimal convolution as base change

The tensor

For f∈Γ(X)f \in \Gamma(X) and g∈Γ(Z)g \in \Gamma(Z), define f⊗g∈Γ(X×Z)f \otimes g \in \Gamma(X \times Z) by (f⊗g)(x,z)=f(x)+g(z)(f \otimes g)(x, z) = f(x) + g(z). On proper functions, (f⊗g)∗=f∗⊗g∗(f \otimes g)^* = f^* \otimes g^*, because the supremum separates.

Caution about the constants. For the two improper constants the sum of +∞+\infty and −∞-\infty must be given a value. Take the upper addition (+∞)+˙(−∞)=+∞(+\infty) \dot{+} (-\infty) = +\infty for ⊗\otimes on Γ\Gamma. Then self-duality holds only if the right-hand side uses the lower addition, with (+∞)+⋅(−∞)=−∞(+\infty) \underset{\cdot}{+} (-\infty) = -\infty. For example f≡+∞f \equiv +\infty and g≡−∞g \equiv -\infty give (f⊗g)∗=(+∞)∗=−∞(f \otimes g)^* = (+\infty)^* = -\infty, while the upper sum of f∗=−∞f^* = -\infty and g∗=+∞g^* = +\infty is +∞+\infty. So the tensor and the par f ⅋ g:=(f∗⊗g∗)∗f \,\text{⅋}\, g := (f^* \otimes g^*)^* coincide on proper functions and differ only on pairs that involve the two constants.

Sum and infimal convolution

Let Δ:X→X×X\Delta: X \to X \times X be the diagonal and Σ=Δ⊤:X×X→X\Sigma = \Delta^\top: X \times X \to X the addition map. Directly from the definitions,

f+g=Δ∗(f⊗g),cl⁡(f □ g)=Σ!(f⊗g).f + g = \Delta^*(f \otimes g), \qquad \operatorname{cl}(f \,\square\, g) = \Sigma_!(f \otimes g).

De Morgan from the corollary

For proper f,gf, g,

(f+g)∗=(Δ∗(f⊗g))∗=(Δ⊤)!(f⊗g)∗=Σ!(f∗⊗g∗)=cl⁡(f∗ □ g∗).(f + g)^* = \big(\Delta^*(f \otimes g)\big)^* = (\Delta^\top)_! (f \otimes g)^* = \Sigma_!(f^* \otimes g^*) = \operatorname{cl}(f^* \,\square\, g^*).

The second equality is the corollary of Section 3, the third is self-duality. No qualification condition appears, because the closure is part of Σ!\Sigma_!. The classical qualification condition ri⁡(dom⁡f)∩ri⁡(dom⁡g)≠∅\operatorname{ri}(\operatorname{dom} f) \cap \operatorname{ri}(\operatorname{dom} g) \neq \emptyset is a sufficient condition (Rockafellar, Convex Analysis, Theorem 16.4 as we recall it; please check the numbering) under which the closure is unnecessary and the infimum is attained, so that Σ!\Sigma_! coincides with the naive image Σ\Sigma. In this reading, “qualification” means “pushforward equals plain image”.


5. Where linear distributivity fails, in this language

Linear distributivity would require f+(g □ h)f + (g \,\square\, h) to be comparable with (f+g) □ h(f + g) \,\square\, h. In the categorical language, these are two different base changes of the same function f⊗g⊗hf \otimes g \otimes h on X3X^3, followed by two different maps. The first uses a map that identifies the variable of ff with the output, the second uses a map that identifies it with the inner variable. The tensor f⊗g⊗hf \otimes g \otimes h is associative on the nose, so nothing is wrong at the level of the tensor. The failure of post 4 is entirely a feature of the maps Δ\Delta and Σ\Sigma, which merge variables.


6. A reading, and its limits

The table below translates the structure into logical language. It is a reading, not a theorem.

| Convex structure | Logical reading |

|–|--|

| poset Γ(X)\Gamma(X) with ≤\le | formulas over a context XX, ordered by entailment |

| conjugation f↦f∗f \mapsto f^* | linear negation |

| tensor f⊗gf \otimes g on X×ZX \times Z | multiplicative conjunction over independent contexts |

| pullback A∗A^* | substitution along AA |

| pushforward A!A_!, right adjoint of A∗A^* | a quantifier-like operation (it takes an infimum) |

The last row echoes Lawvere’s idea that quantifiers are adjoints to substitution. With our order, A!A_! is a right adjoint and takes infima, so it resembles a universal quantifier; reversing the order would make it existential. We have not checked the Beck–Chevalley condition that a hyperdoctrine requires, so we do not claim that this structure is one.


7. Honest status

Every identity in this post is classical: Proposition 3 is a restatement of the conjugation rules in Rockafellar’s Section 16, and the Galois connection is elementary. What the post adds is packaging: poset over each space, order-reversing involution, and the adjoint pair A∗⊣A!A^* \dashv A_!, which together yield De Morgan and the marginal-function rules in two lines each. Whether this packaging already appears in the literature, for instance in Rockafellar’s treatment of bifunctions, in Willerton’s enriched-category account of the Legendre–Fenchel transform, or in work on tropical modules, we have not checked.

Several questions remain open.

  1. Internal hom. We have not tested whether, for any two objects, there is an object representing “maps from one to the other” in a way that makes the tensor part of a closed monoidal structure. Without it, no claim of a ∗*-autonomous structure can be made.

  2. Beck–Chevalley. For pullback squares of linear maps, does B∗A!=A!′ B′∗B^* A_! = A'_!\, B'^* hold, with the appropriate closures? If so, the quantifier reading becomes precise.

  3. A single category. Gluing the posets Γ(X)\Gamma(X) into one category of pairs (X,f)(X, f) needs a condition on morphisms. The natural choice, F∘A≤fF \circ A \le f, is an instance of the Grothendieck construction applied to A∗A^*, and the corollary of Section 3 says that transposition respects it. We have not studied this category further.


Closing Thoughts

The whole series now has one skeleton: a poset of closed convex functions over each space, an order-reversing involution on it, a self-dual tensor between spaces, and an adjoint pair of maps for each linear map. Everything else, sum, infimal convolution, De Morgan, marginal functions and the failure of linear distributivity, is read off from these four pieces.

Popular Posts