# Quasiaffine scheme/Codimension one/Introduction/Section

One can show that for an open affine subset the closed complement must be of pure codimension one ( must be the complement of the support of an effective divisor). In a regular or (locally )- factorial domain the complement of every effective divisor is affine, since the divisor can be described (at least locally geometrically) by one equation. But it is easy to give examples to show that this is not true for normal three-dimensional domains. The following example is a standard example for this phenomenon and it is in fact given by a forcing algebra.

Let be a field and consider the ring

The ideal is a prime ideal in of height one. Hence the open subset is the complement of an irreducible hypersurface. However, is not affine. For this we consider the closed subscheme

and . If were affine, then also the closed subscheme would be affine, but this is not true, since the complement of the punctured plane has codimension .