Understanding equality [01AB]
- September 22, 2026
- Marcelo Fiore, Jon Sterling
The rules of equality [01AC]
- September 22, 2026
- Marcelo Fiore, Jon Sterling
Many of you are already confident in working with equality. There are only a few rules of equality from which all others follow:
- Reflexivity: All individuals are equal to themselves: \forall x:\tau \mathpunct {.} x = x.
- Transport: If a property holds of one individual, then it holds of any equal individual: \forall x,y:\tau \mathpunct {.} x=y\implies (P(x) \implies P(y))
The transport rule is sometimes called the indiscernibility of identicals.
Warning What types of things can be equal? [01AD]
- September 22, 2026
- Jon Sterling
An equation a=b only makes sense if a and b are the same kind of thing. Something like 5 = \{6\} is not a mathematical statement (it is “not even wrong”) whereas 5=6 is a (false) mathematical statement.
(As before, 5 = \{6\} is nonetheless a statement of formal set theory, and maybe even a true statement under certain encodings of numbers as sets; but it is not a meaningful statement of mathematics. In this course, we are careful to distinguish mathematics as it is conducted by mathematicians from the encoding of mathematics in a variety of historical formalisms such as formal set theory. You need to get comfortable with the former, but we do not care if you are facile with the latter.)
Working with equality [01AE]
- September 22, 2026
- Marcelo Fiore, Jon Sterling
We do not expect you to use the rules of equality explicitly when you are giving proofs; these are “foundational” in the sense that everything concerning equality can be deduced from them, but a proper proof does not belabour these points except where it adds clarity. You will mainly use the properties of equality that you are already familiar with; it is instructive to prove a few of them for yourself by reducing them to the rules, however. As you can see below, it is a little tricky.
Theorem Equality is symmetric [01AF]
- September 22, 2026
- Jon Sterling
If x=y then y=x.
Proof.
- September 22, 2026
- Jon Sterling
We fix individuals x,y:\tau such that x=y. We will emply the transport rule of equality with the following predicate P on individuals of type \tau : P(z) \coloneqq (x=z\to z=x)
The transport rule says that P(x) \implies P(y). First we note that our goal is literaly P(y), so we may use this implication by proving the antecedent P(x). The antecedent P(x) is the following statement, by definition, which is trivially true:
x=x\to x=xEquality is transitive [01AG]
- September 22, 2026
- Jon Sterling
The equality predicate is transitive in the sense that the following statement holds: \forall x,y,z:\tau \mathpunct {.} x=y\implies (y=z \implies x = z)
Proof.
- September 22, 2026
- Jon Sterling
We fix x,y,z:\tau such that x=y to prove that y=z\implies x=z. We will use the transport rule on the assumption x=y with the following predicate P on individuals of type \tau :
P(u) \coloneqq u=z\implies x=zTransport of P along x=y says that P(x) \implies P(y). We note that P(y) is literally our goal. Using this implication, therefore, it suffices to prove P(x) which unravels to x=z\implies x=z which is trivially true.