Step 3 of 6 in Logic
Predicate Logic
Quantifiers, relations, and first-order models. Citation needed
The whole, before the parts
Propositional logic cannot see inside a sentence, so it cannot explain why "all men are mortal; Socrates is a man; so Socrates is mortal" is a good argument. Predicate logic opens the sentence up: it writes statements as properties and relations applied to objects, and adds two small words of enormous power — "all" and "some". The one idea that carries the subject is that a quantified sentence is true or false only relative to a chosen universe of objects, so the same formula can hold in one world and fail in another, and showing an argument invalid means building a world where it breaks. Citation needed
Terminology and core concepts
-
Predicates, terms, and atomic sentences
A predicate names a property or relation, a term names an object, and an atomic sentence applies a predicate to enough terms — Mortal(socrates), Loves(ana, ben) — giving logic its first look inside the proposition. Citation needed
- What does a one-place predicate express?
- a property of a single object Citation needed
- What does a two-place predicate express?
- a relation between two objects Citation needed
- In Loves(ana, ben), what are ana and ben?
- terms naming objects Citation needed
- Does argument order matter in Loves(ana, ben)?
- yes — loving is not always mutual Citation needed
- What could propositional logic see in "Socrates is mortal"?
- only an unanalyzed letter Citation needed
-
Variables and the two quantifiers
A variable is a placeholder for an object, and a quantifier says how many objects make the formula true: ∀x ("for all") claims every object does, ∃x ("there exists") claims at least one does. Citation needed
- What does ∀x P(x) claim?
- every object has property P Citation needed
- What does ∃x P(x) claim?
- at least one object has P Citation needed
- How many objects make ∃x P(x) true?
- one is enough Citation needed
- What single thing refutes ∀x P(x)?
- one counterexample object Citation needed
- What is a variable with no quantifier binding it called?
- a free variable Citation needed
- Is a formula with a free variable true or false by itself?
- neither — it awaits a value Citation needed
-
Translating "all" and "some"
The two standard shapes differ in their inner connective: "all A are B" is ∀x(A(x) → B(x)), while "some A are B" is ∃x(A(x) ∧ B(x)) — swapping the connectives is the classic translation blunder. Citation needed
- Which connective goes with ∀ in "all A are B"?
- → Citation needed
- Which connective goes with ∃ in "some A are B"?
- ∧ Citation needed
- What does ∃x(A(x) → B(x)) wrongly allow?
- truth via any non-A object Citation needed
- When is ∀x(A(x) → B(x)) true with no As at all?
- always — it is vacuously true Citation needed
- How does "no A are B" translate?
- ∀x(A(x) → ¬B(x)) Citation needed
-
Quantifier order and scope
When quantifiers nest, their order is content: ∀x∃y Loves(x,y) says everyone loves someone or other, while ∃y∀x Loves(x,y) says one person is loved by everyone — the second claim is far stronger. Citation needed
- In ∀x∃y, may y depend on x?
- yes — each x gets its own y Citation needed
- In ∃y∀x, may y depend on x?
- no — one y must serve all x Citation needed
- Which implies which: ∃∀ or ∀∃?
- ∃∀ implies ∀∃ Citation needed
- Does swapping two adjacent ∀s change meaning?
- no — like quantifiers commute Citation needed
- "Every number has a larger number" — which shape?
- ∀x∃y Citation needed
-
Negating quantified statements
A negation pushes through a quantifier by flipping it: ¬∀ becomes ∃¬, and ¬∃ becomes ∀¬ — De Morgan's laws scaled up, because ∀ behaves like a large conjunction and ∃ like a large disjunction. Citation needed
- What is ¬∀x P(x) equivalent to?
- ∃x ¬P(x) Citation needed
- What is ¬∃x P(x) equivalent to?
- ∀x ¬P(x) Citation needed
- What is the negation of "everyone passed"?
- someone failed Citation needed
- Why does ∀ negate like a conjunction?
- it asserts P of every object at once Citation needed
- What is ¬∀x∃y R(x,y) after pushing negation fully in?
- ∃x∀y ¬R(x,y) Citation needed
-
Models and interpretation
A model is a chosen universe of objects plus an assignment of meaning to every predicate and name; a formula is true or false only in a model, and an argument is valid exactly when no model makes its premises true and conclusion false. Citation needed
- What two things does a model fix?
- a universe of objects and the predicates' meanings Citation needed
- What does it take to show a predicate-logic argument invalid?
- one model: premises true, conclusion false Citation needed
- What is such a model called?
- a countermodel Citation needed
- Can the same formula be true in one model and false in another?
- yes — unless it is valid or unsatisfiable Citation needed
- What does "satisfiable" mean?
- true in at least one model Citation needed
- How small may a countermodel's universe be?
- as small as one object, if that breaks the argument Citation needed
-
Identity and properties of relations
The identity sign x = y says two terms name one object, which is what lets logic count ("at least two", "exactly one"); relations themselves are classified by whether each object bears them to itself (reflexive), both ways (symmetric), or along chains (transitive). Citation needed
- What does a = b assert?
- that a and b name the same object Citation needed
- How does "there are at least two Ps" use identity?
- ∃x∃y(P(x) ∧ P(y) ∧ x ≠ y) Citation needed
- What makes a relation reflexive?
- every object bears it to itself Citation needed
- What makes a relation symmetric?
- R(x,y) always yields R(y,x) Citation needed
- What makes a relation transitive?
- R(x,y) and R(y,z) yield R(x,z) Citation needed
- Is "taller than" symmetric?
- no — it is transitive but asymmetric Citation needed
-
What the quantifiers cost
The truth-table method dies with quantifiers — a universe can be infinite, so there is no finite list of rows to scan; validity can still be demonstrated by derivation, but there is no all-purpose mechanical test that settles every predicate-logic question either way. Citation needed
- Why can't truth tables decide quantified formulas?
- a universe may be infinite — no finite rows Citation needed
- How is a predicate-logic argument shown valid without tables?
- by a derivation from the premises Citation needed
- How is it shown invalid?
- by exhibiting a countermodel Citation needed
- Does predicate logic have a counterexample search guaranteed to finish?
- no — unlike the propositional case Citation needed
Problems that prove it
-
Translate: (a) "All dogs bark." (b) "Some dogs bite." (c) "No cat barks." (d) "Some dogs don't bite."
Drills: the ∀/→ and ∃/∧ pairings.
Derivation steps
- (a) ∀x(Dog(x) → Barks(x)).
- (b) ∃x(Dog(x) ∧ Bites(x)).
- (c) ∀x(Cat(x) → ¬Barks(x)).
- (d) ∃x(Dog(x) ∧ ¬Bites(x)).
- Check (b): writing → instead of ∧ would be true in a dogless world — wrong claim.
Citation needed
-
Push the negation inward: ¬∀x(P(x) → Q(x)).
Drills: quantifier negation combined with rewriting a conditional.
Derivation steps
- Flip the quantifier: ∃x ¬(P(x) → Q(x)).
- A conditional is false only when antecedent true, consequent false.
- So ¬(P → Q) is P(x) ∧ ¬Q(x).
- Result: ∃x(P(x) ∧ ¬Q(x)).
- Reading: "not all P are Q" says exactly "some P is not Q".
Citation needed
-
Build a countermodel: premises ∀x(A(x) → B(x)) and ∃x B(x); conclusion ∃x A(x).
Drills: invalidity by constructing a small world.
Derivation steps
- Universe: one object, d.
- Interpret A as true of nothing; B as true of d.
- Premise 1: vacuously true — no object is A.
- Premise 2: true — d is B.
- Conclusion: false — nothing is A.
- Premises true, conclusion false in this model, so the argument is invalid.
Citation needed
-
In a universe of people with Loves(x,y), decide whether ∀x∃y Loves(x,y) implies ∃y∀x Loves(x,y), using a two-person world.
Drills: quantifier order as real content, tested in a tiny model.
Derivation steps
- Universe: {a, b}. Let a love only a, and b love only b.
- ∀x∃y: a has a beloved (a), b has one (b). True.
- ∃y∀x: is anyone loved by both? a is not loved by b; b is not loved by a. False.
- So the implication fails: this model is a countermodel.
- The reverse implication does hold: one universally loved y serves every x.
Citation needed
-
Formalize "there is exactly one even prime" using identity, with EP(x) for "x is an even prime".
Drills: counting with quantifiers and identity.
Derivation steps
- "At least one": ∃x EP(x).
- "At most one": any two even primes are identical.
- Combine: ∃x(EP(x) ∧ ∀y(EP(y) → y = x)).
- Reading back: some object is an even prime, and anything that is one is it.
Citation needed
-
Classify the relation "is an ancestor of" as reflexive, symmetric, or transitive, with a one-line justification each.
Drills: testing relation properties against meaning, not habit.
Derivation steps
- Reflexive? No one is their own ancestor. Not reflexive.
- Symmetric? An ancestor's descendant is not their ancestor. Not symmetric.
- Transitive? An ancestor of my ancestor is my ancestor. Transitive.
- Summary: transitive only — like "taller than", unlike "sibling of".
Citation needed
Sources
- Jon Barwise and John Etchemendy, Language, Proof and Logic — translation and countermodel-building taught through relentless practice.
- Wilfrid Hodges, Logic — quantifiers and models explained from ordinary language up.
- Herbert Enderton, A Mathematical Introduction to Logic — the precise treatment of models and satisfaction.
Learning path
Continue through Logic in order, using the concepts above to connect this topic to the next.