I'm taking an introductory topology course and the idea of the ordinal numbers was very briefly introduced in class. I was wondering what determines whether function application can be done an ordinal number of times.
More formally, define the nesting function $N(f,x,a)$ -- where $f:X\rightarrow X$, $x\in X$ and $a$ is an ordinal number -- as follows:
- If $a=0$, then $N(f,x,a) = x$.
- If $a$ has an immediate predecessor, $N(f,x,a) = f(N(f,x,\mathrm{pred}(a)))$
- Otherwise (i.e., if $a$ is a limit ordinal) then how do you sensibly define $N(f,x,a)$?
What would be the necessary and sufficient conditions so that one can make a "sensible" definition for $N$? For example, I would naively expect that for $X=\{0,1\}$ and $f(0)=1, f(1)=0$, one might not be able to make such a definition (what would $N(f,0,\omega)$ be?). On the other hand, if $X$ is the set of all ordinals and $f$ is the usual successor function, I think that $N$ can probably be suitably defined.