# Infra-Topology


$\newcommand{\eps}{\epsilon}$
$\newcommand{\la}{\lambda}$
$\newcommand{\x}{\times}$

Attention conservation notice: This post has [Less Basic Inframeasure Theory](https://www.alignmentforum.org/posts/idP5E5XhJGh9T5Yq9/less-basic-inframeasure-theory) as a prerequisite and goes pretty heavy on the topology.

The basic results are that a whole lot of the fiddly details involved with having inframeasures over non-compact spaces automatically pop out of just trying to make everything continuous, and that some of the old results in LBIT are either wrong or about the wrong topology. Accordingly, this post completely obsoletes the section about topology of inframeasures in [Less Basic Inframeasure Theory](https://www.alignmentforum.org/posts/idP5E5XhJGh9T5Yq9/less-basic-inframeasure-theory)

For the rest of this post, assume $X$ is a Polish space. Basically, a Polish space is a space that has a metric, all Cauchy sequences have limiting points (like $\mathbb{R}$ and unlike $\mathbb{Q}$), and there's a countable subset of it s.t. every point can be written as a limit of points from the countable subset ($\mathbb{Q}$ is the corresponding countable subset of $\mathbb{R}$).

Proofs available on request because they're 115 pages and this post was 15 pages.

**Topologies and Convergence Notions**

The first observation to make is that the type signature of an inframeasure over the space $X$ (or, one of the possible type signatures) is $C_B(X)\to\mathbb{R}$, where $C_B(X)$ is the space of bounded continuous functions $X\to\mathbb{R}$. You feed a function in, you get an expectation out, simple as that.

So, an *extremely* natural requirement to impose is that an inframeasure should be a continuous function. The topology on $\mathbb{R}$ is obvious. The topology on $C_B(X)$, the space of continuous bounded functions $X\to\mathbb{R}$, is much less obvious.

Another observation is that different notions of function convergence correspond to different topologies on function spaces.

You could say that $f_n$ converges to $f$ if $\sup_{x}|f(x)-f_n(x)|$ limits to 0. This is uniform convergence, The late $f_n$ are close to $f$ everywhere, the rate of convergence doesn't depend on anything. 

Or you could say that $f_n$ converges to $f$ if, for all x, $|f(x)-f_n(x)|$ limits to 0. That's pointwise convergence, for every point, the late $f_n$ are close to $f$ at that point. The rate of convergence depends on the point you picked. 

Or you could say that $f_n$ converges to $f$ if, for all compact sets $C\subseteq X$, we have $\max_{x\in C}|f(x)-f_n(x)|$ limiting to 0. This is compact convergence. For every compact set, the late $f_n$ are close to $f$ on that compact set. The rate of convergence depends on the compact set you picked.

All these different notions of function convergence are linked to different topologies on $C_B(X)$. The sup-norm topology, the weak topology, and the compact-open topology, respectively, for uniform convergence, pointwise convergence, and compact convergence.

So, what notion of convergence seems to "naturally" show up in a lot of proofs? Does it seem like we're using uniform convergence, pointwise convergence, or something like that? No. The notion of convergence that has showed up *basically every single time* while grinding through the inframeasure theory has been the following notion of convergence.

**Definition 1: Strict Convergence** *A sequence of bounded continuous functions $f_n$ strictly converges to $f$ if, for all compact sets $C\subseteq X$, $\lim_{n\to\infty}\max_{x\in C}|f_n(x)-f(x)|=0$, and $\sup_{n}\sup_{x\in X}|f_n(x)|<\infty$*

So, basically, strict convergence is uniform convergence on compact sets, along with the entire function sequence having some uniform upper and lower bounds.

What's the motivation for this? Well, there's a few ways to do it, but here's a nice one. Let's say we want $eval:C_B(X)\x\Delta X\to\mathbb{R}$ to be a sequentially continuous function. Ie, if the sequence of probability distributions $\mu_n$ converges to $\mu$, and $f_n$ converges to $f$, the expectation of $f_n$ w.r.t. $\mu_n$ should converge to the expectation of $f$ w.r.t. $\mu$.
$$\lim_{n\to\infty}\mu_n(f_n)=\mu(f)$$
This requires two questions. First, what does it mean for $\mu_n$ to converge to $\mu$, and what does it mean to say that $f_n$ converges to $f$?

Well, the notion of convergence on $\Delta X$ is known, it's weak convergence, that's the sort of convergence we've been using this whole time. $\mu_n$ converges to $\mu$ iff, for all continuous functions $f$, $\mu_n(f)$ limits to $\mu(f)$.

So then the question is, "in what sense does $f_n$ have to converge to $f$ in order to make $eval$ sequentially continuous?", and the answer is strict convergence exactly. Strict convergence means that $eval$ becomes sequentially continuous, and if $f_n$ does *not* strictly converge to $f$, then it's always possible to craft a convergent sequence of measures $\mu_n$ that makes
$$\lim_{n\to\infty}\mu_n(f_n)=\mu(f)$$
fail.

But remember, every notion of convergence corresponds to some natural topology. So, if uniform convergence corresponds to the sup-norm topology, and pointwise convergence corresponds to the weak topology, and compact convergence corresponds to the compact-open topology, what does strict convergence correspond to?

Well, it corresponds to the strict topology on $C_B(X)$, which is a topology you've almost certainly never heard of. It's a pretty obscure choice. The maximally concise description of it is that it's the finest locally convex topology on $C_B(X)$ that matches the compact-open topology on all norm-bounded subsets of $C_B(X)$.

Or, putting it a bit more intuitively, it's a nice enough topology to get basic stuff like the Hahn-Banach theorem working, and it locally looks like the compact-open topology, but if you zoom out to a global scale, it has more open sets.

**Proposition 1:** *A sequence $f_n$ converges to $f$ in the strict topology iff $\sup_{n\in\mathbb{N},x\in X}|f_n(x)|<\infty$ and $f_n$ uniformly converges to $f$ on all compact subsets.*

Good, we got the right topology.

The massive problem we have to deal with now, is that $C_B(X)$ equipped with the strict topology is a pretty badly behaved space, topologically speaking. I mean, it's still Hausdorff (and more), that's a nice thing going for it. The bigger problem is that it's such a big space that it's not even first countable. Even worse than that, I don't even think it's a sequential space! Ie, "take a set, and add in all the limit points of sequences made from inside that set" might *not* be the same thing as topological closure. It even seems like it's possible to have functions $\psi:C_B(X)\to\mathbb{R}$ that *look continuous, in the "if $f_n$ strictly converges to $f$, then $\psi(f_n)$ converges to $\psi(f)$" sense, but that actually aren't continuous! And I don't even know any of this for sure because it's a pretty hard sort of topology to prove things of.

However, through entirely too much scouring of obscure functional analysis papers from the 80's, I was eventually able to prove

**Proposition 2:** *A set is sequentially compact in the strict topology iff it's compact in the strict topology.*

So, we at least have "every open cover has a finite subcover" matching up with "every sequence has a convergent subsequence". It's rather surprising for this result to hold when our space isn't even first-countable, and closure and sequential closure might split apart, but it's quite handy, because it lets us speak of just "compact sets of functions" without disambiguating further.

**Scott and Antiscott**

Now, we'll cover something else, the Scott topology on $C_B(X)$. It's relevant because domain theory (the field of math that analyzes what sort of topological spaces Haskell types are) *really really really* likes the Scott topology. And there are unexpectedly many connections between [inframeasures and domain theory](https://www.alignmentforum.org/posts/vrbidMiczaoHBhZGp/inframeasures-and-domain-theory), so it's worthwhile to have some basic familiarity with it.

Here's how the Scott-topology is defined. Given a poset $P$, a subset $D\subseteq P$ is "upwards directed" if, for any two points $x,y\in D$, there's a third point $z\in D$ s.t. $z\ge x$ and $z\ge y$. Similarly, $D$ is downwards directed if, for any two points $x,y\in D$, there's a third point in the directed set that's below the first two points.

**Definition 2: Scott-Open** *A set $O$ is open in the Scott topology iff*

*1: It's closed upwards. $x\ge y$, and $y\in O$ implies $x\in O$.*

*2: It's "inaccessible from below" with upwards directed sets. If there's an upwards-directed set $D$ where $\sqcup D$ (the supremum of $D$) exists, and $\sqcup D\in O$, then $D\cap O\neq\emptyset$.*

Closed upwards is pretty intuitive. For that second condition, it's just like the fact that, if you've got a sequence of numbers in $\mathbb{R}$ that keep getting higher and higher, $r_0\le r_1\le r_2\le r_3...$, and $\sup_n r_n>x$, then one of the $r_n$ in your chain must also be greater than $x$. In fact, sets of the form $(x,\infty)$ are precisely the Scott-open subsets of $\mathbb{R}$. They're closed upwards, and any chain with a supremum that lands in that set must have an element of the chain land in the set already. Just generalize further, chains are a special case of directed sets. If the supremum lands in a Scott-open, one of the points "building up to" the supremum must land in the Scott-open too. And conversely, the supremum of a directed set of points from outside of a Scott-open also can't land in the Scott-open either.

And that's the Scott-topology! It's the topology of building stuff up from below, and has shown up... more than I expected at first.

But... the situation seems pretty symmetric with functions. Could we make a topology that "goes the other way"? Well, I don't know the official name for it, so I'll make one up. The Antiscott topology.

**Definition 3: Antiscott-Open** *A set $O$ is open in the Antiscott topology iff*

*1: It's closed downwards. $x\le y$, and $y\in O$ implies $x\in O$.*

*2: It's "inaccessible from above" with downward directed sets. If there's a downwards directed set $D$ where $\sqcap D$ (the infinimum of $D$) exists, and $\sqcap D\in O$, then $D\cap O\neq\emptyset$.*

It's basically the same thing, but with the direction flipped. Scott-opens are closed upwards, Antiscott-opens are closed downwards. Upwards-directed sets with a supremum in a Scott-open must intersect the Scott-open. Downwards-directed sets with an infinimum in an Antiscott-open must intersect the Antiscott-open.

This may seem like idle goofing around, but there's an unexpected connection to be made here.

**Theorem 1:** *The strict topology on $C_B(X)$ is the topology generated by the Scott topology and the Antiscott topology.*

Ie, if you made a topology that was like "let's make a topology where all the Scott-open sets are open, and all the Antiscott-open sets are open, just close under finite intersections and arbitrary unions... Huh. That's the strict topology exactly."

The simplest way to visualize what's going on with this is that the Scott-open subsets of $\mathbb{R}$ are the sets of the form $(x,\infty)$, and the Antiscott-open subsets of $\mathbb{R}$ are the sets of the form $(-\infty,y)$, and if you went "ok, let's say both of these families of sets are open", then you'd end up saying that all the open intervals $(x,y)$ are open, and bam, you'd get the usual topology on $\mathbb{R}$ that way.

The interesting part is that it feels like this is the tip of a much more general result. It holds for function spaces, the appropriate topology on them to be using is generated by the Scott and Antiscott topologies. It holds for $\mathbb{R}$, the appropriate topology on it is generated by the Scott and Antiscott topologies. But this sort of pattern even shows up in weirder places. As it turns out, the canonical topology on *inframeasures* is, you guessed it, generated by the Scott and Antiscott topologies. And even with, like, $\mathcal{K}X$, the space of compact subsets of $X$, the topology on it (the Vietoris topology) is generated by an upper and lower topology that look an awful lot like Scott and Antiscott.

**Repairing LF-duality**

Part of why Theorem 1 is nifty is that, going back to our old desiderata of "inframeasures $\psi:C_B(X)\to\mathbb{R}$ should be continuous", this result (along with some more work) means that we can split the statement "$\psi$ is continuous" into "$\psi$ is Scott-continuous" (ie, continuous when $C_B(X)$ and $\mathbb{R}$ both have the Scott topology), and "$\psi$ is Antiscott-continuous" (ie, continuous when $C_B(X)$ and $\mathbb{R}$ both have the Antiscott topology), and both of these fragments of continuity are saying somewhat different things!

To motivate some of why it's interesting that continuity splits up this way, let's reiterate the basic four properties of an inframeasure $\psi:C_B(X)\to\mathbb{R}$. These aren't all of them, just the easiest ones to check.

1: Concavity. $\psi(pf+(1-p)g)\ge p\psi(f)+(1-p)\psi(g)$

2: Monotonicity. $f\ge g$ implies $\psi(f)\ge\psi(g)$.

3: 0-increasing. $\psi(0)\ge 0$

4: 1-Lipschitzness. $|\psi(f)-\psi(g)|\le\sup_{x\in X}|f(x)-g(x)|$


And now we can get something pretty interesting. If your space is $\mathbb{N}$, then the function $\la f.\liminf_{n\to\infty}f(n)$ of type $C_B(\mathbb{N})\to\mathbb{R}$ fulfills *all four* of these properties. And then you can go
"ok, by LF-duality, this functional must correspond to minimizing over some set of a-measures, let's work that out, the set of a-measures is....

...

...

...

oh crap, something went very wrong somewhere"

As it turns out, when I proved LF-duality (the theorem about the ability to toggle back and forth between a view where an inframeasure is a concave function fulfilling certain properties, and the view where an inframeasure is a set of a-measures), I was kinda sloppy with it. I didn't realize that $C_B(X)$ had to be equipped with the strict topology. At the time, I hadn't even heard of the strict topology at all. So I was using the wrong topology. And that broke the proof, the Fundamental Theorem of Inframeasures.

The key thing that went wrong is that applying the Hahn-Banach separation theorem requires that you verify that some sets are open, or closed, or compact, or whatever. But since we should be using the strict topology instead of one of the more obvious topologies, I had to be verifying open/closed/compact in the strict topology, which is... quite the ordeal.

Don't worry, it got fixed. As it turns out, the missing piece was Antiscott-continuity!!

**Theorem 2, LF-duality:** *A concave monotone 0-increasing 1-Lipschitz functional $\psi:C_B(X)\to\mathbb{R}$ has a representation as a set of a-measures iff it's Antiscott-continuous.*

And sure enough, when we check our $\la f.\liminf_{n\to\infty}f(n)$ example that fulfills the other four conditions, it fails to be Antiscott-continuous. You can have $f_n$ be 0 for the numbers 0 through n, and 1 everywhere else. This is a descending chain of functions with the constant-0 function as its inf. And yet, all the $f_n$ are assigned a value of 1, while the constant-0 function is assigned a value of 0, breaking Antiscott-continuity.

**Characterizing Continuity**

And what about Scott-continuity? That one seems pretty important, remember that in ["Inframeasures and Domain Theory"](https://www.alignmentforum.org/posts/vrbidMiczaoHBhZGp/inframeasures-and-domain-theory), Scott-continuity *was part of the definition* of an inframeasure. Well... while Antiscott-continuity is intuitively saying "you can represent your functional as a set of a-measures at all", Scott-continuity is intuitively saying "the set of a-measures your function is represented as is a "small" set, in the sense of being "almost compact"".

For the next theorem, some explanation.

The $\eps,b$-CAS property of an inframeasure $\psi:C_B(X)\to\mathbb{R}$ is: For all $\eps,b>0$, there is a compact set $C_{\eps,b}\subseteq X$ s.t, for any two functions $f,g$ with $b\ge\sup_{x\in X}|f(x)|$ (and same for $g$) that agree on the set $C_{\eps,b}$, we have $|\psi(f)-\psi(g)|\le\eps$. Or, as an equation,
$$\forall\eps,b>0:\exists C_{b,\eps}\in\mathcal{K}(X)\forall f,g:\max(||f||,||g||)\le b\wedge\max_{x\in C_{b,\eps}}|f(x)-g(x)|=0\to|\psi(f)-\psi(g)|\le\eps$$
Pretty much, this is saying that "only compact sets are relevant to assessing expectations of functions", in a certain precise sense. Namely, that for any tolerance and norm bound you want, you can find a compact set where the expectation value assigned to a function fitting the norm bound is almost entirely determined by how the function behaves on the compact set. Changing the function behavior outside the compact set has little effect. CAS stands for "compact almost-support".

A strengthened version of this, which didn't have the dependence on $b$ (I didn't know I needed it at the time, it would have looked like an unmotivated hack) was one of our inframeasure conditions in Less Basic Inframeasure Theory. It seems rather complex, but it's the generalization of the analogous fact for probability distributions where there are compact sets containing arbitrarily much of the measure. Except in this case you've also gotta throw in some overall function bounds, and the analogue of "low measure outside the set" is "functions acting differently outside the set has a small effect on expectations".

Next thing of note: Sequential strict continuity of a function $\psi:C_B(X)\to\mathbb{R}$ is "if $f_n$ strictly converges to $f$, then $\psi(f_n)$ converges to $\psi(f)$". Strict continuity (a harder condition to fulfill) is the full "the preimage of an open set in $\mathbb{R}$ is open in $C_B(X)$ equipped with the strict topology" definition of continuity.

And one last note: For an inframeasure $\psi$, $\Psi$ is the corresponding set of a-measures, $\Psi^{\min}$ is the set of minimal points in $\Psi$, and "precompact" is "if you took the closure of the set, it'd be a compact set".

Oh, also, remember, by the last theorem, "representability" (ie, corresponds to minimizing over a set of a-measures) is the same thing as Antiscott-continuity. 

Now we're ready.

**Theorem 3: CC Theorem** *The following five properties are equivalent for a function $\psi:C_B(X)\to\mathbb{R}$ which is monotone, concave, 1-Lipschitz, and 0-increasing.*

*1: The $\eps,b$-CAS property.*

*2: Representability and Scott-continuity.*

*3: Strict continuity.*

*4: Representability and sequential strict continuity.*

*5: Representability and, for all $b^*$, $\Psi^{\min}\cap\{(m,b)|b\le b^*\}$ is precompact in the weak topology on measures.*

CC stands for Continuity-Compactness here. The Continuity-Compactness theorem.

So, just going "the function $\psi:C_B(X)\to\mathbb{R}$ should be continuous" ends up being equivalent to the super-complicated condition about compact sets that we made up when going to Polish spaces. And it also splits into two sorts of continuity, Antiscott and Scott, where Antiscott lets you represent the function as a set of a-measures at all, and Scott ensures that the set is "small", in the sense that if you chopped off your set of a-measures past any given $b$ value, the essential/minimal a-measures would basically be a compact set.

So, all the weird extra conditions, like Scott-continuity, and he compact-set property, and looking compact when the set of a-measures is cut off below any particular bound, are all equivalent to/flow out of mere continuity!

Quick little note. $C_B(X)\to\mathbb{R}$ isn't the only possible type signature for inframeasures, another option is $C(X,[0,1])\to[0,1]$, where all the functions and expectation values are bounded in $[0,1]$. All the other theorems still work (including the "representable iff Antiscott" one), but for the five-way equivalence, some of the equivalences end up breaking. Conditions 2 and 3 are still equivalent in the $[0,1]$ case, though.

Ok, so we got the topology on the space of continuous functions sorted out, and showed that when you do that it lets you repair the previously-broken Fundamental Theorem of Inframeasures (LF-duality), and characterized all the fiddly extra conditions you have to add when you go to non-compact spaces as just "it's continuous, lol".

And so, we can define an inframeasure on a Polish space $X$, this obsoletes the definition from Less Basic Inframeasure Theory.

**Definition 4: Inframeasure** *A function $\psi:C_B(X)\to(-\infty,\infty]$ (or $C(X,[0,1])\to[0,1]$) is an inframeasure if it fulfills*

*1: Concavity. $\psi(pf+(1-p)g)\ge p\psi(f)+(1-p)\psi(g)$*

*2: Monotonicity. $f\ge g$ implies $\psi(f)\ge\psi(g)$.*

*3: 0-increasing. $\psi(0)\ge 0$*

*4: 1-Lipschitzness. $|\psi(f)-\psi(g)|\le\sup_{x\in X}|f(x)-g(x)|$*

*5: Continuity when $C_B(X)$ (or $C(X,[0,1])$) has the strict topology.*

An important thing to note here is that we're adding in one extra inframeasure via these conditions. It's $\bot$, the inframeasure that maps every function to $\infty$. By LF-duality, it corresponds to the empty set. It actually ends up making things a bit nicer, it basically acts as a "point at infinity" and makes it so intersection of inframeasures is always defined.

**The I-topology**

What topology should the space of inframeasures have?

Well, we've got a few options.

The first option is that inframeasures have an ordering, so we could try Scott+Antiscott.

The second option is that, since the type signature is $C_B(X)\to(-\infty,\infty]$, that's a function space. Function spaces are usually equipped with the compact-open topology, so we could go with that one. The compact-open topology is the topology generated by declaring the following family of sets to all be open
$$\{\psi|\psi(K)\subseteq O\}$$
Where $K$ is a (strictly) compact subset of $C_B(X)$, and $O$ is an open subset of $(-\infty,\infty]$.

The third option is coming up with some sort of nice metric. Previously, in ["Less Basic Inframeasure Theory"](https://www.alignmentforum.org/posts/idP5E5XhJGh9T5Yq9/less-basic-inframeasure-theory#Section_6__IKR_distance), we proposed the metric
$$d(\psi,\phi):=\sup_{f}\frac{|\psi(f)-\phi(f)|}{\max(1,Li(f),||f||)}$$
Where $Li(f)$ is the Lipschitz constant of $f$ (assumed to be infinite if $f$ isn't Lipschitz), and $||f||$ is the norm of $f$, ie $\sup_{x\in X}|f(x)|$. Basically, this metric says that two inframeasures are close if they agree pretty well on all the functions with low Lipschitz constant and low norm. This is a generalization of the KR-distance metric on probability distributions, and is equivalent to Hausdorff distance between the corresponding sets of a-measures for the two inframeasures.

As it turns out, this isn't *quite* the right metric. The right metric is
$$d_{IKR}(\psi,\phi):=\sup_{f}\frac{|\psi(f)-\phi(f)|}{\max(1,Li(f),||f||^2)}$$
Which we'll call the IKR metric. The "squared" isn't too important, the important part is that it be a power greater than 1. Pretty much, it's the same as our last stab at defining a metric, except it's more aggressive at discounting functions with a high norm.

This is a decent distance metric in all respects, except it doesn't deal too well with the inframeasure at infinity, $\bot$.

Accordingly, the IKR-topology is defined as the topology generated by all the open balls induced by the IKR-metric, and also by the sets of the form
$$\{\psi|\psi(0)>n\}$$
For $n\in\mathbb{N}$. These are the neighborhoods of infinity.

**Proposition 3:** *The compact-open topology on the space of inframeasures and the IKR-topology on the space of inframeasures are identical.*

Hm! That's a sign we're on the right track! It means that equipping the space of inframeasures with the obvious topology (compact-open) makes the same thing as trying to generalize the distance metric on probability distributions to the case of inframeasures (they're close if they nearly agree on low-Lipschitz-constant functions of low norm), and tweaking it a little bit.

From now on, we'll call this the I-topology. The infra-topology, the appropriate topology to equip the space of inframeasures with.

If you're wondering whatever happened to the Scott+Antiscott idea, I didn't bother proving it, but I'm >95 percent sure it's true because I worked out what the Scott topology on inframeasures looks like, and it's "half of the I-topology" in a sense that looks identical to how the Scott topology on functions looked like "half of the strict topology".

And now, we'll come to one of our major centerpiece theorems. Four very different charaterizations of when inframeasures converge.

The first possibility is that you could say that $\psi_n$ limits to $\psi$ iff, for all strictly convergent sequences of functions $f_n$, we have $\lim_{n\to\infty}\psi_n(f_n)=\psi(f)$. Basically, inframeasures converge however they need to to make $eval:\Box X\x C_B(X)\to\mathbb{R}$ a sequentially continuous function.

The second possibility is that you could say that $\psi_n$ limits to $\psi$ iff, for all compact sets of functions $F$, $\psi_n$ uniformly limits to $\psi$ on $F$. This is basically replicating our "functions must uniformly converge on compact sets" thing, but for inframeasures instead of functions.

The third possibility is that you could say that $\psi_n$ limits to $\psi$ iff $\psi_n$ limits to $\psi$ in the compact-open topology (ie, the I-topology).

And the fourth possibility is $\psi_n$ limits to $\psi$ iff it does so in IKR-distance.

So, there's a sequential-continuity-based way of describing convergence, a uniform-convergence-on-compact-sets way of describing convergence, a converge-in-the-obvious-topology way of describing convergence, and a metric-based way of describing convergence.

Modulo some fiddly complications with what it means to converge to $\bot$, the all-infinity inframeasure, we get that they're all the same!!

**Theorem 4: The Convergence Theorem** *The following four characterizations of inframeasure convergence are identical.*

*1: For all sequences $f_n$ that strictly limit to $f$, $\psi_n(f_n)$ limits to $\psi(f)$.*

*2:For all compact sets $F$ (in the strict topology on $C_B(X)$), $\psi_n$ uniformly limits to $\psi$ on $F$ (if $\psi$ is the all-infinity function, $\inf_{f\in F}\psi_n(f)$ limiting to infinity will be taken as uniform convergence to infinity)*

*3: $\psi_n$ limits to $\psi$ in the compact-open topology.*

*4: $\psi_n$ limits to $\psi$ in the IKR-metric, or $\psi=\bot$ and $\psi_n(0)$ limits to $\infty$.*

So, all these different notions of convergence are all the same, this is pointing to us having figured out the correct thing. Oh, and this theorem works equally well in the $[0,1]$ type signature case.

A big goal is to show that if $X$ is a Polish space, then $\Box X$ is a Polish space too. Ie, spaces of inframeasures are about as nice as the space they're defined over. And...

**Theorem 5:** *The space of $\mathbb{R}$ inframeasures equipped with the I-topology is a Polish space.*

Stuff goes wonky with the $[0,1]$-type-signature case, I'm not sure whether or not the space of $[0,1]$-inframeasures is still Polish. I mean, the convergence theorem still holds, but the argument that the limit of a Cauchy sequence of inframeasures is an inframeasure relies on some arguments I can't pull off in the $[0,1]$ case.

We might ask if there's some nice properties we can impose to prove Polishness in the $[0,1]$ case, and it turns out there is! It's one of our most common "nice properties", cohomogenity.

**Proposition 4:** *The space of cohomogenous $[0,1]$ inframeasures equipped with the I-topology is a Polish space.*

But all of this is somewhat complicated, we might hope that when $X$ is compact, things get a bit nicer. And it turns out, yes, that works.

**Proposition 5:** *If $X$ is a compact Polish space, then the space of $\mathbb{R}$-inframeasures and the space of $[0,1]$-inframeasures are both compact Polish spaces.*

Our next order of business is characterizing when a set of inframeasures is compact in the I-topology. One tricky part is that inframeasures can "run off to infinity", and we've got that extra point-at-infinity, $\bot$ to deal with. So our first order of business is reducing the question of checking compactness to a slightly easier problem.

**Proposition 6:** *A set of inframeasures $P$ is compact in the I-topology iff, for all $b$, $P\cap\{\psi|\psi(0)\le b\}$ is compact in the I-topology.*

So now we just need to characterize compactness for bounded sets. Sadly, this proof only works for the $\mathbb{R}$ type signature, as far as I can tell.

**Theorem 6: The Infra-Prokhorov Theorem** *A $\psi(0)$-bounded set of $\mathbb{R}$ inframeasures, $\Xi$ is compact in the I-topology iff it is closed, and for all $b,\eps$, there is a compact set $C_{b,\eps}$, which is a $\eps,b$-almost support for all $\psi\in\Xi$.*

The basic idea is that, if you refer back to our description of the $\eps,b$-CAS property, it was that there were compact sets that accounted for most of what the expectation values of a function were, as long as the bounds weren't too high. In this case, compactness matches up with the property of the *same* compact sets working as compact-almost-supports for *all* the inframeasures at once. This is basically the generalization of Prokhorov's Theorem to the inframeasure case.

The "shared $\eps,b$-CAS property" is precisely this property, of there being compact sets where all of a batch of inframeasures agree that the behavior of a function (with given bounds) on that compact set accounts for most of what the expectation value of the function is.

And a set of inframeasures will be said to be "bounded" if $\sup_{\psi\in\Xi}\psi(0)<\infty$.

Now, referring back to Less Basic Inframeasure Theory (condition 3 of definition 13), there was a condition there about when an infrakernel is nicely-behaved. As it turns out, with our little modification, it turns out that the "nice behavior" property of an infrakernel is just equivalent to continuity!

**Proposition 7:** *The following properties are equivalent for a function $K:X\to\Box Y$ (where $\Box$ is the $\mathbb{R}$-inframeasures).*

*1: $K$ is continuous and bounded when $\Box Y$ is equipped with the I-topology.*

*2: $K$ is bounded, and for all $f$, if $x_n$ limits to $x$, then $K(x_n)(f)$ limits to $K(x)(f)$. And, for all compact sets $C\subseteq X$, then the family of inframeasures $K(C)$ has the shared $\eps,b$-CAS property.*

So we've characterized the space of infradistributions pretty well. We've got two different characterizations of the topology, four different characterizations of when inframeasures converge to each other, it's a nicely behaved (ie, Polish) space, it's compact when $X$ is compact, and we know what the compact sets in it look like, and the conditions for an infrakernel to be well behaved are literally just "be bounded and continuous".

**The Scott Topology (again)**

So now it's time to switch gears. There's one other notable topology on the space of inframeasures, the Scott-topology. Remember, there are lots of domain-theory connections to be found, and inframeasures have an ordering, so we can define the Scott-topology in the usual way, as upwards-closed sets inaccessible from below by directed suprema.

Also note that the ordering on the Scott-topology is reversed. Big sets/low-scoring inframeasures go on the bottom, small sets/high-scoring inrameasures go on the top. Yes, that means that $\bot$ is the highest inframeasure under the usual Domain-theory ordering. Hopefully that isn't too much of an issue.

This is a rather abstract topology, but spurred by our result that the strict topology on functions was made by combining the Scott and Antiscott topologies on functions, we may hope that the the Scott topology on inframeasures ends up looking like "one half of the I-topology", in a certain precise sense.

And lo and behold, this is the case. Remember how the compact-open topology/I-topology on inframeasures was made by declaring the sets
$$\{\psi|\psi(K)\subseteq O\}$$
to be open, for compact sets of functions and open sets of numbers?

Well, what if we swapped the open sets of numbers for Scott-open sets of numbers?

**Proposition 8:** *The Scott-topology on the space of inframeasures $\Box X$ is the compact-open topology, but with scott-open subsets of $\mathbb{R}$.*

Cool! The Scott-topology is like "one half of the I-topology", in the sense that we're swapping out the open sets for the compact-open base with Scott-open sets.

We may hope to go even further, to find a Scott version of the IKR-metric. This will be tricky to do, however, because the Scott topology is a T0 topology, it's not even Hausdorff. So we can't use any old metric.

We've gotta use a pseudoquasimetric. Basically, it's like a metric, but the distance between distinct points can be 0, and distance can also be asymmetric. But the triangle inequality still holds.

**Proposition 9:** *The scott-topology has a base given by $\{\phi|d_{S}(\phi,\psi)<\eps\}$, for arbitrary choices of $\psi,\eps$. $d_{S}$ is the scott pseudoquasimetric, defined by*
$$d_{S}(\phi,\psi):=\max_{f}\frac{\max(\psi(f)-\phi(f),0)}{\max(1,Li(f),||f||^2)}$$

And just like the Scott topology is one half of the I-topology, this is one half of the IKR metric. The IKR metric asked "if we scale things down by the Lipschitz and norm term in the bottom, what's the maximum difference between $\psi$ and $\phi$?". And this is asking "if we scale things down by the Lipschitz and norm term in the bottom, what's the maximum amount by which $\phi$ undershoots $\psi$?"

And there's one last little thing to clean up. We've previously used a somewhat broader definition of infrakernels where they were [lower-semicontinuous.](https://www.alignmentforum.org/posts/GS5P7LLLbSSExb3Sk/the-many-faces-of-infra-beliefs) Ie, $\liminf_{n\to\infty}K(x_n)(f)\ge K(x)(f)$. It seemed to just show up naturally from the math, and the concept has been used a few times since them.

As it turns out, there's a lot of equivalents to this condition! Scott-continuity, lower-semicontinuity, and $K$ having closed graph all match up.

**Theorem 8:** *The following properties are equivalent for a function $K:X\to\Box Y$ (where $\Box$ is the $\mathbb{R}$-inframeasures.)*

*1: $K$ is continuous when $\Box Y$ is equipped with the Scott-topology.*

*2: If $x_n$ limits to $x$, then $d_{S}(K(x_n),K(x))$ limits to 0.*

*3: If $x_n$ limits to $x$ and $f_n$ limits to $f$, then $\liminf_{n\to\infty}K(x_n)(f_n)\ge K(x)(f)$.*

*4: If $x_n$ limits to $x$ then for all $f$, $\liminf_{n\to\infty}K(x_n)(f)\ge K(x)(f)$, and for all compact sets $C$ and $b^*$, $K(C)\cap\{\psi|\psi(0)\le b^*\}$ fulfills the shared $\eps,b$-CAS property.*

*5: The shared $\eps,b$-CAS property is fulfilled on $K(C)\cap\{\psi|\psi(0)\le b^*\}$ for all compact sets $C$ and bounds $b^*$, and the graph of $K$ as a function $X\to\mathcal{M}^{a}(Y)$ is closed.*

And that's about it. The topology side of things has been conclusively sorted out.