Equivalence of Definitions of Injection/Definition 1 iff Definition 1 a

Proof
Let $f: S \to T$ be an injection by definition 1.

Thus:
 * $\forall x_1, x_2 \in S: \map f {x_1} = \map f {x_2} \implies x_1 = x_2$

Let $x_1 \ne x_2$.

that:


 * $\map f {x_1} = \map f {x_2}$

Then by definition 1:
 * $x_1 = x_2$

This contradicts the assumption that $x_1 \ne x_2$.

Thus by Proof by Contradiction:
 * $\forall x_1, x_2 \in S: x_1 \ne x_2 \implies \map f {x_1} \ne \map f {x_2}$

Thus $f$ is an injection by definition 1 a.

Let $f: S \to T$ be an injection by definition 1 a.

Thus:
 * $\forall x_1, x_2 \in S: x_1 \ne x_2 \implies \map f {x_1} \ne \map f {x_2}$

Let $\map f {x_1} = \map f {x_2}$.

that:


 * $x_1 \ne x_2$

Then by definition 1 a:
 * $\map f {x_1} \ne \map f {x_2}$

This contradicts the assumption that $\map f {x_1} = \map f {x_2}$.

Thus by Proof by Contradiction:
 * $\forall x_1, x_2 \in S: \map f {x_1} = \map f {x_2} \implies x_1 = x_2$

Thus $f$ is an injection by definition 1.