The Timpson Lyceum seal

The Timpson Lyceum · Geometry (2024)

Predicate Logic and Identity – Lecture 2 (Geometry)

Predicate Logic and Identity – Lecture 2

Overview

This lecture extends propositional logic into predicate logic, the language in which nearly all of mathematics is actually written. After a quick review of the five propositional operators and the key equivalences (negating ∧\land/∨\lor, the converse vs. the contrapositive), we introduce predicates — proposition-valued functions — and the two ways to turn them into statements: substituting terms or attaching quantifiers. We define the universal (∀\forall) and existential (∃\exists) quantifiers, show that the order of quantifiers changes meaning, and develop the rules for pushing a negation through a quantifier. We then meet the special logical symbol of identity (==) and its two governing laws, use it to prove a first theorem, and close with the idea of an axiom system and the three standard proof styles, plus the meaning of a vacuously true implication.

Key Concepts

Proposition (review). A sentence that is either true or false, never both. Two propositions α,β\alpha,\beta yield four truth-value combinations. The five basic operators are ¬\lnot (not), ∧\land (and), ∨\lor (or), →\to (implies), and ↔\leftrightarrow (logical equivalence). An implication α→β\alpha \to \beta is false only in the single case T→F\text{T} \to \text{F}; a false antecedent makes the whole implication vacuously true.

Key equivalences (review).

Predicate. A proposition-valued function: give it its term(s) and it returns a proposition (something true or false). Example: P(x): x+3=5P(x):\ x + 3 = 5. Then P(2)P(2) is true, P(1)P(1) is false. On its own x+3=5x+3=5 is neither true nor false — it is not a statement until xx is supplied.

Relation. A predicate that takes exactly two terms. These are so common they get their own name and an infix notation: rather than write L(x,y)L(x,y) for the "likes" relation, we write x likes yx \text{ likes } y; rather than LessThan(1,2)\text{LessThan}(1,2) we write 1<21 < 2. Predicates may take any number of terms (one, two, three, …).

Building new predicates. Because predicates return propositions, the logical operators combine them into new predicates. The defining symbol : ⁣≡:\!\equiv (or :=:=) means "the thing on the left is defined to be the thing on the right." Example: x≤y : ⁣≡ (x<y)∨(x=y)x \le y \ :\!\equiv\ (x < y) \lor (x = y).

Two ways to convert a predicate into a statement.

  1. Supply its terms — e.g. P(7)P(7).
  2. Attach a quantifier.

Quantifiers.

Definition of the quantifiers. A truth table is impossible when the domain is infinite, so the quantifiers are defined directly:

Order of quantifiers matters. ∀x ∃y (x+y=0)\forall x\,\exists y\,(x+y=0) is true (take y=−xy=-x), but ∃x ∀y (x+y=0)\exists x\,\forall y\,(x+y=0) is false (no single xx works for every yy). They are different statements.

Negating a quantifier — push the ¬\lnot inward and flip the quantifier:

Identity. The symbol == is a symbol of logic, more foundational than ++ or ×\times. It is governed by the law of identity, in two parts:

  1. Everything is identical with itself: ∀x (x=x)\forall x\, (x = x).
  2. Principle of extensionality: equals may be substituted for equals.

Axiom systems and theorems. Every field of mathematics studies the logical consequences of its axioms (in geometry, "axiom" and "postulate" mean the same thing). Statements derived from the axioms are theorems. Toy system: from "all men are mortal" and "Bob is a man" you may conclude the theorem "Bob is mortal."

Three proof styles.

Vacuous truth. "If α\alpha then β\beta" speaks about the universe as it actually is — it does not invite you to rearrange the world to make α\alpha hold. An implication is vacuously true whenever its antecedent cannot be satisfied. A false statement entails anything: granting 1=01 = 0 lets one "prove" any absurdity, which is exactly why a false antecedent always yields a true implication.

Worked Example

Claim. If a=ba = b, then a+c=b+ca + c = b + c.

To prove an implication, assume the antecedent and derive the conclusion. We use only the law of identity: a+ca + c is identical with itself (part 1), then substitute bb for the equal quantity aa (part 2).

Assume a=b.a+c=a+c(law of identity: everything equals itself)a+c=b+c(extensionality: substitute equals for equals)■\begin{aligned} &\text{Assume } a = b. \\ a + c &= a + c &&\text{(law of identity: everything equals itself)} \\ a + c &= b + c &&\text{(extensionality: substitute equals for equals)} \quad\blacksquare \end{aligned}

Nothing about ++ was used, so the same argument proves a=b  ⟹  a⋆c=b⋆ca = b \implies a \star c = b \star c for any well-defined operation ⋆\star. This is the logic behind the familiar rule "what you do to one side you must do to the other."

Summary