The Timpson Lyceum seal

The Timpson Lyceum · First-Order Predicate Logic (2024)

Identity and Theorems of Logic - Lecture 10 (Logic)

Overview

This lecture completes first-order predicate logic by adding identity — the equality symbol = — as a built-in symbol of the logic. Doing so requires only one new rule (Rule I), yet that single addition lets us prove foundational facts that every branch of mathematics quietly relies on. We prove that identity is an equivalence relation, derive the quantifier-negation laws as theorems rather than definitions, and establish that you may "do the same thing to both sides" of an equation. The lecture closes with a worked proof that uses identity essentially, and then introduces group theory as the first axiomatic system built on top of this completed logic.

Key Concepts

Identity in language. Identity is encoded by a "to be" verb (is, was, are, were, being, been) used in the sense of is identical with. "Charles III is the king of England" asserts identity; "snow is white" does not — it ascribes a property. Test: if the "to be" verb can be replaced by is identical with without changing the meaning, it encodes identity.

Logic with identity. Adding = puts us in propositional and first-order predicate logic with identity — the complete system underlying the foundations of mathematics. Equality is now a logical symbol, not an ordinary predicate.

The two principles encoded by identity:

Rule I (the only new rule). Both principles are bundled into a single inference rule:

Open formulas only. Rule I applies only where the variable is open (not bound by a quantifier). Substituting into a bound variable breaks: from x=yx = y and ∃x (x≠y)\exists x\,(x \neq y) you would get the absurd ∃x (x≠x)\exists x\,(x \neq x).

Equivalence relations. A two-place relation RR is an equivalence relation when it is:

The lecture proves identity has all three, so equality is an equivalence relation. (Contrast ≤\leq: reflexive and transitive but not symmetric.) Equivalence relations recur everywhere — congruence in geometry, isomorphism of sets, etc.

Quantifier theorems (now derived, not assumed). The earlier definition of ∃\exists in terms of ∀\forall is actually provable from the rules:

A negation pushed across a quantifier flips ∀↔∃\forall \leftrightarrow \exists and negates the inner predicate.

Operating on both sides. Identity justifies the school-algebra move of applying the same operation to both sides of an equation, for any operator ∘\circ for which the result is defined (a term):

The interpretation is valid only when x∘zx \circ z is genuinely a term, which is why dividing both sides by zz requires z≠0z \neq 0 (x÷0x \div 0 is undefined, hence not a term).

Groups (the next axiomatic system). A group is a set GG with an operation ∘\circ satisfying:

Examples: (R,+)(\mathbb{R}, +) with identity 00 and inverse −x-x; (R∖{0},×)(\mathbb{R}\setminus\{0\}, \times) with identity 11 and inverse 1/x1/x. Subtraction on R\mathbb{R} fails (not associative); division fails the same way.

Worked Example

Theorem (symmetry of identity): prove ∀x ∀y (x=y⇒y=x)\forall x\,\forall y\,(x = y \Rightarrow y = x).

Assume the antecedent, introduce the law of identity, then substitute using Rule I:

1.x=y(assumed antecedent, Rule P)2.x=x(Rule I — always available, no premises)3.y=x(Rule I: substitute x=y from line 1 into line 2)4.x=y⇒y=x(Rule CP, discharging line 1)5.∀x ∀y (x=y⇒y=x)(universal generalization)\begin{aligned} &1.\quad x = y &&\text{(assumed antecedent, Rule P)} \\ &2.\quad x = x &&\text{(Rule I — always available, no premises)} \\ &3.\quad y = x &&\text{(Rule I: substitute } x = y \text{ from line 1 into line 2)} \\ &4.\quad x = y \Rightarrow y = x &&\text{(Rule CP, discharging line 1)} \\ &5.\quad \forall x\,\forall y\,(x = y \Rightarrow y = x) &&\text{(universal generalization)} \end{aligned}

The trick is line 3: in x=xx = x, replacing the first xx with yy (licensed by x=yx = y) yields y=xy = x. Because the final line rests on no premises, this is a theorem of logic — true in any axiomatic system built on top of logic, never something algebra has to assume.

A second application: the apartment proof. Symbolizing "the criminal was in the apartment" as the constant cc (AcA c), with premises that anyone in the apartment was in town (∀x (Ax⇒Tx)\forall x\,(Ax \Rightarrow Tx)), anyone in Mexico was not (∀x (Mx⇒¬Tx)\forall x\,(Mx \Rightarrow \neg Tx)), and Barnes was in Mexico (MbMb), one derives ¬Ab\neg Ab. Assuming b=cb = c for a reductio, Rule I rewrites AcAc into AbAb, contradicting ¬Ab\neg Ab — forcing the conclusion b≠cb \neq c (Barnes is not the criminal). This proof cannot be done without identity.

Summary