Magma includes functions for working with maps between affine algebras.
Return the kernel of the homomorphism phi of affine algebras.