There is this exercise in the book on commutative algebra I'm reading:
Let $K$ be a field and $A$ an integral domain which is a finitely generated $K$-algebra. Let $\mathfrak a \subset A$ be an ideal and $$\mathrm{ht}(\mathfrak a):=\min_{\mathfrak p \in V(\mathfrak a)}\mathrm{ht}(\mathfrak p)$$ be the height of $\mathfrak a$. Show that $$\dim(A/\mathfrak a) + \mathrm{ht}(\mathfrak a) = \dim(A).$$ I know this is true for prime ideals, but how can I show the more general case?