I have showed that every open/closed immersion of schemes is a monomorphism of schemes, but I know that the converse is not true, i.e., not every monomorphism of schemes is an open/closed immersion. However, I have not been able to find an counterexample. Does anyone know a monomorphism of schemes that is not a composition of open or closed immersions?
Thanks in advance.
As a composition of two monomorphisms is a monomorphism, you can take the composition of an open and a closed immersion. For example $$\mathbb A^1 \setminus \{0\} \hookrightarrow \mathbb A^2, x \mapsto (x,0).$$