Given any set $A$, and any function $f$ whose domain is $A$, show that the set {${x \in A \ | \ x \notin f(x)}$} is not in the range of $f$ (i.e. there is no $a \in A$ such that $f(a)$ = {${x ∈ A \ | \ x \notin f(x)}$}).
Any help would be greatly appreciated.
Hint: The question is about functions $f \colon A \to \mathcal{P}(A)$. That is, functions with domain $A$ such that, for every $t\in A$, the output $f(t)$ is a subset of $A$. [For example, $f \colon \mathbb{N} \to \mathcal{P}(\mathbb{N})$, $f(n) = $ set of divisors of $n$. In this case $f(4) = \{1, 2, 4\}$.]
Let $B = \{x \in A \mid x\not\in f(x)\} \subset A$, hence $B \in \mathcal{P}(A)$. Suppose that $B$ were in the image of $f$ and let $a\in A$ such that $f(a) = B$. Show that both $a\in B$ and $a\not\in B$ lead to contradictions.
Added: This is a formal presentation of the Barber paradox (https://en.wikipedia.org/wiki/Barber_paradox).
More precisely, suppose we are talking about people on an island (close system). For every person $x$, let $f(x)$ be the set of people shaved by $x$ (may include $x$ or not). Then $B$ is the set of people who do not shave themselves. Is there any person who shaves exactly those people who do not shave themselves? Does that person shave itself?