I need some assistance with the following problem:
For $n \in \mathbb{N}$, let $A = \{a^1, a^2,a^3,...,a^n \}$ be a set and let $F$ be the set of all functions $f : A \rightarrow \{0,1 \}$ from $A$ to $\{0, 1\}$. What is the size of $F$? Now, for $P(A)$, the power set of $A$, consider the function $g: F \rightarrow P(A)$, defined as $g(f) = \{a \in A : f(a) = 1\}$. Is $g$ injective? Is $g$ surjective?
I just started to learn Functions and Relations in Mathematical Proof, and I think I still have a little difficulty grasping the core concept of many things in this chapter, so my assumptions maybe all wrong. My questions regarding this problem are the following:
1) "What is the size of $F$?" is it asking how many possible functions there are in $f : A \rightarrow \{0,1 \}$? In this case, I believe it should be $2^n$, since there are $2$ choices $\{0,1\}$ for each function and there are $n$ elements in set $A$.
2)$\mathbf{g(f) = \{a \in A : f(a) = 1\}}$. does $g(f)$ in this case means the composition of $f$ with $g: g \circ f$? I don't really see the point of it in this problem since we are asked to find the in/surjective of "$g$", not $g(f)$?
3) "is g injective?" I have two parts to this question:
a) according to the pigeonhold principle, it's not injective if $|F|>|P(A)|$, in this case, $|F| = |P(A)|$. I remember my prof. vaguely said that if $|A| = |B|$ where $A$ and $B$ are sets then $f : A \rightarrow B$ is bijective. But I have doubts about this, even if the cardinalities of two sets are equal, it's still possible that the function is not one-to-one, eg) $A = \{1,2,3\}, B = \{a,b,c\}, f: A \rightarrow B = \{(1,a),(2,b),(3,a)\}.$ This makes it neither injective nor surjective, so it's definitely not bijective. So I believe that the condition for bijective given that $|A| = |B|$ is that $f: A \rightarrow B$ must be injective in the first place. Is this correct?
b) if my assumption for the above is correct, then how do we determine if "g" is injective?
Thanks