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 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 and .
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 , conjunction ("and", true only when both are true), disjunction ("or", inclusive — true when at least one is true), implication , and equivalence . The implication is false only when is true and is false; whenever the antecedent is false the implication is vacuously true. Two statements are logically equivalent () when they always share the same truth value, equivalently when and .
Useful equivalences (from propositional logic).
- De Morgan: and .
- Contrapositive: ("if shoes then socks" says the same as "if no socks then no shoes").
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. is a predicate, not a statement). Plugging in a term turns a predicate into a proposition. Notation: for one variable, 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 rather than . New predicates can be defined from old ones with logical operators; the symbol means "is defined to be," as in .
Quantifiers. Two new symbols convert a predicate into a proposition:
- Universal — read "for all / for every." is true exactly when is true regardless of the choice of .
- Existential — read "there exists … such that." is defined as .
Order of quantifiers matters. is true (for each number, pick its negative), but 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:
"Not all swans are white" becomes "there exists a non-white swan." Combined with De Morgan: .
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 from the axioms. Three valid forms, each a tautology:
- Direct: (modus ponens).
- Contrapositive: use in place of .
- Contradiction: if (something impossible), then must be false.
Logic with identity. Adding the equals sign gives two governing laws:
- Law of identity: everything is identical with itself, .
- Principle of extensionality: equals may be substituted for equals.
Field axioms of the real numbers (10). With undefined terms : commutativity and associativity of and ; additive identity () and multiplicative identity (); additive inverses (for every there is with ) and multiplicative inverses (for every there is with ); distributivity ; and the non-triviality axiom . All numbers are then defined: , , and so on.
Definitions to memorize. All are stated over the integers .
- Divisible / divides: means there exists an integer with . (Note: is a predicate returning true/false — not the fraction .) For example (take ); . Every integer divides .
- Even: an integer is even if , i.e. for some integer .
- Odd: an integer is odd if for some integer .
- Prime: an integer is prime if and its only positive divisors are and . ( is not prime; is prime.)
- Composite: a positive integer is composite if there is an integer with and . ( is neither prime nor composite.)
Worked Example
Claim: If , then — 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.
The same skeleton proves for any well-defined operation . Building on it, here is the proof that using the definitions and associativity of addition:
Summary
- A predicate is a proposition-valued function; supplying its terms — or attaching a quantifier — turns it into a true/false statement. A two-term predicate is a relation, conventionally written infix (e.g. ).
- The quantifiers ("for all") and ("there exists") bind a predicate's variable; their order matters, and negation flips each quantifier while pushing the negation inside: .
- Every area of math is an axiomatic system of undefined terms, axioms, definitions, and theorems; a theorem is an implication proved directly, by contrapositive, or by contradiction.
- Logic with identity rests on the law of identity () and the principle of extensionality (equals may be substituted for equals); these alone prove facts like , independent of arithmetic.
- The field axioms define and let us define each number; together with they yield results such as (by contradiction) and .
- Five core definitions over recur throughout the course: divisible (), even (), odd (), prime ( with only divisors and ), and composite (positive with a divisor strictly between and itself).