I am looking at the proof of the following proposition.
Here $A$ is a closed linear operator on $L$, that is, the graph of $A$ is closed subspace of $L \times L$. And $\lambda$ is said to belong to the resolvent set $\rho(A)$ of $A$, if $\lambda - A(\equiv \lambda I-A)$ is one-to-one, Range($\lambda - A)=L$, and $(\lambda - A)^{-1}$ is a bounded linear operator on $L$.
In the proof, as shown below, (2.6) shows that $\lambda-A$ is one-to-one on $\mathcal{D}(A)$, which is a dense subset of the vector space $L$ by a theorem preceding this. However, I don't see how this fact directly means that $\lambda - A$ is one-to-one on $L$. If a closed linear operator is one to one on a dense set, then is it one to one on the whole set? I would greatly appreciate any explanation on this line of the proof.

