I am reading Gathmann's notes on algebraic geometry and am doubting his proof that "every smooth cubic surface in $\mathbb{P}^{3}_{\mathbb{C}}$ has 27 lines."
We work in the manifold topology. Let $U\subset \mathbb{P}^{19}$ be the parameter space of smooth cubic surfaces in $\mathbb{P}^{3}$. We have shown that the line counting function on $U$ is locally constant and wish to show that $U$ is connected. Hence Gathmann argues:
We know that $U$ is the complement of a proper Zariski closed subset in $\mathbb{P}^{19}$. But as such a closed subset has complex codimension at least 1 and hence real codimension at least 2, taking this subset away from the smooth and connected space $\mathbb{P}^{19}$ leaves us again with a connected space.
My doubt: $\mathbb{P}^{19}\setminus U$ is a projective variety that may have singular points. So in what sense do we talk about codimensions given that $\mathbb{P}^{19}\setminus U$ is not necessarily a smooth submanifold? How can Gathmann's argument be made precise?
Assuming it is a submanifold, his argument holds by "if $N\subset M$ is a codimension 2 submanifold of a connected manifold, then $M\setminus N$ is connected." But I can't imagine how to show it's a submanifold. It's also possible that he's talking about algebraic codimension. But then we'd be leaving the realm of manifolds, so the linked lemma can't be used.
I suspect this is a problem of complex geometry, of which I know nothing. Any sources or explanations are appreciated!