How is this a function?
$f(x)$ is the set of all children of $x$
On my slides it says that:
Though this f is a function, it is NOT a $H \to H$ function, because each person is associated with a set of people rather than one person. (This $f$ is a $H \to P(H)$ function.)
I have some questions
I thought a function associates each element from the domain to exactly one element in the codomain but I have never seen this kind of function where each element in the domain is mapped to a set of elements. How is this a function? How would that work? If someone could show me visually through a diagram that would be fantastic
Some people don't have children, so that means elements in the domain wouldn't be mapped, so how would this be a function?
How is the power set of $H$ going to be the set of children? Why are we using the domain elements to create the codomain (since we're taking the power set of $H$...our domain)?
Thanks in advance