PROOF 119
Prove.
An inverse function requires injectivity
On sets and correspondences.
A way to read this proof
First separate what is assumed from what is to be proved. At each step, ask which definition or earlier result permits the move. If it is unclear, return to that premise rather than skipping to the conclusion.
Definition D1
When each element x of X corresponds to exactly one element of Y, the correspondence is called a function f: X → Y and that one element is written f(x).
Proof.
∎
Definition D2
f is injective when, for all a, b ∈ X, f(a) = f(b) implies a = b.
Proof.
∎
Definition D3
The correspondence obtained by reversing the ordered pairs of f: X → Y is called f⁻. To y ∈ Y, f⁻ assigns the x ∈ X with f(x) = y.
Proof.
∎
Definition D4
f is surjective when for every y ∈ Y there is an x ∈ X with f(x) = y.
Proof.
∎
Lemma L1
If f is not injective, then f⁻ is not a function.
Proof.
∎
Lemma L2
If f is injective, then to each y ∈ Y, f⁻ assigns at most one element.
Proof.
∎
Theorem T1
f⁻ is a function from Y to X when, and only when, f is injective and surjective.
Proof.
∎
Corollary C
f(x) = x² has no inverse function as ℝ → ℝ. Restricting both domain and codomain to [0, ∞), it has one.
Proof.
∎
Remark
Can A1 be removed from this proof?
Separate reversing the ordered pairs from calling the reversal a function. Check which line does which.