Explaining the meaning of equality

5.4k Views Asked by At

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$).

3

There are 3 best solutions below

18
On BEST ANSWER

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.

5
On

In first-order logic, equality is a binary relation for which these two statements are true:

  1. Any variable or constant is equal to itself. We call this the Reflexive property, and it can be written

$$\text{For all $x$, }x=x$$

or, more formally,

$$\forall x(x=x)$$

  1. If two items are equal, anything we can say about the first item in our logical system we can also say about the other item. If $\mathcal A(u,v)$ stands for any logical statement about items $u$ and $v$, then

$$x=y\implies \left[\mathcal A(x,x)\implies \mathcal A(x,y)\right]$$

I.e. If $x$ and $y$ are equal, and we know some truth about $x$, then we can replace some of the occurrences of $x$ in that truth with $y$ and the statement will still be true.

Equality does not mean that two items are exactly identical in every way, just that they are identical in all the statements we can say in our logical system. If our logical system does not allow us to say something, then the two identical items may act differently in that respect. For example, in our usual axioms of arithmetic, $-0=+0$, even though those two things look different. Most computer CPU's actually allow separate positive and negative zeros, and doing calculations with them can me meaningful in some contexts. However, when we do standard number theory, we have no way of even talking about how $-0$ "looks different from" $+0$. We could say the same about $+i$ and $-i$ in the complex number system being "isomorphic" to each other: in many ways of talking, the two behave just the same.


Equality can also be explained in other ways. The usual laws of equivalence properties, such as reflexitivity ($x=y\implies y=x$) and transitivity ($x=y\text{ and }y=z\implies x=z$) can also be said to be at the root of equality, but those can be proved from the two statements I gave above. There certainly is much more that can be said about equality, but the two statements imply all the rest. For details, see Introduction to Mathematical Logic by Elliot Mendelson, pages 75-82, as well as other parts of the book.

1
On

This may not be formal enough for an answer, but it doesn't seem like you're looking for a purely formal answer.

I would say that $X = Y$ is meant to express that in certain contexts (sometimes explicit and sometimes less explicit), anything that is sufficiently involved in $X$ by some witness can be turned into something sufficiently involved in $Y$ by an analogous witness and vice versa.

For example, in a commutative place $x + y = y + x$, and $2 + 3$ is sufficiently invovled in $x + y$ by the substitution $x \mapsto 2$, $y \mapsto 3$, so we can replace $2 + 3$ by $3 + 2$, which is sufficiently involved in $y + x$ by the same substitution. (Of course, I had to use a notion of sameness to explain a notion of equality...)

Or, if $X$ and $Y$ are isomorphic by some isomorphism $f : X \cong Y : f^{-1}$, then any 'element' $a : A \rightarrow X$ can be turned into an element $f \circ a : A \rightarrow Y$ ('witnessed' by $f$), and vice versa, and any element $b : Y \rightarrow B$ depending on $Y$ can be turned into a element $b \circ f : X \rightarrow B$ depending on $X$. (Note that it might be the case that $X$ and $Y$ are very different mathematical objects --- the set of primes and the set of integers, isomorphic as sets, for example --- but may nevertheless be usefully considered 'equal' in some context.)

Clearly anything sufficiently involved in $X$ can be turned into itself by doing nothing, so this 'relation' is reflexive. And so long as we remain consistent about our criteria for being 'sufficiently involved' and our means of turning witnesses for one involvement into another, this relation will be transitive. Of course, 'consistent' here probably invokes a notion of sameness, so I haven't defined equality so much as used it. I'm not sure there's much of a difference.

Symmetry is also a subtle thing because it constrains the ways we can turn things which are involved in $X$ to things that are involved in $Y$. If instead of an isomorphism between $X$ and $Y$ I just had two functions $f$ and $g$ going opposite ways, then I could still turn things involved in $X$ into things involved in $Y$ and vice versa, but I would not be guaranteed to get the same (there it is again!) thing when I did these processes one after another. Where in a general case I might not have $g \circ f \circ a = a$ (where $=$ here is a prior notion of sameness), I will always have $f^{-1} \circ f \circ a = a$. Careful relaxation of these constraints gives us notions of equivalence and adjunction which can be quite expressive (e.g. models and theories may be interchanged, but at a cost).

About that pesky recurrence of synonyms (same, similar, analogous) when trying to define equality: We could say that "Equality is the smallest equivalence relation on a set", or "Equality is the graph of the identity function", both of which are true (and give the same relation) but of course both depend on a prior notion of sameness. The second wears this prior notion on its sleeve in the definition of the identity function $x \mapsto x$. The first seems like it might not invoke any prior notion at all, except that without a prior notion of sameness it isn't clear that there is any smallest equivalence relation on a set. Whatever the smallest equivalence relation might be, it will be nothing more (and, of course, nothing less) than whatever we thought it would be. Usually we take this to be some kind of syntactic equality, or something of similar context independence (definitional $:=$, as dbanet says above, or judgemental $\equiv$). But even this is not free from issue because sometimes people have terrible handwriting, or are making notes and changed their use of a symbol halfway through the page, or whatever other shenanigans the world can throw in the way of honest mathematics.

Ultimately, equality is done. We make things equal by treating them as such, whether it be two differently scrawled $x$s on a blackboard or two quantities coming from widely different fields. Generally, however, we don't have the kind of freedom that statement might suggest. We try not to wreck our so-far-consistent edifices with indiscriminate equalities. And, more importantly, we are often led, coaxed, or even commanded by the things we talk about to treat apparently different things as equal. We can't really do mathematics without doing equality, and how we do mathematics tells us how to do equality.


On a less bloviating note, I think what you may need about equality is a notion of context dependence. If we just take the equality relation on a set we know nothing about and are doing nothing in particular with, then the equivalence classes can only be singletons because that kind of equality is presumed no matter what. But if we are working not just with any set but with the numbers, and we're adding them, then $1 + 1 = 2$. Or, perhaps a bit more precisely, if we're working with formal sums of numbers (call this set $S$), then the equivalence classes will be quite large. But $S/\sim$ will be the numbers, and again equality here will be singletons. So it depends where we are and what we're doing.