Learning objectives
- Define a valid argument and an argument form.
- Recognise and apply the standard rules of inference.
- Build a numbered derivation from premises to conclusion.
- Spot the fallacies of affirming the conclusion and denying the hypothesis.
Roman Urdu. Rules of inference woh qaide hain jin se hum sahih premises se nayi sahih baat nikalte hain. Is lecture mein hum modus ponens, modus tollens, hypothetical syllogism jaise qaide seekhte hain aur step-by-step derivation likhna seekhte hain. Hum un ghalat tareeqon (fallacies) ko bhi pehchanna seekhte hain jo dekhne mein sahih lagte hain.
Core concepts
Definition. An argument is a list of premises p₁, …, pₙ and a conclusion c. It is valid if whenever all premises are true, c is true. Equivalently, (p₁ ∧ … ∧ pₙ) → c is a tautology. Valid means the form is correct. It does not mean the premises are true.
Standard rules
| Rule | Premises | Conclusion |
|---|---|---|
| Modus ponens | p, p → q | q |
| Modus tollens | ¬q, p → q | ¬p |
| Hypothetical syllogism | p → q, q → r | p → r |
| Disjunctive syllogism | p ∨ q, ¬p | q |
| Addition | p | p ∨ q |
| Simplification | p ∧ q | p |
| Conjunction | p, q | p ∧ q |
| Resolution | p ∨ q, ¬p ∨ r | q ∨ r |
For quantifiers, four more rules are used: universal instantiation (from ∀x P(x) infer P(c)), universal generalisation, existential instantiation and existential generalisation (from P(c) infer ∃x P(x)).
Fallacies
| Fallacy | Form | Why invalid |
|---|---|---|
| Affirming the conclusion | q, p → q ⊢ p | p = F, q = T makes both premises true and the conclusion false |
| Denying the hypothesis | ¬p, p → q ⊢ ¬q | p = F, q = T makes both premises true and the conclusion false |
Worked examples
Example 1 (basic). Name the rule. "If it rains, the match is cancelled. The match was not cancelled. Therefore it did not rain." With p = rain, q = cancelled: premises p → q and ¬q, conclusion ¬p. This is modus tollens.
Example 2 (intermediate). Chain of implications. Premises: "If I study, I pass" and "If I pass, I get a scholarship." Conclusion: "If I study, I get a scholarship." Rule: hypothetical syllogism.
Example 3 (advanced). Derive t from ¬p ∧ q, r → p, ¬r → s, s → t.
| Step | Statement | Reason |
|---|---|---|
| 1 | ¬p ∧ q | premise |
| 2 | ¬p | simplification, 1 |
| 3 | r → p | premise |
| 4 | ¬r | modus tollens, 2, 3 |
| 5 | ¬r → s | premise |
| 6 | s | modus ponens, 4, 5 |
| 7 | s → t | premise |
| 8 | t | modus ponens, 6, 7 |
Why it works: every line is either a premise or follows from earlier lines by a rule that preserves truth.
Example 4 (computing). Specification: "If the server is in maintenance mode then logins are disabled." Observation: logins are enabled. By modus tollens the server is not in maintenance mode. The wrong inference "the server is not in maintenance mode, so logins are enabled" is denying the hypothesis.
Computer science connection
Resolution is the engine of Prolog and of many SAT solvers; automated theorem provers and program verifiers chain these rules; rule-based AI systems apply modus ponens repeatedly (forward chaining).
Key takeaways
- Valid argument: premises true forces conclusion true.
- Modus ponens and modus tollens are valid; affirming the conclusion and denying the hypothesis are not.
- A derivation is a numbered list with a reason for every line.
Roman Urdu. Modus ponens: p aur p → q se q. Modus tollens: ¬q aur p → q se ¬p. "q sahih hai is liye p sahih hai" ghalat hai (affirming the conclusion). Derivation mein har line ki wajah likhna zaroori hai.
Five revision questions
- Define a valid argument using a tautology.
- Name the rule: "Either the file is corrupt or the disk is full. The file is not corrupt. So the disk is full."
- Show by a counterexample row that denying the hypothesis is invalid.
- Which rule gives p ∨ q from p?
- From p → q and ¬q ∨ r, derive p → r.
Homework. Write three derivations of your own with at least five steps each, and one invalid argument with the counterexample row.
Quiz
p → q aur p diye hon to nateeja?
Ye Modus Ponens hai.
All lectures
- Lecture 0: Discrete vs Continuous
- Lecture 1: Propositions and Connectives
- Lecture 2: Truth Tables, Tautologies and Contradictions
- Lecture 3: Logical Equivalence and the Laws of Logic
- Lecture 4: Predicate Logic and Quantifiers
- Lecture 5: Rules of Inference
- Lecture 6: Logical Arguments and Puzzle Solving
- Lecture 7: Direct Proof and Proof by Implication
- Lecture 8: Proof by Contraposition
- Lecture 9: Proof by Contradiction
- Lecture 10: Mathematical Induction
- Lecture 11: Strong Induction
- Lecture 12: Applications of Proofs and Proof Strategy
START WELL TO END WELL