Remark. Proving a function is a bijection [00AI]

Normally, to prove a function is a bijection, we can show it is both 1-1 and onto. Alternatively, it turns out we can show it has an inverse. However, we must be careful: to prove g is the inverse of f, we have to prove both g(f(a)) = a for all a in the domain of f, and f(g(b)) = b for all b in the codomain. (Exercise: prove that if there is a function g such that g(f(a)) = a for all a in the domain of f, then f is injective; likewise, if there is g such that f(g(b)) = b for all b in the codomain, then f is surjective.)