show/hide this revision's text 4 edited body

Rex, about your scheme-theoretic image problem, I don't know how "contrived" the following example is (I am afraid it is not particularly related to number theory).
Notations: $R$ is a discrete valuation ring, $t$ a uniformizer, $R_n:=R/(t^{n+1})$ ($n\in\mathbb{N}$), $X_n=\mathrm{Spec}\,R_n$, $A=\prod_n R_n$.
Take $X:=\coprod_n X_n$ and $Y:=\mathrm{Spec}\,A$. There is a natural open immersion $f:X\to Y$ since each $X_n$ embeds in $Y$ as an open and closed subscheme.
The scheme-theoretic image of $f$ is $Y$: since $Y$ is affine, it just means that each $x\in A$ vanishing on each $X_n$ is zero, which is obvious. (In fact, $A=\Gamma(X,\mathcal{O}_X)$).
But $Y$ X$ is not topologically dense in $X$: Y$: indeed, consider $x=(t,t,\dots)\in A$. Then $x$ is locally nilpotent on $X$ but not nilpotent on $Y$, hence the open set $D(x)\subset Y$ is nonempty and disjoint from $X$.

show/hide this revision's text 3 added 1 characters in body

Rex, about your scheme-theoretic image problem, I don't know how "contrived" the following example is (I am afraid it is not particularly related to number theory).
Notations: $R$ is a discrete valuation ring, $t$ a uniformizer, $R_n:=R/(t^{n+1})$ ($n\in\mathbb{N}$), $X_n=\mathrm{Spec}\,R_n$, $A=\prod_n R_n$.
Take $X:=\coprod_n X_n$ and $Y:=\mathrm{Spec}\,A$. There is a natural open immersion $f:X\to Y$ since each $X_n$ embeds in $Y$ as an open and closed subscheme.
The scheme-theoretic image of $f$ is $Y$: since $Y$ is affine, it just means that each $x\in A$ vanishing on each $X_n$ is zero, which is obvious. (In fact, $A=\Gamma(X,\mathcal{O}_X)$).
But $Y$ is not topologically dense in $X$: indeed, consider $x=(t,t,\dots)\in A$. Then $x$ is locally nilpotent on $X$ but not nilpotent on $Y$, hence the open set $D(x)\subset Y$ is nonempty and disjoint from $X$.

show/hide this revision's text 2 added 74 characters in body

Rex, about your scheme-theoretic image problem, I don't know how "contrived" the following example is (I am afraid it is not particularly related to number theory).
Notations: $k$ R$ is a fielddiscrete valuation ring, $R_n:=k[t]/(t^{n+1})$ t$ a uniformizer, $R_n:=R/(t^{n+1})$ ($n\in\mathbb{N}$), $X_n=\mathrm{Spec}\,R_n$, $R=\prod_n A=\prod_n R_n$.
Take $X:=\coprod_n X_n$ and $Y:=\mathrm{Spec}\,R$Y:=\mathrm{Spec}\,A$. There is a natural open immersion $f:X\to Y$ since each $X_n$ embeds in $Y$ as an open and closed subscheme.
The scheme-theoretic image of $f$ is $Y$: since $Y$ is affine, it just means that each $x\in R$ A$ vanishing on each $X_n$ is zero, which is obvious. (In fact, $Y$ is the affine hull of $X$).A=\Gamma(X,\mathcal{O}_X)$).
But $Y$ is not topologically dense in $X$: indeed, consider $x=(t,t,\dots)\in R$A$. Then $x$ is locally nilpotent on $X$ but not nilpotent in on $R$, Y$, hence the open set $D(x)\subset Y$ is nonempty and disjoint from $X$.

show/hide this revision's text 1