Fix the set X and the binary operation β. For nβN let P(n) be the assertion: for every map a:[n]βX there is exactly one map Ο:[n]βX satisfying the two displayed conditions of the statement for that n. Let A be the set of all nβN for which P(n) holds. We show A=N by Principle of Induction for the Natural Numbers.
We use throughout the following facts about initial segments and the order on N: 1β[n] for every n, [1]={1}, and [S(n)]=[n]βͺ{S(n)} with S(n)β/[n], by claims 1, 2 and 3 of Basic Properties of Initial Segments of the Natural Numbers; and m<S(m) together with the transitivity of the order, by claims 5 and 1 of Properties of the Order on the Natural Numbers. In particular, if S(m)β[n], that is S(m)β€n, then m<S(m)β€n gives mβ€n, so mβ[n].
Base case. Let a:[1]βX. Since [1]={1}, a map Ο:[1]βX is determined by the single value Ο(1), and the first condition says exactly that this value is a1β. The second condition is vacuous: if S(m)β[1]={1} then S(m)=1, contradicting the requirement in the definition of the natural numbers that 1 is not a successor. Hence there is exactly one such Ο, and 1βA.
Induction step. Suppose nβA, and let a:[S(n)]βX be given. Write aβ² for the restriction of a to [n], which is defined because [n]β[S(n)]. By P(n) there is exactly one map Οβ²:[n]βX with Οβ²(1)=a1β and Οβ²(S(m))=Οβ²(m)βaS(m)β for every m with S(m)β[n].
Existence. Since [S(n)]=[n]βͺ{S(n)} and S(n)β/[n], there is a well-defined map Ο:[S(n)]βX given by
Ο(k)=Οβ²(k)(kβ[n]),Ο(S(n))=Οβ²(n)βaS(n)β,
where Οβ²(n) is defined because nβ[n]. As 1β[n] we get Ο(1)=Οβ²(1)=a1β. Now let mβN with S(m)β[S(n)]. Then either S(m)β[n] or S(m)=S(n). In the first case mβ[n] as noted above, so
Ο(S(m))=Οβ²(S(m))=Οβ²(m)βaS(m)β=Ο(m)βaS(m)β.
In the second case m=n by the injectivity of S, and
Ο(S(n))=Οβ²(n)βaS(n)β=Ο(n)βaS(n)β.
Thus Ο satisfies both conditions for S(n).
Uniqueness. Let Ο:[S(n)]βX also satisfy both conditions for S(n), and let Οβ² be its restriction to [n]. Then Οβ²(1)=Ο(1)=a1β. If m satisfies S(m)β[n], then also S(m)β[S(n)] and mβ[n], so
Οβ²(S(m))=Ο(S(m))=Ο(m)βaS(m)β=Οβ²(m)βaS(m)β.
Hence Οβ² satisfies the two conditions for n, and the uniqueness part of P(n) gives Οβ²=Οβ². Finally S(n)β[S(n)] and
Ο(S(n))=Ο(n)βaS(n)β=Οβ²(n)βaS(n)β=Οβ²(n)βaS(n)β=Ο(S(n)).
Since [S(n)]=[n]βͺ{S(n)}, we conclude Ο=Ο. Therefore P(S(n)) holds and S(n)βA.
By the principle of induction, A=N, which is the assertion of the lemma.