Certainly f(B)⊆B. If y∈B, then y∈f(X) and has a unique predecessor x because f is injective. For every n, writing y=fn+1(z) and using uniqueness gives x=fn(z); hence x∈B and y∈f(B). Thus f(B)=B.
If f(a)∈B, its unique predecessor must lie in B, so a∈B; consequently f(A)⊆A. If a point belonged to every fn(A) for n≥1, it would belong to B and also to f(A)⊆A, which is impossible. Therefore