Least upper bounds in a lexicographic sum

See it in Lean

Axioms
ZFC only
Concerns
Linearly orderable

Statement

Let \(A\) be a linear order in which every nonempty subset with an upper bound has a least upper bound and every nonempty subset with a lower bound has a greatest lower bound, and let \(B\) be a linear order with the same two properties and a least element \(0_B\). Order the disjoint union \(A \sqcup B\) by putting every element of \(A\) below every element of \(B\) and keeping the orders of \(A\) and \(B\). Then every nonempty subset of \(A \sqcup B\) with an upper bound has a least upper bound.

Proof

Let \(S\) be nonempty with an upper bound \(u\), and let \(S_A = S \cap A\) and \(S_B = S \cap B\).

Case \(S_B \ne \emptyset\). Then \(u \in B\), since every element of \(A\) lies below every element of \(B\) and so bounds no element of \(S_B\). So \(S_B\) is bounded above in \(B\) and has a least upper bound \(c\) in \(B\). Every element of \(S_A\) lies below \(c\), so \(c\) is an upper bound of \(S\); any upper bound of \(S\) lies in \(B\) and bounds \(S_B\), so it is at least \(c\).

Case \(S_B = \emptyset\) and \(S_A\) bounded above in \(A\). Then \(S_A = S\) is nonempty; let \(c\) be its least upper bound in \(A\). It bounds \(S\); an upper bound in \(B\) exceeds \(c\), and an upper bound in \(A\) bounds \(S_A\), so it is at least \(c\).

Case \(S_B = \emptyset\) and \(S_A\) unbounded in \(A\). Then \(0_B\) bounds \(S\), and no element of \(A\) does, so every upper bound lies in \(B\) and is at least \(0_B\). \(\blacksquare\)

The proof uses only the least upper bounds in \(A\) and \(B\) and the least element of \(B\). The hypothesis on greatest lower bounds follows from the one on least upper bounds in any linear order: if \(S\) is nonempty and has a lower bound, its set of lower bounds is nonempty and bounded above by any element of \(S\), and its least upper bound is the greatest lower bound of \(S\).

Where it is used

Cited on space pages