Ordering Points by Their Coordinates
On the real plane, a point is an ordered pair, but the usual coordinate-by-coordinate comparison does not give a total order: for example, neither \((1,4)\) nor \((2,3)\) is smaller in both coordinates. The dictionary order compares first coordinates first and uses second coordinates only when the first coordinates agree. Its order topology has intervals whose shapes depend on whether their endpoints lie on the same vertical line.
Throughout, \(\mathbb{R}\) has its standard topology, but the topology on \(\mathbb{R}^2\) in this tutorial is the order topology for the dictionary order, not a topology specified by the usual coordinate geometry.
Because the first coordinates are totally ordered, this comparison places any two distinct points in exactly one order: if their first coordinates differ, the smaller first coordinate determines the smaller point; if they agree, compare their second coordinates. In particular, a point with first coordinate \(a\) is below every point with first coordinate \(c\) whenever \(a<c\), regardless of the second coordinates.
There are no first or last points in this order. Given \((a,b)\), the points \((a,b-1)\) and \((a,b+1)\) lie below and above it, respectively. Thus the open intervals form a basis for the order topology; no endpoint rays are needed to supply neighborhoods.
Intervals with Equal or Different First Coordinates
Proof. First suppose \(a=c\). Since \(p<_{\mathrm{lex}}q\), we have \(b<d\). A point \((x,y)\) strictly between \(p\) and \(q\) cannot have \(x<a\), because it would be below \(p\), or \(x>a\), because it would be above \(q\). It must have \(x=a\), and then the two strict comparisons are exactly \(b<y<d\). This proves the first formula in both directions.
Now suppose \(a<c\). If \(a<x<c\), then \(p<_{\mathrm{lex}}(x,y)<_{\mathrm{lex}}q\) for every real \(y\): the first comparison follows from \(a<x\), and the second from \(x<c\). If \(x=a\), the point is above \(p\) exactly when \(y>b\), and it is automatically below \(q\) because \(a<c\). If \(x=c\), it is below \(q\) exactly when \(y<d\), and it is automatically above \(p\). For \(x<a\) the point lies below \(p\), and for \(x>c\) it lies above \(q\). These cases exhaust all first coordinates, giving precisely the stated union. \(\square\)
The formulas show why endpoints with different first coordinates produce a wider interval: every point on every intermediate vertical line is included. At the endpoint lines, only the appropriate upward or downward part is included. If the first coordinates agree, the interval stays on that one vertical line.
Including endpoints gives the corresponding closed-interval descriptions. For \(a=c\), \([p,q]=\{a\}\times[b,d]\). For \(a<c\), \([p,q]=(\{a\}\times[b,\infty))\cup((a,c)\times\mathbb{R})\cup(\{c\}\times(-\infty,d])\). The closed interval consists of the open interval together with its two endpoints, which gives these formulas. Half-open intervals are obtained by including just the endpoint indicated by the bracket: for example, when \(a<c\), \([p,q)= (\{a\}\times[b,\infty))\cup((a,c)\times\mathbb{R})\cup(\{c\}\times(-\infty,d))\).
Worked Example: An Interval on One Vertical Line
Take \(p=(2,1)\) and \(q=(2,5)\). Since their first coordinates agree and \(1<5\), the formula gives \((p,q)=\{2\}\times(1,5)\).
To test \((2,3)\), compare it with each endpoint: \(1<3<5\), so \((2,1)<_{\mathrm{lex}}(2,3)<_{\mathrm{lex}}(2,5)\), and it belongs to the interval. The point \((2,5)\) does not belong because the upper comparison is strict. The point \((3,3)\) does not belong: its first coordinate is greater than \(2\), so it is above \(q\), even though its second coordinate is between \(1\) and \(5\).
The interval itself is also the order interval \(((2,1),(2,5))\), hence is open in the order topology. The coordinate formula checks this description directly: its only points have first coordinate \(2\) and second coordinate strictly between \(1\) and \(5\).
Worked Example: An Interval Across Several First Coordinates
Let \(p=(1,2)\) and \(q=(4,-1)\). Here \(1<4\), so \((p,q)=(\{1\}\times(2,\infty))\cup((1,4)\times\mathbb{R})\cup(\{4\}\times(-\infty,-1))\).
For \((1,3)\), the first coordinate equals the left endpoint's first coordinate, so membership requires \(3>2\); it belongs. For \((2,-100)\), we have \(1<2<4\), so it belongs regardless of its second coordinate. For \((4,-2)\), membership requires \(-2<-1\), which holds. In contrast, \((4,0)\) does not belong because \(0<-1\) is false, and \((5,-100)\) does not belong because its first coordinate is greater than \(4\).
Check: the endpoints themselves are excluded. The point \((1,2)=p\) fails the strict condition \(y>2\) on the left endpoint line, and \((4,-1)=q\) fails the strict condition \(y<-1\) on the right endpoint line. This agrees with the definition of an open interval.
Basic Neighborhoods in the Lexicographic Plane
Proof. Let \(U\) be an open neighborhood of \(x\). By the interval basis for the order topology, there are \(r=(r_1,r_2)\) and \(s=(s_1,s_2)\) with \(r<_{\mathrm{lex}}x<_{\mathrm{lex}}s\) and \(x\in(r,s)\subseteq U\). We choose \(\varepsilon>0\) so that every \((a,t)\) with \(b-\varepsilon<t<b+\varepsilon\) remains above \(r\) and below \(s\).
If \(r_1<a\), every point with first coordinate \(a\) is above \(r\), so the lower comparison imposes no restriction on \(\varepsilon\). If \(r_1=a\), then \(r_2<b\); it suffices to require \(\varepsilon\le (b-r_2)/2\), which is positive. Similarly, if \(s_1>a\), every point with first coordinate \(a\) is below \(s\); if \(s_1=a\), then \(b<s_2\), and it suffices to require \(\varepsilon\le (s_2-b)/2\). Choose \(\varepsilon\) to be the minimum of \(1\) and whichever positive bounds apply. Then \(r<_{\mathrm{lex}}(a,t)<_{\mathrm{lex}}s\) whenever \(b-\varepsilon<t<b+\varepsilon\). The vertical interval is contained in \((r,s)\), hence in \(U\). \(\square\)
Conversely, each such vertical interval is itself open: it is the order interval \(((a,b-\varepsilon),(a,b+\varepsilon))\). The theorem therefore says that these vertical intervals give a local base: every neighborhood contains one of them. This statement describes a useful way to find small neighborhoods without having to work with arbitrary endpoints.
Worked Example: Shrinking a Neighborhood
Consider \(x=(3,4)\) and the open interval \(U=((2,7),(4,-2))\). The first coordinates of the endpoints are different, so the interval formula gives \(U=(\{2\}\times(7,\infty))\cup((2,4)\times\mathbb{R})\cup(\{4\}\times(-\infty,-2))\).
Since \(2<3<4\), every point with first coordinate \(3\) lies in the middle part, including \((3,4)\). Now take \(\varepsilon=1\). The vertical interval \(\{3\}\times(3,5)\) is \(((3,3),(3,5))\), so it is open. Every point \((3,t)\) in it has \(2<3<4\), and thus lies in the middle part of \(U\). Therefore \(\{3\}\times(3,5)\subseteq U\).
Check: the endpoint \((3,3)\) is not in the smaller interval because its lower comparison is equality, and \((3,5)\) is not in it because its upper comparison is equality. Both endpoints are in \(U\), since their first coordinate \(3\) is strictly between \(2\) and \(4\). The strict and non-strict comparisons are therefore consistent with the two interval definitions.
A Common Mistake
Pitfall: When the first coordinates differ, it is incorrect to require the second coordinate to lie between the endpoint second coordinates. For the interval from \((1,2)\) to \((4,-1)\), such a rule would reject \((2,-100)\), since \(-100\) is not between \(-1\) and \(2\). But the calculation \(1<2<4\) puts \((2,-100)\) in the middle part of the lexicographic interval, so it belongs. The second coordinate matters only on the endpoint vertical lines; at intermediate first coordinates, every second coordinate is allowed.
A reliable membership calculation is to compare points in order: first compare first coordinates; compare second coordinates only when the first coordinates tie. The same rule then determines which pieces of an interval are included and which boundary comparisons are strict.
Check Your Understanding
For each question, use the dictionary-order comparison before applying the interval formulas.
- Describe the open interval from \((3,-2)\) to \((3,4)\). Does \((3,0)\) belong? Does \((4,0)\)?
- Describe the open interval from \((-1,5)\) to \((2,0)\). Test membership of \((-1,6)\), \((0,-100)\), and \((2,1)\).
- Write the closed interval from \((1,3)\) to \((4,-2)\) as a union of coordinate pieces.
- Find a vertical open interval around \((5,1)\) contained in \(((4,8),(6,-3))\), and verify both endpoint comparisons.
- Explain why a point whose first coordinate lies strictly between the endpoint first coordinates belongs to the open interval for every value of its second coordinate.