Prove that, if $f$ is a function of one real variable such that for every real number $y$, there is a unique real number $x$ such that $f(x) = y$, then the function $f$ is one-to-one.
Proposition: If $f$ is a function of one real variable such that for every real number $y$, there is a unique real number $x$ such that $f(x) = y$, then the function $f$ is one-to-one.
A (hypothesis): $f$ is a function of one real variable such that for every real number $y$, there is a unique real number $x$ such that $f(x) = y$.
B (conclusion): The function $f$ is one-to-one.
My Work
B1: For all real number $x$ and $y$ with $x \not = y$, $f(x) \not = f(y)$.
A1: Let $x, y \in \mathbb{R}$ and $x \not = y$.
A2: $f(x) = y$
$f(y) = x$
A3: $x \not = y$
$\therefore f(x) \not = f(y)$
Now I prove uniqueness:
A4: Let $x$ = $t$
A5: $f(t) = y$
A6: $f(x) = y = f(t)$
$\implies f(x) = f(t)$
$Q.E.D.$
I would greatly appreciate it if people could please take the time to review my proof for correctness. If there are any errors, please explain why and what the correct procedure is.