BCS303 · Discrete Structures & Theory of Logic · Unit 3
Theory of Logics
Unit Scope & Exam Weightage: This unit covers Proposition, Truth tables, Tautology, Satisfiability, Contradiction, Algebra of proposition, Theory of Inference, Predicate Logic: First order predicate, wellformed formula of predicate, quantifiers and Inference theory of predicate logic. The corpus records 11 PYQ clusters worth about 62 marks. Four of them (28 marks) are inference arguments — symbolise, derive with named rules, then declare valid/invalid/inconsistent — so rule mastery is the single highest-return activity here.
Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)
| Priority | Topic (Exact Syllabus) | PYQs Asked | Marks Weightage | Tag |
|---|---|---|---|---|
| 1 | Theory of Inference | 4 (2023-24 ×2, 2024-25 ×2) |
7m × 4 | Survival Mode Proof |
| 2 | Predicate Logic: First order predicate | 2 (2024-25, 2025-26) |
7m + 2m | Translation |
| 3 | Proposition | 2 (2023-24, 2025-26) |
7m + 2m | Core Concept |
| 4 | Algebra of proposition | 1 (2025-26) |
7m | Core Concept |
| 5 | Inference theory of predicate logic | 1 (2023-24) |
7m | Proof |
| 6 | quantifiers | 1 (2025-26) |
2m | Core Concept |
| 7 | Truth tables | 0 direct | — | Predicted |
| 8 | Tautology | 0 direct | — | Predicted |
| 9 | Satisfiability | 0 direct | — | Predicted |
| 10 | Contradiction | 0 direct | — | Predicted |
| 11 | wellformed formula of predicate | 0 direct | — | Predicted |
2-Hour Last-Night Survival Checklist:
- Inference rules (#1): Modus Ponens ; Modus Tollens ; Hypothetical Syllogism; Simplification of ; Conjunction. Write the rule name beside every derived line.
- Sunny chain: → → (contrapositive of ) → → . Valid by MT + MP twice.
- Invalid vs inconsistent: "happy → smile, John smiles ∴ happy" is affirming the consequent — give counterexample . Alex's premises derive both and , so they are inconsistent.
- Predicate translations (#2): "everyone is loved by someone" ; "some people are not admired by everyone" .
- Proposition tricks (#3): invalidate "if integer then prime" with (gives 4); inverse of is ; converse is ; contrapositive is .
1. Propositions, Truth Tables, Tautology, Satisfiability and Contradiction
Proposition (2 Marks): a declarative statement that is either true or false, but not both. "Delhi is the capital of India" is a proposition; "What is the time?" and "Close the door" are not.
1.1 Connectives and Truth Tables
| Connective | Symbol | Meaning |
|---|---|---|
| Negation | not | |
| Conjunction | and | |
| Disjunction | or (inclusive) | |
| Implication | if then | |
| Biconditional | if and only if |
| T | T | F | T | T | T | T |
| T | F | F | F | T | F | F |
| F | T | T | F | T | T | F |
| F | F | T | F | F | T | T |
1.2 Classification of Formulas
| Term | Definition | Example |
|---|---|---|
| Tautology | true for every assignment | |
| Contradiction | false for every assignment | |
| Satisfiable | true for at least one assignment | |
| Contingency | neither tautology nor contradiction |
The implication identity is the key step in most truth-table proofs.
Examiner Tip: To disprove a universal claim such as "for every integer , is prime", produce one counterexample and compute its value explicitly. A truth-table tautology question should end with a full final column of T's.
After-Topic PYQ (
2025-26 Sec C Q5a— 7 Marks): Prove that the statement ‘if is an integer, then is a prime number’ is false.
2. Algebra of Proposition and Well-Formed Formulas
Well-formed formula (wff): a syntactically correct propositional or predicate expression built by the recursive rules below.
2.1 Construction Rules
- A proposition letter () or an atomic predicate is a wff.
- If is a wff, then is a wff.
- If are wffs, then , , , are wffs.
- If is a wff and a variable, then and are wffs.
- Nothing else is a wff (e.g., is invalid).
2.2 Important Equivalences
| Law | Equivalence |
|---|---|
| De Morgan | ; |
| Double negation | |
| Contrapositive | |
| Converse | of is (not equivalent) |
| Inverse | of is (equivalent to the converse) |
| Implication |
After-Topic PYQ (
2025-26 Sec C Q5b— 7 Marks): Explain the following terms with suitable examples: (i) Converse (ii) Disjunction (iii) Conjunction.
After-Topic PYQ (
2023-24 Sec A Q1e— 2 Marks): Construct inverse of the following statement "If I wake up early in the morning, then I will be healthy."
3. Theory of Inference
Valid argument: an argument is valid if whenever all hypotheses are true, the conclusion must also be true. If a truth assignment makes every premise true and the conclusion false, the argument is invalid.
3.1 Rules of Inference
| Rule | Form | Name |
|---|---|---|
| Modus Ponens | MP | |
| Modus Tollens | MT | |
| Hypothetical Syllogism | HS | |
| Disjunctive Syllogism | DS | |
| Simplification | Simp | |
| Conjunction | Conj | |
| Addition | Add |
3.2 Worked Inference Pattern — Sunny/Canoe
Let : sunny this afternoon; : colder than yesterday; : go swimming; : canoe trip; : home by sunset.
| Step | Statement | Rule |
|---|---|---|
| 1 | Hypothesis 1 | |
| 2 | Simplification of 1 | |
| 3 | Hypothesis 2 | |
| 4 | Contrapositive of 3 | |
| 5 | MP on 2,4 (or MT on 3,2) | |
| 6 | Hypothesis 3 | |
| 7 | MP on 5,6 | |
| 8 | Hypothesis 4 | |
| 9 | MP on 7,8 |
Conclusion reached — the argument is valid.
3.3 Invalid Pattern — Affirming the Consequent
Let : John is happy; : John smiles. Premises and ; conclusion . This is the fallacy of affirming the consequent. Assignment makes and but the conclusion false ⇒ invalid.
3.4 Inconsistent Premises
A set of premises is inconsistent if they jointly imply a contradiction . The Alex example in Section "Solved" derives from the illness chain and from reading books, so the four premises cannot all be true.
Examiner Tip: For every inference question use the four-beat format: (1) define symbols, (2) rewrite premises, (3) derive with rule names on each line, (4) state valid/invalid/inconsistent and, for invalid, give the counterexample assignment. This structure alone secures most of the 7 marks.
After-Topic PYQ (
2023-24, 2024-25 Sec B Q2c— 7 Marks): Show the validity of the following argument: Hypotheses: "It is not sunny this afternoon and it is colder than yesterday. We will go swimming only if it is sunny. If we do not go swimming, then we will take a canoe trip. If we take a canoe trip, then we will be home by sunset." Conclusion: "We will be home by sunset."
After-Topic PYQ (
2024-25 Sec B Q2c— 7 Marks): Analyse the argument's validity: Premises: If a person is happy, they smile. John is smiling. Conclusion: John is happy.
After-Topic PYQ (
2024-25 Sec C Q5a— 7 Marks): Justify that the following premises are inconsistent. (i) If Alex misses many classes through illness then he fails high school. (ii) If Alex fails high school, then he is uneducated. (iii) If Alex reads a lot of books then he is not uneducated. (iv) Alex misses many classes through illness and reads a lot of books.
After-Topic PYQ (
2023-24 Sec C Q5a— 7 Marks): Test the validity of the argument: "If there was a ball game, then traveling was difficult. If they arrived on time, then traveling was not difficult. They arrived on time. Therefore, there was no ball game."
4. Predicate Logic: First-Order Predicate and Quantifiers
Predicate: a statement involving variables that becomes a proposition when values are assigned, e.g. " is prime". Universal quantifier means "for all "; existential quantifier means "there exists at least one ".
4.1 Translation Guide
| English cue | Symbolic form |
|---|---|
| all / every / each | |
| some / there exists / at least one | |
| "all A are B" | |
| "some A are B" | |
| "not every A is B" |
These quantifier-negation laws are the predicate analogue of De Morgan's laws.
4.2 Worked Translations
With domain = people, : " loves ", : " admires ":
- Everyone is loved by someone: .
- Some people are not admired by everyone: .
- If a person is female and a parent then she is someone's mother: .
Examiner Tip: Always state the domain. "All prime numbers greater than 2 are odd" becomes ; using instead of after is the most common marking error.
After-Topic PYQ (
2025-26 Sec B Q2c— 7 Marks): Translate the following statements into symbolic form: (i) The sum of two positive integers is always positive. (ii) Everyone is loved by someone. (iii) Some people are not admired by everyone. (iv) If a person is female and is a parent, then this person is someone’s mother.
After-Topic PYQ (
2024-25 Sec A Q1c— 2 Marks): If represents " is a prime number" and represents " is odd," write the following statements in predicate logic: (a) "There exists an even prime number." (b) "All prime numbers greater than 2 are odd."
After-Topic PYQ (
2025-26 Sec A Q1d— 2 Marks): What is meant by an existential quantifier? Explain it with a simple statement.
5. Inference Theory of Predicate Logic
Predicate inference: extend propositional rules with quantifier rules — Universal Instantiation (UI): from infer ; Universal Generalisation (UG): from for arbitrary infer ; Existential Instantiation (EI): from infer for a new constant ; Existential Generalisation (EG): from infer .
Worked — All men are mortal:
- — hypothesis.
- — UI with Socrates.
- — hypothesis "Socrates is a man".
- — MP on 2,3.
- Conclusion: Socrates is mortal. ✓
Examiner Tip: In predicate proofs, name the quantifier rule on the line where you remove or . Examiners award a separate mark for UI and a separate mark for MP.
After-Topic PYQ (
2023-24 Sec C Q5b— 7 Marks): Describe the existential and universal quantifiers with examples. Convert "There is someone who got an A in the course" into predicate logic. Prove the argument: All men are mortal. Socrates is a man. Therefore, Socrates is mortal.
Solved Exam-Ready Questions
Solved Q1 (2023-24, 2024-25 Sec B Q2c — 7 Marks | Survival Mode)
Q: Show the validity of the following argument: Hypotheses: "It is not sunny this afternoon and it is colder than yesterday. We will go swimming only if it is sunny. If we do not go swimming, then we will take a canoe trip. If we take a canoe trip, then we will be home by sunset." Conclusion: "We will be home by sunset."
Solution:
- Symbols: = sunny, = colder, = go swimming, = canoe trip, = home by sunset.
- ; ; ; ; conclusion .
- From , (simplification).
- From , contrapositive ; with , infer (MT).
- From and , infer (MP).
- From and , infer (MP).
- Conclusion: the conclusion follows from the hypotheses by Simp, MT and MP — the argument is valid.
Solved Q2 (2024-25 Sec B Q2c — 7 Marks)
Q: Analyse the argument's validity: Premises: If a person is happy, they smile. John is smiling. Conclusion: John is happy.
Solution:
- Symbols: = John is happy; = John smiles.
- Premises: and ; claimed conclusion .
- Test: choose . Then (false antecedent makes implication true) and , so both premises hold.
- But the conclusion is false under the same assignment.
- Fallacy name: affirming the consequent — from and one cannot infer ; other causes of smiling exist.
- A valid related form is Modus Tollens: .
- Conclusion: the argument is invalid.
Solved Q3 (2024-25 Sec C Q5a — 7 Marks)
Q: Justify that the following premises are inconsistent. (i) If Alex misses many classes through illness then he fails high school. (ii) If Alex fails high school, then he is uneducated. (iii) If Alex reads a lot of books then he is not uneducated. (iv) Alex misses many classes through illness and reads a lot of books.
Solution:
- Symbols: = misses many classes through illness; = fails high school; = uneducated; = reads a lot of books.
- Premises: (i) ; (ii) ; (iii) ; (iv) .
- From (iv), simplify to get and .
- From and , infer (MP).
- From and , infer (MP).
- From and , infer (MP).
- Contradiction: is derived, so the four premises cannot all be true simultaneously — they are inconsistent.
Solved Q4 (2023-24 Sec C Q5a — 7 Marks)
Q: Test the validity of the argument: "If there was a ball game, then traveling was difficult. If they arrived on time, then traveling was not difficult. They arrived on time. Therefore, there was no ball game."
Solution:
- Symbols: = ball game; = traveling difficult; = arrived on time.
- Premises: ; ; . Conclusion: .
- From and , infer (MP).
- From , form the contrapositive .
- From and , infer (MP).
- Alternatively, hypothetical syllogism on and (contrapositive of ) gives ; with , MT yields .
- Conclusion: the conclusion is forced — the argument is valid.
Solved Q5 (2025-26 Sec B Q2c — 7 Marks)
Q: Translate the following statements into symbolic form: (i) The sum of two positive integers is always positive. (ii) Everyone is loved by someone. (iii) Some people are not admired by everyone. (iv) If a person is female and is a parent, then this person is someone’s mother.
Solution:
- (i) Domain = integers; . .
- (ii) Domain = people; loves . — for each person there is some who loves .
- (iii) admires . — equivalently .
- (iv) .
- Domain note: translations depend on the declared domain; with domain "all things", the predicates , , must be included as guards.
- Quantifier order: in (ii), is not the same as — the latter would mean one person loves everybody.
- Conclusion: each English statement maps to one of the four quantified patterns listed in Section 4.1.
Solved Q6 (2025-26 Sec C Q5a — 7 Marks)
Q: Prove that the statement ‘if is an integer, then is a prime number’ is false.
Solution:
- The statement is a universal claim over all integers; one counterexample is sufficient to disprove it.
- Take (an integer).
- Compute .
- is composite, not prime.
- Hence the implication "if is an integer then is prime" fails at .
- Another counterexample: gives , also composite. Indeed gives , gives and gives — all composite.
- Conclusion: the universal statement is false by counterexample.
Solved Q7 (2024-25 Sec A Q1c — 2 Marks)
Q: If represents " is a prime number" and represents " is odd," write the following statements in predicate logic: (a) "There exists an even prime number." (b) "All prime numbers greater than 2 are odd."
Solution:
- (a) — with integer domain, "even" is .
- (b) — note the implication after , not conjunction.
Solved Q8 (2023-24 Sec A Q1e — 2 Marks)
Q: Construct inverse of the following statement "If I wake up early in the morning, then I will be healthy."
Solution: Let = "I wake up early in the morning" and = "I will be healthy". The inverse of is : "If I do not wake up early in the morning, then I will not be healthy." (The converse would be ; the contrapositive is the equivalent form.)
Solved Q9 (2025-26 Sec C Q5b — 7 Marks)
Q: Explain the following terms with suitable examples: (i) Converse (ii) Disjunction (iii) Conjunction.
Solution:
- Converse: for , the converse is . Example: ="it rains", ="the ground is wet"; converse: "if the ground is wet then it rains." It is not logically equivalent to the original.
- Disjunction: means " or (or both)" — inclusive OR. It is false only when both are false. Example: "I will have tea or coffee."
- Conjunction: means " and " — true only when both are true. Example: "It is raining and cold."
- Truth tables:
| T | T | T | T |
| T | F | T | F |
| F | T | T | F |
| F | F | F | F |
- Related forms: inverse ; contrapositive .
- Use: these connectives build every compound proposition and appear in the hypotheses of inference problems.
- Conclusion: converse reverses an implication; disjunction and conjunction are the inclusive OR and AND connectives with the truth tables above.
Solved Q10 (2023-24 Sec C Q5b — 7 Marks)
Q: Describe the existential and universal quantifiers with examples. Convert "There is someone who got an A in the course" into predicate logic. Prove the argument: All men are mortal. Socrates is a man. Therefore, Socrates is mortal.
Solution:
- Universal quantifier: means holds for every in the domain. Example: .
- Existential quantifier: means at least one satisfies . Example: .
- Conversion: with domain = people in the course and got an A, "There is someone who got an A" → .
- Proof step 1: — hypothesis ("all men are mortal").
- Proof step 2: — Universal Instantiation with Socrates.
- Proof step 3: — hypothesis ("Socrates is a man").
- Proof step 4: — Modus Ponens on steps 2 and 3; hence Socrates is mortal. The argument is valid.
Solved Q11 (2025-26 Sec A Q1d — 2 Marks)
Q: What is meant by an existential quantifier? Explain it with a simple statement.
Solution: The existential quantifier asserts that at least one element of the domain satisfies the predicate: is true iff some makes true. Example over the integers: is true because satisfies it. Its negation is .
Practice Questions (Self-Test)
- (2 Marks) Give one example each of a tautology, a contradiction and a satisfiable contingency.
- (7 Marks) Use a truth table to prove .
- (7 Marks) Test validity: .
- (7 Marks) Show that without a truth table.
- (7 Marks) Symbolise: "Every student who studies hard passes; some students do not pass; therefore some students did not study hard" and test validity.
- (7 Marks) Translate: "No even integer greater than 2 is prime" into predicate logic.
- (7 Marks) Given , show follows.
- (7 Marks) Explain why and are different statements.
- (2 Marks) Write the converse, inverse and contrapositive of "If it rains, the match is cancelled."
- (7 Marks) Prove the inconsistency of , , , .