I'm struggling to understand the use of "if" in different context in mathematics.
Firstly, when we use "if" in a statement, like "if a, then b". It implies that if b, then not necessarily a.
However, in the notes of a professor, he wrote that the definition of an injective function as such:
Let F : A $\rightarrow$ B,
F is injective if F($a_1$) $=$ F($a_2$) only if $a_1 = a_2$
In a proof later on, he uses if F($a_1$) $=$ F($a_2$) when $a_1 \neq a_2$ to show F isn't injective. Does this mean that in the context of a definition, "if" is the same as "if and only if"?