The Timpson Lyceum seal

The Timpson Lyceum · Discrete Math (2025)

Predicate Logic, Identity, Definitions, and Theorems – Lecture 2 (Discrete Math)

Predicate Logic, Identity, Definitions, and Theorems – Lecture 2

Overview

This lecture extends propositional logic into predicate logic, the language used to state nearly every theorem in mathematics. We meet predicates and relations, the universal and existential quantifiers, and the rules for negating quantified statements. We then add the equals sign as logic with identity, governed by two simple laws, and use them to build our very first formal proofs — including the surprising fact that a+c=b+ca + c = b + c follows from logic alone, not arithmetic. Finally we lay out the field axioms of the real numbers and use them, together with new definitions (even, odd, divisible, prime, composite), to prove results such as 2≠12 \ne 1 and 2+2=42 + 2 = 4.

Key Concepts

Recap — propositions and operators. A proposition (statement) is a sentence that is either true or false, never both. The five logical operators are negation ¬\lnot, conjunction ∧\land ("and", true only when both are true), disjunction ∨\lor ("or", inclusive — true when at least one is true), implication →\rightarrow, and equivalence ↔\leftrightarrow. The implication α→β\alpha \rightarrow \beta is false only when α\alpha is true and β\beta is false; whenever the antecedent α\alpha is false the implication is vacuously true. Two statements are logically equivalent (α↔β\alpha \leftrightarrow \beta) when they always share the same truth value, equivalently when α→β\alpha \rightarrow \beta and β→α\beta \rightarrow \alpha.

Useful equivalences (from propositional logic).

Predicate. A predicate is a proposition-valued function: it takes one or more terms and returns true or false. By itself it cannot be called true or false (e.g. x>2x > 2 is a predicate, not a statement). Plugging in a term turns a predicate into a proposition. Notation: P(x)P(x) for one variable, R(x,y)R(x,y) for two.

Relation. A predicate that takes exactly two terms is a relation. For relations it is customary to write the symbol between the terms — e.g. we write 1<21 < 2 rather than <(1,2){<}(1,2). New predicates can be defined from old ones with logical operators; the symbol :≡:\equiv means "is defined to be," as in (x≤y):≡(x<y)∨(x=y)(x \le y) :\equiv (x < y) \lor (x = y).

Quantifiers. Two new symbols convert a predicate into a proposition:

Order of quantifiers matters. ∀x ∃y (x+y=0)\forall x\, \exists y\,(x + y = 0) is true (for each number, pick its negative), but ∃x ∀y (x+y=0)\exists x\, \forall y\,(x + y = 0) is false (no single number cancels every number). Swapping the quantifiers changes the meaning entirely.

Negating quantifiers. A negation flips the quantifier and moves inside the predicate:

¬ ∀x P(x)≡∃x ¬P(x)¬ ∃x P(x)≡∀x ¬P(x)\begin{aligned} \lnot\,\forall x\, P(x) &\equiv \exists x\, \lnot P(x) \\ \lnot\,\exists x\, P(x) &\equiv \forall x\, \lnot P(x) \end{aligned}

"Not all swans are white" becomes "there exists a non-white swan." Combined with De Morgan: ¬ ∀x (P(x)∧F(x))≡∃x (¬P(x)∨¬F(x))\lnot\,\forall x\,\big(P(x)\land F(x)\big) \equiv \exists x\,\big(\lnot P(x)\lor \lnot F(x)\big).

The structure of mathematics. Every field of math is an axiomatic system with four parts: undefined terms (you cannot define everything without circularity — like learning French from a French-only dictionary), axioms (which give the undefined terms meaning), definitions, and theorems. Almost all working mathematics is creating definitions and proving theorems.

The three logics of proof. A theorem is an implication α→β\alpha \rightarrow \beta from the axioms. Three valid forms, each a tautology:

Logic with identity. Adding the equals sign gives two governing laws:

Field axioms of the real numbers (10). With undefined terms 0, 1, +, ×0,\,1,\,+,\,\times: commutativity and associativity of ++ and ×\times; additive identity 00 (x+0=xx+0=x) and multiplicative identity 11 (1⋅x=x1\cdot x = x); additive inverses (for every xx there is yy with x+y=0x+y=0) and multiplicative inverses (for every x≠0x \ne 0 there is yy with x⋅y=1x\cdot y = 1); distributivity x(y+z)=xy+xzx(y+z)=xy+xz; and the non-triviality axiom 0≠10 \ne 1. All numbers are then defined: 2:=1+12 := 1+1, 3:=2+13 := 2+1, and so on.

Definitions to memorize. All are stated over the integers Z={…,−2,−1,0,1,2,… }\mathbb{Z} = \{\dots,-2,-1,0,1,2,\dots\}.

Worked Example

Claim: If a=ba = b, then a+c=b+ca + c = b + c — a consequence of logic alone, using only the law of identity and the principle of extensionality. To prove an implication, assume the antecedent and derive the conclusion.

Assumea=b(antecedent)a+c=a+c(law of identity)a+c=b+c(extensionality: substitute b for a)∴a+c=b+c■\begin{aligned} \textbf{Assume} \quad & a = b && \text{(antecedent)} \\ & a + c = a + c && \text{(law of identity)} \\ & a + c = b + c && \text{(extensionality: substitute } b \text{ for } a) \\ \therefore\quad & a + c = b + c && \blacksquare \end{aligned}

The same skeleton proves a∘c=b∘ca \circ c = b \circ c for any well-defined operation ∘\circ. Building on it, here is the proof that 2+2=42 + 2 = 4 using the definitions 2:=1+1, 3:=2+1, 4:=3+12 := 1+1,\ 3 := 2+1,\ 4 := 3+1 and associativity of addition:

2+2=2+(1+1)(definition of 2)=(2+1)+1(associativity)=3+1(definition of 3)=4(definition of 4)\begin{aligned} 2 + 2 &= 2 + (1 + 1) && (\text{definition of } 2) \\ &= (2 + 1) + 1 && (\text{associativity}) \\ &= 3 + 1 && (\text{definition of } 3) \\ &= 4 && (\text{definition of } 4) \end{aligned}

Summary