Let x1,x2∈L be given with f(x1)=f(x2). We have to show x1=x2. We have
Since by assumption g∘f is injective, we get x1=x2.