Claim 1. We argue by induction on n, using Principle of Induction for the Natural Numbers, on the statement P(n): every injective map u:[n]→[n] is a bijection.
For P(1): by claim 2 of Basic Properties of Initial Segments of the Natural Numbers we have [1]={1}, so u(1)=1, and 1 is the one and only element of [1] whose image under u is 1. Thus u is a bijection by Bijection of Sets.
Assume P(n) and let u:[S(n)]→[S(n)] be injective. Put a=u(S(n)) and define θ:[S(n)]→[S(n)] by
θ(a)=S(n),θ(S(n))=a,θ(k)=k for k∈[S(n)] with k=a and k=S(n);
if a=S(n) this prescription is consistent and gives θ(k)=k for every k. In all cases θ(θ(k))=k for every k∈[S(n)], so θ is a two-sided inverse of itself and claim 3 of Inverse of a Bijection shows that θ is a bijection from [S(n)] onto [S(n)].
Let v:[S(n)]→[S(n)] be the map v(k)=θ(u(k)). It is injective: θ is injective by claim 1 of Injectivity, Composition, and Restriction of Bijections, so v(j)=v(k) gives u(j)=u(k) and hence j=k. Moreover v(S(n))=θ(a)=S(n).
Let k∈[n]. If v(k)=S(n) then v(k)=v(S(n)), so k=S(n) by injectivity, contradicting S(n)∈/[n] from claim 3 of Basic Properties of Initial Segments of the Natural Numbers. Since [S(n)]=[n]∪{S(n)} by that same claim, it follows that v(k)∈[n]. Hence the restriction v′ of v to [n] is a map from [n] to [n], and it is injective because v is. By P(n) it is a bijection.
We check that v is a bijection from [S(n)] onto [S(n)]. Let y∈[S(n)]. If y=S(n), then v(S(n))=y, while no k∈[n] satisfies v(k)=y, since v(k)∈[n] and S(n)∈/[n]; so S(n) is the unique preimage. If y∈[n], then there is exactly one k∈[n] with v′(k)=y, and v(S(n))=S(n)=y, again because S(n)∈/[n]; so that k is the unique preimage. Thus v is a bijection.
Finally, θ(v(k))=θ(θ(u(k)))=u(k) for every k, so u is the composition of the bijections v and θ and is therefore a bijection by claim 2 of Injectivity, Composition, and Restriction of Bijections. This proves P(S(n)). That a bijection from [n] to [n] is a permutation of [n] is Permutation of the Set {1,…,r}.
Claim 2. Let X be nonempty and finite, so that X has n elements for some n∈N, and let φ:[n]→X be a bijection, as provided by Number of Elements of a Set. By claims 1 and 2 of Inverse of a Bijection the inverse φ−1:X→[n] exists and is a bijection. Let w:[n]→[n] be the map w(k)=φ−1(u(φ(k))). If w(j)=w(k), then applying φ and using φ∘φ−1=id gives u(φ(j))=u(φ(k)), hence φ(j)=φ(k) since u is injective, hence j=k since φ is injective by claim 1 of Injectivity, Composition, and Restriction of Bijections. So w is injective, and claim 1 shows that w is a bijection.
For every x∈X we have φ(w(φ−1(x)))=u(x), using φ∘φ−1=id twice. Thus u is the composition of the three bijections φ−1, w and φ, and two applications of claim 2 of Injectivity, Composition, and Restriction of Bijections show that u is a bijection from X onto X.