1

Let $f(x,y)\colon\{0,1\}^2\to\{0,1\}$ be a Boolean function. Answer the following "warm-up" questions:

  1. Prove or dispute: The function $f$ can be one-to-one.
  2. Formulate a condition that function $f(x,y)$ must hold in order to be considered as "associative".

my attempts:

  1. disproving: domain is bigger than the range.
  2. is it simply the definition of "associative".
Asaf Karagila
  • 393,674

1 Answers1

1

For part a) you are right, the pigeonhole principle guaruntees that it cannot be injective, since there are 4 elements of $\{0,1\}^2$, but only 2 in $\{0,1\}$ (so domain is bigger than codomain).

For part b) I'm guessing they want you to be a bit more explicit. A binary operation $\cdot$ on a set $X$ (i.e. a function from $X\times X\to X$) is typically said to be associative if for all $x,y,z\in X$:

$$(x\cdot y)\cdot z= x\cdot(y\cdot z)$$

If we want to write this in functional notation as in your example, the condition becomes that for all $x,y,z\in\{0,1\}$ we must have that

$$f(f(x,y),z)=f(x,f(y,z)).$$