I'm reading Set theory of Jech. I try to prove Thm 2.8 for myself but I'm not sure if the first step of my proof is correct. So the theorem affirms that if $W_1$ and $W_2$ are two well-ordered sets, then exactly one of the three cases holds:i) $W_1$ is isomorphic to $W_2$, ii) $W_1$ is isomorphic to an initial segment of $W_2$, iii)$W_2$ is isomorphic to an initial segment of $W_1$.
I want to define a function that maps the least element $x_1$ of $W_1$ to least element $y_1$ of $W_2$, and then the least element $x_2$ of $W_1\backslash \{x_1\}$ to least element $y_2$ of $W_2\backslash \{y_1\}$, and continue like this until of one the sets $W_1$ and $W_2$ is exhausted.
But I'm not sure if the above definition works if both of the sets $W_1$ and $W_2$ are uncountable (otherwise I could use induction). That is, I don't know if I can really reach the last step where either all elements of $W_1$ are taken or all elements of $W_2$ are taken.
Could you tell me if this is correct and why? Thanks!
Define $f:W_1\to W_2$ recursively by setting $$ f(\min W_1) = \min W_2 \quad\text{and}\quad f(x) = \min (W_2\setminus f(I_x)),\ x\in W_1,$$ where $I_x:=\{y\in W_1 \mid y<x\}$ is the initial segment of $x$. From here there are a few things to worry about:
1) How do we know that $W_2\setminus f(I_x)$ is nonempty? We should first assume that $W_2$ is not isomorphic to an initial segment of $W_1$.
2) How do we know that defining a function recursively like this is valid? It's certainly intuitive, but the details can get a bit messy (especially when we jump to transfinite recursion).
3) Once we accept that $f$ is a well-defined function, then we need to show that it is an order isomorphism.
If you assume choice (thanks Henning Makholm), then I recommend trying an argument by Zorn's lemma. The ideas you have with using transfinite induction are great, but the beauty of Zorn's lemma is that you can avoid these obstructions.