I am trying to understand the following statement.
Let $A$ be a noetherian commutative ring and $\mathfrak a\subset A$ is an ideal. Suppose that the ring $A/\mathfrak a$ is flat over $A$, then $V(\mathfrak a)$ is open in $\operatorname{Spec} (A)$. How to prove this (just using the standard definition of flatness)?
In general, if $A$ is any ring (not necessarily Noetherian), then $A/I$ is flat over $A$ iff $\text{Supp}(I) \cap \text{Supp}(A/I) = \emptyset$ iff $\text{Spec}(A) = \text{Supp}(I) \sqcup \text{Supp}(A/I)$. This follows from the fact that a flat local map is faithfully flat, hence injective, so if $p \in \text{Supp}(A/I) = V(I)$, then $A_p \to A_p/I_p$ is injective, so $I_p = 0$. Thus, $V(I)$ is open iff $\text{Supp}(I)$ is a closed set, which happens e.g. if $I$ is finitely generated.