FOL Inference Rules
Prerequisites
- FOL Syntax — terms, WFFs, quantifiers
- Quantifier Rules — negation, distribution
- Propositional Inference — Modus Ponens, Resolution
🎯 Learning Objectives
- Apply Universal Instantiation (UI) and Universal Generalization (UG)
- Apply Existential Instantiation (EI) and Existential Generalization (EG)
- Combine quantifier rules with propositional inference
- Identify soundness pitfalls with incorrect generalization/instantiation
1. Universal Instantiation (UI)
From ∀x α, infer α with x replaced by any ground term t (or any term free for x in α).
Restriction: t must be free for x in α — substituting t for x must not cause any variable in t to become bound.
Given: ∀x (Human(x) → Mortal(x))
UI with x = Socrates: Human(Socrates) → Mortal(Socrates)
UI with x = Father(John): Human(Father(John)) → Mortal(Father(John))
2. Universal Generalization (UG)
If α(x) has been derived for an arbitrary x (not a specific individual), we can conclude ∀x α(x).
Restrictions:
- x must not appear in any undischarged assumption.
- x must not have been introduced by Existential Instantiation.
We cannot generalize over a specific constant. From Mortal(Socrates) we cannot conclude ∀x Mortal(x). Socrates is a specific individual, not arbitrary.
3. Existential Instantiation (EI)
From ∃x α(x), introduce a new Skolem constant c (not appearing elsewhere in the knowledge base) and conclude α(c).
Restriction: c must be completely fresh — it has not appeared in any prior formula.
Given: ∃x (Dog(x) ∧ Black(x))
EI: Dog(c1) ∧ Black(c1) where c1 is a fresh constant.
We know some black dog exists; c1 names it, but we know nothing else about c1.
4. Existential Generalization (EG)
If we know α holds for some specific term t, we can conclude ∃x α(x) (replacing t by x).
Given: Loves(John, Mary)
EG: ∃x Loves(x, Mary) (“someone loves Mary”)
EG: ∃y Loves(John, y) (“John loves someone”)
EG: ∃x ∃y Loves(x, y) (“someone loves someone”)
5. Summary of Four Rules
| Rule | From | Conclude | Key Restriction |
|---|---|---|---|
| UI | ∀x α(x) | α(t) for any t | t free for x in α |
| UG | α(x) for arbitrary x | ∀x α(x) | x not from EI, not in assumptions |
| EI | ∃x α(x) | α(c) for fresh c | c must be a brand-new constant |
| EG | α(t) for some term t | ∃x α(x) | None (always valid) |
6. Combining with Propositional Rules — Worked Example
Knowledge Base:
- ∀x (Human(x) → Mortal(x)) [All humans are mortal]
- Human(Socrates) [Socrates is human]
Derivation:
- Human(Socrates) → Mortal(Socrates) [UI on (1) with x = Socrates]
- Mortal(Socrates) [Modus Ponens on (2) and (3)]
KB:
- ∀x (Friendly(x) → Passes(x))
- ∃x Friendly(x)
Derivation:
- Friendly(c) [EI on (2), c is fresh]
- Friendly(c) → Passes(c) [UI on (1) with x = c]
- Passes(c) [Modus Ponens on (3) and (4)]
- ∃x Passes(x) [EG on (5)]
∴ Someone passes the exam. □
7. Soundness Concerns
An inference system is sound if every formula it derives from a set of premises is a logical consequence of those premises. The four quantifier rules, when used with their restrictions, are sound.
- ∃x Rich(x) [Some person is rich]
- Rich(c) [EI, c is fresh]
- ∀x Rich(x) [WRONG! UG on (2) — but c came from EI!]
This “proves” everyone is rich from the premise that someone is rich. The error: UG cannot be applied to a variable/constant introduced by EI.
Summary
- UI: ∀x α(x) ⊢ α(t) for any suitable term t.
- UG: α(x) ⊢ ∀x α(x) only when x is truly arbitrary.
- EI: ∃x α(x) ⊢ α(c) with a fresh constant c.
- EG: α(t) ⊢ ∃x α(x) always valid.
- These rules bridge quantified formulas and propositional reasoning (Modus Ponens, etc.).
References
- Russell, S. & Norvig, P. AIMA, 4th Ed. — Section 9.1
- Huth, M. & Ryan, M. Logic in Computer Science, 2nd Ed. — Ch. 2