141. Suprema
The two ideas of upper bound and minimum combine to form a concept that is more important than either of them.
141.1 Definition: supremum
Let $A$ be a poset with subset $B$. An element $m\in A$ is a supremum of $B$, or least upper bound of $B$, if it is the minimum of the set of upper bounds of $B$.
141.1.1 Fact The supremum $m$ must be unique if it exists, and it may or may not be in $B$. Because of its uniqueness, we denote the supremum of $B$ as $\sup B$.
141.1.2 Reformulation of the definition It is worth spelling out the definition of supremum: If $B\subseteq A$ and $m\in A$, then $m$ is the supremum of $B$ if $m$ is an upper bound of $B$ and $m\,\alpha\, a$ for every other upper bound $a$ of $B$. This gives rise to a rule of inference.
141.2 Theorem
If $(A,\alpha)$ is a poset and $B\subseteq A$, then
$$(\forall b{:}B)(b\,\alpha\, m),\ (\forall a{:}A)\bigl((\forall b{:}B)(b\,\alpha\, a)\Rightarrow m\,\alpha\, a\bigr)\vdash m=\sup B$$
141.2.1 Fact Note that $m$ is the “least” upper bound in the sense of the ordering $\alpha$: if $a$ is an upper bound of $B$, then $m\,\alpha\, a$. Specifically, no upper bound can be unrelated to $m$.
141.2.2 Example The supremum of $\{\{1\},\{1,2\},\{3\}\}$ in the set of all subsets of $\{1,2,3\}$ is $\{1,2,3\}$ itself (See Figure 137.1).
141.2.3 Example The supremum in $(\mathrm{R},\leq)$ of the open interval $(0..1)$ is 1, which is also the supremum of the closed interval $[0..1]$.
141.2.4 Example The set
$$S=\{x\in\mathrm{Q}\mid 0\leq x\text{ and }x^2\leq 2\}=\{x\in\mathrm{Q}\mid 0\leq x\leq\sqrt{2}\}$$
has no supremum in $(\mathrm{Q},\leq)$. That is because if it had a supremum $m\in\mathrm{Q}$, $m$ would have to be its supremum in $\mathrm{R}$, too, but the supremum in $\mathrm{R}$ is $\sqrt{2}$, which is not in $\mathrm{Q}$.
141.3 Definition: infimum
The infimum of $B$, or $\inf B$, if it exists, is the unique element $n$ for which
a) $n\,\alpha\, b$ for all $b\in B$, and
b) if $a\,\alpha\, b$ for all $b\in B$, then $a\,\alpha\, n$.
141.3.1 Example In the set $\{1,2,3,4,5,6\}$ ordered by division, the supremum of the subset $\{2,5\}$ does not exist, and the infimum is 1.
141.3.2 Exercise Find the suprema and infima, if they exist, of the subset $S$ of the poset $(T,\alpha)$:
a) $S=\{3,4,5\}$, $T=\mathrm{N}$, $\alpha$ is “$\leq$”.
b) $S=\{3,4,5\}$, $T=\mathrm{N}$, $\alpha$ is “divides”.
c) $S$ is the set of all positive primes, $T=\mathrm{N}$, and $\alpha$ is “$\leq$”.
d) $S$ is the set of all positive primes, $T=\mathrm{N}$, $\alpha$ is “divides”.
e) $S=\{\{1,2\},\{2,3\}\}$, $T=\mathcal{P}\{1,2,3\}$, $\alpha$ is inclusion. (Answer on page 251.)
141.3.3 Least upper bounds of two elements There is a special notation for suprema and infima of subsets of two elements. If $(A,\alpha)$ is a poset and $a,b\in A$, then the supremum of $\{a,b\}$ is denoted $a\vee b$ and called the join of $a$ and $b$, and the infimum is denoted $a\wedge b$ and called the meet of $a$ and $b$. Using this notation, Rule (141.2) then gives this rule of inference:
$$a\,\alpha\, c,\ b\,\alpha\, c,\ \bigl((\forall d)(a\,\alpha\, d\text{ and }b\,\alpha\, d)\Rightarrow c\,\alpha\, d\bigr)\vdash c=a\vee b$$
There is a similar rule for $a\wedge b$.
141.3.4 Exercise (hard) Let $(T,\alpha)$ be a poset, and suppose $A\subseteq S\subseteq T$.
a) Show that if $m$ is the supremum of $A$ in $S$ and $n$ is the supremum of $A$ in $T$, then $n\leq m$.
b) Show that if $n$ is the supremum of $A$ in $T$ and $n\in S$, then $n$ is the supremum of $A$ in $S$.
c) Give an example where the situation in (a) holds and $m\neq n$.
141.3.5 Exercise (hard) Show that if $a$ and $b$ are real numbers and
$$J=\{t\in\mathrm{Q}\mid a\leq t\leq b\}$$
then the supremum of $J$ in $\mathrm{Q}$, if it exists, is $b$, so that $b$ is rational. (Hint: Let $n$ be the supremum of $J$ in $\mathrm{Q}$. Use Problem 141.3.4 to show that $b\leq n$. Now assume $b<n$ and use the Archimedean property to get an integer $k$ for which $1/(n-b)<k$, so that $b<n-(1/k)<n$ and $n-(1/k)$ is rational.)
Pages 213–215 of the book (PDF).