142. Lattices
142.1 Definition: lattice
A poset $(A,\alpha)$ with the property that for any two elements $a$ and $b$, $a\wedge b$ and $a\vee b$ always exist, is called a lattice. If $a\wedge b$ always exists, but not necessarily $a\vee b$, then $(A,\alpha)$ is called a lower semilattice, and if $a\vee b$ always exists but not necessarily $a\wedge b$, it is an upper semilattice.
142.1.1 Remark Some texts require that a lattice have a minimum and a minimum, as well.
142.1.2 Example The following are Hasse diagrams of lattices. Note that, for example, in (d), $x\wedge z=b$, $x\vee z=t$, and $x\vee y=x$.

142.1.3 Example In the unit interval $\mathrm{I}=\{r\in\mathrm{R}\mid 0\leq r\leq 1\}$, the meet $r\wedge s$ and the join $r\vee s$ with respect to the usual weak ordering $\leq$ always exist, and in fact $r\wedge s=\min(r,s)$ and $r\vee s=\max(r,s)$. Thus $(\mathrm{I},\leq)$ is a lattice. More generally, any total ordering is a lattice (Exercise 142.1.11).
142.1.4 Example Let $A$ be a set and $B$ and $C$ subsets of $A$. Then in $(\mathcal{P}A,\subseteq)$, $B\wedge C$ and $B\vee C$ always exist and moreover $B\wedge C=B\cap C$ and $B\vee C=B\cup C$. Thus $(\mathcal{P}A,\subseteq)$ is a lattice. (See Exercise 142.1.7.)
142.1.5 Example Let $m$ and $n$ be natural numbers. Then in $(\mathrm{N},\mid)$, $m\wedge n$ and $m\vee n$ always exist, and moreover $m\wedge n=\mathrm{GCD}(m,n)$ and $m\vee n=\mathrm{LCM}(m,n)$. Thus $(\mathrm{N},\mid)$ is a lattice. This follows immediately from Corollary 64.2, page 90.
142.1.6 Exercise Which of these posets are lattices?
a) $(\mathrm{N},\leq)$.
b) $(\mathrm{Z},\leq)$.
c) $(\mathrm{R},\leq)$.
d) $(A,|)$, where $A$ is the set of positive divisors of 25.
e) $(A,|)$, where $A$ is the set of positive divisors of 30.
f) $(A,|)$, where $A =\{ 1, 2, 3, 4, 5, 6\}$.
(Answer on page 251.)
142.1.7 Exercise Prove that for any set $A, (\mathcal{P}A,\subseteq )$ is a lattice. (Answer on page 251.)
142.1.8 Exercise Give an example of a lattice in which for some elements $a, b$ and $c, a\wedge (b\vee c )\neq (a\wedge b )\vee (a\wedge c)$.
142.1.9 Exercise Show that in the lattice $(\mathrm{N}-\{0\},\mid)$, every subset has an infimum and every finite subset has a supremum, but not every subset has a supremum.
142.1.10 Exercise Let $n$ be a positive integer. Show that the set of positive divisors of $n$ with “divides” as the relation is a lattice.
142.1.11 Exercise Prove that if $(L,\alpha )$ is a lattice, then $\alpha$ is a total ordering if and only if $x\vee y$ is the minimum of $x$ and $y$ and $x\wedge y$ is the minimum of $x$ and $y$.
Pages 215–216 of the book (PDF).