User blog comment:Vel!/1+w/@comment-5982810-20141011212622/@comment-2033667-20141011213119

The axiom schema of replacement implies that if a and b are in the domain of f and a = b, then f(a) = f(b). Thus we can replace a with b if a = b.