# Infra-Domain proofs 1

$\newcommand{\less}{\sqsubseteq} \newcommand{\more}{\sqsupseteq} \newcommand{\dirsup}{\bigsqcup^{\uparrow}} \newcommand{\eps}{\epsilon} \newcommand{\la}{\lambda}$

A quick note here is that whenever a proposition or theorem or something is cited with a complicated-looking number, like, not Proposition 3, but "Proposition 3.4.2.7", it's being cited from [this book.](https://www.cs.bham.ac.uk/~axj/pub/papers/handy1.pdf)

**Proposition 2:** *If X is a metrizable space, then the pointwise limit of a sequence of lower-bounded lower-semicontinuous functions *$f_n:X\to(-\infty,\infty]$* with *$f_{n+1}\ge f_n$* is lower-bounded and lower-semicontinuous.*

Proof: Lower-boundedness of $f^*$(the pointwise limit of the $f_n$) is trivial because $f^*\ge f_1$, and $f_1$ is lower-bounded. For lower-semicontinuity, let $x_i$ limit to $x$, and $n$ be some arbitrary natural number. We have

$\liminf_{i\to\infty}f^{*}(x_i)\ge\liminf_{i\to\infty}f_n(x_i)\ge f_n(x)$

Because $f^*\ge f_n$ and $f_n$ is lower-semicontinuous. And, since this works regardless of $n$, we have

$\liminf_{i\to\infty}f^{*}(x_i)\ge\lim_{n\to\infty}f_n(x)=f^{*}(x)$

Since $f^*$ is the pointwise limit of the $f_n$, showing that $f^*$ is lower-semicontinuous.

**Proposition 3:** *If *$X$* is a metrizable space, then given any lower-bounded lower-semicontinuous function *$f^{*}:X\to(-\infty,\infty]$*, there exists a sequence of bounded continuous functions *$f_n:X\to\mathbb{R}$* s.t. *$f_{n+1}\ge f_n$* and the *$f_n$* limit pointwise to *$f^{*}$*.*

First, fix $X$ with an arbitrary metric, and stipulate that $f^*$ is lower-bounded and lower-semicontinuous. We'll be defining some helper functions for this proof. Our first one is the $g_n$ family, defined as follows for $n>0$:

$g_n(x):=\inf\{f^*(x')|d(x,x')<\frac{1}{n}\}$

Ie, we take a point, and map it to the worst-case value according to $f^*$ produced in an open ball of size $\frac{1}{n}$ around said point. Obviously, regardless of $n$, $g_n\le f^*$.

Now we must show that $g_n$, regardless of $n$, is upper-semicontinuous, for later use. Let $\eps$ be arbitrary, and $x$ be some arbitrary point in $X$, and $x_m$ be some sequence limiting to $x$. Our task is to show $\limsup_{m\to\infty}g_n(x_m)\le g_n(x)$, that's upper-semicontinuity.

First, we observe that there must exist an $x'$ s.t. $d(x,x')<\frac{1}{n}$, and $f^*(x')\le g_n(x)+\eps$. Why? Well, $g_n(x)$ is "what's the worst-case value of $f^*$ in the $\frac{1}{n}$-sized open ball", and said worst-case value may not be *exactly* attained, but we should be able to find points in said open ball which get arbitrarily close to the infinimum or attain it.

Now, since $x_m$ converges to $x$, there must be some $m^*$ where, forever afterward, $d(x_m,x)<\frac{1}{n}-d(x,x')$ (the latter term is always nonzero from how we selected $x'$). For any $m$ in that tail, we can rearrange this and get that $d(x_m,x)+d(x,x')<\frac{1}{n}$, so by the triangle inequality, we have that $d(x_m,x')<\frac{1}{n}$. Ie, $x'$ is in the open ball around $x_m$ for the tail of the convergent sequence.

Now, since $x'$ is in all those open balls, the definition of $g_n$ means that for our tail of sufficiently late $x_m$, $g_n(x_m)\le f^*(x')$, and we already know that $f^*(x')\le g_n(x)+\eps$. Putting these together, for all sufficiently late $x_m$, $g_n(x_m)\le g_n(x)+\eps$. $\eps$ was arbitrary, so we have

$\limsup_{m\to\infty}g_n(x_m)\le g_n(x)$

(the limit might not exist, but limsup always does). And now we know that our $g_n$ auxiliary functions are upper-semicontinuous.

Next up: We must show that, if $f_n$ is some continuous function, $\sup(f_n,g_n)$ is upper-semicontinuous. For this, we do:

$\limsup_{m\to\infty}\max(f_n(x_m),g_n(x_m))=\max(\limsup_{m\to\infty}f_n(x_m),\limsup_{m\to\infty}g_n(x_m))$

$=\max(f_n(x),\limsup_{m\to\infty}g_n(x_m))\le\max(f_n(x),g_n(x))$

For this, we distributed the limsup inside the sup, used that $f_n$ is continuous, and then used that $g_n$ is upper-semicontinuous for the inequality.

Now, here's what we're going to do. We're going to inductively define the continuous $f_n$ as follows. Abbreviate $\inf(0,\inf_{x'\in X}f^*(x'))$ (which is finite) as $f^*_{min}$, and then consider the set-valued functions, for $n>0$, $\Phi_n:X\to\mathcal{P}(\mathbb{R})$ inductively defined as follows:

$\Phi_1(x):=[f^*_{min},\min(f^*(x),f^*_{min}+1)]$

$\Phi_{n+1}(x):=[\min(\max(f_n(x),g_n(x)),f^*_{min}+n),\min(f^*(x),f^*_{min}+n+1)]$

where $f_n$ is a continuous selection from $\Phi_n$.

The big unknown is whether we can even find a continuous selection from all these set-valued functions to have the induction work. However, assuming that part works out, we can easily clean up the rest of the proof. So let's begin.

We'll be applying the Michael Selection Theorem. $\mathbb{R}$ is a Banach space, and $X$ being metrizable implies that $X$ is paracompact, so those conditions are taken care of. We need to show that, for all $n$ and $x$, $\Phi_n(x)$ is nonempty, closed, and convex, and $\Phi_n$ is lower-hemicontinuous. This will be done by induction, we'll show it for $n=1$, establish some inequalities, and use induction to keep going.

For $n=1$, remember, 

$\Phi_1(x)=[f^*_{min},\min(f^*(x),f^*_{min}+1)]$

This is obviously nonempty, closed, and convex for all $x$. That just leaves establishing lower-hemicontinuity. Lower-hemicontinuity is, if $y\in\Phi_1(x)$, and there's a sequence $x_m$ limiting to $x$, there's a (sub)sequence $y_m\in\Phi_1(x_m)$ that limits to $y$. We can let our $y_m:=\min(f^*(x_m),f^*_{min}+1,y)$. Since $y\in\Phi_1(x)$, $y\ge f^*_{min}$, so 

$y_m=\min(f^*(x_m),f^*_{min}+1,y)\in[f^*_{min},\min(f^*(x),f^*_{min}+1)]=\Phi_1(x_m)$

So it's an appropriate sequence to pick. Now, we can go:

$\limsup_{m\to\infty}\min(f^*(x_m),f^*_{min}+1,y)\le\limsup_{m\to\infty}y=y$

and

$\liminf_{m\to\infty}\min(f^*(x_m),f^*_{min}+1,y)=\min(\liminf_{m\to\infty}f^*(x_m),f^*_{min}+1,y)$

$=\min(\liminf_{m\to\infty}f^*(x_m),y)\ge\min(f^*(x),y)=y$

The first equality was distributing the liminf in and neglecting it for constants, the second is because $y\le f^*_{min}+1$ because $y\in\Phi_1(x)$, and the inequality is from lower-semicontinuity of $f^*$, and the equality is because $y\in\Phi_1(x)$ so $y\le f^*(x)$.

Since the limsup of this sequence is below $y$ and the liminf is above $y$, we have:

$\lim_{m\to\infty}y_m=\lim_{m\to\infty}\min(f^*(x_m),f^*_{min}+1,y)=y$

And bam, lower-hemicontinuity is proved for the base case, we can get off the ground with the Michael selection theorem picking our $f_1$.

Now for the induction step. The stuff we'll be assuming for our induction step is that $f_n\le f^*$ (we have this from the base case), and that $f_n$ is continuous (we have this from the base case). Now,

$\Phi_{n+1}(x):=[\min(\max(f_n(x),g_n(x)),f^*_{min}+n),\min(f^*(x),f^*_{min}+n+1)]$

Because $f_n\le f^*$ by induction assumption, and $g_n\le f^*$, because the definition of $g_n$ was

$g_n(x):=\inf\{f^*(x')|d(x,x')<\frac{1}{n}\}$

we have nonemptiness, and closure and convexity are obvious, so we just need to verify lower-hemicontinuity. Lower-hemicontinuity is, if $y\in\Phi_{n+1}(x)$, and there's a sequence $x_m$ limiting to $x$, there's a (sub)sequence $y_m\in\Phi_{n+1}(x_m)$ that limits to $y$. We can define

$y_m:=\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

Now,

$y_m=\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$\ge\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n)$

And also,

$\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$\le\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(f^*(x_m),f^*_{min}+n))$

because $f^*\ge f_n$ and $g_n$, by our induction assumption and definition of $g_n$ respectively. Then, we can observe that because

$f^*(x_m)\ge\min(f^*(x_m),y,f^*_{min}+n+1)$

$f^*(x_m)\ge\min(f^*(x_m),f^*_{min}+n)$

we have

$f^*(x_m)\ge\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(f^*(x_m),f^*_{min}+n))$

and also we have

$f^*_{min}+n+1\ge\min(f^*(x_m),y,f^*_{min}+n+1)$

$f^*_{min}+n+1\ge\min(f^*(x_m),f^*_{min}+n)$

so we have

$f^*_{min}+n+1\ge\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(f^*(x_m),f^*_{min}+n))$

Putting all this together, our net result is that

$\min(f^*(x_m),f^*_{min}+n+1)\ge\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(f^*(x_m),f^*_{min}+n))$

Combining this with previous results (because the later term is an upper-bound to our $y_m$ when unpacked), we have:

$\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$\le\min(f^*(x_m),f^*_{min}+n+1)$

putting the upper and lower bounds together, we have:

$y_m=\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$\in[\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n),\min(f^*(x),f^*_{min}+n+1)]=\Phi_{n+1}(x_m)$

So it's an appropriate sequence of $y_m$ to pick. I will reiterate that, since $f_n$ is continuous (induction assumption) and we already established that all the $g_n$ are upper-semicontinuous, and the sup of a continuous function and upper-semicontinuous function is upper-semicontinuous as I've shown, we have upper-semicontinuity for $\sup(f_n,g_n)$. Remember that. Now, we can go:

$\limsup_{m\to\infty}\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$=\max(\limsup_{m\to\infty}\min(f^*(x_m),y,f^*_{min}+n+1),\limsup_{m\to\infty}\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$\le\max(y,\limsup_{m\to\infty}\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

Up to this point, what we did is move the limsup into the max for the equality, and then swapped our min of three components for one of the components (the $y$), producing a higher value.

Now, we can split into two exhaustive cases. Our first possible case is one where $f^*_{min}+n\le\max(f_n(x),g_n(x))$. In such a case, we can go:

$\max(y,\limsup_{m\to\infty}\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$\le\max(y,f^*_{min}+n)=\max(y,\min(\max(f_n(x),g_n(x)),f^*_{min}+n))=y$

This occurred because we swapped out our min of two components for one of the components, the constant lower bound, producing a higher value. Then, the equality was because, by assumption, $f^*_{min}+n\le\max(f_n(x),g_n(x))$ so we can alter the second term. Then, we finally observe that because $y\in\Phi_n(x)$, and $\min(\max(f_n(x),g_n(x)),f^*_{min}+n)$ is the lower-bound on said set, $y$ is the larger of the two.

Our second possible case is one where $f^*_{min}+n\ge\max(f_n(x),g_n(x))$. In such a case, we can go:

$\max(y,\limsup_{m\to\infty}\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$\le\max(y,\limsup_{m\to\infty}\max(f_n(x_m),g_n(x_m)))\le\max(y,\max(f_n(x),g_n(x)))$

$=\max(y,\min(\max(f_n(x),g_n(x)),f^*_{min}+n))=y$

The first inequality was we swapped out our min of two components for one of the components, producing a higher value regardless of the $m$. The second inequality was because $\sup(f_n,g_n)$ is upper-semicontinuous, as established before. The equality then is just because we're in the case where $f^*_{min}+n\ge\max(f_n(x),g_n(x))$. Finally, we just observe that the latter term is the lower-bound for $\Phi_n(x)$, which is the set that $y$ lies in, so $y$ is greater. These cases were exhaustive, so we have a net result that

$\limsup_{m\to\infty}\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))\le y$

Now for the other direction.

$\liminf_{m\to\infty}\max(\min(f^*(x_m),y,f^*_{min}+n+1),\min(\max(f_n(x_m),g_n(x_m)),f^*_{min}+n))$

$\ge\liminf_{m\to\infty}\min(f^*(x_m),y,f^*_{min}+n+1)$

$=\min(\liminf_{m\to\infty}f^*(x_m),y,f^*_{min}+n+1)$

$\ge\min(f^*(x),y,f^*_{min}+n+1)=\min(y,\min(f^*(x),f^*_{min}+n+1))=y$

The first inequality was swapping out the max for just one of the components, as that reduces the value of your liminf. Then, for the equality, we just distribute the liminf in, and neglect it on the constants. The next inequality after that is lower-semicontinuity of $f^*$, then we just regroup the mins in a different way. Finally, we observe that $\min(f^*(x),f^*_{min}+n+1)$ is the upper-bound on $\Phi_n(x)$, which $y$ lies in, so $y$ is lower and takes over the min.

Since the limsup of this sequence is below $y$ and the liminf is above $y$, we have:

$\lim_{m\to\infty}y_m=y$

And we've shown lower-hemicontinuity, and the Michael selection theorem takes over from there, yielding a continuous $f_{n+1}$. Now, let's verify the following facts in order to show A: that the induction proceeds all the way up, and B: that the induction produces a sequence of functions $f_n$ fulfilling the following properties.

First: $f_{n+1}\le f^*$. This is doable by $f_{n+1}\le\inf(f^*,f^*_{min}+n+1)\le f^*$, from our $\Phi_{n+1}$ upper bound. It holds for our base case as well, since the upper bound there was $\inf(f^*,f^*_{min}+1)$.

Second: $f_{n+1}\le f^*_{min}+n+1$, which is doable by the exact same sort of argument as our first property.

Third: $f_{n+1}\ge f_n$. This is doable by

$f_{n+1}\ge\inf(\sup(g_n,f_n),f^*_{min}+n)\ge\inf(f_n,f^*_{min}+n)=f_n$

Where the inequality uses that $f_{n+1}$ is a selection of $\Phi_{n+1}$, and the lower bound on $\Phi_{n+1}$. Then we just swap out some contents for lower contents, and use our second fact which inducts up the tower to establish that $f^*_{min}+n$ is an upper bound on the function $f_n$. This is our one missing piece to show that our induction proceeds through all the $n$.

Fourth: $f_{n+1}\ge \inf(g_n,f^*_{min}+n)$. Same argument as before, except we swap $\sup(g_n,f_n)$ out for $g_n$ instead.

At this point, we've built a sequence of continuous functions $f_n$ where you always have $f_{n+1}\ge f_n$, and $f_{n+1}\ge\inf(g_n,f^*_{min}+n)$ and $f_n\le f^*$, regardless of $n$.

Our last step is to show that $g_n$ limits to $f^*$ pointwise, ie, regardless of $x$, $\lim_{n\to\infty}g_n(x)=f^*(x)$.

We recall that the definition of $g_n$ was $g_n(x):=\inf\{f^*(x')|d(x,x')<\frac{1}{n}\}$

Obviously, as $n$ goes up, $g_n(x)$ goes up, it's monotonically increasing, since we're minimizing over fewer and fewer points each time, the open ball is shrinking. So the limit exists. And we also know that all the $g_n$ lie below $f^*$. So, to show that $g_n$ limits to $f^*$ pointwise, we just have to rule out the case where $\lim_{n\to\infty}g_n(x)<f^*(x)$.

Assume this was the case. Then, for each $n$ we can pick a point $x_n$ only $\frac{1}{n}$ distance away from $x$ that comes extremely close to attaining the infinimum value. These $x_n$ get closer and closer to $x$, they limit to it. So, we'd have:

$\lim_{n\to\infty}g_n(x)=\lim_{n\to\infty}f^*(x_n)<f^*(x)$

But the definition of lower-semicontinuity is that

$\liminf_{n\to\infty}f^*(x_n)\ge f^*(x)$

So we have a contradiction, and this can't be the case. Thus, the $g_n$ limit to $f^*$ pointwise.

Now, we will attempt to show that the $f_{n}$ limit to $f^*$ pointwise. Let $x$ be arbitrary, and we have

$f^*(x)\ge\lim_{n\to\infty}f_n(x)=\lim_{n\to\infty}f_{n+1}(x)\ge\lim_{n\to\infty}\min(g_n(x),f^{*}_{min}+n)$

The first inequality was $f^*\ge f_n$ for all $n$, the equality was just a reindexing, and the second inequality was $f_{n+1}\ge\inf(g_n,f^*_{min}+n)$ (from our induction). Now, we can split into two cases. In case 1, $g_n(x)$ diverges to $\infty$. Since $f^*_{min}+n$ diverges as well, we have

$\lim_{n\to\infty}\min(g_n(x),f^{*}_{min}+n)=\lim_{n\to\infty}g_n(x)$

In case 2, $g_n(x)$ doesn't diverge, but since $f^*_{min}+n$ does, we have

$\lim_{n\to\infty}\min(g_n(x),f^{*}_{min}+n)=\lim_{n\to\infty}g_n(x)$

So, in either case, we can continue by

$=\lim_{n\to\infty}g_n(x)=f^*(x)$

Because the $g_n$ limit to $f^*$ pointwise. Wait, we just showed $f^*(x)\ge f^*(x)$ no matter what. So all the inequalities must be equalities, and we have

$f^*(x)=\lim_{n\to\infty}f_n(x)$

And now we have our result, that any lower-bounded lower-semicontinuous function $f^*$ can be written as the pointwise limit of an increasing sequence of bounded continuous functions (since all the $f_n$ were bounded above by some constant and bounded below by $f^*_{min}$.)

**Theorem 1/Monotone Convergence Theorem For Inframeasures:** *Given *$X$* a Polish space, *$\Psi$* an inframeasure set over *$X$*, *$f^{*}$* a lower-bounded lower-semicontinuous function *$X\to(-\infty,\infty]$*, and *$\{f_n\}_{n\in\mathbb{N}}$* an ascending sequence of lower-bounded lower-semicontinuous functions *$X\to(-\infty,\infty]$* which limit pointwise to *$f^{*}$*, then *$\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]=\mathbb{E}_{\Psi}[f^{*}]$

We'll need to do a bit of lemma setup first. Said intermediate result is that, if some $f_{\infty}$ is lower-semicontinuous and lower-bounded, then the function from a-measures to $(-\infty,\infty]$ given by $(m,b)\mapsto m(f_{\infty})+b$ is lower-semicontinuous.

By Proposition 3, we can craft an ascending sequence $f_n$ of bounded continuous functions which limit pointwise to $f_{\infty}$.

Now to establish lower-semicontinuity of $(m,b)\mapsto m(f_{\infty})+b$. Let $(m_m,b_m)$ limit to $(m_{\infty},b_{\infty})$. Let $n$ be arbitrary. Then

$\liminf_{m\to\infty}m_m(f_{\infty})+b_m\ge\lim_{m\to\infty}m_m(f_n)+b_m=m_{\infty}(f_n)+b_{\infty}$

The first inequality is because $f_{\infty}$ is above the $f_n$ sequence that limit to it. We then use limits because the sequence converges now. Since $f_n$ is continuous and bounded, and $(m_m,b_m)$ converges to $(m_{\infty},b_{\infty})$, then $m_m(f_n)+b_{m}$ must converge to $m_{\infty}(f_n)+b_{\infty}$.

Anyways, now that we know that for arbitrary $n$, 

$\liminf_{m\to\infty}m_m(f_{\infty})+b_m\ge m_{\infty}(f_n)+b_{\infty}$

We can get the inequality that

$\liminf_{m\to\infty}m_m(f_{\infty})+b_m\ge \lim_{n\to\infty}(m_{\infty}(f_n)+b_{\infty})=m_{\infty}(f_{\infty})+b_{\infty}$

Where the equality comes from Beppo Levi's monotone convergence theorem, since the $f_n$ sequence is an ascending sequence of lower-bounded functions. Accordingly, we now know that if $f_{\infty}$ is lower-bounded and lower-semicontinuous, then $(m,b)\mapsto m(f_{\infty})+b$ is a lower-semicontinuous function. Let's proceed.

Remember, the thing we're trying to show is that

$\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]=\mathbb{E}_{\Psi}[f^*]$

Where all the $f_n$ are lower-semicontinuous and lower-bounded, and limit to $f^*$ pointwise. One direction of this is pretty easy to show.

$\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]=\lim_{n\to\infty}\inf_{(m,b)\in \Psi}m(f_n)+b\le\lim_{n\to\infty}\inf_{(m,b)\in \Psi}m(f^*)+b$

$=\inf_{(m,b)\in \Psi}m(f^*)+b=\mathbb{E}_{\Psi}[f^*]$

The first equality is just unpacking what expectation means, then we use that $f^*\ge f_n$ regardless of $n$ to show that all the points in $\Psi$ are like "yup, the value increased" to get the inequality. Then we just observe that it doesn't depend on n anymore and pack up the expectation, yielding

$\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]\le\mathbb{E}_{\Psi}[f^*]$

So, that's pretty easy to show. The reverse direction, that 

$\mathbb{E}_{\Psi}[f^*]\le\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]$

is much trickier to show.

We'll start with splitting into cases. The first case is that $\Psi$ is the empty set, in which case, everything is infinity, and the reverse inequality holds and we're done. 

The second case is that $\Psi$ isn't empty. In such a case, for each $f_n$, we can pick $(m_n,b_n)$ a-measures from the minimal points of $\Psi$ s.t.

$m_n(f_n)+b_n\simeq\inf_{(m,b)\in\Psi}m(f_n)+b$

coming as close to minimizing said functions within $\Psi$ as we like!

Now, we can again split into two cases from here. In our first case, the $b_n$ sequence from the $(m_n,b_n)$ sequence diverges. Then, in such a case, we have

$\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]=\lim_{n\to\infty}m_n(f_n)+b_n\ge\lim_{n\to\infty}\inf(0,\la^{\odot}\cdot\inf_{x}(f_1(x)))+b_n=\infty\ge\mathbb{E}_{\Psi}[f^{*}]$

Why does this work? Well, the $(m_n,b_n)$ approximately minimize the expectation value of $f_n$. Then, the worst-case value of $m_n(f_n)$ is either 0, or the amount of measure in $m_n$ times the lowest value of $f_n$. Since it's an ascending sequence of functions, we can lower-bound this by (amount of measure in $m_n$) times (worst-case value of $f_1$). And, since we're picking minimal points, and there's an upper bound on the amount of measure present in minimal points of an inframeausure set from the Lipschitz criterion (our finite $\la^{\odot}$ value), the *worst-case value* we could possibly get for $m_n(f_n)$ is either 0 or the maximum amount of measure possible times a lower bound on $f_n$. Both of these quantities are finite, so we get a finite negative number. But the $b_n$ are assumed to diverge, so the expectation values head off to infinity.

Ok then, we're on to our last case. What if $\Psi$ isn't empty, and our sequence $(m_n,b_n)$ of a-measures has a subsequence where the $b_n$ doesn't diverge? Well, the only possible way a sequence of a-measures in a nonempty inframeasure set can fail to have a convergent subsequence is for the b values to diverge, from the compact-projection property for an inframeasure set.

So, in our last case, we can isolate a convergent subsequence of our $(m_n,b_n)$ sequence of a-measures, which converges to the a-measure $(m_{\infty},b_{\infty})$. Let's use the index $i$ to denote this subsequence. At this point, the argument proceeds as follows. Let $j$ be an arbitrary natural number.

$\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]=\lim_{i\to\infty}\mathbb{E}_{\Psi}[f_i]$

$=\lim_{i\to\infty}m_i(f_i)+b_i\ge\liminf_{i\to\infty}m_i(f_j)+b_i\ge m_{\infty}(f_j)+b_{\infty}$

In order, this is just "we went to a subsequence of an ascending sequence, so it's got the same limit", then swapping out the worst-case value for the actual minimizing point. Then we just use that since the sequence of functions is ascending, eventually $m_i(f_i)+b_i$ will blow past $m_i(f_j)+b_i$ (at timestep $j$) because $j$ is a fixed constant. Then we just apply that $f_j$ is lower-bounded and lower-semicontinuous, so the function $(m,b)\mapsto m(f_j)+b$ is lower-semicontinuous, getting our inequality we pass to $(m_{\infty},b_{\infty})$.

Since this holds for arbitrary j, this then means we have

$\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]\ge \lim_{j\to\infty}m_{\infty}(f_j)+b_{\infty}$

And then we can go

$\lim_{j\to\infty}m_{\infty}(f_j)+b_{\infty}=m_{\infty}(f^{*})+b_{\infty}\ge\inf_{(m,b)\in\Psi}m(f^*)+b=\mathbb{E}_{\Psi}[f^*]$

And we have the inequality going the other way, proving our result! This last stretch was done via Beppo Levi's Monotone Convergence Theorem for the equality, then the inequality is because nonempty inframeasure sets $\Psi$ are closed, so the limit point $(m_{\infty},b_{\infty})$ also lies in $\Psi$, and then packing up definitions.

Since we've proven both directions of the inequality, we have

$\lim_{n\to\infty}\mathbb{E}_{\Psi}[f_n]=\mathbb{E}_{\Psi}[f^{*}]$

and we're done!

**Proposition 4:** *All compact Polish spaces are compact second-countable LHC spaces.*

Proof: Compactness is obvious. All Polish spaces are second-countable. So that just leaves the LHC property. Our compact hull operator $K$ will be taken to just be the closure of the set. Since the space $X$ is compact, all closed subsets of it are compact as well. The two properties

$\forall U\in\mathcal{B}(X):U\subseteq K(U)$

$\forall U_1,U_2\in\mathcal{B}:U_1\subseteq U_2\to K(U_1)\subseteq K(U_2)$

Are trivially fulfilled when $K$ is interpreted as set closure.

That leaves the LHC property. Since all Polish spaces are Hausdorff, the various definitions of local compactness coincide, and the space is compact, so all definitions of local compactness hold. So, given some $O$ and $x\in O$, by local compactness for the space $X$, we can find a compact set $C$ and open set $O'$ s.t. $x\in O'\subseteq K\subseteq O$. Since $O'$ is open, it can be written as a union of sets from the topology base. Now, pick a set from the base that makes $O'$ and contains $x$, call it $U$. We have $x\in U\subseteq O'\subseteq C$. In Hausdorff spaces, all compact sets are closed, so $C$ is a closed superset of $U$, and so $K(U)$ (the closure of $U$) is a subset of $C$. Since $K(U)\subseteq C\subseteq O$, and $U\subseteq K(U)$ (since $K$ is just closure), we have $x\in U\subseteq K(U)\subseteq O$, as desired. This works for any $x$ and $O$, so the space fulfills the LHC property.

**Proposition 5:** *All open subsets of *$\omega$*-BC domains are second-countable LHC spaces.*

Given $D$, an $\omega$-BC domain, it has a countable basis. You can close the countable basis under finite suprema (when they exist), and the set will stay countable and stay a basis, but now it's closed under finite suprema. Do that, to get a countable basis $B$ which is closed under finite suprema.

Our attempted base for the open subset $O\subseteq D$ will be those of the form $x_{\upuparrows}$ for $x\in B\cap O$, ie, the set of all the points $y$ where $x\ll y$, and $x$ is in the countable basis for the domain and also in $O$. Also the empty set. This is clearly countable, because $B$ is.

To show it's a topology base, we need to check closure under finite intersection, check that all these are open, and check that every open set in $O$ can be made by unioning these things together.

First, closure under finite intersection. In order to do this, we'll need to show a lemma that if $x\gg x_i$ for finitely many $x_i$, then $x\gg\sqcup_{i\le n}x_i$. This occurs because, given any directed set with a supremum of $x$ or higher, since $x\gg x_i$, you can find a $y_i$ in the directed set which is above $x_i$, and then take an upper bound for the finitely many $y_i$ which exists within your directed set, and it'll exceed $\sqcup_{i\le n}x_i$. So, every directed set with a supremum of $x$ or higher has an element which matches or exceeds the supremum of the $x_i$, so the supremum of the $x_i$ approximates $x$.

Now that we have this result, we'll show that $\bigcap_{i\le n}x_{i\upuparrows}=(\sqcup_{i\le n}x_i)_{\upuparrows}$

In the two directions, anything which is approximated by $\sqcup_{i\le n}x_i$ is also approximated by anything below it, ie, all the $x_i$, so we have $\bigcap_{i\le n}x_{i\upuparrows}\supseteq(\sqcup_{i\le n}x_i)_{\upuparrows}$

And, for the reverse direction, we've already established that anything which all the $x_i$ approximate will also have the supremum of the $x_i$ approximate it. Since our countable basis $B$ was made to be closed under finite suprema, the open set associated with the supremum of the $x_i$ is also in our basis, so our base is closed under finite intersection.

Second, checking that they're open. Sets of the form $x_{\upuparrows}$ are always open in the Scott-topology, and every Scott-open set is closed upwards, so all the sets in this base are open in the original domain $D$, and so remain open when we restrict to the open subset of $D$ and equip it with the subspace topology.

All that remain to show that this is a base is that it can make any Scott-open subset of $O$ by union. By Proposition 2.3.6.2, a set $U$ is open in the Scott-topology on $D$ iff $U=\bigcup_{x\in U\cap B}x_{\upuparrows}$.

Since all of our open subsets of $O$ are open in $D$, they can be written as a union of sets from our countable collection by this result.

We have crafted a countable base for our open subset of an $\omega$-BC domain $D$, so it's indeed second-countable.

Now for the LHC property. The compact hull operator $K$ maps the set $x_{\upuparrows}$ to $(\sqcap x_{\upuparrows})_{\uparrow}$. This is compact because all Scott-opens are closed upwards, so an open cover of $(\sqcap x_{\upuparrows})_{\uparrow}$ must have an open which includes $\sqcap x_{\upuparrows}$ itself, and this single open covers the entire set. This set is a subset of $x_{\uparrow}$ because everything that $x$ approximates lies above $x$, so $x$ is a lower bound, and thus must equal or lie below $\sqcap x_{\upuparrows}$. Since $x$ is in our open subset $O$, the same must also apply to this lower bound, because Scott-open sets are closed up.

For our first property of a compact hull operator, we need to show that $x_{\upuparrows}\subseteq(\sqcap x_{\upuparrows})_{\uparrow}$. This is easy, anything which lies in $x_{\upuparrows}$ must lie above the infinimum of that set.

For our second property of a compact hull operator, we need to show that $x_{\upuparrows}\subseteq y_{\upuparrows}$ implies $(\sqcap x_{\upuparrows})_{\uparrow}\subseteq (\sqcap y_{\upuparrows})_{\uparrow}$. For this, assuming the starting assumption, by basic properties of inf, we have $\sqcap x_{\upuparrows}\more\sqcap y_{\upuparrows}$, so then anything above that first point must also be above the second point, so we have our result.

Now, we just need to check the LHC property. Let $U$ be an open subset of $O$, and let $x\in U$. We can consider the directed set of approximants to $x$ from the basis of our domain $D$, called $B_{x}$. Scott-opens have the feature that for any directed set with a supremum in the open set (and $B_{x}$ is directed and has a supremum of $x$, which lies in $U$), there's an element in the directed set which also lies in the open set. So, we can find a $y$ which lies in the basis, and $y\ll x$, and $y\in U$. Then just let your open set from the base be $y_{\upuparrows}$. This is an open from the base. It contains $x$. And, $K(y_{\upuparrows})\subseteq y_{\uparrow}\subseteq U$, because $y\in U$ and Scott-opens are closed upwards.

And thus, our result is shown.

**Corollary 1:** *All *$\omega$*-BC domains are compact second-countable LHC spaces.*

Just use Proposition 5 when your open set is all of your domain to get second-countability and LHC-ness. For compactness, any open cover of the domain $D$ must have an open set which includes the bottom point $\bot$, and Scott-opens are closed upwards, so we can isolate a particular open set which covers the entire domain.

**Theorem 2:** *If *$X$* is second-countable and locally compact, then *$[X\to[0,1]]$* is an *$\omega$*-BC domain, as is *$[X\to[-\infty,\infty]]$*.*

To begin, $[-\infty,\infty]$ is topologically identical to $[0,1]$, so we can just prove it for the $[0,1]$ case to get both results.

As a recap, the Scott-topology on $[0,1]$ is the topology with the open sets being $\emptyset$,$[0,1]$, and all sets of the form $(q,1]$ for $q\in[0,1)$. 

The space $[X\to[0,1]]$ is the space of all continuous functions $X\to[0,1]$, where $[0,1]$ is equipped with the Scott-topology, which has been equipped with a partial order via $f\less g\leftrightarrow\forall x\in X:f(x)\le g(x)$

We will actually show a stronger result, that this space is a continuous complete lattice with a countable basis, as this implies that the set is an $\omega$-BC domain.

To show this, we'll need to show that the space is closed under arbitrary suprema. This is sufficient to show that the space is a complete lattice because, to get the infinimum of the empty set, we can get a top element by taking the supremum of everything, and to get the infinimum of any nonempty set of elements, we can take the set of lower bounds (which is nonempty because a bottom element exists, the supremum of the empty set), and take supremum of that. Then we just need to find a countable basis, and we'll be done. Most of the difficulty is in finding the countable basis for the function space.

Showing there's a bottom element (sup of the empty set) is easy, just consider the function which maps everything in $X$ to 0.

Now, we'll show that suprema exist for all nonempty sets of functions. Let $F$ be our nonempty set of functions.

The natural candidate for the supremum of functions is is $x\mapsto\sup_{f\in F}f(x)$, call this function $\sqcup F$. It's a least upper bound of all the functions $f\in F$, the only fiddly part we need to show is that this function is a continuous function $X\to[0,1]$, in order for it to appear in the space $[X\to[0,1]]$.

Fix an arbitrary open set in $[0,1]$, we'll show that the preimage is open in $X$. If the set is the empty set or $[0,1]$ itself, then the preimage will be the empty set or all of $X$, so those two cases are taken care of. Otherwise, the open set is of the form $(q,1]$ for $q\in[0,1)$. Now, we have

$\left(\sqcup F\right)^{-1}((q,1])=\{x\in X|(\sqcup F)(x)>q\}$

$=\{x\in X|\sup_{f\in F}f(x)>q\}=\{x\in X|\exists f\in F:f(x)>q\}$

$=\bigcup_{f\in F}\{x\in X|f(x)>q\}=\bigcup_{f\in F}f^{-1}((q,1])$

And now we see that this preimage can be written as a union of preimages of open sets, which are open since all the $f$ are continuous, so the set $\left(\sqcup F\right)^{-1}((q,1])$ is open. Since $q$ was arbitrary in $[0,1)$, we have that the preimage of all open sets in the unit interval is open in $X$, so $\sqcup F$ is indeed continuous and exists in $[X\to[0,1]]$, to serve as the least upper bound there.

All that remains is coming up with a countable basis for $[X\to[0,1]]$, which is the hard part. Let $\mathcal{B}(X)$ be a countable base of $X$ (this can be done since $X$ is second-countable). Given an open set $U\in\mathcal{B}(X)$ and rational number $q\in\mathbb{Q}\cap[0,1]$, we define the atomic step function $(U\searrow q)$ as:

$x\in U\to(U\searrow q)(x)=q$

$x\not\in U\to(U\searrow q)(x)=0$

First things first is showing these are continuous. Clearly, any preimage will either be the empty set, all of $X$, or the open set $U$ (because there's no open set in $[0,1]$ with the Scott-topology that contains 0 without containing $q$), so they're indeed continuous.

Our attempted countable basis $B$ will be all of these atomic step functions, and all finite suprema of such. Suprema of arbitrary sets of functions always exist as we've shown, so this is well-defined. It's countable because there's countably many choices of open set, countably many choices of rational number, and we're considering only the finite subsets of this countable set.

The hard part is showing that for any $f$, it can be built as the supremum of stuff from this basis which approximates $f$. First up, as a preliminary, is showing that $B_{f}$ is a directed set for some arbitrary function $f$. $B_f$ is the set of all elements of the basis which approximate $f$. What we can do is pick two arbitrary functions from the basis, $g_1$ and $g_2$ s.t. $g_1\ll f$ and $g_2\ll f$. From back in Proposition 5, we know that $g_1\sqcup g_2\ll f$. Since our basis is closed under finite suprema, we now know that the intersection of the basis and the approximants to $f$ is closed under finite suprema, so it's directed.

So, now that we know that $B_{f}$ is a directed set for arbitrary $f$, we must ask, does $f=\dirsup B_{f}$? For one direction, we have that every function in $B_{f}$ approximates $f$, so it must be less than $f$ itself, so we have $\dirsup B_{f}\less f$ trivially. So let's get the other direction going, by showing $\forall x\in X:\dirsup B_{f}(x)\ge f(x)$

First, let's solve the case where $f(x)=0$. We'd have $\dirsup B_{f}(x)\ge 0=f(x)$

Now we can assume that $f(x)>0$. We now have

$\dirsup B_{f}(x)=\dirsup(f_{\downdownarrows}\cap B)(x)\ge\bigsqcup(f_{\downdownarrows}\cap\{(U\searrow q)|U\in\mathcal{B}(X)\wedge q\in\mathbb{Q}\cap[0,1]\})(x)$

The inequality is because now we're restricting to the atomic step functions instead of all the suprema of such. And then we have

$=\bigsqcup_{(U\searrow q)\ll f:U\in\mathcal{B}(X)\wedge q\in\mathbb{Q}\cap[0,1]}(O\searrow q)(x)$

$=\sup\{q\in\mathbb{Q}\cap[0,1]|\exists U\in\mathcal{B}(X):x\in U\wedge (U\searrow q)\ll f\}$

Why is this? Well, $(U\searrow q)(x)$ is 0 if $x\not\in U$, and $q$ if $x\in U$. So, if, for a rational number $q>0$, we can find an open set $U$ s.t. $x\in U$, and $(U\searrow q)\ll f$, then the supremum of atomic step functions must map $x$ to $q$ or higher. And if there's an atomic step function which approximates $f$ and maps $x$ to some $q>0$, we can read out the open set from it to certify that $q$ lies in the latter set of rational numbers we're taking the supremum over.

Our proof target will be to show that

$\sup\{q\in\mathbb{Q}\cap[0,1]|\exists U\in\mathcal{B}(X):x\in U\wedge (U\searrow q)\ll f\}\ge\sup\{q\in\mathbb{Q}\cap[0,1]|q<f(x)\}$

If we could hit that proof target, then we could go

$\dirsup B_{f}(x)\ge\sup\{q\in\mathbb{Q}\cap[0,1]|q<f(x)\}=f(x)$

With the inequality coming from chaining the equalities and inequalities so far, and the proof target, and the equality coming from $f(x)>0$ (in the case we're working in) and real numbers being the supremum of rational numbers below them. This works for arbitrary $x$ with $f(x)>0$, and we've already addressed the 0 case, so we'd establish $f\less\dirsup B_{f}$

And, since we've already shown the other direction of the inequality, we'd have $\dirsup B_{f}=f$for arbitrary $f$, showing that $[X\to[0,1]]$ has a countable basis, so it's an $\omega$-BC domain since that's the last piece we need, and we'd be done.

So, all we need to pull off to finish up our proof is to show

$\sup\{q\in\mathbb{Q}\cap[0,1]|\exists U\in\mathcal{B}(X):x\in U\wedge (U\searrow q)\ll f\}\ge\sup\{q\in\mathbb{Q}\cap[0,1]|q<f(x)\}$

This can be done if we can prove

$q<f(x)\to\exists U\in\mathcal{B}(X):x\in U\wedge (U\searrow q)\ll f$

So let this be our new proof target. We're working in the case where $f(x)>0$, so we can safely assume the starting precondition that $q<f(x)$. Let's construct our open set $O$ to find a compact neighborhood within.

Because $q<f(x)$, we have that $x\in f^{-1}((q,1])$, which is an open set. Because $X$ is locally compact, we can always find a compact set $K$ and open set $U$ from the base s.t.

$x\in U\subseteq K\subseteq f^{-1}((q,1])$

Let this be our $U$. $x\in U$, trivially. So all that's left now is to prove that $(U\searrow q)\ll f$  
and we'll hit our implication proof target. So this is our new proof target.

To establish this, we'll take an arbitrary directed set $G\subseteq[X\to[0,1]]$ s.t. $f\less\dirsup G$, and prove that we can always find an element from it that exceeds $(U\searrow q)$. So fix such a $G$.

Remember that we've already got fixed subsets of $X$, denoted by $U$ and $K$, with $U$ being open, and $K$ being compact, and $x\in O\subseteq U\subseteq K\subseteq f^{-1}((q,1])$

Let's begin. Given an arbitrary $y\in K$, we have $y\in K\subseteq f^{-1}((q,1])$ so $f(y)>q$. Then, we have

$q<f(y)\le\dirsup G(y)=\dirsup_{g\in G}g(y)$

So, each $y\in K$ can be associated with some function $g_{y}\in G$ where $g_{y}(y)>q$ ie $y\in g_{y}^{-1}((q,1])$, just pick an appropriate one out of the supremum. So, we have

$\forall y\in K\exists g_{y}\in G:y\in g_{y}^{-1}((q,1])$

And then, this means that $\{g_{y}^{-1}((q,1])\}_{y\in K}$ is an open cover of $K$, since all these preimages of open sets are open, and every point $y$ is covered by the appropriate preimage for $g_{y}$. Since $K$ is compact, there's a finite open subcover of $K$. Denote the corresponding functions as $g_{i}$. So, $\{g_{i}^{-1}((q,1])\}_{i\le n}$ is a finite open cover of $K$.

Since we have finitely many functions $g_i$ from $G$ picked out, there's an upper bound to all of them which still lies in $G$, call this function $g$. Since $g\more g_i$ for all of the finitely many functions we have, we know that

$g^{-1}_{i}((q,1])\subseteq g^{-1}((q,1])$

for all the finitely many $g_i$ ($g$ is a higher function so a preimage of high points through $g$ must be a superset of the preimage through $g_i$). And so, we have

$K\subseteq\bigcup_{i\le n}g^{-1}_{i}((q,1])\subseteq g^{-1}((q,1])$

Because these finitely many preimages are all subsets of the preimage of $g$, and they're an open cover of $K$.

Since $g\in G$, we will now endeavor to show that $(U\searrow q)\less g$ and we'll be done. For $x\not\in U$, we have

$g(x)\ge 0=(U\searrow q)(x)$

So, that's taken care of. Now, what if $x\in U$? Well,

$x\in U\subseteq K\subseteq g^{-1}((q,1])$

The first two subsets are because of how we constructed $U$ in the first place, and the third was derived at the end of our open cover arguments. This means that $g(x)>q$. And then we can get

$(U\searrow q)(x)=q<g(x)$

So, in both cases, $g(x)\ge(U\searrow q)(x)$. And so we have $(U\searrow q)\less g$ and $g\in G$. $G$ was an arbitrary directed set with supremum of $f$ or above, so we have $(U\searrow q)\ll f$. And that's the last part that we need! We're done now.

**Corollary 2**:*The space *$[[X\to[0,1]]\to[0,1]]$* is an *$\omega$*-BC domain with top element when *$X$* is second-countable and locally compact.*

This is easy, we just apply Theorem 2 to get that $[X\to[0,1]]$ is an $\omega$-BC domain, then apply Corollary 1 to get that it's second-countable and locally compact, then apply Theorem 2 again to get that it's an $\omega$-BC domain. The top element is the constant function which maps everything to 1.

**Lemma 1:** *If *$X$* is compact, then any continuous function *$f:X\to(-\infty,\infty]$* where *$(-\infty,\infty]$* is equipped with the Scott-topology has *$\inf_{x\in X}f(x)$* being finite.*

Proof: The family of sets $f^{-1}((q,\infty])$ for $q\in\mathbb{R}$ is an open cover of $X$. This is because, since $f$ is continuous, and $(q,\infty]$ is Scott-open, the preimage is open. It covers $X$ because all points in $X$ are mapped to $\infty$ or a real number. Since $X$ is compact, there's a finite open subcover, yielding finitely many real numbers $q$ s.t. sets of the form $f^{-1}((q,\infty])$ cover $X$. Take the least of these, to get a finite lower-bound on the value of $f$ over all of $X$.

**Lemma 2:** *If X is compact, then given any continuous function *$f:X\to(-\infty,\infty]$*, if *$q<\inf_{x\in X}f(x)$*, then *$c_{q}\ll f$* in *$[X\to(-\infty,\infty]]$*. The same result holds for *$X\to[0,1]$*.*

Fix a directed set of functions $G$ s.t. $f\less\dirsup G$. For any particular $y\in X$, we have

$q<\inf_{x\in X}f(x)\le f(y)\le\dirsup_{g\in G}g(y)$

Thus, for any particular $y$, there's a function $g_{y}$ where $g_{y}(y)>q$. So, the set $g^{-1}_{y}((q,\infty])$ is open (a preimage of an open) and contains $y$. This can be done for all points in $X$, to get an open cover of $X$. $X$ is compact, so there's a finite subcover, and we can find finitely many $g_i$ s.t. $X\subseteq\bigcup_{i\le n}g^{-1}_{i}((q,\infty])$. This is saying that for any point in $X$, there's a function $g_i$ that maps it above $q$. Then, we can take an upper bound to all these $g_i$ to get a function $g\in G$ that maps all points in $X$ to a value above $q$. Then, we have, for arbitary $x\in X$, that $c_{q}(x)=q<g(x)$, so $c_{q}\less g$. Since our directed set was arbitrary and we're always able to find a function in it that beats $c_{q}$, this means that $c_{q}\ll f$.

**Proposition 6:** *The space *$[[X\to(-\infty,\infty]]\to[-\infty,\infty]]$* is an *$\omega$*-BC domain with top element when *$X$* is compact, second-countable, and locally compact.*

So, here's how the proof will work. As it turns out, if we can just show that $[X\to(-\infty,\infty]]$ is open in the set $[X\to[-\infty,\infty]]$, then we'll be done. Here's how we can finish up the entire theorem if we just knew that result.

Since $X$ is second-countable and locally compact, we know from Theorem 2 that $[X\to[-\infty,\infty]]$ is an $\omega$-BC domain. Then, using our assumption that $[X\to(-\infty,\infty]]$ is an open subset, we'd get from Proposition 5 that $[X\to(-\infty,\infty]]$ is a second-countable LHC space, so in particular, it's second-countable and locally compact. Then, we just appeal to Theorem 2 one more time to get that $[[X\to(-\infty,\infty]]\to[-\infty,\infty]]$ is an $\omega$-BC domain. And the top element is the constant function which maps everything to $\infty.$

Let's prove that $[X\to(-\infty,\infty]]$ is an open subset of $[X\to[-\infty,\infty]]$. The criteria for a set to be open is that it be closed upwards, and that if a directed subset has a supremum in the set of interest, then the directed subset must already have an element in the set of interest. Upwards closure is easy. If $f\less f'$, and $f$ is never $-\infty$, then the same must apply to $f'$. However, showing that directedness property takes more work, and will rely on $X$ being compact.

Take an arbitrary directed set of functions $G\subseteq[X\to[-\infty,\infty]]$ s.t $\dirsup G\in[X\to(-\infty,\infty]]$. Then, by Lemma 1 (since $X$ is compact), $\inf_{x\in X}\left(\dirsup G\right)(x)$ is finite. And so, by Lemma 2,

$c_{\inf_{x\in X}\left(\dirsup G\right)(x)-1}\ll \dirsup G$

And then, since $G$ is a directed set with a supremum of $\dirsup G$, there must be an element of $G$ (call it $g$) which exceeds $c_{\inf_{x\in X}\left(\dirsup G\right)(x)-1}$. This constant function lies in $[X\to(-\infty,\infty]]$, and this set is closed upwards, so g also lies in the same set.

And therefore, $[X\to(-\infty,\infty]]$ is a Scott-open set, because it's closed upwards and for an arbitrary directed set $G$ with a supremum that lies in this set, there's an element $g\in G$ which also lies in the same set.

The rest of the theorem follows, as per earlier discussion.

**Theorem 3/Retraction Theorem:** *If *$D$* is an *$\omega$*-BC domain with a top element, and *$\emptyset\neq\mathcal{P}\subseteq D$*, then *$P$*, which is the set *$\mathcal{P}$* equipped with the order inherited from *$D$*, is an *$\omega$*-BC domain if the following two conditions hold.*  
*1: *$\mathcal{P}$* is closed under directed suprema.*  
*2: *$\mathcal{P}$* is closed under arbitrary nonempty infinima.*

We'll split into two possible cases. The first case is where the top element from $D$ also lies in $\mathcal{P}$. The second case is where the $\top$ from $D$ doesn't lie in $\mathcal{P}$.

The first case will be addressed by establishing a link between $D$ and $P$ which lets us transfer the nice properties of $D$ over to $P$, and is where the bulk of the work is.

The second case will be done by adding our top element into the set $\mathcal{P}$ to make a domain $P^{\top}$. This reduces us to the first case, so we automatically know that $P^{\top}$ has all the nice properties we need. Then we just need to show that we can rip the top point off of $P^{\top}$, to get back to $P$, and that doing this keeps $P$ as an $\omega$-BC domain.

So, let's embark on the first case, where we can assume that $\top_{D}\in\mathcal{P}$. We'll define some functions linking $P$ and $D$. $x$ will be used for points in $D$, and $y$ will be used for points in $P$. $\less_{P}$ and $\less_{D}$ will be used to denote the orders on $P$ and $D$, when we want to be picky. 

$i$ is a partial function $D\to P$ which is only defined when $x\in\mathcal{P}$. It maps a point in $D$ to its corresponding point in $P$. Clearly it's monotone, because the ordering on $P$ is just the restriction of the ordering on $D$.

We also have a total function $s:P\to D$, which is just the usual subset inclusion of $P$ into $D$. So, of course, we have $s(i(x))=x$ when $x\in\mathcal{P}$ and $i(s(y))=y$.

Finally, we have $r:D\to P$, defined as

$r(x):=\sqcap_{P}\{i(x')|x'\in \mathcal{P}\wedge x\less_{D} x'\}$

This is well-defined because $\top\in\mathcal{P}$ and is above everything, so you're always taking the inf of a nonempty set (it always contains $i(\top)$). Further, it lies in $P$ because

$i\left(\sqcap_{D}\{x'|x'\in \mathcal{P}\wedge x\less_{D} x'\}\right)=\sqcap_{P}\{i(x')|x'\in \mathcal{P}\wedge x\less_{D} x'\}$

This is because, the infinimum of stuff in $\mathcal{P}$ is also in $\mathcal{P}$ by assumption, so we can inject the infinimum as computed in $D$, and that's the same thing as injecting everything into $P$ and computing the infinimum there.

Our first task is to show that $r\circ s=id_{P}$, and $s\circ r\more id_{D}$. We have

$(r\circ s)(y)=r(s(y))=\sqcap_{P}\{i(x')\in \mathcal{P}|s(y)\less_{D} x'\}$

$=i\left(\sqcap_{D}\{x'\in \mathcal{P}|s(y)\less_{D} x'\}\right)=i(s(y))=y$

The first two equalities are by the definitions. Then, it doesn't matter whether we compute the inf in $P$ or $D$, so we switch to computing the inf in $D$ and injecting that, which can be done because inf of stuff in $\mathcal{P}$ is also in $\mathcal{P}$. Then, we observe that $s(y)\in\mathcal{P}$ and $s(y)\less_{D}s(y)$, so the inf as computed in $D$ is just $s(y)$ exactly, and then it cancels out to yield $y$ again.

Now for the other direction, that $s\circ r\more id_{D}$. We have

$(s\circ r)(x)=s(r(x))=s\left(\sqcap_{P}\{i(x')|x'\in \mathcal{P}\wedge x\less_{D} x'\}\right)$

$=s\left(i\left(\sqcap_{D}\{x'|x'\in \mathcal{P}\wedge x\less_{D} x'\}\right)\right)=\sqcap_{D}\{x'|x'\in \mathcal{P}\wedge x\less_{D} x'\}\more x$

The first two equalities are just definitions. Then we switch the $i$ out since $\mathcal{P}$ is closed under nonempty infinimum, the $s$ and $i$ cancel, and then we observe that we're taking the inf of a bunch of stuff above $x$, so $x$ is a lower bound.

Now that we've established that, let's show that both s and r are continuous in the Scott-topology. Functions are continuous iff they're monotone and preserve suprema of directed sets. For $s$, monotonicity is trivial, because $y'\more_{P} y$ iff $s(y')\more_{D}s(y)$, due to $s$ just being subset inclusion and $P$ having the restriction of the order on $D$.

For preserving suprema of directed sets, working in $P$, we have

$i\left(\dirsup_{y\in A,D}s(y)\right)=\dirsup_{y\in A,P}i(s(y))=\dirsup_{P} A=i\left(s\left(\dirsup_{P} A\right)\right)$

This is because, since $\mathcal{P}$ is closed under directed suprema, it doesn't matter whether we take the directed sup in $D$ or in $P$, so we can move the $i$ in and out. Then we just use that $i$ and $s$ compose to the identity. Since $i$ preserves order, from the above work, when we strip off the $i$ and work in $D$,

$\dirsup_{y\in A,D}s(y)=s\left(\dirsup_{P} A\right)$

And bam, continuity of $s$ is shown.

Now for establishing continuity of $r:D\to P$. For monotonicity, if $x'\more_{D}x$, then

$r(x')=\sqcap_{P}\{i(x'')|x''\in\mathcal{P}\wedge x'\less_{D} x''\}\more_{P}\sqcap_{P}\{i(x'')|x''\in\mathcal{P}\wedge x\less_{D} x''\}=r(x)$

This occurs because if $x'\more_{D} x$, then $x$ has more points in $\mathcal{P}$ which lies above it, so the infinimum of this larger set must be as low or lower than the infinimum of stuff above $x'$.

For preservation of directed supremum, letting A be a subset of D, since

$r\left(\dirsup_{D} A\right)\more_{P}\dirsup_{x\in A,P}r(x)$

automatically by monotonicity, we just have to show the reverse direction. This can be done by:

$\dirsup_{x\in A,P}r(x)=r\left(s\left(\dirsup_{x\in A,P}r(x)\right)\right)=r\left(\dirsup_{x\in A,D}s(r(x))\right)\more_{P}r\left(\dirsup_{x\in A,D}x\right)=r\left(\dirsup_{D}A\right)$

The first equality was because $r\circ s=id_{P}$. The second one is because $s$ is continuous, so we can move the directed sup in and out of it. Then, we use that $s\circ r\more id_{D}$ and monotonicity of $r$ for our inequality, and then just rephrase the directed supremum.

Now that we know that both $s$ and $r$ are monotone, and $r\circ s=id_{P}$, by definition 3.1.1, $r$ and $s$ make a monotone section/retraction pair. By Proposition 3.1.2.2, since $D$ is a pointed DCPO, $P$ is too. Also, by Lemma 3.1.3, since $D$ and $P$ are both pointed DCPO's, and $s$ and $r$ are continuous (as we've shown), $r(B)$, where $B$ is a basis for $D$, is a basis for $P$. So $P$ is a pointed DCPO with countable basis, since $D$ has a countable basis. All that remains is showing that $P$ has suprema of all bounded pairs of points, to show that it's a BC-domain. Since $P$ is closed under arbitrary nonempty infinima, you can just take the inf of all the upper bounds on your points $y,y'$ in order to make a supremum, and bam, $P$ is a BC-domain.

This addresses the case where $\top_{D}\in\mathcal{P}$. But what if it isn't? Well, taking your original set $\mathcal{P}$ and adding $\top$ to it, it's still closed under nonempty infinima (because adding $\top$ to the set you're taking nonempty inf of doesn't change the inf), and it's still closed under directed suprema, because any directed set containing $\top$ must have the directed suprema being $\top$. So, we can conclude that $P^{\top}$ is an $\omega$-BC domain. 

All that remains is showing that $P$, the thing you get when you rip the top point out, is also an $\omega$-BC domain. Your set $P$ is still pointed, since only $\top$ was ripped out, not $\bot$. It's still closed under directed suprema because directed sets in $P$ are directed sets in $D$ which are subsets of $\mathcal{P}$. Computing the directed supremum in $D$, it can't be $\top$ because $\top\not\in\mathcal{P}$ by assumption, and $\mathcal{P}$ is closed under directed suprema. Then we can just port that directed supremum back to $P$, secure in the knowledge that the directed supremum can't be that top point we ripped out. So $P$ is at least a pointed DCPO.

Bounded suprema still exist in $P$, because you can take two points $y,y'$ with an upper bound $y''\in P$, and the supremum of $y,y'$ in $P^{\top}$ was the inf of every upper bound. When you rip the top point out, it doesn't make the inf empty since $y''$ is still present, and it doesn't affect the value of the inf since $\top$ is above everything and can't change the inf when you get rid of it. So the supremum as computed in $P^{\top}$ is still present in $P$.

For a countable basis, just use the original countable basis from $P^{\top}$ and rip the top point out from it. The definition of a basis was that $y=\dirsup B_{y}:=\dirsup(y_{\downdownarrows}\cap B)$, and all these directed sets remain unchanged because if $y$ isn't $\top$, $\top$ can't approximate $y$ because that would require that $\top\less y$, which is impossible, so this resulting set still computes all the points correctly via directed supremum.

Therefore, $P$ is an $\omega$-BC domain.

**Lemma 3:** *Given a continuous DCO *$D$* and BC-domain *$E$*, the infinimum of a batch of functions as computed in *$[D\to E]$* can be written as: *$\left(\sqcap F\right)(x)=\dirsup_{x'\ll x}\sqcap_{f\in F}f(x')$

So, in order to do this, we'll need to show three things. First, that it's continuous. Second, that it is indeed a lower bound. Third, that it's the greatest lower bound.

To show that it's continuous, we show monotonicity and preservation of directed suprema. For monotonicity, let $x'\more x$. Then

$\left(\sqcap F\right)(x)=\dirsup_{x''\ll x}\sqcap_{f\in F}f(x'')\less\dirsup_{x''\ll x'}\sqcap_{f\in F}f(x'')=\left(\sqcap F\right)(x')$

The equalities are just definitions, the inequality is because any approximant to $x$ is also an approximant to $x'$ since $x'$ is above $x$. Now for preservation of directed suprema. Let $A$ be a directed subset of $D$.

$\dirsup_{x\in A}\left(\left(\sqcap F\right)(x)\right)=\dirsup_{x\in A}\left(\dirsup_{x'\ll x}\left(\sqcap_{f\in F}f(x')\right)\right)$

And then we have

$=\dirsup_{x'\ll \dirsup A}\left(\sqcap_{f\in F}f(x')\right)$

Because, for any $x\in A$ and $x'\ll x$, we also have $x'\ll\dirsup A$, since it's higher. And, if $x'\ll\dirsup A$, then there's some $x\in A$ s.t. $x'\ll x$. So everything in one supremum is present in the other and vice-versa. Then we can just go

$\dirsup_{x'\ll \dirsup A}\left(\sqcap_{f\in F}f(x')\right)=\left(\sqcap F\right)\left(\dirsup A\right)$

and we're done! It's a continuous function.

To show that it's a lower bound, fix an arbitrary $f'\in F$. We have

$f'(x)=f'\left(\dirsup x_{\downdownarrows}\right)=\dirsup_{x'\ll x}f'(x')\more\dirsup_{x'\ll x}\sqcap_{f\in F}f(x')=\left(\sqcap F\right)(x)$

This is by continuity of $D$, then $f'\in[D\to E]$ so it's continuous, so we can move the directed supremum in and out of $f'$, then the value inside the directed supremum staying the same or decreasing since we're taking the inf of all $f(x')$ over all $f\in F$.

To show that it's the greatest lower bound, let $f^{*}$ be another lower bound to the collection of functions $F$. We have

$\left(\sqcap F\right)(x)=\dirsup_{x'\ll x}\inf_{f\in F}f(x')\more\dirsup_{x'\ll x}f^{*}(x')=f^{*}\left(\dirsup x_{\downdownarrows}\right)=f^{*}(x)$

Because $f^{*}\less F$, we get that inequality, swapping out for $f^{*}$ makes the value stay the same or go down. Then, since $f^{*}$ is continuous, we can move the directed suprema inside of $f^{*}$, and the directed supremum of approximants to $x$ is $x$ itself. So it's the greatest lower bound.

**Lemma 4:** *For any function *$\psi:[X\to(-\infty,\infty]]\to[-\infty,\infty]$* where *$\psi$* is 1-Lipschitz and *$\psi(c_0)\ge 0$*, and *$X$* is compact, *$\psi(f)\ge\inf(0,\inf_{x\in X}f(x))$*.*

By Lemma 1, $\inf_{x\in X}f(x)$ is a finite constant. Now, let's begin.

$-\psi(c_{\inf(0,\inf_{x\in X}f(x)}))\le\psi(c_0)-\psi(c_{\inf(0,\inf_{x\in X}f(x))})$

$=d(\psi(c_0),\psi(c_{\inf(0,\inf_{x\in X}f(x))})\le d(c_0,c_{\inf(0,\inf_{x\in X}f(x))})$

$=d(0,\inf(0,\inf_{x\in X}f(x)))=|\inf(0,\inf_{x\in X}f(x))|=-\inf(0,\inf_{x\in X}f(x))$

Here's where the inequalities came from. The first inequality is because, by assumption $\psi(c_0)\ge 0$. The equality is because, since $0\ge\inf(0,\inf_{x\in X}f(x))$, the same inequality applies to constant functions, and by monotonicity, $\psi(c_0)$ matches or exceeds what you get when you feed the other constant function in, so it's a nonnegative quantity, equal to the distance between the two values you get. Then, the next inequality is 1-Lipschitzness of $\psi$. The distance between constant functions is the distance between their values. Then, the absolute value is clear. And because the quantity in the absolute value is 0 or negative, it equals negative-itself.

Now, we can multiply by negative 1 to flip this around and get

$\psi(c_{\inf(0,\inf_{x\in X}f(x))})\ge\inf(0,\inf_{x\in X}f(x))$

And then, since we have $f\more c_{\inf(0,\inf_{x\in X}f(x))}$ since the constant function undershoots it for all inputs, we can apply monotonicity to get

$\psi(f)\ge\inf(0,\inf_{x\in X}f(x))$

**Lemma 5:** *If *$X$* is compact, and *$f,f',f''\in[X\to(-\infty,\infty]]$*, and *$f''\ll f$*, and *$d(f,f')<\infty$*, then *$f''+c_{-d(f,f')}\ll f'$*.*

Since $X$ is compact, no functions in here can have a value of $-\infty$ or value unbounded below by Lemma 1.

Fix a directed set $G$ of functions $X\to(-\infty,\infty]$ with $f'\less\dirsup G$. Our goal is to get an element of G which exceeds $f''+c_{-d(f,f')}$. For each $g\in G$, consider the function $g+c_{d(f,f')}$, to get the directed set $G+c_{d(f,f')}$. Our first thing to do is to show that is a directed set. Which is easy because, given any two functions in $G+c_{d(f,f')}$, we can just subtract the constant from them to get two functions in $G$, take an upper bound in $G$, and add the constant back to it to get an upper bound in $G+c_{d(f,f')}$. Also, for any $x'\in X$, we have

$\left(\dirsup(G+c_{d(f,f')})\right)(x')=\dirsup_{g\in G}(g+c_{d(f,f')})(x')=\dirsup_{g\in G}(g(x')+d(f,f'))$

$=\dirsup_{g\in G}(g(x'))+d(f,f')=\left(\dirsup G\right)(x')+d(f,f')\ge f'(x')+d(f,f')$

$=f'(x')+\sup_{x\in X}d(f(x),f'(x))\ge f'(x')+d(f(x'),f'(x'))\ge f(x')$

The first equality was just using how $G+c_{d(f,f')}$ was constructed and how supremum of functions is defined. Then we use that this is just adding a constant to $g$, do a bit of regrouping, get our inequality because $\dirsup G\more f'$ by assumption, use the definition of function distance, substitute in a particular value, and the last inequality is obvious.

So, since this holds for all $x'\in X$, we have $f\less\dirsup(G+c_{d(f,f')})$. Since this is a directed set with a supremum of $f$ or more, and $f''\ll f$, we can isolate a function $g\in G$ where $f''\less g+c_{d(f,f')}$. So then $f''+c_{-d(f,f')}\less g$, and we've got an element of our directed set which exceeds $f''+c_{-d(f,f')}$. Since we picked an arbitrary directed set with a supremum of $f'$ or higher, this means that $f''+c_{-d(f,f')}\ll f'$.

**Lemma 6:** *If *$X$* is compact, and *$f,f',f''\in[X\to[0,1]]$*, and *$f''\ll f$*, then *$c_0\sqcup f''+c_{-d(f,f')}\ll f'$*.*

Fix a directed set $G$ of functions $X\to[0,1]$ with $f'\less\dirsup G$. Our task is to find a $g$ that exceeds $c_0\sqcup f''+c_{-d(f,f')}$. For each $g\in G$, consider the function $c_{1}\sqcap(g+c_{d(f,f')})$, to get the directed set $c_{1}\sqcap(G+c_{d(f,f')})$. Our first thing to do is to show that is a directed set. Which is easy because, given any two functions in there, we can take their original g's, and take an upper bound of the two and translate forward again to get an upper bound in $c_{1}\sqcap(G+c_{d(f,f')})$. Also, for any $x'\in X$, we have

$\left(\dirsup(c_{1}\sqcap(G+c_{d(f,f')}))\right)(x')=\dirsup_{g\in G}(c_{1}\sqcap(g+c_{d(f,f')})(x')=\dirsup_{g\in G}\inf(1,g(x')+d(f,f'))$

$=\inf\left(1,\dirsup_{g\in G}g(x')+d(f,f')\right)=\inf\left(1,\left(\dirsup G\right)(x')+d(f,f')\right)\ge\inf(1,f'(x')+d(f,f'))$

$\ge\inf(1,f(x'))=f(x')$

So, since this holds for all $x'\in X$, we have $f\less\dirsup(c_{1}\sqcap(G+c_{d(f,f')}))$. Since this is a directed set with a supremum of $f$ or more, and $f''\ll f$, we can isolate a function $g\in G$ where $f''\less c_{1}\sqcap(g+c_{d(f,f')})$. Then, we have

$c_{0}\sqcup(f''+c_{-d(f,f')})\less c_{0}\sqcup((c_{1}\sqcap(g+c_{d(f,f')}))+c_{-d(f,f')})$

$\less g\sqcup((c_{1}\sqcap(g+c_{d(f,f')}))+c_{-d(f,f')})\less g\sqcup(g+c_{d(f,f')}+c_{-d(f,f')})=g\sqcup g=g$

So, we have a $g\more c_{0}\sqcup(f''+c_{-d(f,f')})$, and our directed set $G$ was arbitrary, so we've showed approximation, and have our result that, if $f''\ll f$, then $c_{0}\sqcup(f''+c_{-d(f,f')})\ll f'$.