Suppose $X$ is infinite and $f_n: \{1,\cdots,n\} \to X$ is injective for all $n \in \mathbb N$.
We define an injective mapping $f:\mathbb N \to X$ by recursive construction as follows: $$f(n)=f_{n}(i)$$ where $$i = \min \{t \in \mathbb N \mid f_{n}(t) \notin \{f(1),\cdots,f(n-1)\} \}$$
In other words, we take $f(n)$ to be $f_n(i)$, for the least $i$ such that $f_n(i)$ has not previously appeared as a value of $f(n)$.
This question arose when I tried to define a countably infinite subset of $X$. While I'm sure that this construction is justified by some version of Recursion Theorem, I only know the most primitive version, which is stated as:
Let $A$ be a set, $a\in A$, and $f \colon A\to A$ a mapping. Then there exists a unique mapping $g: \Bbb N\to A$ such that
- $g(0)=a$
- $g(n+1)=f \circ g(n)$
It seems that this basic version can not help me. Please give me some hints!
The point here is that $A$ can be practically any set. And it is $X^{<\omega}$, all the finite sequences from $X$. We then define $f(a)$ to be the following function: if $a$ is a sequence of length $k$ (namely, then domain of $a$ is $k$), then $f(a)$ is the sequence of length $k+1$ where we add the first element of $X$ appearing in the range of $f_{k+1}$ and not already appearing in $a$ itself.
Now define $g$ as obtained by the starting condition $g(0)=\varnothing$ (easily $g(1)=f_1$, by the way). By induction we can prove that $g(n)\subseteq g(n+1)$ and $g(n)$ is also injective. Therefore $G\colon\Bbb N\to X$, given by $G(n)=g(n+1)(n)$ is an injective function as wanted.