how can we prove countable function like:
If $f : X \to Y$ is a function and $A$ is a countable subset of $X$, then $f(A)$ is countable.
how can we prove countable function like:
If $f : X \to Y$ is a function and $A$ is a countable subset of $X$, then $f(A)$ is countable.
Since $A$ is countable we have an injective function $h:A\to\mathbb N$.
For every $y\in f(A)$ choose some $x_y\in A$ such that $f(x_y)=y$.
Prescribe $g:f(A)\to A$ by $y\mapsto x_y$ and note that $g$ is injective.
Now observe that $h\circ g:f(A)\to\mathbb N$ is also an injective function, and we conclude that $f(A)$ must be countable.
edit:
More directly (and without an appeal on choice) function $k:f(A)\to\mathbb N$ prescribed by: $$y\mapsto\min\{h(x)\mid f(x)=y\}$$ can be shown to be injective.
We can refer to $f\restriction_A : A \to f(A)$. This is a surjective map, so that we may find an injection $g:f(A)\to A$ by mapping any element to something in its fiber. Then, $A$ injects to $\mathbb{N}$ by countability, so their composition is an injection from $f(A)$ to $\mathbb{N}$. Now there are two possibilities:
An injection exists from $\mathbb{N}$ to $f(A)$, in which case we can create a bijection by Schroeder-Bernstein.
No injection exists, which means that $f(A)$ is finite (every infinite set has a countable subset, so that there exists an injection from $\mathbb{N}$ into it).
\to in math mode to typeset "$\to$". Writing -> gives awful results.
– hmakholm left over Monica
Mar 10 '17 at 17:19
Since $A$ is countable, there is a map $g:\mathbb{N}\rightarrow A$ such that $g$ is onto. Also, $f:A\rightarrow f(A)$ is onto since $f(A)$ is the collection of all $f(x)$ for $x\in A.$ Thus, we consider the composition map $f\circ g: \mathbb{N}\rightarrow f(A)$. Since both $f$ and $g$ are onto, $f\circ g$ is also onto, which implies that $f(A)$ is countable.
– Pei-Lun Tseng Mar 10 '17 at 17:24