In this link below, the asker provided answers to his question for critique. I'm confused about the answer to the question "(d)". Proof of properties of injective and surjective functions.
What I already know:
Now, since we want to prove that $g$ is injective, I assume that we want to prove if $g(a)=g(b) $, then $a =b$. I also know that we can prove the contrapositive. That is if $a\neq b$ then $g(a) \neq g(b)$. The asker starts by assuming $a\neq b$. So I guess they are going for the contrapositive. But what I don't get is the sentence after. he wrote:
if $(f\circ g)(a)\neq(f\circ g)(b)$, then $f(g(a))\neq f(g(b))$. Hence $g(a) \neq g(b)$.
From that 2 sentences, I think it is the same as saying $(f\circ g)(a)\neq(f\circ g)(b) \implies g(a) \neq g(b)$
but from the hypothesis , $f\circ g$ is injective. Which should mean $(f\circ g)(a) = (f\circ g)(b) \implies g(a) = g(b)$. But the asker use $(f\circ g)(a)\neq(f\circ g)(b)$ to conclude $g(a) \neq g(b)$. Isn't that like using $\neg p\implies \neg q$ to prove $p\implies q$. This is denying the hypothesis.
How did he conclude $g(a) \neq g(b)$. and what does $a\neq b$ have anything to do with "if $(f\circ g)(a)\neq(f\circ g)(b)$, then $f(g(a))\neq f(g(b))$" to begin with.
I am very inexperience, and I don't believe that the asker was wrong, so that is why I wrote out my thought process. Can someone point out what went wrong in my thought process?
OKay, now I understand that $(f\circ g)(a)\neq(f\circ g)(b) \implies g(a) \neq g(b)$ is valid. But how does that have anything to do with proving that g is an injective function? Why does $ a /neq b $ has anything to do with that statement in the first place?
– Chhangsreng P Jan 23 '23 at 14:11