Zulip Chat Archive

Stream: Is there code for X?

Topic: convex is supremum of affine


Rémy Degenne (Nov 08 2021 at 10:23):

I have a real convex function and I want to say that it is equal to a supremum of affine functions. Do we have this somewhere?

Yaël Dillies (Nov 08 2021 at 10:54):

There's some stuff in analysis.convex.function (and the next analysis file in the import tree) which looks like this, but I expect that we don't have it because how would you describe these affine functions? Is there a simpler way than going through derivation?

Rémy Degenne (Nov 08 2021 at 11:22):

I would be fine with a result about subgradients, but I think this could be obtained from convexity of the epigraph and results about supporting hyperplanes. But my memory is unclear on that point. I thought I saw some separation results in convexity PRs which could be related. I guess that I should first look for a proof, then look at which pieces of it are there. Thanks!

Also, in case I am not asking about the right thing: what I want to do is prove Jensen's inequality for the conditional expectation. The proof I would naturally write starts from the way the conditional expectation behaves on affine transformations of functions, hence writing convex functions using affine ones is useful. Maybe there is a better way of doing it, based on what we have about convexity.

Rémy Degenne (Nov 08 2021 at 11:24):

I found a source which does exactly what I want to do: I am looking for a version of theorem 2 of https://www.uio.no/studier/emner/matnat/math/MAT4410/h19/undervisningsmateriale/jensen.pdf

Reid Barton (Nov 08 2021 at 12:33):

If you don't need the countability, we probably already know that the convex hull of any SS is the intersection of all the half-spaces containing SS. Now apply this to S={(x,y)yf(x)}S = \{\,(x, y) \mid y \ge f(x)\,\}. It's pretty easy to see that any half-space containing SS has to be of the form {ya(x)}\{\,y \ge a(x)\,\} for some affine aa, and then that SS is this intersection means exactly that f(x)f(x) is the supremum of all the a(x)a(x), I think.

Patrick Massot (Nov 08 2021 at 12:35):

I'm very happy to see this question because it means mathlib is moving in directions that we haven't explored yet.

Yaël Dillies (Nov 08 2021 at 12:59):

I assume you can say that's in the supremum of the affine functions which are less than it, and you get one direction directly, but I don't know how hard (and what generality is needed) is the other way.

Reid Barton (Nov 08 2021 at 13:05):

Do we know that a closed convex set is the intersection of the closed half-spaces containing it?

David Wärn (Nov 08 2021 at 13:05):

For countability, the argument in the pdf actually shows that if f=supiIfif = \sup_{i \in I} f_i is a supremum of affine functions, then there is a countable JIJ \subseteq I such that f=supiJfif = \sup_{i \in J} f_i. You can just replace fxf_x with a countable IxII_x \subseteq I such that f(x)=supiIxfi(x)f(x) = \sup_{i \in I_x} f_i(x).

Yaël Dillies (Nov 08 2021 at 13:09):

Reid Barton said:

Do we know that a closed convex set is the intersection of the closed half-spaces containing it?

I have that on a branch! Eidelheit's theorem.

David Wärn (Nov 08 2021 at 13:29):

I guess it's also true that a closed convex set is a countable intersection of half-spaces. (Basically the space of all half-spaces is second countable, so the subspace of supporting half-spaces is in particular separable)

Yaël Dillies (Nov 08 2021 at 13:36):

Here's the precise line where I proved Eidelheit's theorem: https://github.com/leanprover-community/mathlib/blob/sperner-again/src/combinatorics/simplicial_complex/exposed.lean#L69

Yaël Dillies (Nov 08 2021 at 13:54):

The only prerequisite is #7288


Last updated: Dec 20 2023 at 11:08 UTC