Predicate Logic and Proofs
Extend propositional logic to predicate logic with quantifiers, master rules of inference, and learn rigorous proof techniques that form the foundation of mathematical reasoning.
- Understand predicates and propositional functions with multiple variables
- Master universal and existential quantifiers and their properties
- Work with nested quantifiers and understand quantifier precedence
- Apply rules of inference including Modus Ponens, Modus Tollens, and syllogisms
- Construct proofs using direct proof, contraposition, and contradiction methods
- Recognize and construct existence, uniqueness, and equivalence proofs
1. Predicates and Quantifiers
A predicate (or propositional function) is a statement involving variables. When variables are replaced with specific values from a domain, the predicate becomes a proposition with a truth value.
We denote a predicate as , , etc., where:
- is a unary predicate (one variable)
- is a binary predicate (two variables)
- is an n-ary predicate (n variables)
Example 1: Let be "x > 3" where the domain is integers.
- is true (since 5 > 3)
- is false (since 2 ≯ 3)
Example 2: Let be "x + y = 10" where the domain is real numbers.
- is true
- is false
The domain of discourse (or universe of discourse) is the set of all possible values that variables in a predicate can take. It must be specified to determine the truth value of quantified statements.
Quantifiers
The universal quantifier (read "for all" or "for every") expresses that a predicate is true for all values in the domain.
means "P(x) is true for all x in the domain."
This is equivalent to the conjunction: for all in the domain.
The existential quantifier (read "there exists" or "for some") expresses that a predicate is true for at least one value in the domain.
means "There exists an x in the domain such that P(x) is true."
This is equivalent to the disjunction: for all in the domain.
The uniqueness quantifier (read "there exists a unique") expresses that there is exactly one value in the domain for which the predicate is true.
can be expressed as:
Precedence of Quantifiers:
The quantifiers and have higher precedence than all logical operators ().
For example, means , not .
Let the domain be all real numbers:
True - "For all real numbers x, x² is non-negative."
False - "There exists a real number x such that x² = -1." (No real number satisfies this)
True - "For every real number x, there exists a y such that x + y = 0." (y = -x works)
True - "There exists an x such that for all y, xy = y." (x = 1 works)
2. Nested Quantifiers
When multiple quantifiers appear in a statement, they are called nested quantifiers. The order of quantifiers matters and can significantly change the meaning of a statement.
The order of nested quantifiers is important unless all quantifiers are of the same type:
- (order doesn't matter)
- (order doesn't matter)
- (order DOES matter!)
Let P(x, y) mean "x loves y" where the domain is all people:
"For every person x, there exists a person y that x loves."
Meaning: Everyone loves someone (possibly different people).
"There exists a person y such that for every person x, x loves y."
Meaning: There is someone who is loved by everyone.
These two statements have very different meanings! The first can be true even if there's no universally loved person.
A formula is in Prenex Normal Form (PNF) if all quantifiers appear at the beginning:
where each is either or , and is a quantifier-free formula.
The negation of quantified statements follows these rules:
To negate a quantified statement: change the quantifier type and negate the predicate.
Example 1: Negate "All students passed the exam."
Original:
Negation:
"There exists a student who did not pass."
Example 2: Negate
(negate outer quantifier)
(negate inner quantifier)
3. Rules of Inference
Rules of inference are logical rules that allow us to derive conclusions from premises. A valid argument is one where the conclusion follows logically from the premises using these rules.
An argument consists of premises (hypotheses) and a conclusion. An argument is valid if whenever all premises are true, the conclusion must also be true.
For premises and conclusion , the argument is valid if is a tautology.
Propositional Rules of Inference
Modus Ponens
Premises: ,
Conclusion:
Modus Tollens
Premises: ,
Conclusion:
Hypothetical Syllogism
Premises: ,
Conclusion:
Disjunctive Syllogism
Premises: ,
Conclusion:
Addition
Premise:
Conclusion:
Simplification
Premise:
Conclusion:
Conjunction
Premises: ,
Conclusion:
Resolution
Premises: ,
Conclusion:
Quantifier Rules of Inference
Universal Instantiation (UI)
Premise:
Conclusion: for any c in the domain
Universal Generalization (UG)
Premise: for an arbitrary c
Conclusion:
(c must be arbitrary, not a specific element)
Existential Instantiation (EI)
Premise:
Conclusion: for some particular c
(c is a specific witness, not used elsewhere)
Existential Generalization (EG)
Premise: for some specific c
Conclusion:
Problem: Given the premises "If it rains, the ground is wet" and "It is raining," what can we conclude?
Let = "It is raining", = "The ground is wet"
Premise 1:
Premise 2:
Conclusion: (by Modus Ponens)
Therefore, "The ground is wet."
4. Proof Methods
A proof is a valid argument that establishes the truth of a statement. Mathematical proofs use logical reasoning, axioms, definitions, and previously proven theorems.
- Theorem: A statement that can be shown to be true
- Axiom (Postulate): A statement assumed to be true without proof
- Lemma: A helping theorem used to prove other theorems
- Corollary: A theorem that follows directly from another theorem
- Conjecture: A statement believed to be true but not yet proven
4.1 Direct Proof
A direct proof of proceeds as follows:
- Assume p is true
- Use rules of inference, axioms, and known theorems to show that q must be true
Theorem: If n is an odd integer, then n² is odd.
Assume: n is odd
By definition of odd integer, for some integer k.
Then:
Let . Then , which is the form of an odd integer.
Conclusion: Therefore, n² is odd.
4.2 Proof by Contraposition
To prove by contraposition:
- Prove the contrapositive:
- Since , this proves the original statement
Theorem: If n² is even, then n is even.
Contrapositive: If n is odd, then n² is odd.
Assume n is odd. Then for some integer k.
Therefore n² is odd (of the form 2m + 1).
Conclusion: We've proven the contrapositive, so the original statement is true.
4.3 Proof by Contradiction
To prove a statement p by contradiction (reductio ad absurdum):
- Assume (the opposite of what we want to prove)
- Show that this assumption leads to a logical contradiction
- Conclude that must be false, so p must be true
Theorem: is irrational.
Assume the opposite: is rational.
Then where a and b are integers with no common factors (in lowest terms), and .
Squaring both sides: , so
This means a² is even, which implies a is even (by previous theorem). So for some integer k.
Substituting: , which gives , so
This means b² is even, which implies b is even.
Contradiction: Both a and b are even, which contradicts our assumption that they have no common factors.
Conclusion: Our assumption must be false, so is irrational.
4.4 Other Proof Methods
Vacuous Proof:
To prove , show that p is false. Since is always true, the implication holds vacuously.
Trivial Proof:
To prove , show that q is true. Since is always true, the implication holds trivially.
Proof by Cases:
To prove , partition the cases as and prove p in each case separately.
Existence Proof:
Constructive: Exhibit a specific element with the desired property.
Nonconstructive: Prove existence without explicitly finding the element (often by contradiction).
Uniqueness Proof:
Prove both: (1) Existence - at least one element satisfies the property, and (2) Uniqueness - if x and y both satisfy it, then x = y.
Theorem: For any integer n, is even.
Every integer is either even or odd. We consider both cases:
Case 1: n is even
Then for some integer k.
This is even (divisible by 2).
Case 2: n is odd
Then for some integer k.
This is even (divisible by 2).
Conclusion: In both cases, is even.
Practice Quiz
Frequently Asked Questions
What's the difference between ∀x∃y and ∃y∀x?
∀x∃y P(x,y): "For each x, there exists a y (which may depend on x) such that P(x,y)."
∃y∀x P(x,y): "There exists a single y that works for all x such that P(x,y)."
Example: If P(x,y) means "y is greater than x", the first is true (for any x, we can find a larger y), but the second is false (no single y is greater than all x).
When should I use proof by contraposition vs. contradiction?
Proof by contraposition is best when:
- The contrapositive is easier to work with than the original statement
- You're proving an implication p → q
Proof by contradiction is best when:
- You're proving something is impossible or doesn't exist
- The statement is not in implication form
- Assuming the opposite leads to an obvious contradiction
How do I know which proof method to use?
- Direct proof: Default choice when the statement is straightforward
- Contraposition: When the negations are simpler to work with
- Contradiction: When proving irrationality, infinitude, or impossibility
- Cases: When the domain naturally splits into disjoint categories
- Induction: When proving statements about all natural numbers
With practice, you'll develop intuition for which method suits each problem!
What's the difference between UI, UG, EI, and EG?
- UI (Universal Instantiation): From ∀x P(x), conclude P(c) for any specific c
- UG (Universal Generalization): From P(c) for arbitrary c, conclude ∀x P(x)
- EI (Existential Instantiation): From ∃x P(x), conclude P(c) for some witness c
- EG (Existential Generalization): From P(c) for specific c, conclude ∃x P(x)
Key difference: UG requires c to be arbitrary (not specific), while EI introduces a new specific witness.
Why can't we switch the order of different quantifiers?
The order matters because it determines dependency. In ∀x∃y P(x,y), y can depend on x (different x values can have different y values). But in ∃y∀x P(x,y), y must be fixed before we consider all x values.
Mathematical example: Let P(x,y) mean "y > x" over real numbers.
- ∀x∃y (y > x) is TRUE: For any x, we can find a larger y (like x+1)
- ∃y∀x (y > x) is FALSE: No fixed y is larger than all x