Proof (transitive closure)
Define by recursion a function $F$ on $\N$ $$ \begin{align*} F(0) ={}& x, \\ F(s(k)) ={}& \bigcup F(k). \end{align*} $$ Let $r$ be the range of $F$, and take $t = \bigcup r$.
-
$t$ is transitive: if $z\in y\in t$, then there exists some $n\in \N$ such that $z\in y\in F(n)$. Then $z\in \bigcup F(n) = F(s(n))$, so $z\in \bigcup r$.
-
$t$ is smallest: if $t'\supseteq x$ is transitive, prove by induction that $F(n) \subseteq t'$, so $\bigcup r \subseteq t'$.