Surjective function · Exercise-SURJECTIVE-FUNCTION-003

Step-by-step solved exercise: Relations and functions

What is the logical form of the definition of a surjective function?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. The definition requires every element of the codomain to be reached, so it starts with a universal quantifier over \(\displaystyle B\).

    \[\displaystyle \forall b\in B\]
  2. For each \(\displaystyle b\), there must exist some \(\displaystyle a\) in the domain with \(\displaystyle f(a)=b\).

    \[\displaystyle \exists a\in A\;(f(a)=b)\]
  3. Putting both parts together gives the full logical form of surjectivity.

    \[\displaystyle \forall b\in B\;\exists a\in A\;(f(a)=b)\]
  4. The order matters: \(\displaystyle a\) may depend on \(\displaystyle b\), but not the other way around.

    Comment: Swapping the quantifiers changes the meaning.

Answer

\(\displaystyle \forall b\in B\,\exists a\in A\,(f(a)=b)\)

🎯 Build my path to this exercise