5
$\begingroup$

I was relatively confused trying to produce a proof of this theorem, however, I have provided my attempt. I would greatly appreciate it if people can help steer me to the correct proof, or provide a simple fix to my proof if it is near correct.

Proposition: If $X$ is a finite set of cardinality $n$, and $f: X \rightarrow Y$ is a function, then $f(X)$ is a finite set of cardinality less than or equal to $n$. If in addition $f$ is one-to-one then $f(X)$ has cardinality exactly $n$.

My Attempt at a Proof: Suppose $X$ is a finite set with cardinality $n$ and $f: X\rightarrow Y$ is a function. It follows that $X$ has $n$ elements, namely $x_1, x_2, ..., x_n$. Since $f$ is a function it follows that $f(X)$ maps every element of $X$ to exactly one element of $Y$. Thus $f(X)$ contains the elements $f(x_1), f(x_2), ..., f(x_n)$. However, we do not know that each $f(x_i)$ , $0 < i < n$ is unique. Thus we can conclude that $f(X)$ has cardinality less than or equal to $n$. Furthermore suppose $f$ is one-to-one. It then follows the elements $f(x_i)$, $0 < i < n$ are each unique. Thus we can conclude that $f(X)$ contains exactly $n$ elements, and hence has cardinality exactly equal to $n$

Thank you very much in advance for any help.

EDIT: (1) Someone asked what the source of my confusion was, I felt that this wasn't really formal and rather I was just attempting to express my intuitive ideas; (2) My definition of $X$ is a finite set of cardinality $n$ is that there exists a bijection from $X$ to $\{i\in \mathbb{N} : 1\leq i \leq n\}$; (3) I see some people have answered me with proof structures or long hints, thank you very much however I just got to my computer and have some other things to do so I haven't got to fixing my proof yet or thoroughly reading your posts I will do it soon however, thank you all very much

$\endgroup$
4
  • $\begingroup$ What's the source of your confusion Deven? Your proof looks sound to me. $\endgroup$ Aug 7 '11 at 1:01
  • $\begingroup$ You could incorporate the pigeon-hole principle to add support to your one-to-one argument. $\endgroup$
    – robjohn
    Aug 7 '11 at 1:03
  • $\begingroup$ Looks good to me, a nit-both $i \lt n$ should be $i \le n$ $\endgroup$ Aug 7 '11 at 1:05
  • $\begingroup$ @Deven: I have incorporated your earlier, unregistered account into the registered account you made; now all of your reputation points will accumulate in that account, and you will be able to see all notifications intended for you. $\endgroup$ Aug 7 '11 at 10:18
5
$\begingroup$

Exactly what constitutes a proof here depends very much on exactly how you’ve defined finite and ‘has cardinality $n$’, not to mention on what you’ve already proved about functions. At the relatively informal level at which I suspect you’re working, your argument is basically correct. I’m going to suppose that your definition of ‘$S$ has cardinality $n$’ is that there is a one-to-one function from $\{1,2,\dots,n\}$ onto $S$, or at any rate something pretty close to that. If so, you can make your argument a little more formal as follows. Since $X$ has cardinality $n$, there is a one-to-one function $h$ mapping $\{1,2,\dots,n\}$ onto $X$. When you write $X = \{x_1,x_2,\dots,x_n\}$, you’re basically doing the same thing: your $x_i$ is my $h(i)$. I’ll want to use the function $h$ in a bit, but for now I’ll stick to your version.

We know that for each $y \in f[X]$ there is at least one $x \in X$ such that $f(x) = y$, but as you said, there might be more than one. We’ll pick out a particular one: for each $y \in f[X]$ let $k(y)$ be the smallest positive integer $i$ such that $f(x_i) = y$. (Choosing the smallest is simply a handy way of making a definite, unambiguous choice.) Clearly $k$ is a function from $f[X]$ into $\{1,2,\dots,n\}$, and it’s not hard to see that it’s one-to-one. It’s also not hard to see that if $f$ is one-to-one, $k$ must map $f[X]$ onto $\{1,2,\dots,n\}$, in which case $k$ is a bijection between $f[X]$ and $\{1,2,\dots,n\}$, and the cardinality of $f[X]$ is $n$ by definition.

If you’ve already proved that every subset of a finite set is finite, you’re done at this point: $k$ is a bijection between $f[X]$ and a subset of the finite set $\{1,2,\dots,n\}$. If you actually need to construct a bijection between $f[X]$ and $\{1,2,\dots,m\}$ for some $m$, you have to work a bit harder. I suspect that you don’t, so I’ll just outline the idea informally. Let $g(1)$ be the $y \in f[X]$ for which $k(y)$ is smallest. Then let $g(2)$ be the $y \in f[X] \setminus \{g(1)\}$ for which $k(y)$ is smallest. Continue in this fashion until every $y \in f[X]$ is $g(i)$ for some $i$. When you’re done, you’ll have a bijection $g$ from some set $\{1,2,\dots,m\}$ onto $f[X]$.

$\endgroup$
3
$\begingroup$

It depends on your definition of "finite of cardinality $n$", and on what results you already have.

Often, "finite of cardinality $n$" means "bijectable with $n\in\omega$." If so, your argument may not be exactly right since it does not explicitly show that there is a bijection from $f(X)$ to some $m\in\omega$ with either $m=n$ or $m\in n$ (depending on what results you may have that imply the existence of such bijections). The intuition is right, but the execution may not be enough.

Here is one possibility to formalize this intuition. Fix a bijection $g\colon n\to X$ (this amounts to giving a specific ordering to $X$). Now, for each $y\in f(X)$, let $A_y = \{ m\in n\mid f(g(m))=y\}$ (that is, $A_y$ is the set of preimages of $y$, viewed in terms of the ordering we gave $X$). Define $h\colon f(Y)\to n$ by $h(y) = \min(A_y)$.

Note that $h$ is well-defined, since $A_y\neq\emptyset$ (as $y\in f(X)$); also, $h$ is one-to-one, because $y\neq y'$ implies $A_y\cap A_{y'}=\emptyset$ (since $f$ and $h$ are functions).

Thus, $h$ is a bijection between $Y$ and a subset of $n$; this certainly shows that $Y$ is finite, since a subset of a finite set is necessarily finite (there can be no bijection from a subset of a finite set to a proper subset of itself).

You may already have shown that a subset of $n\in\omega$ is necessarily of cardinality $m$ for some $m\leq n$; if not, then you can construct the bijection inductively easily enough.

Finally, if $f$ is one-to-one, then $f\circ h$ is one-to-one and onto $f(X)$, hence a bijection, showing that $f(X)$ is bijectable with $n$, hence of cardinality $n$.

$\endgroup$
0
2
$\begingroup$

If you want something a bit more formal (or at least sounds more formal) use induction and/or proof by contradiction.

ie Let's use the notation that $X_n$ is a set with $n$ elements. ie $X_0$ is the null set.

So $f(X_0)$ is also an empty set - by the definition of what a function is - since there are no elements to apply $f()$ to, the resultant set is empty. So $|f(X_0)| = 0$. Which means $|f(X_0)| \leq 0$, which is more in line with what we need ($\leq$ vs $=$).

Since $X_0$ is so special, feel free to prove $|f(X_1)| \leq 1$ and/or $|f(X_2)| \leq 2$, although it is not strictly necessary.

For induction, assume we have proven $|f(X_k)| \leq k$, for some $k \in N$.

Now consider $f(X_{k+1})$. The set $X_{k+1}$ has one more element than the set $X_k$. Call this element $x_{k+1}$. (we could label all the elements, as others have mentioned, ie $x_1, x_2, ..., x_k$, so that we know the new one is $x_{k+1}$. I don't think we need the axiom of choice here!).

Let's add $f(x_{k+1})$ to set $f(X_k)$ to form the set $f(X_{k+1})$. (I don't think we need to 'prove' that is how we form $f(X_{k+1})$.)

If $f(x_{k+1}) \in f(X_k)$ , then $|f(X_{k+1})| = |f(X_k)|$ , ie you didn't add a unique element, so the size didn't change. And since $|f(X_k)| \leq k$ , by substitution of equals $|f(X_{k+1})| \leq k$ .

If $f(x_{k+1}) \notin f(X_k)$, then $|f(X_{k+1})| = |f(X_k)| + 1$ (we added one unique element). Recall our inductive assumption: $|f(X_k)| \leq k$ , adding $1$ to both sides of this gives $|f(X_k)| + 1 \leq k + 1$, substitution gives our desired $|f(X_{k+1})| \leq k + 1$ .

Or something like that.

$\endgroup$
1
  • $\begingroup$ P.S. I suspect that proof also works for countably infinite sets. $\endgroup$
    – tony
    Aug 7 '11 at 9:07
1
$\begingroup$

We use the notation $\bar n = \{1,2,3,\cdots,n\}$

We assume the following two propositions have been accepted by the OP:

Proposition 1: Let $X$ be a finite set with cardinality $n$.
Then if $m \gt n$ there exist no injective mapping of $\bar m$ into $X$.

Proposition 2: A set $X$ is finite if and only if there exists $K \in \mathbb N$
such that whenever there is an injection of $\bar m$ into $X$, $\;m \le K$.

Now we can prove proposition 3.

Proposition 3: If $f: X \to Y $ be a mapping of a finite set $X$ with cardinality $n$ into a set $Y$,
then the image $f(X)$ is finite with cardinality $m$ less than or equal to $n$.
If in addition $f$ is one-to-one, then $f(X)$ has cardinality equal to $n$.
Proof
Let $\gamma: \bar m \to f(X)$ be any injection. For each $k \in \bar m$, set $G_k = f^{-1}\left(\gamma(k)\right)$. Select one element from each of the sets, $x_k \in G_k$. The mapping $\tau: \bar m \to X$ defined by

$\tag 1 k \mapsto x_k$

must be an injection. By proposition 1, $m \le n$. By proposition 2, $f(X)$ is finite with cardinality no greater than $n$.

If $f$ is also injective, we have a bijective map from $\bar n$ to $f(X)$, so $f(X)$ also has cardinality $n$. $\blacksquare$

For completeness, we also prove the following:

Proposition 4: If $f: X \to Y $ be a mapping of a finite set $X$ with cardinality $n$ into a set $Y$
such that the cardinality of $f(X)$ is also equal to $n$, then $f$ is injective.
Proof
Let $\gamma: \bar n \to f(X)$ be any bijection. For each $k \in \bar n$, set $G_k = f^{-1}\left(\gamma(k)\right)$ so that the $G_k$ partition $X$. Let $m_k$ be the cardinality of $G_k$. Then

$\quad \sum_{k=1}^n m_k = n \text{ with } m_k \ge 1 \text{ for all } k$

But this forces every $m_k$ to be equal to $1$, which is equivalent to saying that $f$ is injective. $\blacksquare$

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.