Theorem (recursion)
Work in finite set theory.
Let $(X, <)$ be a well-founded strict partial order and $ϕ$ be an $\in$-formula with $\op{free}(ϕ) = \set{a,b,c}$. Suppose
-
$ϕ$ is functional: for all $a,b\in X$ and $c,c'$ sets, if $ϕ(a,b,c)$ and $ϕ(a,b,c')$ hold, then $c = c'$; and
-
$ϕ$ is total: for all $a,b\in X$, there exists $c$ such that $ϕ(a,b,c)$ holds.
Assume either
-
$\mathsf{Repl}$ holds; or
-
there exists some $r$ such that for all $a,b\in X$, if $ϕ(a,b,c)$ holds, then $c\in r$.
Then there exists a unique function $F$ with domain $X$ such that for all $x\in X$, $$ \begin{align*} F(x) = z \iff ϕ(x, F|_{\op{pred}(x)}, z). \end{align*} $$