Let $k$ be a field, and $R$ a $k$algebra. Suppose that $R_{\mathfrak{p}}$ is a finitely generated $k$algebra for all prime ideals $\mathfrak{p}$ of $R$. Does this imply that $R$ is also a finitely generated $k$algebra? (I think this is false, but couldn't find a counterexample.)
Take the 2minute tour
×
MathOverflow is a question and answer site for professional mathematicians. It's 100% free, no registration required.

Take any compact Hausdorff space $X$ and let $R$ consist of the locally constant functions $X\to k$. Then, $R$ is a $k$algebra. Its prime ideals are all of the form $\mathfrak{p}=\left\{f\in R\colon f(x)=0\right\}$ for $x\in R$, so $R_{\mathfrak{p}}\cong k$ is trivially finitely generated as a $k$algebra. If $X$ has infinitely many connected components then $R$ is not finitely generated as a $k$algebra. So, taking $X$ to be the onepoint compactification $\mathbb{\bar N}=\mathbb{N}\cup\{\infty\}$ of $\mathbb{N}$ gives the required counterexample. Equivalently, $$ R=\left\{x\in\prod\_{n=1}^\infty k\colon x_n{\rm\ is\ eventually\ constant}\right\}. $$ 

