Inference Rules in Propositional Logic

GATE DA β€” Very High Importance

🎯 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:

Premise₁, Premiseβ‚‚, ..., Premiseβ‚–  βŠ’  Conclusion

The symbol ⊒ means "derives" or "proves". If all premises are true, the conclusion must also be true.

Definition: Sound Inference Rule

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
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

P β†’ Q
Β¬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)

P β†’ Q
Q β†’ R
───────
∴ P β†’ R

2.4 Disjunctive Syllogism (DS)

Disjunctive Syllogism

P ∨ Q
Β¬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
───────
∴ P ∨ Q

"If P is true, then P ∨ Q is true for any Q."

2.6 Simplification

P ∧ Q
───────
∴ P

2.7 Conjunction

P
Q
───────
∴ P ∧ Q

2.8 Constructive Dilemma

(P β†’ Q) ∧ (R β†’ S)
P ∨ R
───────
∴ Q ∨ S

3. The Resolution Rule

Resolution (The Most Important Inference Rule for AI)

P ∨ α
¬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}

  1. Resolve (P ∨ Q) with (¬P ∨ R) on P: gives Q ∨ R
  2. 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}

StepStatementJustification
1PPremise
2P β†’ QPremise
3Q β†’ RPremise
4QModus Ponens (1, 2)
5RModus Ponens (4, 3)

Example: Prove Β¬P from {P β†’ Q, Q β†’ R, Β¬R}

StepStatementJustification
1P β†’ QPremise
2Q β†’ RPremise
3Β¬RPremise
4Β¬QModus Tollens (2, 3)
5Β¬PModus Tollens (1, 4)

Example: Prove S from {P ∨ Q, P β†’ R, Q β†’ S, Β¬R}

StepStatementJustification
1P ∨ QPremise
2P β†’ RPremise
3Q β†’ SPremise
4Β¬RPremise
5Β¬PModus Tollens (2, 4)
6QDisjunctive Syllogism (1, 5)
7SModus Ponens (6, 3)

5. Soundness and Completeness

Definition: Soundness

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.

Definition: Completeness

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.