I was trying to prove if $l=m$ and $m=n$ then $l=n$ but when doing this I had to add $-m$ to both sides of both equations.i think it is not appropriate to proceed without proving "if $a=b$ then $a+c=b+c$". can anyone help? I tried many ways but every time I failed.
note: in this context when prooving $a=b \implies a+c=b+c$ one can not use $l=m$ and $m=n \implies l=n$
There isn’t much to prove. If $a=b$, then $a+c=b+c$ by direct substitution. The converse is more interesting to prove.
That is, if $a+c=b+c$, then $a=b$.
Consider $a=a+0=a+(c+(-c))=(a+c)+(-c)=(b+c)+(-c)=b+(c+(-c))=b+0=b$. Thus $a=b$.