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?
Surjective function · Exercise-SURJECTIVE-FUNCTION-003
What is the logical form of the definition of a surjective function?
The definition requires every element of the codomain to be reached, so it starts with a universal quantifier over \(\displaystyle B\).
For each \(\displaystyle b\), there must exist some \(\displaystyle a\) in the domain with \(\displaystyle f(a)=b\).
Putting both parts together gives the full logical form of surjectivity.
The order matters: \(\displaystyle a\) may depend on \(\displaystyle b\), but not the other way around.
Comment: Swapping the quantifiers changes the meaning.
\(\displaystyle \forall b\in B\,\exists a\in A\,(f(a)=b)\)