If you're like me, and you didn't immediately understand why the number of inhabitants for "a -> b" is "a^b", and needed help for the answer[1], then here's my solution to the author's question ("Why are there eight inhabitants of Tri -> Bool, but nine of Bool -> Tri? It helps to write out each possible function."). The nine inhabitants of Bool -> Tri: https://gist.github.com/acbart/5d3fdfd8d363af26a59c The eight inh…
9 functions from 2 to 3 - How many 2 digit numbers in base 3?
Each row represents a function from {True,False} to {A,B,C}.
False True
----- -----
A A Function 1 f₁(False)=A f₁(True)=A
A B Function 2 f₂(False)=A f₂(True)=B
A C Function 3 etc.
B A Function 4
B B Function 5
B C Function 6
C A Function 7
C B Function 8
C C Function 9
8 functions from 3 to 2 - How many 3 digit numbers in base 2? A B C
----- ----- -----
False False False Function 1 f₁(A)=False f₁(B)=False f₁(C)=False
False False True Function 2 f₂(A)=False f₂(B)=False f₂(C)=True
False True False Function 3 etc.
False True True Function 4
True False False Function 5
True False True Function 6
True True False Function 7
True True True Function 8