Proof (injectivity of ideal of affine algebraic sets)

If $I(X) = I(Y)$, applying $Z$ gives $X = Z(I(X)) = Z(I(Y)) = Y$.