1 Introduction

In this article two examples in the theory of partial orders are constructed. The first example concerns the question whether the binary supremum function on a sup semilattice is continuous with respect to the product topology of the Scott topology on each copy of the sup semilattice. The second example is a counterexample concerning the question whether bounded completeness of a complete lattice is inherited by the dcpo of continuous functions from some topological space to the complete lattice.

The Scott topology on a partially ordered set (short: poset) \((X,\le )\) has turned out to be important in many areas of computer science. Given two posets \((X,\le _X)\) and \((Y,\le _Y)\) we have two natural topologies on the product poset \((X \times Y,\le _{X\times Y})\):

  • The product topology of the Scott topology on \((X,\le _X)\) and of the Scott topology on \((Y,\le _Y)\),

  • the Scott topology on \((X\times Y,\le _{X\times Y})\).

It is well known that the second topology on \(X\times Y\) is always at least as fine as the first topology, and that there are examples where the second topology is strictly finer than the first topology. The best known example of this kind seems to consist of the Johnstone space (compare [12]) for \((X,\le )\) and the dcpo of its Scott open subsets for \((Y,\le )\); see [6, Exercise II-4.26 and Exercise II.1-36] and [7, Exercise 5.2.16 and Exercise 5.2.15]. Other examples are the complete lattices constructed by Isbell [10, 11].

If the supremum of any two elements of a poset \((X,\le )\) exists (in this case the poset is called a sup semilattice) then the binary supremum function \(\mathrm {sup}^{(2)}:X\times X\rightarrow X\) is well defined. Is it continuous? It is easy to see and well known that it is continuous if on \(X\times X\) the finer topology of the two topologies discussed above, the Scott topology, is considered. Isbell [10, 11] has constructed several examples of complete lattices such that the binary supremum function is discontinuous with respect to the product topology on \(X\times X\). Of course, in these cases the Scott topology on \(Z\times Z\) is strictly finer than the product topology. This raises the question (posed by an anonymous referee of [8]) whether perhaps the binary supremum function \(\mathrm {sup}^{(2)}:X\times X\rightarrow X\) is always discontinuous with respect to the product topology on \(X\times X\) if this is different from the Scott topology on \(X\times X\). We answer this question negatively by providing an example of a complete lattice X such that the Scott topology on \(X\times X\) is strictly finer than the product topology but nevertheless the function \(\mathrm {sup}^{(2)}:X\times X\rightarrow X\) is continuous with respect to the product topology on \(X\times X\); see Theorem 7.4.

Our second example concerns bounded completeness of the dcpo of continuous functions from a topological space to a bounded complete dcpo. A poset is called bounded complete if each bounded subset has a supremum. The following question arises: If \((Z,\le )\) is a bounded complete dcpo and X a topological space, is then the dcpo C(XZ) of continuous functions from X to Z (where on Z the Scott topology is considered) bounded complete as well? It turns out that the answer to this question is yes if the topology on X is the Scott topology of some partial order on X. One may now speculate whether the answer is yes even for arbitrary topological spaces. But it is the second main goal of this article to show that in general the answer to this question is no. In Sect. 8 we shall even construct a topological space X and a complete lattice Z such that the dcpo of continuous functions from X to Z is not bounded complete; see Theorem 8.5. This construction makes essential use of a complete lattice X such that the binary supremum function \(\mathrm {sup}^{(2)}:X\times X\rightarrow X\) is discontinuous with respect to the product topology, as constructed by Isbell [10, 11] (Theorem 7.1). Note that in [13, Page 26] the closely related question is discussed whether the pointwise supremum of two continuous functions \(f,g:X \rightarrow Z\) for a topological space X and a complete lattice Z is again continuous. The authors observe that this is true if the product topology on \(Z\times Z\) is identical with the Scott topology on \(Z\times Z\). Concerning the general case, they write “But in general, we cannot conclude that \(f \vee g\) or \(f \wedge g\) are Scott continuous”. But they do not give an example where the pointwise supremum \(f\vee g\) of f and g is not continuous. In Theorem 8.5, the main result of Sect. 8, such an example is constructed.

After introducing some notation and collecting several elementary notions concerning partial orders in the following two sections, in Sect. 4 we modify the Johnstone space in order to obtain a considerably simpler partial order which is even a complete lattice and has additional properties that will be needed in the proof of Theorem 7.4 in Sect. 7. In Sect. 5 we first remind the reader of some elementary algebraic properties of the binary supremum function \(\mathrm {sup}^{(2)}:X\times X\rightarrow X\) and then show that it is not only continuous with respect to the Scott topology on \(X\times X\) but also an open mapping with respect to the Scott topology on \(X\times X\). In Sect. 6 we present an observation by Wei and Shouli [14] saying that for certain posets one can characterize the property “sobriety” by a condition on the binary supremum function. In Sect. 7, first we shortly speak about the constructions by Isbell [10, 11] of complete lattices \((X,\le )\) such that the function \(\mathrm {sup}^{(2)}:X\times X\rightarrow X\) is not continuous with respect to the product topology on \(X\times X\). Then we construct a complete lattice \((X,\le )\) such that the function \(\mathrm {sup}^{(2)}:X\times X\rightarrow X\) is continuous with respect to the product topology on \(X\times X\) although this topology is different from the Scott topology on \(X\times X\). Finally, in Sect. 8, first we show that for any poset X and any bounded complete dcpo Z the dcpo C(XZ) of continuous functions from X to Z is bounded complete as well. Then we construct a topological space X and a complete lattice Z such that the dcpo of continuous functions from X to Z is not bounded complete and such that there exist two continuous functions \(f,g:X\rightarrow Z\) whose pointwise supremum is not continuous.

2 Some notations

Let \({{\mathbb {N}}}:=\{0,1,2,\ldots \}\) denote the set of natural numbers, that is, of non-negative integers. For \(k\in {{\mathbb {N}}}\) and a total function \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) let

$$\begin{aligned} f\upharpoonright k :\{0,1,\ldots ,k-1\}\rightarrow {{\mathbb {N}}}\end{aligned}$$

be the restriction of the function f to the set \(\{0,1,\ldots ,k-1\}\). For sets XY, a function \(f:X\rightarrow Y\) and subsets \(S\subseteq X\), \(T\subseteq Y\) we write

$$\begin{aligned} f^{-1}[T]:= & {} \{x \in X ~:~ f(x) \in T\} , \\ f[S]:= & {} \{y \in Y ~:~ (\exists s \in S) \ f(s)=y\}. \end{aligned}$$

For sets XY the projections \(\pi _1:X\times Y\rightarrow X\) and \(\pi _2:X\times Y\rightarrow Y\) are defined as usual by \(\pi _1(x,y):=x\) and \(\pi _2(x,y):=y\), for \((x,y) \in X\times Y\).

3 Basic notions: partial orders and topology

In this section, for the convenience of the reader, we collect several elementary notions concerning partial orders and topological spaces, in particular the definition of the Scott topology.

Let \((Z,\le )\) be a poset. For a subset \(S\subseteq Z\) we define \(\mathop {\uparrow }S:=\{z \in Z ~:~ (\exists y \in S) y \le z\}\) and \(\mathop {\downarrow }S:=\{z \in Z ~:~ (\exists y \in S) z \le y\}\). A subset \(S \subseteq Z\) is called upwards closed if \(S=\mathop {\uparrow }S\). It is called downwards closed if \(S=\mathop {\downarrow }S\). An element \(z\in Z\) is called an upper bound of a subset \(S \subseteq Z\) if \(S\subseteq \mathop {\downarrow }\{z\}\). An element \(z\in Z\) is called a supremum or least upper bound of a subset \(S \subseteq Z\) if it is an upper bound of S and if for all upper bounds y of S one has \(z \le y\). Obviously, if a subset \(S \subseteq Z\) has a supremum, then this supremum is unique. Then we denote it by \(\sup _\le (S)\) or simply by \(\sup (S)\) if it is clear which relation \(\le \) is meant. An element \(z\in Z\) is called a lower bound of a subset \(S \subseteq Z\) if \(S\subseteq \mathop {\uparrow }\{z\}\). An element \(z\in Z\) is called an infimum or greatest lower bound of a subset \(S \subseteq Z\) if it is a lower bound of S and if for all lower bounds y of S one has \(y \le z\). Obviously, if a subset \(S \subseteq Z\) has an infimum, then this infimum is unique. Then we denote it by \(\inf _\le (S)\) or simply by \(\inf (S)\). The poset \((Z,\le )\) is called a sup semilattice if \(\sup (\{x,y\})\) exists for all \(x,y\in Z\). The poset \((Z,\le )\) is called a complete lattice if \(\sup (S)\) exists for all subsets \(S \subseteq Z\). Note that then also \(\inf (S)\) exists for all subsets \(S \subseteq Z\). Indeed, it is well known—compare, e.g., [6, Proposition O-2.2(i)]—and straightforward to check that if \(\sup (S)\) exists for all subsets \(S\subseteq Z\) then for any subset \(T\subseteq Z\), the supremum of the set of all lower bounds of T is an infimum of T. A subset \(S \subseteq Z\) is called directed if it is nonempty and for any two elements \(x,y \in S\) there exists an upper bound \(z \in S\) of the set \(\{x,y\}\). The poset \((Z,\le )\) is called a dcpo if for any directed subset \(S \subseteq Z\) there exists a supremum of S in Z. It is clear that any complete lattice is a dcpo. In Sect. 6 we will consider posets that are at the same time a sup semilattice and a dcpo. Such posets can be characterized as follows.

Lemma 3.1

For a poset \((Z,\le )\) the following two conditions are equivalent.

  1. 1.

    It is a sup semilattice and a dcpo.

  2. 2.

    For every nonempty subset \(S\subseteq Z\) the supremum \(\sup (S)\) exists.

Proof

\(2\Rightarrow 1\)”: Trivial. “\(1\Rightarrow 2\)”: Let us assume that \((Z,\le )\) is a sup semilattice and a dcpo. Let \(S\subseteq Z\) be a nonempty subset of Z. We wish to show that \(\sup (S)\) exists. The set

$$\begin{aligned} D:= \left\{ z \in Z \mid (\exists F\subseteq S) (F \text { is finite and } z=\sup (F))\right\} \end{aligned}$$

is a directed subset of Z. Therefore, \(\sup (D)\) exists. Obviously, an element \(z\in Z\) is an upper bound of D if, and only if, it is an upper bound of S. Hence, \(\sup (D)\) is a least upper bound of S as well, that means, \(\sup (S)\) exists and is equal to \(\sup (D)\). \(\square \)

Example 3.2

Let \((X,\tau )\) be a topological space. Then \((\tau ,\subseteq )\) is a complete lattice and, for any subset \(\sigma \subseteq \tau \), \(\sup (\sigma )=\bigcup \sigma \) [6, Examples O-2.7(3)].

Next, we introduce the Scott topology.

Lemma 3.3

(See, e.g., [1, Definition 2.3.1 and Proposition 2.3.2] [6, Section II-1] or [7, Prop. 4.2.18]) Let \((Z,\le )\) be a poset. The set of all subsets \(U \subseteq Z\) satisfying the following two conditions:

  1. 1.

    U is upwards closed,

  2. 2.

    for every directed subset \(S\subseteq Z\) such that \(\sup (S)\) exists and \(\sup (S) \in U\) the intersection \(S \cap U\) is not empty,

is a \(T_0\) topology on Z.

The topology described in this lemma is called the Scott topology of \((Z,\le )\). Its elements are called Scott open. Let us denote this topology by \(\sigma (Z,\le )\). For a topological space X and a point \(x_0\in X\) let \(\mathop {\mathrm{cl}}(\{x_0\})\) be the closure of the set \(\{x_0\}\), that is, the intersection of all closed sets containing \(x_0\) (thus, \(\mathop {\mathrm{cl}}(\{x_0\})\) is the smallest closed set containing \(x_0\)). The following example of a Scott open set is useful for the proof of the assertion in Lemma 3.3 that the Scott topology is \(T_0\) and will be useful later as well.

Example 3.4

Let \((Z,\le )\) be a poset. Then for any \(y \in Z\) the set

$$\begin{aligned} Z \setminus \mathop {\downarrow }\{y\} = \{z \in Z ~:~ z \not \le y\} , \end{aligned}$$

is Scott open. In fact, \(\mathop {\downarrow }\{y\} = \mathop {\mathrm{cl}}(\{y\})\).

4 Products of partial orders

Let \((X,\le _X)\) and \((Y,\le _Y)\) be two posets. On the product \(Z := X \times Y\) we define a binary relation \(\le _{X\times Y} \subseteq Z \times Z\) by

$$ (x,y) \le _{X\times Y} (x',y') :\iff (x \le _X x' \text { and } y \le _Yy') , $$

for any \(x,x'\in X\) and \(y,y'\in Y\).

Lemma 4.1

  1. 1.

    \((X\times Y,\le _{X\times Y})\) is a poset as well.

  2. 2.

    If \(S\subseteq X\times Y\) is a directed subset then the sets \(\pi _1[S]\subseteq X\) and \(\pi _2[S]\subseteq Y\) are directed as well.

  3. 3.

    For any subset \(S \subseteq X\times Y\) the following two conditions are equivalent:

    1. (a)

      The suprema \(\sup _{\le _X}(\pi _1[S])\) and \(\sup _{\le _Y}(\pi _2[S])\) exist,

    2. (b)

      The supremum \(\sup _{\le _{X\times Y}}(S)\) exists.

    If one, and the both, of these two conditions are satisfied then \(\sup _{\le _{X\times Y}}(S) = (\sup _{\le _X}(\pi _1[S]),\sup _{\le _Y}(\pi _2[S]))\).

  4. 4.

    If \((X,\le _X)\) and \((Y,\le _Y)\) are complete lattices then \((X\times Y,\le _{X\times Y})\) is a complete lattice as well.

Proof

It is obvious that \(\le _{X\times Y}\) is a partial order. The second and the third assertion are straightforward to check as well. And the fourth assertion follows directly from the first and the third assertion. \(\square \)

For two posets \((X,\le _X)\) and \((Y,\le _Y)\), we have two natural topologies on the product \(X \times Y\): the Scott topology \(\sigma (X\times Y,\le _{X\times Y})\) and the product topology \(\sigma (X,\le _X)\times \sigma (Y,\le _Y)\). What is the relation between these two topologies? It is well-known that the Scott topology is always at least as fine as the product topology.

Lemma 4.2

( [6, Page 197] or [7, Exercise 4.5.19]) For any two posets \({(X,\le _X)}\) and \((Y,\le _Y)\), every subset of \(X\times Y\) that is open in the product topology is Scott open as well.

It is also well known that in general the converse of Lemma 4.2 is not true.

Proposition 4.3

There exist dcpo’s \((X,\le _X)\) and \((Y,\le _Y)\) such that the Scott topology on \((X\times Y,\le _{X\times Y})\) is strictly finer than the product topology on \(X\times Y\) of the Scott topology on \((X,\le _X)\) and the Scott topology on \((Y,\le _Y)\).

The standard example seems to be \((X,\le _X) :=\) the so-called Johnstone space, \((Y,\le _Y):=\) the complete lattice of the Scott open subsets of X with the subset relation; compare [6, Exercise II-4.26 and Exercise II.1-36] and [7, Exercises 5.2.16 and 5.2.15]. Since in the following we are going to define a similar but simpler partial order (that is even a complete lattice) for comparison in the following example we define the Johnstone space [12] and sketch the well-known proof of Proposition 4.3.

Example 4.4

Let \(\le \) on \({{\mathbb {N}}}\cup \{\omega \}\) be the usual linear ordering with \(n\le \omega \) for all \(n \in {{\mathbb {N}}}\cup \{\omega \}\). On \(X := {{\mathbb {N}}}\times ({{\mathbb {N}}}\cup \{\omega \})\) we define a binary relation \(\le _X\) by

$$ (i,p) \le _X (j,q) :\iff ((i=j \text { and } p \le q) \text { or } (q = \omega \text { and } p \le j)) . $$

Then the pair \((X,\le _X)\) is a dcpo. It is called the Johnstone space. Let Y be the set of all Scott open subsets of X, and let the binary relation \(\le _Y\) on Y be set-theoretic inclusion. By Example 3.2\((Y,\le _Y)\) is a complete lattice, hence, a dcpo as well. One can check that the subset \(E \subseteq X \times Y\) defined by

$$\begin{aligned} E := \{(x,y) \in X \times Y ~:~ x \in y\} \end{aligned}$$

is open in the Scott topology on \((X \times Y, \le _{X\times Y})\) but not open in the product topology of the Scott topology on \((X,\le _X)\) and the Scott topology on \({(Y,\le _Y)}\).

For later use, we explicitly formulate one general step in the previous example.

Lemma 4.5

Let \((X,\le _X)\) be a poset, and let \((Y,\le _Y)\) be the complete lattice consisting of the Scott open subsets of X where \(\le _Y\) is set-theoretic inclusion. Then the set

$$\begin{aligned} E := \{(x,y) \in X \times Y ~:~ x \in y\} \end{aligned}$$

is a Scott open subset of \(X\times Y\), that is, open in the Scott topology on \((X\times Y, \le _{X\times Y})\).

Proof

Let \((x,y) \in E\) and \((x',y')\in X\times Y\) be a pair with \((x,y) \le _{X\times Y} (x',y')\). Then \(x \le _X x'\) and \(y \le _Y y'\). Furthermore, \(x \in y\). As y is upwards closed, we obtain \(x' \in y\). And \(y \le _Y y'\) means \(y \subseteq y'\), hence, \(x' \in y'\), hence, \((x',y')\in E\). We have shown that E is \(\le _{X\times Y}\)-upwards closed.

Now let \(S\subseteq X\times Y\) be a directed subset such that \(\sup _{\le _{X\times Y}}(S)\) exists and is an element of E. According to Lemma 4.1(3) the suprema \(\sup _{\le _X}(\pi _1[S])\) and \(\sup _{\le _Y}(\pi _2[s])\) exist and satisfy \((\sup _{\le _X}(\pi _1[S]),\sup _{\le _Y}(\pi _2[S])) = \sup _{\le _{X\times Y}}(S) \in E\). Thus, \(\sup _{\le _X}(\pi _1[S]) \in \sup _{\le _Y}(\pi _2[S]) = \bigcup \pi _2[S]\) (compare Example 3.2). We conclude that there is some \({\widetilde{y}} \in \pi _2[S]\) with \(\sup _{\le _X}(\pi _1[S])\in {\widetilde{y}}\). By Lemma 4.1 (2) the set \(\pi _1[S]\) is a directed subset of X. As \({\widetilde{y}}\) is a Scott open subset of X we conclude that there exists some \({\widehat{x}} \in \pi _1[S] \cap {\widetilde{y}}\). The fact \({\widehat{x}} \in \pi _1[S]\) implies that there exists some \({\widehat{y}} \in Y\) with \(({\widehat{x}},{\widehat{y}}) \in S\). Analogously, the fact \({\widetilde{y}} \in \pi _2[S]\) implies that there exists some \({\widetilde{x}} \in X\) with \(({\widetilde{x}},{\widetilde{y}}) \in S\). As S is directed there exists some \((x,y) \in S\) with \(({\widehat{x}},{\widehat{y}}) \le _{X\times Y} (x,y)\) and \(({\widetilde{x}},{\widetilde{y}}) \le _{X\times Y} (x,y)\). Finally, similarly as in the proof above that E is upwards closed, from \({\widehat{x}} \in {\widetilde{y}}\) we conclude \(x \in y\), hence, \((x,y) \in E\). This shows \(S\cap E \ne \emptyset \). We have shown that E is a Scott open subset of \(X\times Y\). \(\square \)

By a modification (which is mostly a simplification) of the definition of the Johnstone space we can prove the following slight improvement of Proposition 4.3. It will be used in the proof of Theorem 7.4 in Sect. 7.

Proposition 4.6

There exist complete lattices \((X,\le _X)\) and \((Y,\le _Y)\) such that the following three conditions are satisfied:

  1. 1.

    the Scott topology on \((X \times Y,\le _{X\times Y})\) is strictly finer than the product topology on \(X \times Y\) (of the Scott topology on \((X,\le _X)\) and the Scott topology on \((Y,\le _Y)\)),

  2. 2.

    but the Scott topology on \(X\times X\) is identical with the product topology on \(X\times X\),

  3. 3.

    and the Scott topology on \(Y\times Y\) is identical with the product topology on \(Y\times Y\).

In the following example we shall define our modification \((X,\le _X)\) of the Johnstone space. For \((Y,\le _Y)\) we will then take the set of Scott open subsets of X and the subset relation. Then we formulate and prove several lemmas that collect the important properties of \((X,\le _X)\) and \((Y,\le _Y)\) and from which we then deduce Proposition 4.6.

Example 4.7

Our modification of the Johnstone space is defined as follows. Let

$$\begin{aligned} X := \{\bot ,\top \} \cup ({{\mathbb {N}}}\times {{\mathbb {N}}}) \end{aligned}$$

where \(\bot \) and \(\top \) are different elements that are not elements of \({{\mathbb {N}}}\times {{\mathbb {N}}}\). We define a binary relation \(\le _X\) on X by

$$\begin{aligned} x \le _X y :\iff \begin{array}[t]{l} x = \bot \text { or } y = \top \text { or } (\exists i \in {{\mathbb {N}}})(\exists p,q \in {{\mathbb {N}}}) \\ \bigl ( x=(i,p) \text { and } y=(i,q) \text { and } p \le q \bigr ) \end{array} \end{aligned}$$

for all \(x,y \in X\). Compare Fig. 1.

Fig. 1
figure 1

The binary relation \(\le \) on \(X:=\{\bot ,\top \} \cup ({{\mathbb {N}}}\times {{\mathbb {N}}})\) defined in Example 4.7 is the reflexive and transitive closure of the binary relation given by the arrows in this figure

The reader is invited to convince himself that this poset is indeed simpler than the Johnstone space by comparing the graphical representation in Fig. 1 with the graphical representation of the Johnstone space in [7, Figure 5.2 on Page 143].

Remark 4.8

The construction in Example 4.7 was obtained by the author by slightly simplifying a similar construction in the preprint [8]. In the recent article [2] Chen, Kou, and Lyu arrive at the same construction. They also observe that it is a complete lattice and explicitly describe [2, Example 4.13] the lattice of its Scott open subsets in the same way as this is done in Lemma 4.9 (2) and 4.9 (3).

In the following lemma we show that \((X,\le _X)\) is a complete lattice and give an explicit description of all Scott open subsets of X.

Lemma 4.9

Let \((X,\le _X)\) be the pair defined in Example 4.7.

  1. 1.

    This pair \((X,\le _X)\) is a complete lattice. In fact, the supremum of an arbitrary subset \(S\subseteq X\) is given as follows:

    1. (a)

      If \(S=\emptyset \) or \(S=\{\bot \}\) then \(\sup (S)=\bot \).

    2. (b)

      If S is finite but neither empty nor equal to \(\{\bot \}\) and if there exists a number \(i\in {{\mathbb {N}}}\) with \(S\subseteq \{\bot \}\cup (\{i\}\times {{\mathbb {N}}})\) then \(\sup (S) = (i, \max \{p ~:~ (i,p) \in S\})\).

    3. (c)

      In all other cases \(\sup (S)=\top \).

  2. 2.

    For any total function \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) the set

    $$\begin{aligned} U_f := \{\top \} \cup \{(i,p) \in {{\mathbb {N}}}\times {{\mathbb {N}}}~:~ p \ge f(i)\} \end{aligned}$$

    is a Scott open subset of X.

  3. 3.

    For every Scott open subset \(V \subseteq X\) with \(V \not \in \{\emptyset ,X\}\) there exists a function \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(V=U_f\).

Proof

  1. 1.

    It is straightforward to check that \(\le _X\) is a partial order. It is clear that \(\sup (\emptyset )=\bot \) and \(\sup (\{\bot \})=\bot \) as well. And if, for some \(i\in {{\mathbb {N}}}\), the set S is a finite subset of \(\{\bot \}\cup \{i\}\times {{\mathbb {N}}}\) with \(S \cap (\{i\}\times {{\mathbb {N}}}) \ne \emptyset \) then it is clear as well that \(\sup (S) = (i, \max \{p ~:~ (i,p) \in S\})\). Let us consider the third case. If there are \(i,j,p,q \in {{\mathbb {N}}}\) with \(i \ne j\) and \((i,p), (j,q) \in S\) then clearly \(\sup (S)=\top \). If S is infinite then also \(\sup (S)=\top \). Thus, \(\sup (S)\) exists for every subset \(S\subseteq X\). Hence, \((X,\le _X)\) is a a complete lattice.

  2. 2.

    Let \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) be a total function. It is clear that \(U_f\) is upwards closed. Let \(S \subseteq X\) be a directed subset such that \(\sup (S)\) exists and \(\sup (S) \in U_f\). We wish to show that there exists an element \(s\in S\cap U_f\). This is clear if \(\top \in S\) because then \(\sup (S)=\top \in U_f\), hence, \(\top \in S\cap U_f\). So, let us assume that \(\top \not \in S\). Can there exist numbers \(i,j,p,q\in {{\mathbb {N}}}\) with \(i\ne j\) and \((i,p)\in S\) and \((j,q) \in S\)? No. As S is directed, in that case there would have to exist some \(s\in S\) with \((i,p) \le _X s\) and \((j,q) \le _X s\). But the only element s of X that satisfies \((i,p) \le _X s\) and \((j,q) \le _X s\) is the element \(s=\top \). Hence, we would get \(\top \in S\). So, we can conclude that there exists some \(i\in {{\mathbb {N}}}\) such that \(S \subseteq \{\bot \} \cup (\{i\}\times {{\mathbb {N}}})\). If S is infinite then there exists some \(p\in {{\mathbb {N}}}\) such that \(p\ge f(i)\) and \((i,p) \in S\). As we also have \((i,p) \in U_f\), we conclude \((i,p) \in S \cap U_f\). Finally, let us consider the case that S is finite and \(S \subseteq \{\bot \} \cup (\{i\}\times {{\mathbb {N}}})\). As \(\bot \) is not an element of \(U_f\), the set S can neither be empty nor be equal to \(\{\bot \}\) because in both cases one would arrive at \(\sup (S)=\bot \). Thus, we obtain \(\sup (S) = (i, \max \{p ~:~ (i,p) \in S\})\). But in this case we have not only \(\sup (S)\in U_f\) but also \(\sup (S) \in S\).

  3. 3.

    Let \(V\subseteq X\) be a Scott open subset of X with \(V\ne \emptyset \) and \(V\ne X\). Then \(\top \in V\) (otherwise \(V=\emptyset \)) and \(\bot \not \in V\) (otherwise \(V=X)\). For any \(i\in {{\mathbb {N}}}\) the set \(\{i\}\times {{\mathbb {N}}}\) is a directed subset of X with \(\sup ( \{i\}\times {{\mathbb {N}}}) = \top \in V\). Hence, for any \(i \in {{\mathbb {N}}}\) there exists some \(p\in {{\mathbb {N}}}\) with \((i,p) \in V\). Therefore, we can define a function \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) by

    $$\begin{aligned} f(i) := \min \{p \in {{\mathbb {N}}}~:~ (i,p) \in V\} , \end{aligned}$$

    for \(i\in {{\mathbb {N}}}\), and see that \(V=U_f\).\(\square \)

Lemma 4.10

Let \((X,\le _X)\) be the complete lattice defined in Example 4.7 (see Lemma 4.9 (1)), and let \((Y,\le _Y)\) be the complete lattice where Y is the set of all Scott open subsets of X and \(\le _Y\) is set-theoretic inclusion (see Example 3.2). Then the subset

$$\begin{aligned} E := \{(x,y) \in X \times Y ~:~ x \in y\} \end{aligned}$$

is not open with respect to the product topology on \(X \times Y\).

Proof

First, let us choose an element of E as follows. Let \({\tilde{0}}:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) be the constant number function with \({\tilde{0}}(n)=0\) for all \(n\in {{\mathbb {N}}}\). Then, according to Lemma 4.9 (2), the set \(y:= U_{{\tilde{0}}} = X \setminus \{\bot \}\) is a Scott open subset of X. The element \(x := (0,0) \in X\) is an element of y. Thus, \((x,y) \in E\).

Now, for the sake of a contradiction, let us assume that E is open in the product topology. Then there exist Scott open subsets \(U\subseteq X\) and \({\mathcal {V}} \subseteq Y\) with \((x,y) \in U \times {\mathcal {V}}\) and \(U \times {\mathcal {V}} \subseteq E\). The fact \((x,y) \in U \times {\mathcal {V}}\) implies \(U\ne \emptyset \). Can U be equal to X? No, because otherwise we would have \(X\times {\mathcal {V}} \subseteq E\), hence \(x \in V\), for all \(x\in X\) and \(V\in {\mathcal {V}}\). This would imply \(X\subseteq V\) for all \(V\in {\mathcal {V}}\), hence, \({\mathcal {V}}=\{X\}\) in contradiction to \(X \setminus \{\bot \} = y \in {\mathcal {V}}\). So, we conclude that \(U \ne \emptyset \) and \(U\ne X\). According to Lemma 4.9 (3) there exists some function \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) such that \(U=U_f\). For \(i\in {{\mathbb {N}}}\) we define \(g_i:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) by

$$\begin{aligned} g_i(m) := {\left\{ \begin{array}{ll} 0 &{} \text { if } m < i, \\ f(m)+1 &{} \text { if } m \ge i . \end{array}\right. } \end{aligned}$$

Then the sequence \((U_{g_i})_{i\in {{\mathbb {N}}}}\) is an increasing sequence of Scott open subsets of X with

$$\begin{aligned} \sup ( \{U_{g_i} ~:~ i \in {{\mathbb {N}}}\}) = \bigcup _{i\in {{\mathbb {N}}}} U_{g_i} = X \setminus \{\bot \} = U_{{\tilde{0}}} = y \in {\mathcal {V}} . \end{aligned}$$

As \({\mathcal {V}}\) is a Scott open subset of Y, there must exist some \(i\in {{\mathbb {N}}}\) with \(U_{g_i} \in {\mathcal {V}}\). As \(U \times {\mathcal {V}} \subseteq E\), we obtain \((x,U_{g_i}) \in E\), for all \(x \in U\), hence \(x \in U_{g_i}\), for all \(x \in U\), hence, \(U \subseteq U_{g_i}\). But that is false! \(\square \)

Remark 4.11

It is instructive to discuss the previous lemma in the context of some further domain-theoretic notions. Let \((Z,\le )\) be a poset.

  • For \(x,y\in Z\) we write \(x \ll y\) and say that x is way-below y if for every directed set \(S\subseteq Z\) such that \(\sup (S)\) exists and satisfies \(y \le \sup (S)\) there exists an element \(s\in S\) with \(x\le s\).

  • The poset \((Z,\le )\) is called continuous if, for every \(z \in Z\), the set \(\{ x \in Z ~:~ x \ll z\}\) has the following properties: (1) it is directed, (2) its supremum exists, (3) its supremum is equal to z.

  • The poset \((Z,\le )\) is called core-compact if the poset \((\sigma (Z,\le ),\subseteq )\) is a continuous poset.

In the following, as in Lemma 4.10, we consider the complete lattice \((X,\le _X)\) defined in Example 4.7 and the complete lattice \((Y,\le _Y):=(\sigma (X,\le _X),\subseteq )\). First, it is obvious that \((X,\le _X)\) is not continuous (because \(\{x \in X ~:~ x \ll \top \} = \{\bot \}\)). Secondly, it is well known that the assertion proved in the previous lemma (that the set \(E:=\{(x,y) \in X \times Y ~:~ x \in y\}\) is not open with respect to the product topology on \(X \times Y\)) is equivalent to the assertion that \((Y,\le _Y)\) is not continuous, thus, to the assertion that \((X,\le _X)\) is not core-compact (indeed, the conditions (4) and (6) in [6, Theorem II-4.10] are equivalent). Thus, neither \((X,\le _X)\) nor \((Y,\le _Y)\) are continuous lattices.

Note also that, if \((\sigma (X,\le _X),\subseteq )\) were continuous then, due to [6, Theorem II-4.13], this would imply that for any dcpo \((Z,\le _Z)\) the product topology on \(X\times Z\) would coincide with the Scott topology on \(X\times Z\). But, we have just seen that \((\sigma (X,\le _X),\subseteq )\) is not continuous. And, indeed, Lemmas 4.5 and 4.10 show that the product topology on \(X\times Y\) (where again \((Y,\le _Y):=(\sigma (X,\le _X),\subseteq )\)) does not coincide with the Scott topology on \(X\times Y\). Nevertheless, the Scott topology on \(X\times X\) coincides with the product topology on \(X\times X\).

Lemma 4.12

Let \((X,\le _X)\) be the complete lattice defined in Example 4.7 (see Lemma 4.9 (1)). Then the Scott topology on \(X\times X\) coincides with the product topology on \(X\times X\).

Proof

By Lemma 4.2 it is sufficient to show that any Scott open subset of \(X\times X\) is open in the product topology on \(X\times X\). So, let us consider some Scott open subset W of \(X\times X\). If W is empty then it is open in the product topology. So, let us assume that W is not empty. Let us fix some element \((x_1,x_2) \in W\). It is sufficient to show that there exist Scott open subsets \(U,V\subseteq X\) with \(x_1 \in U\), with \(x_2 \in V\), and with \(U\times V \subseteq W\). There are three cases for \(x_1\): (1) \(x_1=\bot \), (2) \(x_1 \in {{\mathbb {N}}}\times {{\mathbb {N}}}\), (3) \(x_1=\top \), similarly for \(x_2\). So, we have to consider nine cases.

  • Case 1 \(x_1=x_2=\bot \). Then, as W is upwards closed, it must be equal to \(X\times X\). Hence, it is open in the product topology.

  • Case 2 \(x_1=\bot \) and \(x_2=\top \). Similarly as in the proof of Lemma 4.9 (3) one shows that there exists a function \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(X\times U_f\subseteq W\). Let us show this in detail. For every \(i\in {{\mathbb {N}}}\) the set \(S_i:=\{\bot \} \times (\{i\}\times {{\mathbb {N}}})\) is a directed subset of \(X\times X\) with \(\sup (S) = (\bot ,\top ) = (x_1,x_2) \in W\). We conclude that \(S_i\cap W \ne \emptyset \). We define \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) by \(f(i) := \min \{p ~:~ (\bot ,(i,p)) \in W\}\). As W is upwards closed, \(X \times U_f\subseteq W\). Finally, we note that \((\bot ,\top ) \in X \times U_f\).

  • Case 3 \(x_1=\bot \) and \(x_2 \in {{\mathbb {N}}}\times {{\mathbb {N}}}\). As \((\bot ,x_2) \le _{X\times X} (\bot ,\top )\) and W is upwards closed we see \((\bot ,\top ) \in W\). As in Case 2, we define \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) by \(f(i) := \min \{p ~:~ (\bot ,(i,p)) \in W\}\), for all \(i\in {{\mathbb {N}}}\). As W is upwards closed, \(X \times U_f\subseteq W\). Let jq be the numbers with \(x_2=(j,q)\). By definition of f, \(f(j) \le q\), hence, \((x_1,x_2) = (\bot ,(j,q)) \in X\times U_f\).

  • Case 4 \(x_1=\top \) and \(x_2=\bot \). This case is symmetric to Case 2 and is treated in the same way.

  • Case 5 \(x_1 \in {{\mathbb {N}}}\times {{\mathbb {N}}}\) and \(x_2=\bot \). This case is symmetric to Case 3 and is treated in the same way.

  • Case 6 \(x_1 \in {{\mathbb {N}}}\times {{\mathbb {N}}}\) and \(x_2 \in {{\mathbb {N}}}\times {{\mathbb {N}}}\). We shall define functions \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) and \(g:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(x_1\in U_f\), \(x_2 \in U_g\), and \(U_f \times U_g \subseteq W\). Let \(i_1,p_1,i_2,p_2\) be the numbers with \(x_1=(i_1,p_1)\) and \(x_2=(i_2,p_2)\). We define the functions f and g step by step and, additionally, in parallel two increasing sequences of finite sets \(N_1\subseteq {{\mathbb {N}}}\) and \(N_2\subseteq {{\mathbb {N}}}\) (containing the numbers on which f and g have been defined already) as follows. In the first step we define

    $$\begin{aligned} f(i_1):= & {} p_1, \\ N_1:= & {} \{i_1\} , \\ g(i_2):= & {} p_2, \\ N_2:= & {} \{i_2\}. \end{aligned}$$

Then we repeat the following infinitely often:

$$\begin{aligned} j_1:= & {} \min ({{\mathbb {N}}}\setminus N_1),\\ f(j_1):= & {} \min \{ q \in {{\mathbb {N}}}~:~ (\forall k_2 \in N_2) ((j_1,q),(k_2,g(k_2))) \in W\} , \\ N_1:= & {} N_1 \cup \{j_1\}, \\ j_2:= & {} \min ({{\mathbb {N}}}\setminus N_2),\\ g(j_2):= & {} \min \{ q \in {{\mathbb {N}}}~:~ (\forall k_1 \in N_1) ((k_1,f(k_1)),(j_2,q)) \in W\} , \\ N_2:= & {} N_2 \cup \{j_2\}. \end{aligned}$$
  • Let us show that these definitions make sense and define functions f and g with the desired properties. By induction we show that after each step we have \(((k_1,f(k_1)),(k_2,g(k_2))) \in W\), for all \(k_1\in N_1\) and all \(k_2 \in N_2\). It is clear that this is true after the first step, that is, for \(N_1=\{i_1\}\) and \(N_2=\{i_2\}\). Let us assume by induction that this is true after some step. We show that it is true after the next step as well. Note that for every \(k_2\in N_2\) and \(j_1:=\min ({{\mathbb {N}}}\setminus N_1)\) the set \((\{j_1\}\times {{\mathbb {N}}}) \times \{(k_2,g(k_2))\}\) is a directed subset of \(X\times X\) whose supremum \((\top ,(k_2,g(k_2)))\) is an element of W (remember that \(((i_1,f(i_1)),(k_2,g(k_2))) \in W\) by induction hypothesis and \(((i_1,f(i_1)),(k_2,g(k_2))) \le _{X\times X} (\top ,(k_2,g(k_2)))\)). Thus, there exists some \(q\in {{\mathbb {N}}}\) with \(((j_1,q),(k_2,g(k_2))) \in W\). As W is upwards closed and \(N_2\) is finite in every step of the definition of f, \(f(j_1)\) is well-defined for \(j_1= \min ({{\mathbb {N}}}\setminus N_1)\), and we obtain \(((j_1,f(j_1)),(k_2,g(k_2))) \in W\), for this \(j_1\) and all \(k_2 \in N_2\). The same argument applies to the definition of \(g(j_2)\). This ends the proof by induction. Thus, by the steps above we have defined two functions \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) and \(g:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) such that \(((k_1,f(k_1)),(k_2,g(k_2))) \in W\), for all \(k_1\in {{\mathbb {N}}}\) and all \(k_2 \in {{\mathbb {N}}}\). This shows \(U_f \times U_g \subseteq W\). Finally, it is clear that \(x_1=(i_1,p_1) \in U_f\) and that \(x_2 = (i_2,p_2) \in U_g\). This ends the treatment of Case 6.

  • Case 7 \(x_1 \in {{\mathbb {N}}}\times {{\mathbb {N}}}\) and \(x_2 = \top \). The set \(\{x_1\} \times (\{0\}\times {{\mathbb {N}}})\) is a directed subset of \(X\times X\) whose supremum \((x_1,\top )=(x_1,x_2)\) is an element of W. Hence, there exists some number p with \((x_1,(0,p))\in W\). By Case 6 there exist functions \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) and \(g:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(x_1 \in U_f\), \((0,p) \in U_g\) and \(U_f \times U_g \subseteq W\). As \(\top \in U_g\) is clear, this ends the treatment of Case 7.

  • Case 8 \(x_1=\top \) and \(x_2 \in {{\mathbb {N}}}\times {{\mathbb {N}}}\). This case is symmetric to Case 7 and is treated in the same way.

  • Case 9 \(x_1=x_2=\top \). The set \((\{0\}\times {{\mathbb {N}}})\times \{\top \}\) is a directed subset of \(X\times X\) whose supremum \((\top ,\top )=(x_1,x_2)\) is an element of W. Hence, there exists some number p with \(((0,p),\top )\in W\). By Case 7 there exist functions \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) and \(g:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \((0,p) \in U_f\), \(\top \in U_g\) and \(U_f \times U_g \subseteq W\). As \(\top \in U_f\) is clear, this ends the treatment of Case 9. \(\square \)

In the following let \((X,\le _X)\) be the complete lattice defined in Example 4.7, and let \((Y,\le _Y)\) be the complete lattice consisting of the set Y of Scott open subsets of X and the subset relation \(\le _Y:=\subseteq \) on Y. A partial function \(f:\subseteq {{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with finite domain is any function \(f:F\rightarrow {{\mathbb {N}}}\) where \(F\subseteq {{\mathbb {N}}}\) is a finite subset of \({{\mathbb {N}}}\). In this case F is called the domain of f, and we write \(\mathop {\mathrm{dom}}(f):=F\). For any partial function \(g:\subseteq {{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with finite domain let

$$\begin{aligned} {\mathcal {V}}_g := \{ X \} \cup \{ U_f&: f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\text { is a total function with} \\&\quad (\forall i \in \mathop {\mathrm{dom}}(g)) \ f(i) \le g(i) \} . \end{aligned}$$

In the following lemma we identify some Scott open subsets of Y.

Lemma 4.13

  1. 1.

    The set \(\{X\}\) is a Scott open subset of Y.

  2. 2.

    For any partial function \(g:\subseteq {{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with finite domain the set \({\mathcal {V}}_g\) is a Scott open subset of Y.

Proof

It is clear that the set \(\{X\}\) is upwards closed. Let \({\mathcal {S}} \subseteq Y\) be a directed subset with \(\sup ({\mathcal {S}}) \in \{X\}\). Then \(\sup ({\mathcal {S}})=X\), in particular \(\bot \in \sup ({\mathcal {S}})\). As \(\sup ({\mathcal {S}})\) is the union of all sets that are elements of \({\mathcal {S}}\) there must exist some \(U\in {\mathcal {S}}\) with \(\bot \in U\). As U is a Scott open subset of X this implies \(U=X\), hence, \(X\in {\mathcal {S}}\). We have shown that \(\{X\}\) is a Scott open subset of Y.

Now let \(g:\subseteq {{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) be a partial function with finite domain. We wish to show that \({\mathcal {V}}_g\) is a Scott open subset of Y. If the domain of g is empty then \({\mathcal {V}}_g\) is equal to \(Y\setminus \{\emptyset \}\), and this is obviously a Scott open subset of Y. Let us assume that g is not empty. Let \(i_0,\ldots ,i_{e-1}\) be the elements of \(\mathop {\mathrm{dom}}(g)\), and let \(g_j\) be the restriction of g to \(\{i_j\}\), for \(j=0,\ldots ,e-1\). Then

$$\begin{aligned} {\mathcal {V}}_g=\bigcap _{j=0}^{e-1} {\mathcal {V}}_{g_j} . \end{aligned}$$

Therefore, we can assume without loss of generality that \(\mathop {\mathrm{dom}}(g)\) contains exactly one number. Let \(i_0\) be this number, and let \(p_0:=g(i_0)\). Then

$$\begin{aligned} {\mathcal {V}}_g=\{ X \} \cup \{ U_f ~:~ f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\text { is a total function with } f(i_0) \le p_0 \} . \end{aligned}$$

It is clear that this set is upwards closed. Let \({\mathcal {S}} \subseteq Y\) be a directed subset with \(\sup ({\mathcal {S}}) \in {\mathcal {V}}_g\). If \(\sup ({\mathcal {S}})=X\) then we can conclude as above in the proof of the first assertion of this lemma that \(X\in {\mathcal {S}}\). So, in this case we have \(S\cap {\mathcal {V}}_g\ne \emptyset \). Let us assume that \(\sup ({\mathcal {S}})=U_f\) for some total function \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(U_f \in {\mathcal {V}}_g\), hence, with \(f(i_0)\le p_0\), hence, with \((i_0,p_0) \in U_f\). As \(\sup ({\mathcal {S}})\) is the union of all sets that are elements of \({\mathcal {S}}\) there must exist some \(U\in {\mathcal {S}}\) with \((i_0,p_0) \in U\). As \(U=X\) is impossible (this would imply \(\sup ({\mathcal {S}})=X\)) we conclude that there is some function \(h:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(U=U_h\) and \(h(i_0)\le p_0\). We obtain \(U\in {\mathcal {S}}\cap {\mathcal {V}}_g\), hence, \({\mathcal {S}}\cap {\mathcal {V}}_g \ne \emptyset \). \(\square \)

Actually, the Scott open subsets of Y identified in the previous lemma already form a base of the Scott topology of Y. Thus, the Scott topology of \({(Y,\le _Y)}\) has a countable base.

Lemma 4.14

The set

$$\begin{aligned} {\mathcal {B}}:=\{\{X\}, Y\} \cup \{{\mathcal {V}}_g ~: \begin{array}[t]{l} g:\subseteq {{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\text { is a partial function with finite} \\ \text {domain, and } (\exists n \in {{\mathbb {N}}}) \mathop {\mathrm{dom}}(g) = \{0,\ldots ,n-1\} \} \end{array} \end{aligned}$$

is a base of the topology of \((Y,\le _Y)\).

Proof

According to Lemma 4.13 all elements of the set \({\mathcal {B}}\) are Scott open subsets of \((Y,\le _Y)\). Let \({\mathcal {Z}}\subseteq Y\) be a Scott open subset of Y. Let \(U\subseteq X\) be a Scott open subset of X with \(U\in \mathcal {{\mathcal {Z}}}\). It is sufficient to show that there exists a set \({\mathcal {V}}\in {\mathcal {B}}\) with \(U\in {\mathcal {V}}\subseteq {\mathcal {Z}}\). In the case \(U=\emptyset \) we obtain \({\mathcal {Z}}=Y\) and can use \({\mathcal {V}}:=Y\). In the case \(U=X\) we can simply use \({\mathcal {V}}:=\{X\}\). In the following we consider the case \(U\not \in \{\emptyset , X\}\). Then, according to Lemma 4.9 (3) there exists a function \(f:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(U=U_f\). We claim that there exists a number \(k\in {{\mathbb {N}}}\) with \({\mathcal {V}}_{f\upharpoonright k} \subseteq {\mathcal {Z}}\). For the sake of a contradiction, let us assume that this is not the case. Then there exists a sequence \(V:{{\mathbb {N}}}\rightarrow Y\) such that, for all \(k\in {{\mathbb {N}}}\), \(V(k) \in {\mathcal {V}}_{f\upharpoonright k}\) and \(V(k) \not \in {\mathcal {Z}}\). For every k either \(V(k)=X\) or there exists a function \(g_k:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(V(k)=U_{g_k}\). In the first case we define \(g_k:=f\) and observe \(U_{g_k} \subseteq X=V(k)\) and \(U_{g_k} \in {\mathcal {V}}_{f\upharpoonright k}\). So, for every \(k\in {{\mathbb {N}}}\) there exists a function \(g_k:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) with \(U_{g_k} \subseteq V(k)\) and \(U_{g_k} \in {\mathcal {V}}_{f\upharpoonright k}\). We are going to construct a sequence \(W:{{\mathbb {N}}}\rightarrow Y\) of Scott open subsets of X such that

$$\begin{aligned} \bigcup _{k\in {{\mathbb {N}}}} W(k)=U_f \text { and } (\forall k\in {{\mathbb {N}}}) (W(k)\subseteq U_{g_k} \text { and } W(k) \subseteq W(k+1)). \end{aligned}$$
(1)

In order to construct such a sequence, we define a function \(g:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) by

$$\begin{aligned} g(j) := \max (\{f(j)\} \cup \{ g_k(j) ~:~ k \le j \}) , \end{aligned}$$

for \(j\in {{\mathbb {N}}}\). It is clear that \(f(j) \le g(j)\), for all j. Furthermore, for all \(k,j\in {{\mathbb {N}}}\), \(g_k(j) \le g(j)\). Indeed, this is clear for \(k\le j\) by definition of g, and for \(j < k\) we observe that \(U_{g_k} \in {\mathcal {V}}_{f\upharpoonright k}\) implies \(g_k(j) \le f(j)\), hence, \(g_k(j) \le f(j) \le g(j)\). For \(k\in {{\mathbb {N}}}\) we define a function \(h_k:{{\mathbb {N}}}\rightarrow {{\mathbb {N}}}\) by

$$\begin{aligned} h_k(j) :={\left\{ \begin{array}{ll} f(j) &{} \text {if } j<k, \\ g(j) &{} \text {if } k \le j. \end{array}\right. } \end{aligned}$$

We observe that for all \(k,j\in {{\mathbb {N}}}\)

$$\begin{aligned} f(j) \le h_{k+1}(j) \le h_k(j) \end{aligned}$$

and

$$\begin{aligned} g_k(j) \le h_k(j) \end{aligned}$$

(indeed, for \(j<k\) we have already seen \(g_k(j) \le f(j) = h_k(j)\), and for \(k\le j\) we see \(g_k(j) \le g(j) = h_k(j)\)). Furthermore, \(\lim _{k\rightarrow \infty } h_k(j) = f(j)\), for all j. Thus, the sequence \(W:{{\mathbb {N}}}\rightarrow Y\) defined by \(W(k):=U_{h_k}\), for \(k\in {{\mathbb {N}}}\), has the desired property (1). The set \(\{W(k) ~:~ k\in {{\mathbb {N}}}\}\) is a directed subset of Y with \(\sup \{W(k) ~:~ k\in {{\mathbb {N}}}\} = U_f = U\). As \({\mathcal {Z}}\) is a Scott open subset of Y and \(U\in {\mathcal {Z}}\) there exists a number k with \(W(k) \in {\mathcal {Z}}\), hence, as \({\mathcal {Z}}\) is upwards closed and \(W(k) \subseteq U_{g_k} \subseteq V(k)\), with \(V(k)\in {\mathcal {Z}}\). Contradiction. We have shown that there exists a number \(k\in {{\mathbb {N}}}\) with \({\mathcal {V}}_{f\upharpoonright k} \subseteq W\). Note that \(U = U_f \in {\mathcal {V}}_{f\upharpoonright k}\). \(\square \)

A topological space \((X,\tau )\) is called first-countable if for every point \(x\in X\) there exists a sequence \(B:{{\mathbb {N}}}\rightarrow \tau \) of open sets such that, for all \(k\in {{\mathbb {N}}}\), \(x\in B(k)\) and, for any open subset \(U\subseteq X\) with \(x\in U\) there exists a \(k\in {{\mathbb {N}}}\) with \(B(k)\subseteq U\). Matthew de Brecht made the following observation, explained in detail in the blog of Jean Goubault-Larrecq [3].

Proposition 4.15

[de Brecht [3]] Let \((Z_1,\le _1)\) and \((Z_2,\le _2)\) be posets such that the Scott spaces \((Z_1,\sigma (Z_1,\le _1))\) and \((Z_2,\sigma (Z_2,\le _2))\) are first-countable. Then the Scott topology on \(Z_1\times Z_2\) coincides with the product topology on \(Z_1\times Z_2\).

Corollary 4.16

Let \((X,\le _X)\) be the complete lattice defined in Example 4.7 (see Lemma 4.9 (1)), and let \((Y,\le _Y)\) be the complete lattice where Y is the set of all Scott open subsets of X and \(\le _Y\) is set-theoretic inclusion (see Example 3.2). Then the Scott topology on \(Y\times Y\) coincides with the product topology on \(Y\times Y\).

Proof

In Lemma 4.13 we have seen that the space \((Y,\sigma (Y,\le _Y))\) has a countable base. In particular, it is first-countable. By Proposition 4.15 the Scott topology on \(Y\times Y\) coincides with the product topology on \(Y\times Y\). \(\square \)

Proof of Proposition 4.6

Let \((X,\le _X)\) be the pair defined in Example 4.7. According to Lemma 4.9 (1) \((X,\le _X)\) is a complete lattice. Let \((Y,\le _Y)\) be the pair consisting of the set Y of all Scott open subsets of X and set-theoretic inclusion \(\le _Y:=\subseteq \) on Y. By Example 3.2\((Y,\le _Y)\) is a complete lattice. According to Lemma 4.2 the Scott topology on \(X \times Y\) is at least as fine as the product topology on \(X \times Y\). The subset \(E := \{(x,y) \in X \times Y ~:~ x \in y\}\) of \(X\times Y\) is Scott open according to Lemma 4.5, but not open with the respect to the product topology, according to Lemma 4.10. Hence, the Scott topology on \(X\times Y\) is strictly finer than the product topology on \(X\times Y\). By Lemma 4.12 the Scott topology on \(X\times X\) coincides with the product topology on \(X\times X\), and by Corollary 4.16 the Scott topology on \(Y\times Y\) coincides with the product topology on \(Y\times Y\). \(\square \)

5 Elementary properties of the binary supremum function

Let X be a set. If \(\le \) is a partial order on X such that \((X,\le )\) is a sup semilattice then we define the binary supremum function \(\mathrm {sup}_\le ^{(2)}:X\times X \rightarrow X\) on X by

$$\begin{aligned} \mathrm {sup}_\le ^{(2)}(x,y) := \sup (\{x,y\}) , \end{aligned}$$

for \(x,y \in X\). If the relation \(\le \) is clear from the context then instead of \(\mathrm {sup}_\le ^{(2)}\) we simply write \(\mathrm {sup}^{(2)}\). For completeness sake let us mention the following well known algebraic characterisation of the binary supremum function. We call a function \(f:X\times X\rightarrow X\)

  • idempotent if \((\forall x \in X)\ f(x,x)=x\),

  • commutative if \((\forall x,y\in X)\ f(x,y) = f(y,x)\),

  • associative if \((\forall x,y,z \in X)\ f(f(x,y),z)=f(x,f(y,z))\).

For a function \(f:X\times X\rightarrow X\) let us define a binary relation \(\le _f \subseteq X\times X\) by

$$\begin{aligned} x \le _f y :\iff y=f(x,y) , \end{aligned}$$

for \(x,y \in X\).

Lemma 5.1

Let X be a nonempty set.

  1. 1.

    If \(\le \) is a partial order on X such that \((X,\le )\) is a sup semilattice then the function \(f:=\mathrm {sup}_\le ^{(2)}\) is idempotent, commutative, and associative, and the relation \(\le _f\) is identical with \(\le \).

  2. 2.

    If \(f:X\times X\rightarrow X\) is an idempotent, commutative, and associative function then the binary relation \(\le _f\) on X is a partial order such that \((X,\le _f)\) is a sup semilattice, and f is the binary supremum function of this sup semilattice.

This is well-known, and the proof is straightforward. We omit it. This lemma shows that the transition from a sup semilattice \((X,\le )\) (an order-theoretic object) to the pair \((X,\mathrm {sup}_\le ^{(2)})\) consisting of a set X and a function with the three properties above (an algebraic object) on the one hand and the transition from a pair (Xf) consisting of a set X and a function f with the three properties above (an algebraic object) to the sup semilattice \((X,\le _f)\) (an order-theoretic object) on the other hand are inverse to each other. In this article we work with the order-theoretic description.

Let us have a first look at topological properties of the binary supremum function on a sup semilattice. Let \((X,\tau _X)\) and \((Y,\tau _Y)\) be topological spaces. A function \(f:X\rightarrow Y\) is called

  • continuous if for every open subset \(V\subseteq Y\) its preimage \(f^{-1}[V]=\{x \in X ~:~ f(x) \in V\}\) is an open subset of X,

  • open if for every open subset \(U\subseteq X\) its image \(f[U]=\{y \in Y ~:~ (\exists x \in U)\ y = f(x)\}\) is an open subset of Y.

Often the following fundamental characterization of Scott continuous functions between partial orders is useful.

Lemma 5.2

(see, e.g., [7, Proposiation. 4.3.5]) Let \((X,\le _X)\) and \((Y,\le _Y)\) be posets. For a function \(f:X\rightarrow Y\) the following two conditions are equivalent.

  1. 1.

    f is Scott continuous, that is, continuous with respect to the Scott topology on X and the Scott topology on Y.

  2. 2.

    f is monotone (that is, \((\forall x,x' \in X) (x \le _X x' \Rightarrow f(x) \le _Y f(x')\)) and, if \(S\subseteq X\) is a directed set whose supremum \(\sup (S)\) exists, then \(\sup (f[S])\) exists as well and satisfies \(\sup (f[S])=f(\sup (S))\).

Proposition 5.3

Let \((X,\le )\) be a sup semilattice. Then the function \(\mathrm {sup}^{(2)}:X \times X\rightarrow X\) is continuous and open with respect to the Scott topology on \(X\times X\) (on the left hand side) and the Scott topology on X (on the right hand side).

The continuity of \(\mathrm {sup}^{(2)}\) is well known [13, p. 26]. It seems that the openness of \(\mathrm {sup}^{(2)}\) has not been stated so far.

Proof

For completeness sake, we prove the continuity of \(\mathrm {sup}^{(2)}\). We use Lemma 5.2. It is obvious that \(\mathrm {sup}^{(2)}\) is monotone. Let \(S\subseteq X\times X\) be a directed set such that \(\sup (S)\) exists. We have to show that \(\mathrm {sup}^{(2)}(\sup (S))\) is a supremum of \(\mathrm {sup}^{(2)}[S]\). For any \((x,x') \in S\) we have \((x,x') \le _{X\times X} \sup (S)\), hence, due to the monotonicity of \(\mathrm {sup}^{(2)}\), also \(\mathrm {sup}^{(2)}(x,x') \le \mathrm {sup}^{(2)}(\sup (S))\). This shows that \(\mathrm {sup}^{(2)}(\sup (S))\) is an upper bound of \(\mathrm {sup}^{(2)}[S]\). Now let \(y \in X\) be an upper bound of \(\mathrm {sup}^{(2)}[S]\). Then for all \((x,x')\in S\) we have \(\mathrm {sup}^{(2)}(x,x') \le y\), hence, \(x \le y\) and \(x' \le y\), hence, \((x,x') \le _{X\times X} (y,y)\). This implies \(\sup (S) \le _{X\times X} (y,y)\) and, due to the monotonicity of \(\mathrm {sup}^{(2)}\), \(\mathrm {sup}^{(2)}(\sup (S)) \le \mathrm {sup}^{(2)}(y,y) = y\). Thus, \(\mathrm {sup}^{(2)}(\sup (S))\) is indeed a supremum of \(\mathrm {sup}^{(2)}[S]\).

For the openness of \(\mathrm {sup}^{(2)}\) let us consider a Scott open subset \(U\subseteq X\times X\). We wish to show that \(\mathrm {sup}^{(2)}[U]\) is a Scott open subset of X. First we show that \(\mathrm {sup}^{(2)}[U]\) is upwards closed. This is clear if U is empty. Let us assume \(U\ne \emptyset \), and let us consider some \((x,x')\in U\) and some \(y\in X\) with \(\mathrm {sup}^{(2)}(x,x') \le y\). Then \(x\le y\) and \(x'\le y\), hence, \((x,x') \le _{X\times X} (y,y)\). As U is upwards closed we conclude \((y,y) \in U\), hence, \(y=\mathrm {sup}^{(2)}(y,y) \in \mathrm {sup}^{(2)}[U]\). We have shown that \(\mathrm {sup}^{(2)}[U]\) is upwards closed. Now let us assume that \(S\subseteq X\) is a directed set such that \(\sup (S)\) exists and is an element of \(\mathrm {sup}^{(2)}[U]\). Then the set \(P:=\{(s,s) \in X\times X ~:~ s \in S\}\) is a \(\le _{X\times X}\)-directed set whose \(\le _{X\times X}\)-supremum exists and is equal to \((\sup (S),\sup (S))\). Remember that \(\sup (S) \in \mathrm {sup}^{(2)}[U]\). Let \((x,x')\in U\) be an element of U with \(\sup (S)=\mathrm {sup}^{(2)}(x,x')\). We conclude that \(x \le \sup (S)\) and \(x'\le \sup (S)\), hence, \((x,x') \le _{X\times X} (\sup (S),\sup (S))\). As U is upwards closed we conclude \((\sup (S),\sup (S)) \in U\). Thus, \(\sup _{\le _{X\times X}}(P) \in U\). As U is Scott open we obtain \(P \cap U \ne \emptyset \). Thus, there exists some \(y \in S\) with \((y,y) \in U\). This implies \(y = \mathrm {sup}^{(2)}(y,y) \in \mathrm {sup}^{(2)}[U]\). Thus, \(S\cap \mathrm {sup}^{(2)}[U] \ne \emptyset \). We have shown that \(\mathrm {sup}^{(2)}[U]\) is Scott open. \(\square \)

Corollary 5.4

Let \((X,\le )\) be a sup semilattice. Then the function \(\sup ^{(2)}:X \times X\rightarrow X\) is open with respect to the product topology on \(X\times X\) of the Scott topologies on both copies of X (on the left hand side) and the Scott topology on X (on the right hand side).

Proof

This follows from Proposition 5.3 and from Lemma 4.2. \(\square \)

6 Sobriety and the binary supremum function

In this section we present the observation by Wei and Shouli [14] that a slightly weaker property than continuity of the binary supremum function with respect to the product topology is equivalent to the property “sober”, for suitable posets. The following definitions are copied from [6, Sect. O-5], [7, Sect. 8.2]. Let X be a topological space. We call a subset \(C\subseteq X\) irreducible if it is nonempty and, for any closed subsets \(A,B\subseteq X\) the following implication is true: if \(C\subseteq A\cup B\) then \(C\subseteq A\) or \(C\subseteq B\). It is clear that the closure \(\mathop {\mathrm{cl}}(\{x_0\})\) of a point \(x_0\) is irreducible, for any \(x_0\in X\). A topological space X (or its topology) is called sober if it is a \(T_0\) space and for every irreducible closed subset \(C\subseteq X\) there exists a point \(x_0\in X\) with \(C=\mathop {\mathrm{cl}}(\{x_0\})\). Note that the \(T_0\) property of a topological space X implies for \(x_0,x_1\in X\): if \(\mathop {\mathrm{cl}}(\{x_0\})=\mathop {\mathrm{cl}}(\{x_1\})\) then \(x_0=x_1\).

We wish to analyze which posets that are dcpos and sup semilattices (compare Lemma 3.1) have a sober Scott topology. The following lemma is implicitly contained in the proof of [6, Proposition II-1.11].

Lemma 6.1

Let \((X,\le )\) be a dcpo and consider on X the Scott topology. For a closed subset \(C\subseteq X\) the following two conditions are equivalent.

  1. 1.

    C is directed.

  2. 2.

    There exists a point \(x_0\in X\) with \(C=\mathop {\mathrm{cl}}(\{x_0\})\).

Proof

Let \(x_0\in X\). On the one hand, in Example 3.4 we already mentioned that \(\mathop {\mathrm{cl}}(\{x_0\})=\mathop {\downarrow }\{x_0\}\). And it is clear that the set \(\mathop {\downarrow }\{x_0\}\) is directed. On the other hand, if a set C is directed then \(\sup (C)\) exists because we assume that \((X,\le )\) is a dcpo. And if C is closed and directed then \(\sup (C)\in C\). But in that case it is clear that \(C=\mathop {\downarrow }\{\sup (C)\}\).

\(\square \)

It is well known that, if \((X,\le )\) is a dcpo and a sup semilattice and the function \(\sup ^{(2)}:X\times X\rightarrow X\) is continuous with respect to the product topology on X, then X with the Scott topology is sober; see [5, Corollary II.1-12], [6, Corollary II-1.12]. Wei and Shouli [14] observed that by weakening the continuity requirement on \(\sup ^{(2)}\) one can obtain a condition that is equivalent to sobriety, under sufficiently strong further assumptions. The following theorem was essentially stated by them with slightly different assumptions.

Theorem 6.2

Let \((X,\le )\) be a poset that is a dcpo and a sup semilattice. Then the following two conditions are equivalent.

  1. 1.

    The Scott topology \(\sigma (X,\le )\) is sober.

  2. 2.

    For every Scott open subset \(W\subsetneq X\) whose complement is irreducible, the set \((\sup ^{(2)})^{-1}[W] \subseteq X\times X\) is open in the product topology on \(X\times X\).

Proof

“(1) \(\Rightarrow \) (2)”: Let \((X,\sigma (X,\le ))\) be sober. Let \(W\subsetneq X\) be a proper Scott open subset of X whose complement \(C:=X\setminus W\) is irreducible. Let \(x,y\in X\) be two elements with \(\sup ^{(2)}(x,y)=:z\in W\). We wish to show that there are Scott open subsets \(U,V\subseteq X\) with \(x\in U\), \(y\in V\) and \(\sup ^{(2)}[U\times V] \subseteq W\). As C is irreducible and X is sober there exists a point \(c\in X\) with \(C=\mathop {\mathrm{cl}}(\{c\})\). If x and y would satisfy \(x\le c\) and \(y\le c\) then their supremum z would satisfy \(z\le c\) as well, that is, \(z\in \mathop {\downarrow }\{c\} = \mathop {\mathrm{cl}}(\{c\}) =C\). Thus, we observe that \(x\not \le c\) or \(y\not \le c\). Without loss of generality we assume \(x\not \le c\), hence, \(x \not \in \mathop {\downarrow }\{c\} = \mathop {\mathrm{cl}}(\{c\}) = C\), hence, \(x\in W\). But now the open sets \(U:=W\) and \(V:=X\) satisfy \(x\in U\), \(y\in V\) and \(\sup ^{(2)}[U\times V] = \sup ^{(2)}[W\times X] \subseteq W\).

“(2) \(\Rightarrow \) (1)”: Let us assume that (2) is true. Let \(C\subseteq X\) be a closed and irreducible subset of X. According to Lemma 6.1 it is sufficient to show that C is directed. Let us consider two elements \(x,y\in C\). We claim that the supremum \(z:=\sup ^{(2)}(x,y)\) is an element of C. Suppose that this is not the case. Then \(z\in W:=X\setminus C\). By Condition (2) there exist Scott open subsets \(U,V\subseteq X\) with \(x\in U\), \(y\in V\) and \(\sup ^{(2)}[U\times V] \subseteq W\). As U and V are upwards closed we obtain \(\sup ^{(2)}[U\times V] = U\cap V\). Hence, we have \(U\cap V\subseteq W\). For the closed sets \(A:=X\setminus U\) and \(B:=X\setminus V\) that means \(C \subseteq A\cup B\). As C is irrreducible this implies \(C\subseteq A\) or \(C \subseteq B\), hence, \(U\subseteq W\) or \(V\subseteq W\). We conclude \(x\in W\) or \(y\in W\), in contradiction to \(x,y\in C\). \(\square \)

7 Continuity or discontinuity of the supremum function with respect to the product topology on a complete lattice

Let \((X,\le )\) be a sup semilattice. Proposition 5.3 says that the binary supremum function is continuous with respect to the Scott topology on \(X\times X\). This leads to the question whether it is necessarily even continuous with respect to the product topology on \(X\times X\) as well. This question was answered negatively by Isbell.

Theorem 7.1

(Isbell [10, 11]) There exists a complete lattice \((Z,\le )\) such that the binary supremum function \(\mathrm {sup}^{(2)}:Z \times Z \rightarrow Z\) is not continuous with respect to the product topology on \(Z\times Z\) of the Scott topology on each copy of Z (on the left hand side) and the Scott topology on Z (on the right hand side).

In fact, in [10] Isbell constructed a complete lattice such that this lattice with the Scott topology is not sober. It follows from [5, Corollary II.1-12] as well as [6, Corollary II-1.12] or Theorem 6.2 that the binary supremum function on this lattice is not continuous with respect to the product topology. This result by Isbell leads to the question (posed by Hoffmann, according to [11]) whether there exists a sober complete lattice such that the binary supremum function is discontinuous with respect to the product topology. This question was answered positively by Isbell, who constructed such a lattice [11].

The observation described in the following lemma was made by Isbell in [11] for complete lattices. This fact was rediscovered by the author [8, Proof of Theorem 4.2], who at the time of writing [8] was not aware of the articles [10, 11] by Isbell.

Lemma 7.2

Let \((X,\le _X)\) and \((Y,\le _Y)\) be sup semilattices such that \(\bot _X:=\inf (X)\) and \(\bot _Y:=\inf (Y)\) exist and such that the product topology on \(X\times Y\) is different from the Scott topology on \(X\times Y\). Then \(Z:=X\times Y\) with \(\le _{X\times Y}\) is a sup semilattice such that the binary supremum function \(\mathrm {sup}^{(2)}:Z\times Z\rightarrow Z\) is discontinuous with respect to the product topology on Z.

For completeness sake we give the proof. First, we formulate and prove another simple lemma.

Lemma 7.3

Let \((X,\le _X)\) and \((Y,\le _Y)\) be posets. For any \(x\in X\) the function \(g_x:Y\rightarrow X\times Y\) defined by \(g_x(y):=(x,y)\) is Scott continuous, and for any \(y\in Y\) the function \(g_y:X\rightarrow X\times Y\) defined by \(g_y(x):=(x,y)\) is Scott continuous.

Proof

This follows directly by applying Lemma 5.2. \(\square \)

Proof of Lemma 7.2

By Lemma 4.1 it is clear the \((Z,\le _{X\times Y})\) is a sup semilattice. Let \(E\subseteq Z = X\times Y\) be a subset that is open in the Scott topology on \(X\times Y\) but not open in the product topology on \(X\times Y\). We are going to show that the preimage

$$\begin{aligned} D:= \left( \mathrm {sup}^{(2)}\right) ^{-1}[E] = \{ (z,z') \in Z \times Z ~:~ \mathrm {sup}^{(2)}(z,z') \in E\} \end{aligned}$$

of E under the function \(\mathrm {sup}^{(2)}\) is not open in the product topology on \(Z\times Z\) (of the Scott topologies on each copy of Z). For the sake of a contradiction, let us assume that D is open in the product topology on \(Z\times Z\). We are going to show that this assumption would imply that E is open in the product topology on \(Z = X \times Y\).

Let us fix some element \((x^{(0)},y^{(0)}) \in E\). It is sufficient to show that the assumption that D is open in the product topology on \(Z\times Z\) implies that there exist a Scott open subset \(F \subseteq X\) and a Scott open subset \(G \subseteq Y\) with \(x^{(0)} \in F\), with \(y^{(0)} \in G\) and with \(F \times G \subseteq E\). How do we arrive at such sets? Note that \(\mathrm {sup}^{(2)}( (x^{(0)},\bot _Y), (\bot _X,y^{(0)}) ) = (x^{(0)},y^{(0)}) \in E\), hence,

$$\begin{aligned} ( (x^{(0)},\bot _Y), (\bot _X,y^{(0)}) ) \in D . \end{aligned}$$

Our assumption that D is open in the product topology on \(Z\times Z\) implies that there exist two Scott open subsets \(D_1,D_2 \subseteq Z\) with \((x^{(0)},\bot _Y) \in D_1\), with \((\bot _X,y^{(0)}) \in D_2\), and with \(D_1 \times D_2 \subseteq D\). By Lemma 7.3 the sets

$$\begin{aligned} F:= & {} \{x \in X ~:~ (x,\bot _Y) \in D_1 \}, \\ G:= & {} \{y \in Y ~:~ (\bot _X,y) \in D_2 \}. \end{aligned}$$

are Scott open subsets of X resp. of Y. It is clear that \(x^{(0)} \in F\) and \(y^{(0)} \in G\). Finally, we claim \(F \times G \subseteq E\). Indeed, for \(x \in F\) and \(y \in G\) we obtain \((x,\bot _Y) \in D_1\) and \((\bot _X,y) \in D_2\), hence,

$$\begin{aligned} (x,y) = \mathrm {sup}^{(2)}( (x,\bot _Y), (\bot _X,y) ) \in \mathrm {sup}^{(2)}[D_1\times D_2] \subseteq E. \end{aligned}$$

This shows \(F \times G \subseteq E\). \(\square \)

Proof of Theorem 7.1

The complete lattice \((X,\le _X)\) defined in Example 4.7 (compare Lemma 4.9) and the complete lattice \((Y,\le _Y)\) where Y is the set of all Scott open subsets of X and \(\le _Y\) is set-theoretic inclusion (see Example 3.2) satisfy the assumptions of Lemma 7.2; see Lemmas 4.5 and 4.10. \(\square \)

In view of Theorem 7.1 one might even suspect that the binary supremum function is necessarily discontinuous with respect to the product topology if the product topology is different from the Scott topology. The question whether this is the case or not was posed by an anonymous referee of [8]. The following theorem shows that this is not the case. The binary supremum function can be continuous with respect to the product topology even if the product topology is strictly weaker than the Scott topology.

Theorem 7.4

There exists a complete lattice \((Z,\le )\) such that the product topology on \(Z\times Z\) of the Scott topology on each copy of Z is different from the Scott topology on \(Z\times Z\), and the binary supremum function \(\mathrm {sup}^{(2)}:Z\times Z\rightarrow Z\) is still continuous with respect to the product topology on \(Z\times Z\) of the Scott topology on each copy of Z (on the left hand side) and the Scott topology on Z (on the right hand side).

Proof

Let \((X,\le _X)\) and \((Y,\le _Y)\) be complete lattices as in Proposition 4.6. We will construct a suitable Z as the direct sum of X and Y except that we add an additional smallest and an additional largest element in order to make Z a complete lattice. Formally, this can be done as follows. Let

$$\begin{aligned} Z := (X \times \{0\}) \cup (Y\times \{1\}) \cup \{\bot ,\top \} , \end{aligned}$$

where \(\bot \) and \(\top \) are different elements that are not elements of \((X \times \{0\}) \cup (Y\times \{1\})\), and let the binary relation \(\le _Z\) on Z be defined by

$$\begin{aligned}&z \le _Z z' :\iff z = \bot \text { or } z' = \top \text { or } \\&(\exists x,x' \in X) ( z= (x,0) \text { and } z'=(x',0) \text { and } x \le _X x') \text { or } \\&(\exists y,y' \in Y) ( z= (y,1) \text { and } z'=(y',1) \text { and } y \le _Y y'), \end{aligned}$$

for all \(z,z' \in Z\).

We come to the correctness proof. In fact, for notational simplicity, in the following we will identify X with \(X \times \{0\}\) and Y with \(Y \times \{1\}\). In other words, we will assume that \(\bot \ne \top \) and that the three sets X, Y, and \(\{\bot ,\top \}\) are pairwise disjoint. Then the pair \((Z,\le _Z)\) consisting of a set Z and a binary relation \(\le _Z\) on Z can be defined as follows.

$$\begin{aligned} Z \,= X \cup Y \cup \{\bot ,\top \} \end{aligned}$$

and

$$\begin{aligned} z \le _Z z' :\iff & {} z = \bot \text { or } z' = \top \text { or } \\&( z \in X \text { and } z' \in X \text { and } z \le _X z') \text { or } \\&( z \in Y \text { and } z' \in Y \text { and } z \le _Y z'), \end{aligned}$$

for all \(z,z' \in Z\). See Fig. 2.

Fig. 2
figure 2

The complete lattice Z in the proof of Theorem 7.4, constructed out of two complete lattices X and Y

It is straightforward to check that \((Z,\le _Z)\) is a partial order. And for any subset \(S\subseteq Z\) the supremum of S exists:

$$\begin{aligned} {\sup _{\le _Z}}(S) = {\left\{ \begin{array}{ll} \bot &{} \text { if } S \subseteq \{\bot \}, \\ \sup _{\le _X}(S\cap X) &{} \text { if } S \subseteq X\cup \{\bot \} \text { and } S \cap X \ne \emptyset , \\ \sup _{\le _Y}(S\cap Y) &{} \text { if } S \subseteq Y\cup \{\bot \} \text { and } S \cap Y \ne \emptyset , \\ \top &{} \text { if } S\not \subseteq X\cup \{\bot \} \text { and } S \not \subseteq Y \cup \{\bot \}. \end{array}\right. } \end{aligned}$$
(2)

Hence, \((Z,\le _Z)\) is a complete lattice. Next, we show that the Scott topology on \(Z\times Z\) is strictly finer than the product topology on \(Z\times Z\) (that is, than the product topology on \(Z\times Z\) of the Scott topology on each copy of Z). Let \(E \subseteq X\times Y\) be a Scott open subset of \(X\times Y\) that is not open with respect to the product topology on \(X\times Y\). We claim that the set

$$\begin{aligned} G \ := E \ \cup \ ((Y\cup \{\top \})\times Z) \ \cup \ (Z \times (X\cup \{\top \})) \end{aligned}$$

is a Scott open subset of \(Z\times Z\) and not open with respect to the product topology on \(Z\times Z\).

Let us show that G is \(\le _{Z\times Z}\)-upwards closed. The subsets \((Y\cup \{\top \})\times Z\) and \(Z \times (X\cup \{\top \})\) are obviously \(\le _{Z\times Z}\)-upwards closed. Let us consider some \((x,y) \in E\) and some \((z_1,z_2)\in Z\times Z\) with \((x,y) \le _{Z\times Z} (z_1,z_2)\). It is sufficient to show \((z_1,z_2) \in G\). From \(E \subseteq X\times Y\) we conclude \(z_1\in X\cup \{\top \}\) and \(z_2\in Y\cup \{\top \}\) and, furthermore, \(z_1 \in X \Rightarrow x \le _X z_1\), and, similarly, \(z_2 \in Y \Rightarrow y \le _Y z_2\). If \(z_1=\top \) then \((z_1,z_2) \in (Y\cup \{\top \})\times Z \subseteq G\), and similarly, if \(z_2 =\top \) then \((z_1,z_2) \in Z \times (X\cup \{\top \}) \subseteq G\). So, let us assume that \(z_1 \in X\) and \(z_2 \in Y\). Then \(x \le _X z_1\) and \(y \le _Y z_2\), hence \((x,y) \le _{X\times Y} (z_1,z_2)\). As E is \(\le _{X\times Y}\)-upwards closed we conclude \((z_1,z_2) \in E\subseteq G\). We have shown that G is \(\le _{Z\times Z}\)-upwards closed.

Next, let \(S\subseteq Z\times Z\) be a directed set such that \(\sup _{\le _{Z\times Z}}(S)\) is an element of G (note that \(\sup _{Z\times Z}(S)\) exists because \(Z\times Z\) is a complete lattice by Lemma 4.1 (4)). We wish to show that \(S\cap G \ne \emptyset \). For the sake of a contradiction, let us assume that \(S\cap G = \emptyset \). Then \(S \cap ((Y\cup \{\top \})\times Z) = \emptyset \) and \(S\cap (Z \times (X\cup \{\top \})) = \emptyset \), hence, \(S \subseteq (X\cup \{\bot \}) \times (Y\cup \{\bot \})\). This implies

$$\begin{aligned} \sup \nolimits _{\le _{Z\times Z}}(S) = (\sup \nolimits _{\le _Z}(\pi _1[S]),\sup \nolimits _{\le _Z}(\pi _2[S])) \in (X\cup \{\bot \}) \times (Y\cup \{\bot \}), \end{aligned}$$

compare Lemma 4.1 (3). With \(\sup _{\le _{Z\times Z}}(S)\in G\) and by the definition of G we obtain \(\sup _{\le _{Z\times Z}}(S)\in E\). This, in turn, implies \(\pi _1[S] \cap X \ne \emptyset \) (otherwise we would have \(\pi _1[S]=\{\bot \}\), hence, also \(\sup _{\le Z}(\pi _1[S])=\bot \) in contradiction to \(\sup _{\le _{Z\times Z}}(S)\in E\) and \(E\cap (\{\bot \}\times Z)=\emptyset \)) and \(\pi _2[S] \cap Y \ne \emptyset \). As S is a directed set we can conclude that \(S \cap (X\times Y) \ne \emptyset \). Furthermore, the set \(S \cap (X\times Y)\) is a \(\le _{X\times Y}\)-directed subset of \(X\times Y\) with

$$\begin{aligned} \sup \nolimits _{\le _{X\times Y}}(S \cap (X\times Y)) = \sup \nolimits _{\le _{Z\times Z}}(S \cap (X\times Y)) = \sup \nolimits _{\le _{Z\times Z}}(S) \in E. \end{aligned}$$

As E is a Scott open subset of \(X\times Y\) we conclude that \(S \cap (X\times Y) \cap E \ne \emptyset \), hence, \(S\cap E\ne \emptyset \), hence, \(S \cap G \ne \emptyset \). Contradiction. We have shown that G is a Scott open subset of \(Z \times Z\).

We still have to show that G is not open with respect to the product topology on \(Z \times Z\). For the sake of a contradiction, let us assume that G is open with respect to the product topology on \(Z \times Z\). We are going to show that this implies that the subset E of \(X\times Y\) is open with respect to the product topology on \(X \times Y\). Let us consider an arbitrary element (xy) of E. We wish to show that there exist Scott open subsets \(U'\subseteq X\) and \(V'\subseteq Y\) with \(x\in U'\), \(y\in V'\), and \(U'\times V' \subseteq E\). We make use of the fact that \((x,y) \in E\) implies \((x,y) \in G\). As by assumption G is open with respect to the product topology on \(Z \times Z\) there exist Scott open subsets \(U\subseteq Z\) and \(V\subseteq Z\) with \((x,y) \in U\times V\) and \(U\times V \subseteq G\). Then the set \(U' := U \cap X\) is a Scott open subset of X, and the set \(V':= V\cap Y\) is a Scott open subset of Y. We observe \(x \in U'\), \(y \in V'\), and \(U' \times V' \subseteq G\cap (X\times Y) = E\). Hence, G is indeed not open with respect to the product topology on \(Z \times Z\).

Finally, we have to show that the function \(\mathrm {sup}^{(2)}:Z\times Z\rightarrow Z\) is continuous with respect to the product topology on \(Z \times Z\). Let \(W\subseteq Z\) be a Scott open subset. It is sufficient to show that \((\mathrm {sup}^{(2)})^{-1}[W]\) is open in the product topology on \(Z\times Z\). We can assume that W is not empty. Let \((z_1,z_2)\in Z\times Z\) be a pair with \(\mathrm {sup}^{(2)}(z_1,z_2) \in W\). It is sufficient to show that there exist Scott open subsets \(W_1,W_2\subseteq Z\) with \(z_1\in W_1\), \(z_2\in W_2\) and \(W_1\times W_2 \subseteq (\mathrm {sup}^{(2)})^{-1}[W]\). We distinguish several cases for \((z_1,z_2)\).

  • Case 1 \(z_1=\bot \). The sets Z and W are Scott open subsets of Z, \(z_1=\bot \in Z\), \(z_2=\mathrm {sup}^{(2)}(z_1,z_2) \in W\), and \(Z\times W \subseteq (\mathrm {sup}^{(2)})^{-1}[W]\).

  • Case 2 \(z_2=\bot \). This case is symmetric to Case 1 and is treated in the same way.

  • Case 3 \(z_1=\top \). Then \(\top =\mathrm {sup}^{(2)}(z_1,z_2) \in W\). The set \(\{\top \}\) is a Scott open subset of Z (indeed, if \(S\subseteq Z\) is a subset with \(\sup (S)=\top \) then \(S \cap (X \cup \{\top \})\ne \emptyset \) and \(S \cap (Y \cup \{\top \})\ne \emptyset \), and if S is directed this implies \(\top \in S\)). And the set Z is of course a Scott open subset of Z as well. Finally, we note that \(z_1 \in \{\top \}\), \(z_2 \in Z\), and \(\{\top \}\times Z \subseteq (\mathrm {sup}^{(2)})^{-1}[W]\).

  • Case 4 \(z_2=\top \). This case is symmetric to Case 3 and is treated in the same way.

  • Case 5 \(z_1 \in X\) and \(z_2 \in Y\). Then \(\top =\mathrm {sup}^{(2)}(z_1,z_2) \in W\). The sets \(X\cup \{\top \}\) and \(Y\cup \{\top \}\) are Scott open subsets of Z, \(z_1 \in X\cup \{\top \}\), \(z_2 \in Y \cup \{\top \}\), and \((X\cup \{\top \}) \times (Y\cup \{\top \}) \subseteq (\mathrm {sup}^{(2)})^{-1}[\{\top \}] \subseteq (\mathrm {sup}^{(2)})^{-1}[W]\).

  • Case 6 \(z_1 \in Y\) and \(z_2 \in X\). This case is symmetric to Case 5 and is treated in the same way.

  • Case 7 \(z_1 \in X\) and \(z_2 \in X\). By Proposition 5.3 the function \(\mathrm {sup}^{(2)}:Z\times Z\rightarrow Z\) is continuous with respect to the Scott topology on \(Z\times Z\). Hence, \((\mathrm {sup}^{(2)})^{-1}[W]\) is a Scott open subset of \(Z\times Z\). We claim that the set \(W':=(\mathrm {sup}^{(2)})^{-1}[W] \cap (X\times X)\) is a Scott open subset of \(X\times X\) (that means, Scott open with respect to \(\le _{X\times X}\)). This follows directly from the fact that the restriction of \(\le _{Z\times Z}\) to \(X\times X\) is identical with \(\le _{X\times X}\). By the second condition in Proposition 4.6 the Scott topology on \(X\times X\) is identical with the product topology. Hence, the subset \(W'\) of \(X\times X\) is open in the product topology. Furthermore \((z_1,z_2) \in W'\). Hence, there exist \(\le _X\)-Scott open subsets \(U_1,U_2\subseteq X\) with \(z_1\in U_1\), \(z_2 \in U_2\) and \(U_1 \times U_2 \subseteq W'\). The sets \(W_1:=U_1 \cup \{\top \}\) and \(W_2:=U_2 \cup \{\top \}\) are \(\le _Z\)-Scott open subsets of Z and satisfy \(z_1 \in W_1\), \(z_2 \in W_2\), and \(W_1\times W_2 \subseteq (\mathrm {sup}^{(2)})^{-1}[W]\).

  • Case 8 \(z_1 \in Y\) and \(z_2 \in Y\). This case is treated in the same way as Case 7, using the third condition in Proposition 4.6 instead of the second condition. \(\square \)

8 Failure of bounded completeness for the directed complete partial order of Scott continuous functions

Let us consider some poset \((Z,\le )\) and an arbitrary topological space X. We call a function \(f:X\rightarrow Z\) Scott continuous if it is continuous with respect to the given topology on X and the Scott topology on Z. Let \(\mathrm {C}(X,Z)\) denote the set of all Scott continuous functions \(f:X\rightarrow Z\). It is clear that the binary relation \(\le _\mathrm {C}\) defined on X by

$$\begin{aligned} f \le _\mathrm {C} g :\iff (\forall x \in X)\ f(x) \le g(x) , \end{aligned}$$

for \(f,g\in \mathrm {C}(X,Z)\), is a partial order, that is, \((\mathrm {C}(X,Z),\le _\mathrm {C})\) is a poset.

Proposition 8.1

( [13, Lemma 1-4.6], [9, Prop. 6]) Let \((Z,\le )\) be a dcpo, and let X be an arbitrary topological space. Then \(\mathrm {C}(X,Z)\) with \(\le _\mathrm {C}\) is a dcpo. Furthermore, if \(F\subseteq \mathrm {C}(X,Z)\) is a \(\le _\mathrm {C}\)-directed set then the function \(g:X\rightarrow Z\) defined by

$$\begin{aligned} g(x):=\sup ( \{f(x) ~:~ f\in F\}) \end{aligned}$$

(this is well defined because, for any \(x \in X\), the set \(\{f(x)~:~f \in F\}\) is directed and because \((Z,\le )\) is a dcpo) is Scott continuous and the least upper bound of F.

Let \((Z,\le )\) be a poset. A subset \(S \subseteq Z\) is called bounded if there exists an upper bound \(z\in Z\) for S. The poset \((Z,\le )\) itself is called bounded if Z is a bounded set. The poset \((Z,\le )\) is called bounded complete if for any bounded subset \(S \subseteq Z\) there exists a supremum of S in Z. An element of Z is called a least element of Z if it is a lower bound of Z. Obviously, if a least element exists then it is unique. Note that any bounded complete poset \((Z,\le )\) has a least element (the element \(\sup (\emptyset )\) does the job). And note that any complete lattice is a dcpo and that a poset is a complete lattice if, and only if, it is bounded and bounded complete.

Lemma 8.2

Let X be an arbitrary topological space.

  1. 1.

    If \((Z,\le )\) is a bounded poset then \((\mathrm {C}(X,Z),\le _\mathrm {C})\) is a bounded poset as well.

  2. 2.

    If \((Z,\le )\) is a poset with least element then \((\mathrm {C}(X,Z),\le _\mathrm {C})\) is a poset with least element as well.

Proof

Let \((Z,\le )\) be a poset. We have already seen that then \((\mathrm {C}(X,Z),\le _\mathrm {C})\) is a poset as well.

  1. 1.

    Let \(\top \in Z\) be an upper bound for Z. The constant function \(f:X\rightarrow Z\) with \(f(x):=\top \) for all \(x\in X\) is Scott continuous, thus, an element of \(\mathrm {C}(X,Z)\), and it is an upper bound for \(\mathrm {C}(X,Z)\).

  2. 2.

    Let \(\bot \in Z\) be a least element of Z. The constant function \(f:X\rightarrow Z\) with \(f(x):=\bot \) for all \(x\in X\) is Scott continuous, thus, an element of \(\mathrm {C}(X,Z)\), and it is a lower bound for \(\mathrm {C}(X,Z)\).\(\square \)

The following question arises: If \((Z,\le )\) is bounded complete, is then \(\mathrm {C}(X,Z)\) bounded complete as well? This is true if the topology considered on X is the Scott topology induced by a partial order relation on X.

Proposition 8.3

Let \((X,\le _X)\) be a poset and consider on X the Scott topology. If \((Z,\le _Z)\) is a bounded complete poset then \((\mathrm {C}(X,Z),\le _\mathrm {C})\) is a bounded complete poset as well.

Proof

Let \(F\subseteq \mathrm {C}(X,Z)\) be a \(\le _\mathrm {C}\)-bounded set. Then for each \(x\in X\) the set

$$\begin{aligned} F(x):= \{f(x) ~:~ f \in F\} = \{ z \in Z ~:~ (\exists f \in F) \ z=f(x) \} \end{aligned}$$

is bounded (indeed, if \(h\in \mathrm {C}(X,Z)\) is a \(\le _\mathrm {C}\)-upper bound of F then, for every \(x\in X\), the element \(h(x) \in Z\) is a \(\le _Z\)-upper bound of the set F(x)). Since we assume \((Z,\le _Z)\) to be bounded complete, we can define a function \(g:X\rightarrow Z\) by

$$\begin{aligned} g(x) := \sup (F(x)) . \end{aligned}$$

First, we show that this function g is Scott continuous. We use the characterization in Lemma 5.2. First we show that g is monotone. Let us consider \(x,y \in X\) with \(x\le _X y\). As each function \(f\in F\) is monotone, we have for each function \(f\in F\)

$$\begin{aligned} f(x) \le _Z f(y) \le _Z g(y), \end{aligned}$$

hence, \(g(x) \le _Z g(y)\). Thus, g is monotone. Now, let \(S\subseteq X\) be a directed set such that \(\sup (S)\) exists. For every \(s\in S\) we have \(g(s) \le _Z g(\sup (S))\) because g is monotone, hence, \(g(\sup (S))\) is an upper bound of g[S]. Let \(z_0\in Z\) be an arbitrary upper bound of g[S]. We wish to show \(g(\sup (S))\le _Z z_0\). For every \(f\in F\) and every \(s\in S\),

$$\begin{aligned} f(s) \le _Z g(s) \le _Z z_0. \end{aligned}$$

As every \(f\in F\) is Scott continuous, for every \(f\in F\), \(\sup (f[S])\) exists and we obtain

$$\begin{aligned} f( \sup (S) ) = \sup (f[S]) \le _Z z_0 . \end{aligned}$$

We conclude

$$\begin{aligned} g( \sup (S) ) = \sup (F(\sup (S))) = \sup \{ f(\sup (S)) ~:~ f \in F\} \le _Z z_0 . \end{aligned}$$

This completes the proof of our claim that g is Scott continuous.

It is obvious that g is an upper bound of F. If \(h \in \mathrm {C}(X,Z)\) is any upper bound of F then for all \(x\in X\) and all \(f\in F\), \(f(x) \le _Z h(x)\), hence, \(g(x) = \sup \{f(x) ~:~ f \in F\} \le _Z h(x)\), hence, \(g \le _\mathrm {C} h\). We have shown that g is the least upper bound of F. \(\square \)

One may now speculate whether for an arbitrary topological space X and an arbitrary bounded complete dcpo Z (with least element) the dcpo \(\mathrm {C}(X,Z)\) is bounded complete as well. For example, Edalat [4, p. 502] claims that this is the case by writing: “For any topological space Z and any bounded complete dcpo D with bottom \(\bot \), let \(Z \rightarrow D\) be the bounded complete dcpo of Scott continuous functions from Z to D.” But we are going to show that in general this is not the case; see Theorem 8.5 below.

Remark 8.4

The claim by Edalat, cited above, is a crucial step in his argument in [4] why the notion of the L-derivative, introduced by him in [4], is well-defined. As this claim is incorrect the reader might now be worried whether the L-derivative is well-defined at all. But indeed it is. One can replace the cited claim by a different argument; compare [9].

Theorem 8.5

There exist a topological space X and a complete lattice \({(Z,\le )}\) with the following properties:

  1. 1.

    \(\mathrm {C}(X,Z)\) is a bounded dcpo with least element, but not bounded complete.

  2. 2.

    There exist two functions \(f,g\in \mathrm {C}(X,Z)\) with the following two properties.

    1. (a)

      The set \(\{f,g\}\) does not have a \(\le _\mathrm {C}\)-supremum in \(\mathrm {C}(X,Z)\).

    2. (b)

      The pointwise supremum of f and g, that is, the function \(h:X \rightarrow Z\) defined by \(h(x) := \sup \{f(x),g(x)\}\), is not Scott continuous.

It is clear that Property (a) in Theorem 8.5 implies Property (b). The converse in not so obvious, but true as well, as the following lemma shows. It will be used in the proof of Theorem 8.5.

Lemma 8.6

For any topological space X, any bounded sup semilattice \({(Z,\le _Z)}\), and any two functions \(f,g \in \mathrm {C}(X,Z)\) the following two conditions are equivalent.

  1. 1.

    The set \(\{f,g\}\) has a \(\le _\mathrm {C}\)-supremum in \(\mathrm {C}(X,Z)\).

  2. 2.

    The pointwise supremum \(h:X\rightarrow Z\) of f and g defined by

    $$\begin{aligned} h(x) := \sup \{f(x),g(x)\}, \end{aligned}$$

    for all \(x\in X\), is Scott continuous.

Furthermore, if one (and then both) of these two conditions is satisfied then the pointwise supremum of f and g is the \(\le _\mathrm {C}\)-supremum of \(\{f,g\}\) in \(\mathrm {C}(X,Z)\).

Proof

Fix some functions \(f,g \in \mathrm {C}(X,Z)\), and let \(h:X\rightarrow Z\) be the pointwise supremum of f and g.

\(2\Rightarrow 1\)”: If h is Scott continuous and \(r \in \mathrm {C}(X,Z)\) any function with \(f \le _\mathrm {C} r\) and \(g \le _\mathrm {C} r\) then \(h \le _\mathrm {C} r\). Thus, in this case h is a supremum of \(\{f,g\}\) in \(\mathrm {C}(X,Z)\).

\(1\Rightarrow 2\)”: For the converse direction, let us first show the following claim.

Claim. For any \(x_0 \in X\) there exists a function \(s_{x_0} \in \mathrm {C}(X,Z)\) with \(f \le _\mathrm {C} s_{x_0}\), with \(g \le _\mathrm {C} s_{x_0}\), and with \(s_{x_0}(x_0) = \sup \{f(x_0),g(x_0)\}\).

Proof of this claim

Let \(\top :=\sup (Z)\) (this exists because \((Z,\le )\) is assumed to be bounded). Let us fix an arbitrary point \(x_0\in X\). Let us define a “step function” \(s_{x_0}:X\rightarrow Z\) by

$$\begin{aligned} s_{x_0}(x) := {\left\{ \begin{array}{ll} \sup \{f(x_0),g(x_0)\} &{} \text { if } x \in \mathop {\mathrm{cl}}(\{x_0\}), \\ \top &{} \text { otherwise.} \end{array}\right. } \end{aligned}$$

We claim that this function has the desired properties. First, we claim that \(s_{x_0}\) is Scott continuous. This is clear if \(\sup \{f(x_0),g(x_0)\} = \top \) because in that case \(s_{x_0}\) is the constant function with value \(\top \). Also in the case \(\sup \{f(x_0),g(x_0)\} \ne \top \) for any Scott open subset \(V\subseteq Z\) the set

$$\begin{aligned} s_{x_0}^{-1}[V] = {\left\{ \begin{array}{ll} \emptyset &{} \text { if } V = \emptyset , \\ X \setminus \mathop {\mathrm{cl}}(\{x_0\}) &{} \text { if } V\ne \emptyset \text { and } \sup \{f(x_0),g(x_0)\} \not \in V, \\ X &{} \text { if } \sup \{f(x_0),g(x_0)\} \in V \end{array}\right. } \end{aligned}$$

is an open subset of X. Hence, the function \(s_{x_0}\) is Scott continuous, thus, an element of \(\mathrm {C}(X,Z)\). We claim that furthermore \(f \le _\mathrm {C} s_{x_0}\). Indeed, if \(x\not \in \mathop {\mathrm{cl}}(\{x_0\})\) then \(f(x) \le _Z \top = s_{x_0}(x)\). Let us now consider the case \(x\in \mathop {\mathrm{cl}}(\{x_0\})\). The set

$$\begin{aligned} V := \{ z\in Z ~:~ z \not \le _Z f(x_0) \} \end{aligned}$$

is a Scott open subset of Z by Example 3.4. As \(f:X\rightarrow Z\) is Scott continuous, the set \(U:=f^{-1}[V]\) is an open subset of X. It is clear that \(x_0\not \in U\). Hence, \(x \in \mathop {\mathrm{cl}}(\{x_0\}) \subseteq X\setminus U\), that is, \(x\not \in U\). This means \(f(x) \le _Z f(x_0)\). We obtain

$$\begin{aligned} f(x) \le _Z f(x_0) \le _Z \sup \{f(x_0),g(x_0)\} = s_{x_0}(x) . \end{aligned}$$

We have shown \(f \le _\mathrm {C} s_{x_0}\). By the same argument \(g \le _\mathrm {C} s_{x_0}\) follows. Finally, it is clear that \(s_{x_0}(x_0) = \sup \{f(x_0),f(x_0)\}\). We have shown the claim.

Now let us assume that the set \(\{f,g\}\) has a supremum in \(\mathrm {C}(X,Z)\). Let us call this supremum t. Let us consider some \(x_0 \in X\). Clearly \(h(x_0) = \sup \{f(x_0),g(x_0)\} \le _Z t(x_0)\). According to the claim that we have just proved, there exists a function \(s_{x_0} \in \mathrm {C}(X,Z)\) with \(f \le _\mathrm {C} s_{x_0}\), with \(g \le _\mathrm {C} s_{x_0}\) and with \(s_{x_0}(x_0) = \sup \{f(x_0),g(x_0)\}\). This implies \(t = \sup \{f,g\} \le _\mathrm {C} s_{x_0}\) and in particular \(t(x_0) \le _Z s_{x_0}(x_0) = \sup \{f(x_0),g(x_0)\} = h(x_0)\). Thus, we do not only have \(h(x_0) \le _Z t(x_0)\) but also \(t(x_0) \le _Z h(x_0)\), thus, \(t(x_0)=h(x_0)\). As this is true for all \(x_0\in X\), we have \(t=h\), that is, t must be the pointwise supremum of f and g. \(\square \)

Proof of Theorem 8.5

Let \((Z,\le )\) be a complete lattice as in Theorem 7.1. Then Z is bounded (\(\sup (Z)\) is an upper bound) as well as bounded complete and directed complete (every subset has a supremum), and it has a least element. For X we choose \(Z\times Z\) with the product topology of the Scott topologies on each copy of Z. By Proposition 8.1\(\mathrm {C}(X,Z)\) is a dcpo and by Lemma 8.2 it is bounded and has a least element. Once we have shown that there exist two functions \(f,g\in \mathrm {C}(X,Z)\) that do not have a supremum in \(\mathrm {C}(X,Z)\) we have shown that \(\mathrm {C}(X,Z)\) is not bounded complete.

In fact, for f and g we can take the projection functions \(\pi _1, \pi _2:X=Z\times Z \rightarrow Z\) defined by \(\pi _i(z_1,z_2):=z_i\) for \(i=1,2\) and all \(z_1,z_2\in Z\). For \(i=1,2\) the projection function \(\pi _i\) is continuous with respect to the product topology on \(X=Z\times Z\), thus, \(\pi _i \in \mathrm {C}(X,Z)\). Note that the function \(\mathrm {sup}^{(2)}\) is the pointwise supremum of \(\pi _1\) and \(\pi _2\). As we have chosen Z to be a complete lattice as in Theorem 7.1 and X to be \(Z\times Z\) with the product topology, the function \(\mathrm {sup}^{(2)}\) is not an element of \(\mathrm {C}(X,Z)\), that is, \(\mathrm {sup}^{(2)}\) is not continuous. Thus, the pointwise supremum of the continuous functions \(\pi _1:X\rightarrow Z\) and \(\pi _2:X\rightarrow Z\) is not continuous. And, according to Lemma 8.6, the set \(\{\pi _1,\pi _2\}\) does not have a \(\le _\mathrm {C}\)-supremum in \(\mathrm {C}(X,Z)\). This ends the proof of Theorem 8.5. \(\square \)