Inference Rules in Propositional Logic
π― Learning Objectives
- State and apply fundamental inference rules: Modus Ponens, Modus Tollens, etc.
- Understand the Resolution rule and its significance
- Construct formal proofs using inference rules
- Understand soundness and completeness of inference systems
1. What is Inference?
Inference (or logical deduction) is the process of deriving new conclusions from known premises using valid rules. An inference rule has the form:
The symbol β’ means "derives" or "proves". If all premises are true, the conclusion must also be true.
An inference rule is sound if whenever all premises are true in an interpretation, the conclusion is also true in that interpretation. Sound rules never produce false conclusions from true premises.
2. Fundamental Inference Rules
2.1 Modus Ponens (MP)
Modus Ponens
P
βββββββ
β΄ Q
"If P implies Q, and P is true, then Q is true."
Example: Modus Ponens
Premise 1: "If it rains, the ground is wet." (R β W)
Premise 2: "It is raining." (R)
Conclusion: "The ground is wet." (W) β
2.2 Modus Tollens (MT)
Modus Tollens
Β¬Q
βββββββ
β΄ Β¬P
"If P implies Q, and Q is false, then P must be false."
Example: Modus Tollens
Premise 1: "If it rains, the ground is wet." (R β W)
Premise 2: "The ground is NOT wet." (Β¬W)
Conclusion: "It is NOT raining." (Β¬R) β
β οΈ Common Fallacies β DO NOT Confuse!
- Affirming the Consequent (INVALID): P β Q, Q β’ P β This is wrong! The ground being wet doesn't mean it rained (could be a sprinkler).
- Denying the Antecedent (INVALID): P β Q, Β¬P β’ Β¬Q β Also wrong! Not raining doesn't mean ground is dry.
2.3 Hypothetical Syllogism (HS)
Hypothetical Syllogism (Transitivity of Implication)
Q β R
βββββββ
β΄ P β R
2.4 Disjunctive Syllogism (DS)
Disjunctive Syllogism
Β¬P
βββββββ
β΄ Q
"If at least one of P or Q is true, and P is false, then Q must be true."
2.5 Addition
βββββββ
β΄ P β¨ Q
"If P is true, then P β¨ Q is true for any Q."
2.6 Simplification
βββββββ
β΄ P
2.7 Conjunction
Q
βββββββ
β΄ P β§ Q
2.8 Constructive Dilemma
P β¨ R
βββββββ
β΄ Q β¨ S
3. The Resolution Rule
Resolution (The Most Important Inference Rule for AI)
Β¬P β¨ Ξ²
βββββββ
β΄ Ξ± β¨ Ξ²
Where Ξ± and Ξ² are disjunctions of literals. The variable P is called the resolved variable, and the result (Ξ± β¨ Ξ²) is the resolvent.
π Resolution Subsumes Other Rules
- Modus Ponens is a special case: P and Β¬P β¨ Q resolve to give Q.
- Disjunctive Syllogism is a special case: P β¨ Q and Β¬P resolve to give Q.
- Resolution on clauses is the basis of automated theorem proving.
Example: Resolution in Action
Clauses: {P β¨ Q, Β¬P β¨ R, Β¬Q β¨ S}
- Resolve (P β¨ Q) with (Β¬P β¨ R) on P: gives Q β¨ R
- Resolve (Q β¨ R) with (Β¬Q β¨ S) on Q: gives R β¨ S
We derived R β¨ S from the original clauses.
4. Constructing Formal Proofs
Example: Prove R from premises {P, P β Q, Q β R}
| Step | Statement | Justification |
|---|---|---|
| 1 | P | Premise |
| 2 | P β Q | Premise |
| 3 | Q β R | Premise |
| 4 | Q | Modus Ponens (1, 2) |
| 5 | R | Modus Ponens (4, 3) |
Example: Prove Β¬P from {P β Q, Q β R, Β¬R}
| Step | Statement | Justification |
|---|---|---|
| 1 | P β Q | Premise |
| 2 | Q β R | Premise |
| 3 | Β¬R | Premise |
| 4 | Β¬Q | Modus Tollens (2, 3) |
| 5 | Β¬P | Modus Tollens (1, 4) |
Example: Prove S from {P β¨ Q, P β R, Q β S, Β¬R}
| Step | Statement | Justification |
|---|---|---|
| 1 | P β¨ Q | Premise |
| 2 | P β R | Premise |
| 3 | Q β S | Premise |
| 4 | Β¬R | Premise |
| 5 | Β¬P | Modus Tollens (2, 4) |
| 6 | Q | Disjunctive Syllogism (1, 5) |
| 7 | S | Modus Ponens (6, 3) |
5. Soundness and Completeness
An inference system is sound if every statement that can be derived (β’) is actually a semantic consequence (β¨).
If Ξ β’ Ξ± then Ξ β¨ Ξ±
Sound systems never prove false things from true premises.
An inference system is complete if every semantic consequence can be derived.
If Ξ β¨ Ξ± then Ξ β’ Ξ±
Complete systems can prove everything that is true.
Key Result
Resolution is sound and refutation-complete for propositional logic. This means: if a set of clauses is unsatisfiable, resolution will derive the empty clause (β₯). This is the theoretical basis for automated theorem proving.
6. GATE Exam Tips
π― Frequently Asked
- Identifying which inference rule was used in a given proof step.
- Spotting logical fallacies β especially affirming the consequent and denying the antecedent.
- Constructing a proof from given premises to a conclusion.
- Resolution is the most important rule for AI/logic questions.