In the proof of affine dimension theorem (you can see the proof I am following here), Hartshorne assume that $A(Y)/\mathfrak{p}$ is the coordinate ring of the irreducible component $W$.
Why is this true?
In the proof of affine dimension theorem (you can see the proof I am following here), Hartshorne assume that $A(Y)/\mathfrak{p}$ is the coordinate ring of the irreducible component $W$.
Why is this true?
Ok let me try to explain. We have that some variety $W$$\hookrightarrow$$\mathbb A^n_k$ is irreducible by assumption. So to answer your question, we really just have to prove that $W$=$Z(p)$ is irreducible iff $p$ is a prime ideal in $k[x_1,...,x_n]$.
Assume that $W$=$Z(p)$=$X_1 \cup X_2$=$Z(p_1) \cup Z(p_2)$. We have by proposition $1.1.1$ in Hartshorne, $W$=$Z(p_1p_2)$, so we have applying ideals on both sides that $p$=$p_1p_2$, a contradiction. (Prime ideals are irreducible).
Armed with this result, we can now apply the coordinate ring functor $A$ and obtain our result. In other words, $A(W)$=$A(\mathbb A^n_k)$/$I(W)$=$A(\mathbb A^n_k)$/$p$.