TITLE: Does the operation of completion preserve injectivity?
QUESTION [6 upvotes]: It seems to me I saw a counterexample somewhere, but I can't find it, can anybody help me?
Let $\varphi:X\to Y$ be a linear continuous map of locally convex spaces, and $\widetilde{\varphi}:\widetilde{X}\to\widetilde{Y}$ the corresponding linear continuous map of their completions.

If $\varphi:X\to Y$ is injective, is $\widetilde{\varphi}:\widetilde{X}\to\widetilde{Y}$ injective as well? 

I think, the answer must be "no", so another question is 

Under which conditions the injectivity of $\varphi:X\to Y$ implies the injectivity of $\widetilde{\varphi}:\widetilde{X}\to\widetilde{Y}$?

REPLY [3 votes]: Here is a way of getting lots counterexamples.  Let $\widetilde{X}$ be your favorite infinite-dimensional complete space, let $X\subset \widetilde{X}$ be a dense subspace, let $v\in\widetilde{X}\setminus X$, and let $L$ be the span of $v$.  Then we can take $Y=\widetilde{X}/L$, and the quotient map $\widetilde{\varphi}:\widetilde{X}\to Y$ is not injective but its restriction to $X$ is.
I don't know of any useful conditions under which the answer is yes.