I am studying set theory, and I have some difficulties in understanding how people define the notion of rank there (I hope, specialists in logic will excuse me for this).
As far as I understand, there are two equivalent ways of defining rank of a set:
Krzysztof Ciesielski in his book Set Theory for the Working Mathematician defines rank by the formula $$ \text{rank}(X)=\min\{A\in\text{Ordinal numbers}: \ X\in V_{A+1}\}, $$ where $V_A$ is what is called cumulative hierarchy.
J.Donald Monk in his Introduction to Set Theory defines rank by the formula $$ \text{rank}(X)=\min\{A\in\text{Ordinal numbers}: \ \forall Y\in X\quad \text{rank}(Y)< A\}. $$
There is no problem for me with the first definition, but I don't understand the second one.
J.D.Monk writes that his definition is justified by the
General recursion principle: each function $F:V\to V$ (where $V$ is the class of all sets) defines a unique function $G:V\to V$ by the formula $$ G(X)=F(G\big|_X),\qquad X\in V $$ (here $G\big|_X$ is the restriction of $G$ on $X$; I simplify a bit Monk's Theorem 13.1).
The problem for me is that I don't understand, which function $F:V\to V$ in these terms defines rank. I would think that Monk has in mind the function $$ F(H)=\min\{A\in\text{Ordinal numbers}: \ \text{Range}(H)\subseteq A\}. $$ But this function is not defined for all $H\in V$, only for those $H$ which have range in the class of all ordinals (I wrote this in one of my previous questions, here).
I suppose, there must be a standard trick, that people use here, but I don't know it. Can anybody clarify me this?