Let $(\mathfrak a_i)$ be an infinite family of ideals in commutative ring $R$. Is $\bigcap\limits_{i=1}^\infty \mathfrak a_i$ not defined?
I am trying to understand Zariski topology. Here, $V(\bigcap_i \mathfrak a_i)= \bigcup\limits_{i} V(\mathfrak a_i)$.
If $\bigcap\limits_{i=1}^\infty \mathfrak a_i$ is defined, which I think it should be, then we would have an infinite union of sets of the form $V(X)$, all of which are closed sets. This is a contradiction as the infinite union of closed sets need not be closed.
Take $\mathfrak a_i=p_i\mathbb Z$, where $p_i$ is the $i$th prime number. Then $\bigcap_{i=1}^\infty \mathfrak a_i=(0)$, so $V(\bigcap_{i=1}^\infty \mathfrak a_i)=V((0))=\operatorname{Spec}\mathbb Z$ while $\bigcup_{i=1}^\infty V(\mathfrak a_i)=\bigcup_{i=1}^\infty p_i\mathbb Z$.
However the equality holds true for finitely many ideals.