Below is my restatement of the theorem 2.15 given in the book by K.D.Joshi, titled 'Foundations of Discrete Math.', on page#80; followed by issues in it.
Let $X$ be a finite set, & $P(X)$ is power set. Then $|P(X)| = 2^{|X|}$.
Let $\mathbb{Z_2}$ be the set $\{0,1\}$.
Let $\mathbb{F}$ be the set of all functions from $\mathbb{X}$ to $\mathbb{Z_2}$, so $|\mathbb{F}| = 2^{|X|}$.
The co-domain of function $\mathbb{\theta}$ is $\mathbb{F}$, which itself consists of $2^{|X|}$ functions from $\mathbb{X}$ to $\mathbb{Z_2}$; while the domain of $\mathbb{\theta}$ is $P(X)$.
The proof would be completed if could establish a bijection betn. $P(X)$ & $\mathbb{F}$.
For this, define $\mathbb{\theta}: P(X) \rightarrow \mathbb{F}$ as below.
If $A$ is a subset of $X$, we let $f_A: X\rightarrow \mathbb{Z_2}$ be the characteristic function of $A$, defined by $f_A=1$ if $x \in A$ & $f_A=0$ if $x \notin A$.
We define $\mathbb{\theta(A)}=f_A$.
Below would take an example to elaborate the above:
Let, $X=\{0,1,2,3\}$, with $P(X) = \{ \emptyset, \{0\}, \{1\}, \{2\}, \{3\}, \{0,1\}, \{0,2\},\{0,3\}, \{1,2\}, \{1,3\}, \{2,3\}, \{0,1,2\}, \{0,1,3\}, \{0,2,3\}, \{1,2,3\}, \{0,1,2,3\} \}.$
So, $\, |P(X)| = 2^{4}=16.$
The set $\mathbb{Z_2}$ is fixed, & the set $F$ is the set of all functions from $X \to \mathbb{Z_2}$ given by $16$ combinations listed below, as ordered pairs:
$1. \{(0, 0), (1, 0), (2, 0), (3, 0) \}$,
$2. \{(0, 0), (1, 0), (2, 0), (3, 1) \}$,
$3. \{(0, 0), (1, 0), (2, 1), (3, 0) \}$,
$4. \{(0, 0), (1, 0), (2, 1), (3, 1) \}$,
$\,\,\,\,\vdots$
$15. \{(0, 1), (1, 1), (2, 1), (3, 0) \}$,
$16. \{(0, 1), (1, 1), (2, 1), (3, 1) \}$,
Each of the $16$ subsets, has $4$ ordered pairs, that forms the set $F$.
The characteristic function $f_A: X\rightarrow \mathbb{Z_2}$ is used to identify if a subset $x$ of the domain is further a subset of $A$.
Explaining the above equivalence between $\mathbb{\theta(A)}=f_A$:
Taking a typical element of the domain of $\theta$, let the subset $A$, of the domain, then $\theta(A): X \to \mathbb{Z_2}$. Let it be defined as the char. fn. of $A$. Thus $[\theta(A)](x) = 1$ or $0$, according as $x \in A$, or $x \notin A$.
To show that $\theta$ is a bijection, need show two parts :-
(i) $\theta$ is a one-to-one function,
(ii) $\theta$ is an onto function,
(i) Need show that if $\theta(A) = \theta(B)$, then $A =B$.
Let $x \in A$, then $\theta(A)(x)=1$. This implies $\theta(B)(x)=1$, which further implies that $x \in B$. So, $A\subset B$. Similarly, $B\subset A$, & so $A=B$.
(ii) Let $f$ be a function from $X\to \mathbb{Z_2}$, i.e. $f \in \mathbb{Z_2^X}$. So, need find some point in domain (let, $A \in P(X))$ that maps to $f$ in co-domain, i.e. $\theta(A)(x)=f$; i.e. $f$ equals the char. fn. of $A$. So, the only choice is $A = f^{-1}(\{1\})$, with $A\in P(X)$ & so $f(x) = 1$
Q.1. How can the co-domain be a set of functions, rather than a set of values?
My understanding is that co-domain is a set of values mapped from domain.
Q.2. It is known to me that for a function, multiple values cannot be mapped from domain to co-domain; but it is unclear if same element of co-domain is only mappable by a single element in a function.
So, am not clear why such combinations as $\{\{0, 0\}, \{1, 0\} \}$ are not allowed in the above specification of members of $F$?
Q.3. What is the logic for (the proof being based on) finding equivalence(bijection) between the domain($P(X)$) & the co-domain ($F$)?
I mean that can I be given any simpler example to understand the equivalence(bijection) between domain & co-domain, in any other proof.
Q.4. In (i) above how it is concluded by : $(x \in A)\implies (x \in B)$, that $A\subset B$?
Q.5. In (ii) above, how is it made sure that there would a point with value $1$ available after mapping from domain to co-domain . Is it made possible by numbering the set of all functions in the co-domain (i.e., $F$)?
*Update : - * On page #89 there is given exercise #2.14, that states an alternate way to prove theorem. It states :
Let the $n$ distinct elements of finite set $X$ be $x_1, x_2,\cdots, x_n$. For each subset $A$ of $X$, we define a binary sequence $a_1, a_2,\cdots, a_n$ in which $a_i =1$ or $0$ according as $x_i\in A$ or $x_i\notin A$. This gives a bijection between $P(X)$ & the set of all binary sequences of length $n$. Since there are $2^n$ such sequences, $|P(X)| =2^n$.
Is this proof significantly different from the proof given the text?
For each element $x_i$ of finite set $X$, there is assigned a value $a_i$ & for each subset $A$ of $X$, define a binary sequence that lists which element is present in the given subset.
So, now there are $2^n$ subsets of $X$ listed as before. That makes the proof same as before.