I've been tasked with explaining to a group of people what the notion of equality means in mathematics, I've come up with a working explanation, but would appreciate some input, suggestions etc.
Mathematical equality $X=Y$ is a binary relation between two mathematical expressions $X$ and $Y$ which is essentially the statement that the two expressions represent the same mathematical object ($X$ and $Y$ define the same mathematical object) if the equality holds for any value of $X$ and any value of $Y$ (in other words, they share all and only the same properties). If the equality doesn't hold for all values of $X$ and $Y$ then the relation $X=Y$ is a conditional statement that holds for a certain set of values of $X$ and $Y$.
I was then hoping to move on to the notion of equivalence relations and how equality is the archetypal example. How does one define equality as an equivalence relation? Also, is the reason why the equivalence classes of equality (as an equivalence relation) contain only a single element (in each class) simply because the only element which satisfies all the conditions of equality with another element (i.e. shares all and only the same mathematical properties) is the element itself (i.e. each element is equal to itself and only itself).
Hope this is clear enough, apologies if it isn't (I feel like I've confused myself a bit through trying to explain the concept).
$\underline{\textbf{Edit}}$:
Would it be correct to define the notion of equality in terms of equality of sets, i.e. given two sets $A$ and $B$, then $A=B$ if and only if, for every $x\in A$ we have that $x\in B$, and for every $x\in B$ we have that $x\in A$? If this is the case then I can see how equality of (natural) numbers follows, as if we define them as $$0=\emptyset,\;1=\lbrace\emptyset\rbrace,\;2=\lbrace\emptyset,\lbrace\emptyset\rbrace\rbrace,\ldots,n=\lbrace 0,\ldots,n-1\rbrace$$ then it is obvious that $1=0$ is not true because $\emptyset =\lbrace\emptyset\rbrace$ is not true (as $\emptyset\in\lbrace\emptyset\rbrace$, but $\emptyset\notin\emptyset$).
I think you got the rough idea. We have symbolic expressions and objects, which are two different things. We cannot take the objects themselves and put them on paper, but we can write symbolic expressions that refer to objects, and the objects they refer to are called their values. We might have multiple symbolic expressions that refer to the same object, in which case we say that their values are equal, or that the expressions are equivalent. This is the model-theoretic view, where we have a model that specifies what the value of each expression is.
Based on this view, the properties of equality follow naturally. We write "$x = y$" to mean that the expression "$x$" and "$y$" are equivalent (have equal value). Obviously $x = y$ iff $y = x$. Also, $x = y$ and $y = z$ clearly imply $x = z$.
If your meta-system (the system in which you reason about the meaning of equality in a formal system) is strong enough to let you talk about binary relations, then indeed equivalence of expressions is just an equivalence relation on expressions (which are just a certain subtype of finite strings). There is a one-to-one correspondence between the equivalence classes of expressions and the actual objects to which they refer.
But note that this equivalence relation may not exist within the formal system you are analyzing itself. For example if you are analyzing equality between sets in ZFC, the equivalence relation on expressions (denoting sets) is not a relation in ZFC itself unless you like a contradiction. This issue may not arise in other formal systems, but that is a different topic.