[step:Derive the Well-Ordering Theorem from Zorn's Lemma]
Assume Zorn's Lemma. Let $X$ be a set. We prove that $X$ admits a well-ordering.
Define $\mathcal W$ to be the set of all pairs $(A,\preceq_A)$ such that $A \subset X$ and $\preceq_A$ is a well-ordering of $A$. Partially order $\mathcal W$ by end-extension: for $(A,\preceq_A),(B,\preceq_B) \in \mathcal W$, write
\begin{align*}
(A,\preceq_A) \trianglelefteq (B,\preceq_B)
\end{align*}
if $A \subset B$, the relation $\preceq_B$ restricted to $A$ equals $\preceq_A$, and every element of $A$ precedes every element of $B \setminus A$ with respect to $\preceq_B$.
We verify the chain condition. Let $\mathcal C \subset \mathcal W$ be a chain under $\trianglelefteq$. Define
\begin{align*}
A_{\mathcal C} := \bigcup_{(A,\preceq_A)\in \mathcal C} A.
\end{align*}
Define a relation $\preceq_{\mathcal C}$ on $A_{\mathcal C}$ as follows: for $x,y \in A_{\mathcal C}$, set $x \preceq_{\mathcal C} y$ if and only if there exists $(A,\preceq_A)\in \mathcal C$ with $x,y \in A$ and $x \preceq_A y$.
This relation is well-defined because $\mathcal C$ is linearly ordered by end-extension. If two members of $\mathcal C$ both contain $x$ and $y$, then one end-extends the other, so the two orderings agree on the smaller domain and hence give the same comparison. The relation $\preceq_{\mathcal C}$ is a well-ordering of $A_{\mathcal C}$: any nonempty subset $S \subset A_{\mathcal C}$ contains an element $s$ lying in some domain $A$, and the $\preceq_A$-least element of $S \cap A$ is also the $\preceq_{\mathcal C}$-least element of $S$, because all later end-extensions place new elements after the old ones. Thus $(A_{\mathcal C},\preceq_{\mathcal C})$ is an upper bound for $\mathcal C$ in $\mathcal W$.
By Zorn's Lemma, $\mathcal W$ has a maximal element $(M,\preceq_M)$. We claim that $M=X$. Suppose not. Choose an element $x_0 \in X \setminus M$. Define
\begin{align*}
M' := M \cup \{x_0\}.
\end{align*}
Extend $\preceq_M$ to a relation $\preceq_{M'}$ on $M'$ by keeping the old order on $M$ and declaring
\begin{align*}
m \prec_{M'} x_0
\end{align*}
for every $m \in M$. Then $\preceq_{M'}$ is a well-ordering of $M'$ and $(M,\preceq_M) \trianglelefteq (M',\preceq_{M'})$, with the extension proper. This contradicts the maximality of $(M,\preceq_M)$.
Therefore $M=X$, and $\preceq_M$ is a well-ordering of $X$. Hence the Well-Ordering Theorem holds.
[/step]