Two Ways to Give the Rationals a Topology
The rational numbers inherit an order from the real line, so they can be given the order topology. They also inherit a topology by being viewed as a subset of the real line. These are different constructions: one starts with the order on \(\mathbb{Q}\), while the other takes intersections with open subsets of \(\mathbb{R}\). In this case the resulting topologies agree. The same comparison clarifies why neighborhoods at included endpoints of real intervals have a one-sided form, while excluded endpoints have no neighborhoods in the interval at all.
For an ordered set, the order topology is generated by open order intervals and open order rays. In \(\mathbb{Q}\), for example, the bounded basic intervals are \((r,s)_{\mathbb{Q}}=\{q\in\mathbb{Q}:r<q<s\}\), where \(r,s\in\mathbb{Q}\) and \(r<s\). The subspace topology on \(\mathbb{Q}\subseteq\mathbb{R}\) consists of sets \(O\cap\mathbb{Q}\), where \(O\) is open in \(\mathbb{R}\).
Proof. We show that each topology is contained in the other. First, every basic order interval \((r,s)_{\mathbb{Q}}\) is \((r,s)\cap\mathbb{Q}\), where \((r,s)\) is open in \(\mathbb{R}\). Each basic order ray, such as \(\{q\in\mathbb{Q}:q<s\}\), is \((-\infty,s)\cap\mathbb{Q}\), also the intersection of \(\mathbb{Q}\) with a real open set. Thus the order-topology basis sets are open in the subspace topology, so every order-open set is subspace-open.
For the reverse inclusion, let \(V=O\cap\mathbb{Q}\) be subspace-open, with \(O\) open in \(\mathbb{R}\), and take \(q\in V\). Since \(O\) is open, there is \(\varepsilon>0\) such that \((q-\varepsilon,q+\varepsilon)\subseteq O\). The rationals are dense in the reals: there are rationals \(r,s\) such that \(q-\varepsilon<r<q<s<q+\varepsilon\). Consequently \(q\in(r,s)_{\mathbb{Q}}\subseteq V\). Each point of \(V\) therefore lies in an order-open basic interval contained in \(V\), so \(V\) is order-open. The two topologies have exactly the same open sets. \(\square\)
The density fact used in the proof follows from the Archimedean property of \(\mathbb{R}\). Given real numbers \(x<y\), choose \(n\in\mathbb{N}\) with \(n(y-x)>1\), and choose an integer \(m\) with \(nx<m\le nx+1\). Then \(nx<m<ny\), so \(x<m/n<y\). Applying this once on each side of \(q\) gives the rationals \(r\) and \(s\) used above.
Worked Example: Refining a Real Neighborhood in \(\mathbb{Q}\)
Let \(V=(1/4,1/2)\cap\mathbb{Q}\), and consider \(q=1/3\). We will find an order-topology basic interval around \(q\) contained in \(V\).
First, \(1/4<1/3<1/2\), since \(1/3-1/4=1/12>0\) and \(1/2-1/3=1/6>0\). Choose the rational endpoints \(r=3/10\) and \(s=2/5\). The comparisons are \(1/4<3/10\), because \(1/4=5/20<6/20=3/10\), and \(2/5<1/2\), because \(2/5=4/10<5/10=1/2\). Also \(3/10<1/3<2/5\), since \(3/10<1/3\) is equivalent to \(9<10\), and \(1/3<2/5\) is equivalent to \(5<6\).
It follows that \(q\in(3/10,2/5)_{\mathbb{Q}}\subseteq(1/4,1/2)\cap\mathbb{Q}=V\). The endpoints \(3/10\) and \(2/5\) are rational, as required for an order-topology basic interval on \(\mathbb{Q}\).
Check: \(1/3\) belongs to \(V\) because \(1/4<1/3<1/2\). The smaller interval has endpoints strictly between \(1/4\) and \(1/2\), so every rational in it also belongs to \(V\). This is a concrete instance of the basis refinement in Theorem 1.
Intervals as Ordered Sets and as Subspaces
Now fix real numbers \(a<b\), and let \(J\) be one of \((a,b)\), \([a,b]\), \([a,b)\), or \((a,b]\). We can give \(J\) its order topology using the usual order inherited from \(\mathbb{R}\), or its subspace topology as a subset of \(\mathbb{R}\). In each case these topologies agree. To state their basic neighborhoods precisely, write \((u,v)_J=(u,v)\cap J\). At an included left endpoint the corresponding relative interval is \([a,v)\), and at an included right endpoint it is \((u,b]\).
- If \(J=(a,b)\), every \(x\in J\) has basic neighborhoods \((u,v)_J\) with \(u<x<v\). Neither \(a\) nor \(b\) is a point of \(J\).
- If \(J=[a,b]\), points \(a<x<b\) have basic neighborhoods \((u,v)_J\), while the endpoints have neighborhoods \([a,v)\) at \(a\) and \((u,b]\) at \(b\).
- If \(J=[a,b)\), the left endpoint has neighborhoods \([a,v)\), and each \(a<x<b\) has neighborhoods \((u,v)_J\). The point \(b\) is not in \(J\).
- If \(J=(a,b]\), each \(a<x<b\) has neighborhoods \((u,v)_J\), and the right endpoint has neighborhoods \((u,b]\). The point \(a\) is not in \(J\).
Proof. The order topology on \(J\) has a basis consisting of intersections of \(J\) with open intervals and open rays in the inherited order. These sets are also intersections of \(J\) with open intervals or rays in \(\mathbb{R}\), so they are open in the subspace topology. This proves that every order-open subset of \(J\) is subspace-open.
Conversely, take a subspace-open set \(W=O\cap J\), where \(O\) is open in \(\mathbb{R}\), and a point \(x\in W\). Choose \(\varepsilon>0\) such that \((x-\varepsilon,x+\varepsilon)\subseteq O\). The intersection \((x-\varepsilon,x+\varepsilon)\cap J\) is an order-open neighborhood of \(x\) contained in \(W\). If \(x\) is an interior point of \(J\), this is an interval neighborhood. If \(x=a\) is included, the intersection is of the form \([a,v)\) after taking \(v=x+\varepsilon\) (or a smaller right endpoint). If \(x=b\) is included, it is of the form \((u,b]\). These are exactly the listed endpoint forms. An excluded endpoint is not a point of \(J\), so no neighborhood of that point in \(J\) is being asserted. Thus every subspace-open set is order-open, and the topologies agree. \(\square\)
Worked Example: A Neighborhood at the Left Endpoint of a Half-Open Interval
Take \(J=[2,5)\) with its inherited order, and examine the relative neighborhood \(W=J\cap(1,7/2)\). Because \(1<2<7/2<5\), direct intersection gives \(W=[2,7/2)\). In particular, \(2\in W\), while \(5\notin J\).
The order-topology endpoint basis at \(2\) includes sets \([2,v)\) for \(2<v\leq 5\). Taking \(v=7/2\) gives exactly \(W=[2,7/2)\), so \(W\) is a basic order-open neighborhood of \(2\). At the interior point \(3\), the same set contains the basic neighborhood \((5/2,7/2)_J\): its endpoints satisfy \(5/2<3<7/2\), and it lies in \(W\).
Check: \(2\in[2,7/2)\) since \(2\leq2<7/2\), and \(3\in(5/2,7/2)\) since \(5/2<3<7/2\). The endpoint \(5\) cannot have a neighborhood in \(J\), because \(5\notin J\).
Worked Example: Comparing an Open and a Closed Interval
Compare \(J_1=(-1,2)\) and \(J_2=[-1,2]\). In \(J_1\), the point \(0\) has, for example, the basic neighborhood \((-1/2,1/2)_{J_1}=(-1/2,1/2)\). The endpoint \(-1\) is excluded: \(-1\notin J_1\), so it is not meaningful to ask for a neighborhood of \(-1\) in \(J_1\).
In \(J_2\), the same real open interval produces the relative open set \(J_2\cap(-2,1/2)=[-1,1/2)\). It is a neighborhood of the included endpoint \(-1\). In the order topology on \(J_2\), it is the endpoint ray \([-1,1/2)\). At the other endpoint, \(J_2\cap(1/2,3)=(1/2,2]\), a neighborhood of \(2\).
Check: \(-1\) belongs to \([-1,1/2)\) because \(-1\leq-1<1/2\), and \(2\) belongs to \((1/2,2]\) because \(1/2<2\leq2\). Neither endpoint belongs to the open interval \(J_1\), whereas both belong to \(J_2\).
Reading Endpoint Neighborhoods Correctly
The interval notation in these neighborhood descriptions is relative to the space \(J\). For instance, \([a,v)\) is open as a subset of \(J=[a,b]\), even though it is not open as a subset of \(\mathbb{R}\). Indeed, \([a,v)=J\cap(a-\varepsilon,v)\) for any \(\varepsilon>0\). The intersection formula is the subspace-topology test: a set in \(J\) is open precisely when it is \(J\cap O\) for some real open set \(O\).
A useful summary is that interior points always have two-sided interval neighborhoods. An included left endpoint has one-sided neighborhoods extending to the right; an included right endpoint has one-sided neighborhoods extending to the left. An excluded endpoint is not a point of the space and has no neighborhood there.
| Interval \(J\) | Included endpoint neighborhood | Excluded endpoint |
|---|---|---|
| \((a,b)\) | None; all points are interior | \(a\) and \(b\) |
| \([a,b]\) | \([a,v)\) at \(a\); \((u,b]\) at \(b\) | None |
| \([a,b)\) | \([a,v)\) at \(a\) | \(b\) |
| \((a,b]\) | \((u,b]\) at \(b\) | \(a\) |
Common pitfall. For \(J=(0,1)\), it is incorrect to call \((0,1/2)_J\) a neighborhood of \(0\). Although the displayed interval has a relative-interval form, \(0\notin J\), and the intersection \((0,1/2)\cap J=(0,1/2)\) does not contain \(0\). A neighborhood must contain the point in question. The correction is to describe neighborhoods of points \(x\in(0,1)\) using \((u,v)_J\) with \(u<x<v\); there is no endpoint-neighborhood claim at \(0\) or \(1\) for this space. By contrast, in \(J=[0,1]\), the set \([0,1/2)\) is a neighborhood of \(0\), because it contains \(0\) and equals \(J\cap(-1,1/2)\), with \((-1,1/2)\) open in \(\mathbb{R}\).
These comparisons are useful whenever a set carries both an order and a topology inherited from a larger space. The rationals are a particularly important case: density supplies enough rational endpoints to refine every real neighborhood, which is why the two topologies coincide. For intervals, the intersection description makes the endpoint behavior explicit without confusing a relative-open set with an open subset of the whole real line.
Check Your Understanding
Use the definitions of the order and subspace topologies to justify each answer.
- Find rational numbers \(r<s\) such that \(1/2\in(r,s)_{\mathbb{Q}}\subseteq(2/5,3/5)\cap\mathbb{Q}\).
- For \(J=[-2,4]\), write one basic neighborhood of \(-2\), one of \(4\), and one of the interior point \(1\).
- In \(J=(-3,3]\), which endpoint has a neighborhood of the form \((u,3]\), and which endpoint is not a point of \(J\)?
- Explain why \([a,v)\) can be open in \(J=[a,b]\) even though it is not open in \(\mathbb{R}\).
- Show directly that every subspace-open neighborhood of \(q\in\mathbb{Q}\) contains a rational order interval around \(q\).