*(This post was originally published on March 31st 2017, and has been brought forwarded as part of the AI Alignment Forum launch sequence on fixed points.)*

In this post, I present a new formal open problem. A positive answer would be valuable for decision theory research. A negative answer would be helpful, mostly for figuring out what is the closest we can get to a positive answer. I also give some motivation for the problem, and some partial progress.

**Open Problem:** Does there exist a topological space (in some convenient category of topological spaces) such that there exists a continuous surjection from to the space (of continuous functions from to )?

**Motivation:**

**Topological Naturalized Agents:** Consider an agent who makes some observations and then takes an action. For simplicity, we assume there are only two possible actions, and . We also assume that the agent can randomize, so we can think of this agent as outputting a real number in , representing its probability of taking action .

Thus, we can think of an agent as having a policy which is a function from the space of possible observations to . We will require that our agent behaves continuously as a function of its observations, so we will think of the space of all possible policies as the space of continuous functions from to , denoted .

We will let denote the space of all possible agents, and we will have a function which takes in an agent, and outputs that agent's policy.

Now, consider what happens when there are other agents in the environment. For simplicity, we will assume that our agent observes one other agent, and makes no other observations. Thus, we want to consider the case where , so .

We want to be continuous, because we want a small change in an agent to correspond to a small change in the agent's policy. This is particularly important since other agents will be implementing continuous functions on agents, and we would like any continuous function on policies to be able to be considered valid continuous function on agents.

We also want to be surjective. This means that our space of agents is sufficiently rich that for any possible continuous policy, there is an agent in our space that implements that policy.

In order to meet all these criteria simultaneously, we need a space of agents, and a continuous surjection .

**Unifying Fixed Point Theorems:** While we are primarily interested in the above motivation, there is another secondary motivation, which may be more compelling for those less interested in agent foundations.

There are (at least) two main clusters of fixed point theorems that have come up many times in decision theory, and mathematics in general.

First, there is the Lawvere cluster of theorems. This includes the Lawvere fixed point theorem, the diagonal lemma, and the existence of Quines and fixed point combinators. These are used to prove Gödel's incompleteness Theorem, Cantor's Theorem, Löb's Theorem, and achieve robust cooperation in the Prisoner's Dilemma in modal framework and bounded variants. All of these can be seen as corollaries of Lawvere's fixed point theorem, which states that in a cartesian closed category, if there is a point-surjective map , then every morphism has a fixed point.

Second, there is the Brouwer cluster of theorems. This includes Brouwer's fixed point theorem, The Kakutani fixed point theorem, Poincaré–Miranda, and the intermediate value theorem. These are used to prove the existence of Nash Equilibria, Logical Inductors, and Reflective Oracles.

If we had a topological space and a continuous surjection , this would allow us to prove the one-dimensional Brouwer fixed point theorem directly using the Lawvere fixed point theorem, and thus unify these two important clusters.

Thanks to Qiaochu Yuan for pointing out the connection to Lawvere's fixed point theorem (and actually asking this question three years ago).

**Partial Progress:**

**Most Diagonalization Intuitions Do Not Apply:** A common initial reaction to this question is to conjecture that such an does not exist, due to cardinality or diagonalization intuitions. However, note that all of the diagonalization theorems pass through (some modification of) the same lemma: Lawvere's fixed point theorem. However, this lemma does not apply here!

For example, in the category of sets, the reason that there is no surjection from any set to the power set, , is because if there were such a surjection, Lawvere's fixed point theorem would imply that every function from to itself has a fixed point (which is clearly not the case, since there is a function that swaps and ).

However, we already know by Brouwer's fixed point theorem that every continuous function from the interval to itself has a fixed point, so the standard diagonalization intuitions do not work here.

**Impossible if You Replace with e.g. :** This also provides a quick sanity check on attempts to construct an . Any construction that would not be meaningfully different if the interval is replaced with the circle is doomed from the start. This is because a continuous surjection would violate Lawvere's fixed point theorem, since there is a continuous map from to itself without fixed points.

**Impossible if you Require a Homeomorphism:** When I first asked this question I asked for a homeomorphism between and . Sam Eisenstat has given a very clever argument why this is impossible. You can read it here. In short, using a homeomorphism, you would be able to use Lawvere to construct a continuous map that send a function from to itself to a fixed point of that function. However, no such continuous map exists.

**Notes:**

If you prefer not to think about the topology of , you can instead find a space , and a continuous map , such that for every continuous function , there exists an , such that for all , .

Many of the details in the motivation could be different. I would like to see progress on similar questions. For example, you could add some computability condition to the space of functions. However, I am also very curious which way this specific question will go.

This post came out of many conversations, with many people, including: Sam, Qiaochu, Tsvi, Jessica, Patrick, Nate, Ryan, Marcello, Alex Mennen, Jack Gallagher, and James Cook.

*This post was originally published on March 31st 2017, and has been brought forwarded as part of the AI Alignment Forum launch sequences.*

*Tomorrow's AIAF sequences post will be 'Iterated Amplification and Distillation' by Ajeya Cotra, in the sequence on iterated amplification.*

From discussions I had with Sam, Scott, and Jack:

To solve the problem, it would suffice to find a reflexive domain X with a retract onto [0,1].

This is because if you have a reflexive domain X, that is, an X with a continuous surjective map f::X→XX, and A is a retract of X, then there's also a continuous surjective map g::X→AX.

Proof: If A is a retract of X then we have a retraction r::X→A and a section s::A→X with r∘s=1A. Construct g(x):=r∘f(x). To show that g is a surjection consider an arbitrary q∈AX. Thus, s∘q::X→X. Since f is a surjection there must be some x with f(x)=s∘q. It follows that g(x)=r∘f(x)=r∘s∘q=q. Since q was arbitrary, g is also a surjection.

A small note: it's not hard to construct spaces that are a bit too big, or a bit too small (raising the possibility that a true X lies between them).

For instance, if I is the unit interval, then we can map I onto the countable hypercube Iω ( https://en.wikipedia.org/wiki/Space-filling_curve#The_Hahn.E2.80.93Mazurkiewicz_theorem ). Then if we pick an ordering of the dimensions of the hypercube and an ordering of Q∩I, we can see any element of Iω - hence any element of I - as a function from Q∩I to I.

Let C(I) be the space of continuous functions I→I. Then any element of C(I) defines a unique function Q∩I→I (the converse is not true - most functions Q∩I→I do not correspond to continuous functions I→I). Pulling C(I) back to I via Iω we define the set Y⊂I.

Thus Y maps surjectively onto C(I). However, though C(I) maps into C(Y) by restriction (any function from I is a function from Y), this map is not onto (for example, there are more continuous functions from I−{1/2} than there are from I, because of the potential discontinuity at 1/2).

Now, there are elements of I−Y that map to functions in C(Y) but not in C(I). So there's a hope that there may exist an X with Y⊂X⊂I, C(I)⊂C(X)⊂C(Y), and X mapping onto C(X). Basically, as X `gets bigger', its image in C(Y) grows, while C(X) itself shrinks, and hopefully they'll meet.

I think you made a mistake here

The Hahn–Mazurkiewicz theorem states that

I will agree that Iwis connected and locally connected. I'm not sure if its second countable. It is not compact.

Just to be clear Iw={(x1,x2,⋯)∀i:xi∈[0,1]]} Now let Hi={x∈Iw | xi<0.6} . Clearly each Hi is open. Let G={x∈Iw | ∀i:xi>0.4} And F={G,H1,H2,⋯}. Now clearly this family covers all of Iw. However, remove any Hi from F and x=(i0.9,0.9,⋯0.9,0.1,0.9,0.9,⋯) is no longer covered. So F is a family of open sets, which cover Iw and don't have any finite subcover.

Hum, Iω should be compact by Tychonoff's theorem (see also the Hilbert Cube, which is homeomorphic to Iω).

For your proof, I think that G is not open in the product topology. The product topology is the coarsest topology where all the projection maps are continuous.

To make all the projection maps continuous we need all sets in S to be open, where we define σ∈S iff there exists an i, such that pi(σ) is open in [0,1] and σ={x=(x1,x2,…)|xi∈pi(σ),0≤xj≤1 for i≠j}.

Let S′ be the set of finite intersection of these sets. For any σ′∈S′, there exists a finite set Nσ′⊂N such that if x∈σ′ and yi=xi for i∈Nσ′, then y∈σ′ as well.

If we take S′′ to be the arbitrary union of S′, this condition will be preserved. Thus G is not contained in the arbitrary unions and finite intersections of S, so it seems it is not an open sent.

Also, Iω is second-countable. From the wikipedia article on second-countable:

If I were studying this, I would be looking at domain theory, in which (among other things) there has been found a topological space X homeomorphic with XX. The page I linked links to some notes at the bottom. (h/t Qiaochu for pointing out domain theory)

I have just now submitted an attempted solution to this problem to "Geometry and Topology". I claim that the space X you are looking for is 2ω1 (ω1 being the least uncountable cardinal) with the ``generalised Cantor space topology", that is for each countable well-ordered bit-string b you have a basic open set consisting of all bit-strings of length ω1 with b as an initial fragment. Since this topological space has quite a large cardinality I'm somewhat unclear whether this is helpful for your proposed application and would need to think about it more. (Matthew Barnett just now directed me to this post of yours.) I sent you an early draft of my paper, which argues the point in detail, on FB Messenger, and can send the latest version to you if you wish.

Let A′ be 2ω1 with generalised Cantor space topology, and A′′ be 2ω1 with product topology, X a closed disc in a finite-dimensional Euclidean space. Then there is a continuous surjection A′→XA′′. I don't know how to show that there is a topological space A with carrier set 2ω1 and a continuous surjection A→XA. Thanks to Alex Mennen for pointing out the problem.

However, because topology on A′ is finer than topology on A′′ here, this still shows how the proof of the Lawvere fixed point theorem can be applied here to give Brouwer fixed point theorem as corollary, which could conceivably be a publishable result (see what "Geometry and Topology" think about that), and this could still be sorta kinda maybe relevant to Scott's original motivation for looking at the problem (if you're okay with working with two different topologies on the space of agents, one finer than the other). But this is a very big space of agents you're talking about here.

Correction: need not only that topology on A′ is finer than topology on A′′, but also, given arbitrary open subset of X, take pre-image under evaluation map in XA′′×A′′, projection onto first factor and then pre-image of that under the continuous surjection A′→XA′′, it needs to be shown that this set is open in both topologies. I believe that this can indeed be done for an appropriate class of spaces X for the pair of topologies in question.

When I look at my post the LaTeX code isn't formatting properly; if anyone can let me know how to fix that.

I fixed it. In our editor, use cmd-4/ctrl-4 to do LaTex, not dollar signs. (The thing you did would work in the markdown editor – you can go into settings to change to that editor if you'd like.)

EDIT: This idea iswrong: https://www.lesswrong.com/posts/eqi83c2nNSX7TFSfW/no-surjection-onto-function-space-for-manifold-xOk, here's an idea for constructing such a map, with a few key details left unproven; let me know if people see any immediate flaws in the approach, before I spend time filling in the holes.

Let X be a countable collection of open intervals (eg X={x∈R,x∉N}), given the usual topology. Let I=[0,1] be the closed unit interval, and C(X,I) the set of continuous functions from X to I. Give C(X,I) the compact-open topology.

By the properties of the compact-open topology, since I is T3.5 (Tychonoff), then so is C(X,I). I'm hoping that the proof can be extended, at least in this case, to show that C(X,I) is T4 (normal Haussdorff).

It seems clear that C(X,I) is second-countable: let V(K,U) consist of all functions that map K into U, where K⊂X is the intersection of X with a closed interval with rational endpoints, and U⊂I is an open interval with rational endpoints. The set of all such V(K,U) is countable, and forms a subbasis of C(X,I). A countable subbasis means a countable basis, as the set of finite subsets of countable set, is itself countable.

If C(X,I) is T4 and second countable, then it is homeomorphic to a subset of the Hilbert Cube. To simplify notation, we will identify C(X,I) with its image in the Hilbert Cube.

Take the closure ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯C(X,I) of C(X,I) within the Hilbert Cube. This closure is compact and second countable (since the Hilbert Cube itself is both). It seems clear that C(X,I) is connected and locally connected; connected will extend to the closure, we'll need to prove that locally connected does as well.

Then we can apply the Hahn-Mazurkiewicz theorem:

So there is a continuous surjection ϕ:I→¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯C(X,I). Pull back C(X,I), defining ϕ−1(C(X,I))⊂I. If C(X,I) is open in ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯C(X,I) (with the subspace topology), then ϕ−1(C(X,I)) is open in I. Even if ϕ−1(C(X,I)) is not open, we can hope that, at worst, it consists of a countable collection of points, open intervals, half-closed intervals, and closed intervals (this is not a general property of subsets of the interval, cf the Cantor set, but it feels very likely that it will apply here).

In that case, these is a continuous surjection s from X to ϕ−1(C(X,I)), mapping each open interval to one of the points or intervals ("folding" over the ends when mapping to those with closed end-points).

Then ϕ∘s:X→C(X,I) is the continuous surjection we are looking for.

Note: I'm thinking now that C(X,I) might not be connected, but this would not be a problem as long as it has a countable number of connected components.

I am going to take some license with your question because I think you are asking the wrong question. Arbitrary topological spaces and abstract continuity are rarely the right notions in real-world situations. Rather, uniform continuity on bounded sets usually better corresponds to the intuitive notion of "a small change in input produces a small change in output".

Thus, suppose that X is a complete separable metric space and that f:X×X→[0,1] is uniformly continuous on bounded sets. Then we can show that there exists a function g:X→[0,1] which is uniformly continuous on bounded sets but not a fiber of f (i.e. there is no x such that f(x,y)=g(y) for all y). Indeed, consider two cases:

X is uniformly discrete. Then every map from X to [0,1] is uniformly continuous, so we get a contradiction from cardinality considerations.

X is not uniformly discrete. Then for each n, since f is uniformly continuous on B(0,n) it has a modulus of continuity on this set, i.e. a continuous increasing function hn:(0,∞)→(0,∞) such that d(f(x),f(y))<hn(d(x,y)) for all x,y∈B(0,n)⊆X×X. Since X is not uniformly discrete, there is a function g:X→[0,1] such that for infinitely many n, there exist x,y such that d(g(x),g(y))>hn(d(x,y)). (To construct it, take pairs (xn,yn) with hn(d(xn,yn))<2−n, extract a subsequence that behaves geometrically nicely, and then find a function g such that d(g(xn),g(yn))>2−n for all n in the subsequence.) Clearly, g cannot be a fiber of f.

g can be a fiber of f, since for each n, xn and yn could be distance greater than n from the basepoint.

Example: let X:={xn,yn|n∈N}, with d(xn,xm)=d(yn,ym)=d(xn,ym)=2|n−m| for n≠m and d(xn,yn)=6−n. Let x0 be the basepoint (so that (x0,x0) is the point you were calling "0"). Let g(xn):=0, g(yn):=1, f(z,w):=g(z), and hn(r):=3nr.

I also don't see how to even construct the function g, or, relatedly, what you mean by "geometrically nicely", but I guess it doesn't matter.

Also, I'm not convinced that metric spaces with uniform continuity on bounded subsets is a better framework than topological spaces with continuity.

This is intended as a reply to David Simmons's comment, which for some reason I can't reply to directly.

In the new version of your proof, how do we know Yk isn't too close to Xl for some l>k? And how do we know that g is uniformly continuous on bounded subsets?

About continuity versus uniform continuity on bounded sets:

It seems to me that your point 1 is just a pithier version of your point 4, and that these points support paying attention to uniform continuity, rather than uniform continuity restricted to bounded sets. This version of the problem seems like it would be a less messy version of the "fixed modulus of continuity" version of the problem you mentioned (which I did not understand your solution to, but will look again later).

I'm not sure what you're getting at about singularities in point 3. I wouldn't have asked why you were considering uniform continuity on bounded sets instead of uniform continuity away from singularities (in fact, I don't know what that means). I would ask, though, why uniform continuity on bounded sets instead of uniform continuity on compact sets? As you point out, the latter is the same as continuity.

Your point 2 is completely wrong, and in fact this is the primary reason I was convinced that continuity is a better thing to pay attention to than uniform continuity on bounded sets. The type of object you are describing is an effective Polish space that remembers its metric. Typically, descriptive set theorists forget the metric, and the isomorphisms between Polish spaces are homeomorphisms (and the isomorphisms between effective Polish spaces are computable homeomorphisms). Changing the metric in a computably homeomorphic way does not change what can be done when points are represented as descending chains of basic open sets with singleton intersection. So the thing you described was really topological rather than metric in nature, even though it involves introducing a metric in the setup. I am not aware of any notions of computability in metric spaces in which the metric matters in the way you are suggesting. It is not true that uniform continuity gives you an algorithm for computing the function. As a counterexample, let a be an uncomputable number, and let f:R→R be given by f(x)=a for every x. f is clearly uniformly continuous, but not computable. It is also not true that uniform continuity is necessary in order for the function to be computable. For instance, sin(1/x) is computable on (0,1]. Of course, (0,1] is not complete, but for another example, consider an effective infinite-dimensional Hilbert space, and let {en|n∈N} be an effective orthonormal basis. Let fn(x):=max(0,12−∥x−en∥). This sequence of functions is computable, they have disjoint support, and for any point, a sufficiently small neighborhood around it will be disjoint from the supports of all but at most one of these functions. Thus f(x):=∑nnfn(x) is computable, but of course it is not uniformly continuous on the unit ball, which is bounded. However, it is true that every computable function is continuous, and conversely, every continuous function is computable with respect to some oracle. Of course, we really want computability, not computability with respect to some oracle, but this still seems to show that continuity is at least a good metaphor for computability, whereas uniform continuity on bounded sets doesn't seem so to me.

Of course, all this about continuity as a metaphor for computability makes the most sense in the context of Polish spaces, and we can only talk about actual computability in the context of effective Polish spaces. Scott's problem involves a space X and the exponential [0,1]X. If X is a locally compact Polish space, then [0,1]X is also Polish. I think that this might be necessary (that is, if X and [0,1]X are Polish, then X is locally compact), although I'm not sure. If so, and if your proof is correct, it seems plausible that your proof could be adapted to show that there is no locally compact Polish space with the property that Scott was looking for, and that would show that there is no solution to the problem in which X and [0,1]X are both Polish spaces, and hence no computable solution, if computability is formalized as in effective descriptive set theory.

I don't know why my comment doesn't have a reply button. Maybe it is related to the fact that my comment shows up as "deleted" when I am not logged in.

Sorry, I seem to be getting a little lazy with these proofs. Hopefully I haven't missed anything this time.

New proof: ... We can extract a subsequence (nk) such that if Xk=xnk and Yk=ynk, then d(Xk+1,Yk+1)≤(1/6)d(Xk,Yk) for all k, and for all k and l>k, either (A) d(Xk,Yl)≥(1/3)d(Xk,Yk) and d(Xk,Xl)≥(1/3)d(Xk,Yk) or (B) d(Yk,Xl)≥(1/3)d(Xk,Yk) and d(Yk,Yl)≥(1/3)d(Xk,Yk). By extracting a further subsequence we can assume that which of (A) or (B) holds depends only on k and not on l. By swapping Xk and Yk if necessary we can assume that case (A) always holds.

Lemma: For each z there is at most one k such that d(z,Xk)≤(1/6)d(Xk,Yk).

Proof: Suppose d(z,Xk)≤(1/6)d(Xk,Yk) and d(z,Xl)≤(1/6)d(Xl,Yl), with k<l. Then d(Xk,Xl)<(1/3)d(Xk,Yk), a contradiction.

It follows that by extracting a further subsequence we can assume that d(Yk,Xl)≥(1/6)d(Xl,Yl) for all l>k.

Now let j:[0,∞)→[0,∞) be an increasing uniformly continuous function such that j(0)=0 and j((1/6)d(Xk,Yk))>2−nk for all k. Finally, let g(x)=infkj(d(x,Yk)). Then for all k we have g(Yk)=0. On the other hand, for all k<l we have d(Xk,Yl)≥(1/3)d(Xk,Yk), for k=l we have d(Xk,Yl)=d(Xk,Yk), and for k>l we have d(Xk,Yl)≥(1/6)d(Xk,Yk). Thus g(Xk)=inflj(d(Xk,Yl))≥j((1/6)d(Xk,Yk))>2−nk. Clearly, g cannot be a fiber of f. Moreover, since the functions j and x↦infkd(x,Yk) are both uniformly continuous, so is g.

Regarding your responses to my points:

I guess I don't disagree with what you write regarding my points 1 and 4.

It seems to be harder than expected to explain my intuitions regarding singularities in point 3. Basically, I think the reasons that abstract continuity came to be considered standard are mostly the fact that in concrete applications you have to worry about singularities, and this makes uniform continuity a little more technically annoying. But in the kind of problem we are considering here, it seems that continuity is really more annoying to deal with than uniform continuity, with little added benefit. I guess it also depends on what kinds of functions you expect to actually come up, which is a heuristic judgement. Anyway it might not be productive to continue this line of reasoning further as maybe our disagreements just come down to intuitions.

Regarding my point 2, I wasn't very clear when I said that uniform continuity gives you an algorithm, what I meant was that if you have an algorithm for computing the images of points in the dense sequence and for computing the modulus of continuity function, then uniform continuity gives you an algorithm. The function x↦sin(1/x) would be the kind of thing I would handle with uniform continuity away from singularities (to fix a definition for this, let us say that you are uniformly continuous away from singularities if you are uniformly continuous on sets of the form B(0,n)∖B(S,1/n), where S is some set of singularities).

In your definition of fn, I think you mean to write max instead of min. But I see your point, though the example seems a little pathological to me.

Anyway, it seems that you agree that it makes sense to restrict to Polish spaces based on computability considerations, which is part of what I was trying to say in 2.

If you have a locally compact Polish space, then you can find a metric with respect to which the space is proper (i.e. bounded subsets are compact): let d′(x,y)=d(x,y)+|f(x)−f(y)|, where f(x)=1/sup{r:B(x,r) is compact}. With respect to this metric, continuity is the same as uniform continuity on bounded sets, so my proof should work then.

Proposition: Let X be a Polish space that is not locally compact. Then [0,1]X (with the compact-open topology) is not first countable.

Proof: Suppose otherwise. Then the function f0≡0 has a countable neighborhood basis of sets of the form F(Kn,Un)={f:f(Kn)⊆Un} where Kn⊆X is compact and Un⊆[0,1] is open. Since X is not locally compact, there exists a point x such that B(x,r) is not compact for any x. For each n, we can choose xn∈B(x,1/n)∖⋃i≤nKi. Let K={xn:n}∪{x}, and note that K is compact. Then F(K,[0,1/2)) is a neighborhood of f0. But then F(K,[0,1/2))⊇⋂i≤nF(Ki,Ui) for some n. This contradicts the fact that xn∈K∖⋃i≤nKi, since we can find a bump function which is 0 on ⋃i≤nKi but 1 at x.

It does still seem to me that most of the useful intuition comes from point 4 of my previous comment, though.

It appears that comments from new users are collapsed by default, and cannot be replied to without a "Like". These seem like bad features.

Your proof that there's no uniformly continuous on bounded sets function f:X×X→[0,1] admitting all uniformly continuous on bounded sets functions X→[0,1] as fibers looks correct now. It also looks like it can be easily adapted to show that there is no uniformly continuous f:X×X→[0,1] admitting all uniformly continuous functions X→[0,1] as fibers. Come to think of it, your proof works for arbitrary metric spaces X, not just complete separable metric spaces, though those are nicer.

I see what you mean now about uniform continuity giving you an algorithm, but I still don't think that's specific to uniform continuity in an important way. After all, if you have an algorithm for computing images of points in the countable dense set, and a computable "local modulus of continuity" in the sense of a computable function h:X×[0,∞)→[0,∞) with h(x,0)=0 and d(x,y)<r⟹|f(y)−f(x)|<h(x,r), then f is computable, and this does not require f to be uniformly continuous. Although I suppose you could object that this is a bit circular, in that I'm assuming the "local modulus of continuity" is computable only in the standard sense, which does not require uniform continuity.

I'm not sure why you would allow singularities at some points (presumably a uniformly discrete set, or something like that) while still insisting on uniform continuity elsewhere. It still seems to me that the arguments for uniform continuity rather than continuity all point to wanting uniform continuity entirely, rather than some sense of local uniform continuity in most places.

Thanks for pointing out the error in my definition of fn; I've fixed it.

In your argument that locally compact Polish spaces can be given metrics with respect to which they are proper, it isn't true that d′ is necessarily a proper metric. For instance, consider a countably infinite set with d(x,y)=1 for x≠y. This is a locally compact Polish space, but f(x)=1 for every x, so d′=d, and the space is not proper.

Your last proposition looks correct (though with a typo: last ⊆ in the proof should be ⊇). However, if X is not locally compact, then the compact-open topology isn't necessarily the right topology to consider on [0,1]X. We want a topology making [0,1]X into an exponential object, and it isn't clear that such a topology even exists, or that it is the compact-open topology if it does exist (though it must be a refinement of the compact-open topology if it does exist). Maybe asking about non-locally compact Polish spaces X with a Polish exponential space [0,1]X is a kind of weird question, though, and if we're even considering non-locally compact Polish spaces, we should turn to the version of the question where we just want a continuous function X×X→[0,1] admitting all continuous functions X→[0,1] as fibers.

I will have to think more about the issue of continuity vs uniform continuity. I suppose my last remaining argument would be the fact that Bishop--Bridges' classic book on constructive analysis uses uniform continuity on bounded sets rather than continuity, which suggests that it is probably better for constructive analysis at least. But maybe they did not analyze the issue carefully enough, or maybe the relevant issues here are for some reason different.

To fix the argument that every locally compact Polish space admits a proper metric, let f be as before and let F(x,y)=∞ if d(x,y)≥f(x) and F(x,y)=f(x)/[f(x)−d(x,y)] if d(x,y)<f(x). Next, let g(y)=minn[n+F(xn,y)], where (xn) is a countable dense sequence. Then g is continuous and everywhere finite. Moreover, if S=g−1([0,N]), then S⊆⋃n≤NB(xn,(1−1/N)f(xn)) and thus S is compact. It follows that the metric d′(x,y)=d(x,y)+|g(y)−g(x)| is proper.

Anyway I have fixed the typo in my previous post.

Hm, perhaps I should figure out what the significance of uniform continuity on bounded sets is in constructive analysis before dismissing it, even though I don't see the appeal myself, since constructive analysis is not a field I know much about, but could potentially be relevant here.

f is the reciprocal of what it was before, but yes, this looks good. I am happy with this proof.

I give a stronger version of this problem here.

"Self-Reference and Fixed Points: A Discussion and an Extension of Lawvere's Theorem" by Jorge Soto-Andrade and Francisco J. Varela seems like a potentially relevant result. In particular, they prove a converse Lawvere result in the category of posets (though they mention doing this for [0,1] in an unsolved problem.) I'm currently reading through this and related papers with an eye to adapting their construction to [0,1] (I think you can't just use it straight-forwardly because even though you can build a reflexive domain with a retract to an arbitrary poset, the paper uses a different notion of continuity for posets.)

Can you argue that X must have a semi-metric compatible with the topology by using d(x,y)=supz∈X|h(x,z)−h(y,z)|?

I'm wondering if you can generalise this to some sort of argument that goes like this. Using X, project down via π from X0=X to X1=X0/d. Let ϕ be our initial surjection; it's now a bijection between X1 and maps from X0 to [0,1].

If the projection is continuous, then every map from X1 to [0,1] lifts to a map from X0 to [0,1]. Restricting to the subset of maps that are lifts like this, and applying ϕ−1, gives a subset X2⊂X1. We now have a new equivalence relationship, maps from X1 that are equal to each other on X2. Project down from X2 by this relationship, to generate X3. Continue this transfinitely often (?) to generate a space X′ where ϕ is a homeomorphism, and find a contradiction?

This feels dubious, but maybe worth mentioning...

I haven't checked that argument carefully, but that sounds like it should give you X′ with a continuous bijection ϕ:X′→[0,1]X′, which might not necessarily be a homeomorphism.

Yes, you're right.

This comment is to explain partial results obtained by David Simmons in this thread, since the results and their proofs are difficult to follow as a result of being distributed across multiple comments, with many errors and corrections. The proofs given here are due to David Simmons.

#Statements

Theorem 1: There is no metric space X and uniformly continuous function f:X×X→[0,1] such that every uniformly continuous function X→[0,1] is a fiber of f.

Theorem 2: There is no metric space X and function f:X×X→[0,1] that is uniformly continuous on bounded sets, such that every function X→[0,1] which is uniformly continuous on bounded sets is a fiber of f.

Theorem 3: There is no locally compact Polish space X and continuous function f:X×X→[0,1] such that every continuous function X→[0,1] is a fiber of f.

## Commentary

Theorem 1 says that there is no solution to the version of Scott's problem with continuity in topological spaces replaced with uniform continuity in metric spaces. A plausible reason that this version of the problem might be important is that if an agent has to be able to compute what its policy says to do to any desired precision using an amount of computational resources that does not depend on the input, then its policy must be uniformly continuous. The gist of the proof is that for any uniformly continuous f:X×X→[0,1], it is possible to construct a uniformly continuous function g:X→[0,1] that requires greater precision in its input than f does to determine the output to any desired precision. I suspect it might be possible to adapt the proof to work in uniform spaces rather than just metric spaces, but I have not studied uniform spaces.

Theorem 2 is similar to theorem 1, but with uniform continuity replaced with uniform continuity on bounded subsets. I was not convinced that this is an important notion in its own right, but theorem 2 is useful as a lemma for theorem 3. See the thread under David Simmons's comment for more discussion about what sort of continuity assumption is appropriate. The gist of the proof is to apply the proof of theorem 1 on a bounded set. The function g constructed will be uniformly continuous everywhere, so the proof actually shows a stronger result that unifies both theorems 1 and 2: there is no f:X×X→[0,1] that is uniformly continuous on bounded sets and admits every uniformly continuous function X→[0,1] as a fiber.

Theorem 3 almost says that Scott's problem cannot be solved with Polish spaces. It doesn't quite say that, because there are Polish spaces that are not locally compact. However, non-locally-compact Polish spaces are not exponentiable, so in the version of the problem in which we want a surjection X→[0,1]X, it isn't even clear whether there exists an exponential object [0,1]X, which may mean that non-exponentiable spaces are not promising, although I'm not sure. A reason to restrict attention to Polish spaces is that effective Polish spaces provide a topological setting in which there is a good notion of computability, so the nonexistence of a solution in Polish spaces would make it impossible to provide a computable solution in that sense. That said, there may be other notions of computability in topological spaces (domain theory?), which I am unfamiliar with. The gist of the proof is to find a metric in which bounded sets are compact, and apply theorem 2.

#Proofs

Proof of theorem 1: Let X be a metric space, and f:X×X→[0,1] be uniformly continuous. If X is uniformly discrete, then all functions from X are uniformly continuous, so there is a uniformly continuous function X→[0,1] that is not a fiber of f by Cantor's theorem.

So assume that X is not uniformly discrete. Let (xn,yn)n∈N be such that ∀k d(xk+1,yk+1)≤16d(xk,yk). Note that for all k and ℓ>k, either (A) d(xk,yℓ)≥13d(xk,yk) and d(xk,xℓ)≥13d(xk,yk) or (B) d(yk,yℓ)≥13d(xk,yk) and d(yk,xℓ)≥13d(xk,yk). By extracting a subsequence we can assume that which of (A) or (B) holds depends only on k and not on ℓ. By swapping xk and yk if necessary we can assume that case (A) always holds.

For each z there is at most one k such that d(z,xk)<16d(