A friend of mine just asked me how to prove that if $a=b$ then $a+c=b+c$, where $a,b$ and $c$ are real numbers, I'm not sure what I should answer. I have a book called introduction to logic and to the theory of the deductive sciences by Alfred Tarski, which is about propositional logic, and I remember reading that two things $a$ and $b$ are equal if any proposition that is true about $a$ is also true about $b$ and vice-versa. However I think this isn't very formal.
I haven't taken any set theory course, I think that another way to justify it is to say that sum is a function and since the ordered pairs $(a,c)$ and $(b,c)$ are equal then $+(a,c)=+(b,c)$. But I'm not too convinced.
If we use the standard axioms how would we justify $a+c=b+c$ using the mainstream axioms of today. I think there is something Zermelo-Frankl with choice. Would these be enough, what properties of the real numbers do we need? Can we prove it using the usual construction of the real numbers and Zermelo-Frankl?
As you can probably see I am not very knowledgeable about these topics, so I would like a delicate explanation.
Many thanks and regards.
To elaborate on Thomas Andrews' comment:
Addition is well-defined: For all $a,b,c,d\in\mathbb{R}$, if $a=b$ and $c=d$, then $a+c=b+d$. The well-defined nature of addition in $\mathbb{R}$ is taken as an axiom. Hence, if $a=b$ and $c=d$, we have $$ a+c=b+d\Longleftrightarrow a+c=b+c, $$ but I think there is something more interesting you could show, namely cancellation of addition.
Cancellation of addition: For all $a,b,c\in\mathbb{R}$, if $a+c=b+c$, then $a=b$. [Of course, this is the converse of what is taken as an axiom.]
Proof. Pick $a,b,c\in\mathbb{R}$ and suppose $a+c=b+c$. By the existence of additive inverses (another axiom), there exists $-c\in\mathbb{R}$ such that $c+(-c)=0$. Since addition is well-defined, we have that $$ [a+c]+(-c)=[b+c]+(-c), $$ which by the associative property of addition (another axiom) we may write as $$ a+[c+(-c)]=b+[c+(-c)]. $$ This yields $a+0=b+0$, which becomes $a=b$. $\blacksquare$
I'm not sure if that description/explanation is really what you were looking for, but hopefully you found it helpful.