← back to logic

Predicate Logic

Craig DeLancey · A Concise Introduction to Logic, Ch. 6 · CC BY-SA 4.0

Predicate logic extends propositional logic with predicates (properties of objects), quantifiers (∀ "for all", ∃ "there exists"), and variables. It can express statements about individuals in a domain that propositional logic cannot.

Domain D c d a b e P(x) = true

Predicates

A predicate is a property or relation applied to objects. P(x) means "x has property P." R(x, y) means "x stands in relation R to y." Unlike propositions, predicates have open slots that variables fill.

Scheme

Quantifiers

∀x P(x) means "for every x in the domain, P(x) is true." ∃x P(x) means "there is at least one x in the domain where P(x) is true."

Scheme

Bound and free variables

A variable is bound when it falls under a quantifier. A variable is free when it does not. ∀x P(x) has x bound. P(x) ∧ Q(y) has both x and y free. A sentence (closed formula) has no free variables.

Scheme

Translating English to logic

"All dogs bark" becomes ∀x(Dog(x) → Barks(x)). Note: it uses implication, not conjunction. "Some cats purr" becomes ∃x(Cat(x) ∧ Purrs(x)). Note: it uses conjunction, not implication.

Scheme