Skip to main content
1 of 4

Let $f:X\to $ Spec $\mathbb Z$ be a morphism of finite type. As $f$ is generically flat, there is a finite set of primes $S$ such that $X\to $ Spec $\mathbb Z$ is flat over Spec $\mathbb Z - S$. (This is easy to show.)

If $f$ is generically smooth, then there is a finite set of primes $S$ such that $X\to $ Spec $\mathbb Z$ is smooth over Spec $\mathbb Z - S$.

You can't weaken finite type to locally of finite type here.

To prove this, you can proceed in many ways. One way is to use the sheaf of differentials. That sheaf is locally free if and only if the morphism is smooth.