0

The problem goes as follows

Let $f:X\to Y$ be a function. Show that $f$ is injective if, and only if, for all set $Z$ and for all function $g:Z\to X$ and $h:Z\to X$, $f\circ g = f\circ h \implies g = h$.

I've managed to do the first half of the problem, but I can't figure out the rest. Here's what I've done:

We will first show that $f$ is injective implies $f\circ g = f\circ h \implies g = h$. $f\circ g = f\circ h \implies f\circ g (z) = f\circ h (z)\quad \forall z \in Z \iff f(g(z)) = f(h(z))$, but since $f$ is injective we have $g(z) = h(z)\implies g = h$.

So I proved it in one direction, but I can't manage to prove it in the other direction

1 Answers1

0

You can show what goes wrong if $f$ is not injective. If $f$ doesn't "distinguish" what happens to two inputs $a,b$ in its domain (i.e. $f(a)=f(b)$), then $f$ won't be able to tell the difference between input functions with $g(c)=a$ and $h(c)=b$. Despite $g$ and $h$ sending a given point $c$ to different places, $f$ handles both inputs in the exact same manner, and $f$ can't distinguish between $g$ and $h$.

Injective functions distinguish between what happens at each point in their domains, and thus they can detect any minute change that happens to input functions under composition. This is the key idea that your problem is aiming to express!

blark
  • 647