Claim 1. Let f:XβY be a bijection. By Bijection of Sets, for every yβY there is exactly one xβX with f(x)=y; let g(y) denote that element. This defines a map g:YβX with f(g(y))=y for every yβY, so fβg=idYβ. For xβX, the element x satisfies f(x)=f(x), and g(f(x)) is by construction the unique element of X whose image under f is f(x); hence g(f(x))=x, so gβf=idXβ.
For uniqueness, let h:YβX also satisfy hβf=idXβ and fβh=idYβ. For every yβY,
h(y)=g(f(h(y)))=g(y),
using gβf=idXβ in the first equality and fβh=idYβ in the second. Hence h=g.
Claim 3. Suppose f:XβY and g:YβX satisfy gβf=idXβ and fβg=idYβ. Let yβY. Then f(g(y))=y, so g(y) is an element of X whose image under f is y. If xβX also satisfies f(x)=y, then
x=g(f(x))=g(y).
So there is exactly one such element, and f is a bijection by Bijection of Sets. Exchanging the roles of f and g, and of X and Y, shows in the same way that g is a bijection. Since g satisfies the two identities of claim 1, the uniqueness in claim 1 gives g=fβ1.
Claim 2. Let f:XβY be a bijection. By claim 1 the map fβ1 satisfies fβ1βf=idXβ and fβfβ1=idYβ. Applying claim 3 with fβ1 in the role of f and f in the role of g shows that fβ1 is a bijection from Y to X and that f=(fβ1)β1.