I'm currently trying to understand a line in a paper that would follow easily if the answer to the following question was yes:
Let $R, S$ be (commutative, unital) rings and let $\phi\colon R\hookrightarrow S$. Suppose that, as $\mathbb Z$-algebras, $\phi\otimes\mathrm{Id}_\mathbb Q\colon R\otimes \mathbb Q\to S\otimes\mathbb Q$ and $\phi\otimes\mathrm{Id}_{\mathbb F_p}\colon R\otimes \mathbb F_p\to S\otimes\mathbb F_p$ are isomorphisms for all primes $p$.
Is $\phi$ an isomorphism?
In the setting I care about, I know that $R, S$ are torsion free integral domains. I also know that $S$ is a subring of $\mathbb Z[X_1, \ldots, X_n]$ for some $n$ and that $S\otimes \mathbb Q$ is finitely generated as a $\mathbb Q$-algebra.
I know that the general statement is false when $R, S$ are just $\mathbb Z$-modules: a counterexample is $R = 0$ and $S = \mathbb {Q/Z}$.