Top Banner Ad

BCS303 — Unit 3: Theory of Logics

Table of Contents (29 sections)

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:

  1. Inference rules (#1): Modus Ponens p→q,p⊢qp\to q,p\vdash q; Modus Tollens p→q,¬q⊢¬pp\to q,\neg q\vdash\neg p; Hypothetical Syllogism; Simplification of ∧\land; Conjunction. Write the rule name beside every derived line.
  2. Sunny chain: ¬s∧c\neg s\wedge c → ¬s\neg s → (contrapositive of w→sw\to s) ¬w\neg w → kk → hh. Valid by MT + MP twice.
  3. Invalid vs inconsistent: "happy → smile, John smiles ∴ happy" is affirming the consequent — give counterexample H=F,S=TH=F,S=T. Alex's premises derive both UU and ¬U\neg U, so they are inconsistent.
  4. Predicate translations (#2): "everyone is loved by someone" =∀x∃y L(y,x)=\forall x\exists y\,L(y,x); "some people are not admired by everyone" =∃x(Person(x)∧¬∀y(Person(y)→A(y,x)))=\exists x\big(Person(x)\land\neg\forall y(Person(y)\to A(y,x))\big).
  5. Proposition tricks (#3): invalidate "if nn integer then n2−n+4n^2-n+4 prime" with n=1n=1 (gives 4); inverse of p→qp\to q is ¬p→¬q\neg p\to\neg q; converse is q→pq\to p; contrapositive is ¬q→¬p\neg q\to\neg p.

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 ¬p\neg p not pp
Conjunction p∧qp\wedge q pp and qq
Disjunction p∨qp\vee q pp or qq (inclusive)
Implication p→qp\to q if pp then qq
Biconditional p↔qp\leftrightarrow q pp if and only if qq
pp qq ¬p\neg p p∧qp\wedge q p∨qp\vee q p→qp\to q p↔qp\leftrightarrow q
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 p∨¬pp\vee\neg p
Contradiction false for every assignment p∧¬pp\wedge\neg p
Satisfiable true for at least one assignment p∧qp\wedge q
Contingency neither tautology nor contradiction p→qp\to q
p→q≡¬p∨q,¬(p→q)≡p∧¬qp\to q \equiv \neg p\vee q, \qquad \neg(p\to q)\equiv p\wedge\neg q

The implication identity is the key step in most truth-table proofs.

Examiner Tip: To disprove a universal claim such as "for every integer nn, n2−n+4n^2-n+4 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 nn is an integer, then n2−n+4n^2 - n + 4 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

  1. A proposition letter (p,q,rp,q,r) or an atomic predicate P(x)P(x) is a wff.
  2. If AA is a wff, then ¬A\neg A is a wff.
  3. If A,BA,B are wffs, then (A∧B)(A\wedge B), (A∨B)(A\vee B), (A→B)(A\to B), (A↔B)(A\leftrightarrow B) are wffs.
  4. If AA is a wff and xx a variable, then ∀xA\forall x A and ∃xA\exists x A are wffs.
  5. Nothing else is a wff (e.g., p∧p\wedge is invalid).

2.2 Important Equivalences

Law Equivalence
De Morgan ¬(p∨q)≡¬p∧¬q\neg(p\vee q)\equiv\neg p\wedge\neg q; ¬(p∧q)≡¬p∨¬q\neg(p\wedge q)\equiv\neg p\vee\neg q
Double negation ¬¬p≡p\neg\neg p\equiv p
Contrapositive p→q≡¬q→¬pp\to q\equiv\neg q\to\neg p
Converse of p→qp\to q is q→pq\to p (not equivalent)
Inverse of p→qp\to q is ¬p→¬q\neg p\to\neg q (equivalent to the converse)
Implication p→q≡¬p∨qp\to q\equiv\neg p\vee q

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 H1,…,Hn⊢CH_1,\dots,H_n\vdash C 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 p→q, p⊢qp\to q,\ p\vdash q MP
Modus Tollens p→q, ¬q⊢¬pp\to q,\ \neg q\vdash\neg p MT
Hypothetical Syllogism p→q, q→r⊢p→rp\to q,\ q\to r\vdash p\to r HS
Disjunctive Syllogism p∨q, ¬p⊢qp\vee q,\ \neg p\vdash q DS
Simplification p∧q⊢pp\wedge q\vdash p Simp
Conjunction p, q⊢p∧qp,\ q\vdash p\wedge q Conj
Addition p⊢p∨qp\vdash p\vee q Add

3.2 Worked Inference Pattern — Sunny/Canoe

Let ss: sunny this afternoon; cc: colder than yesterday; ww: go swimming; kk: canoe trip; hh: home by sunset.

Step Statement Rule
1 ¬s∧c\neg s\wedge c Hypothesis 1
2 ¬s\neg s Simplification of 1
3 w→sw\to s Hypothesis 2
4 ¬s→¬w\neg s\to\neg w Contrapositive of 3
5 ¬w\neg w MP on 2,4 (or MT on 3,2)
6 ¬w→k\neg w\to k Hypothesis 3
7 kk MP on 5,6
8 k→hk\to h Hypothesis 4
9 hh MP on 7,8

Conclusion reached — the argument is valid.

3.3 Invalid Pattern — Affirming the Consequent

Let HH: John is happy; SS: John smiles. Premises H→SH\to S and SS; conclusion HH. This is the fallacy of affirming the consequent. Assignment H=F, S=TH=F,\ S=T makes H→S=TH\to S=T and S=TS=T but the conclusion false ⇒ invalid.

3.4 Inconsistent Premises

A set of premises is inconsistent if they jointly imply a contradiction U∧¬UU\wedge\neg U. The Alex example in Section "Solved" derives UU from the illness chain and ¬U\neg U 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. P(x):P(x): "xx is prime". Universal quantifier ∀x\forall x means "for all xx"; existential quantifier ∃x\exists x means "there exists at least one xx".

4.1 Translation Guide

English cue Symbolic form
all / every / each ∀x\forall x
some / there exists / at least one ∃x\exists x
"all A are B" ∀x(A(x)→B(x))\forall x(A(x)\to B(x))
"some A are B" ∃x(A(x)∧B(x))\exists x(A(x)\wedge B(x))
"not every A is B" ¬∀x(A(x)→B(x))≡∃x(A(x)∧¬B(x))\neg\forall x(A(x)\to B(x))\equiv\exists x(A(x)\wedge\neg B(x))
¬∀x P(x)≡∃x ¬P(x),¬∃x P(x)≡∀x ¬P(x)\neg\forall x\,P(x)\equiv\exists x\,\neg P(x), \qquad \neg\exists x\,P(x)\equiv\forall x\,\neg P(x)

These quantifier-negation laws are the predicate analogue of De Morgan's laws.

4.2 Worked Translations

With domain = people, L(a,b)L(a,b): "aa loves bb", A(y,x)A(y,x): "yy admires xx":

  • Everyone is loved by someone: ∀x∃y L(y,x)\forall x\exists y\,L(y,x).
  • Some people are not admired by everyone: ∃x∃y(Person(x)∧Person(y)∧¬A(y,x))\exists x\exists y\big(Person(x)\wedge Person(y)\wedge\neg A(y,x)\big).
  • If a person is female and a parent then she is someone's mother: ∀x((Female(x)∧Parent(x))→∃y MotherOf(x,y))\forall x\big((Female(x)\wedge Parent(x))\to\exists y\,MotherOf(x,y)\big).

Examiner Tip: Always state the domain. "All prime numbers greater than 2 are odd" becomes ∀x((P(x)∧x>2)→Q(x))\forall x((P(x)\wedge x>2)\to Q(x)); using ∧\wedge instead of →\to after ∀\forall 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 P(x)P(x) represents " xx is a prime number" and Q(x)Q(x) represents " xx 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 ∀xP(x)\forall xP(x) infer P(c)P(c); Universal Generalisation (UG): from P(c)P(c) for arbitrary cc infer ∀xP(x)\forall xP(x); Existential Instantiation (EI): from ∃xP(x)\exists xP(x) infer P(c)P(c) for a new constant cc; Existential Generalisation (EG): from P(c)P(c) infer ∃xP(x)\exists xP(x).

Worked — All men are mortal:

  1. ∀x(M(x)→T(x))\forall x(M(x)\to T(x)) — hypothesis.
  2. M(s)→T(s)M(s)\to T(s) — UI with s=s= Socrates.
  3. M(s)M(s) — hypothesis "Socrates is a man".
  4. T(s)T(s) — MP on 2,3.
  5. Conclusion: Socrates is mortal. ✓

Examiner Tip: In predicate proofs, name the quantifier rule on the line where you remove ∀\forall or ∃\exists. 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:

  1. Symbols: ss = sunny, cc = colder, ww = go swimming, kk = canoe trip, hh = home by sunset.
  2. H1:¬s∧cH_1:\neg s\wedge c; H2:w→sH_2:w\to s; H3:¬w→kH_3:\neg w\to k; H4:k→hH_4:k\to h; conclusion hh.
  3. From H1H_1, ¬s\neg s (simplification).
  4. From H2H_2, contrapositive ¬s→¬w\neg s\to\neg w; with ¬s\neg s, infer ¬w\neg w (MT).
  5. From H3H_3 and ¬w\neg w, infer kk (MP).
  6. From H4H_4 and kk, infer hh (MP).
  7. 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:

  1. Symbols: HH = John is happy; SS = John smiles.
  2. Premises: H→SH\to S and SS; claimed conclusion HH.
  3. Test: choose H=F, S=TH=F,\ S=T. Then H→S=TH\to S=T (false antecedent makes implication true) and S=TS=T, so both premises hold.
  4. But the conclusion H=FH=F is false under the same assignment.
  5. Fallacy name: affirming the consequent — from H→SH\to S and SS one cannot infer HH; other causes of smiling exist.
  6. A valid related form is Modus Tollens: H→S,¬S⊢¬HH\to S,\neg S\vdash\neg H.
  7. 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:

  1. Symbols: II = misses many classes through illness; FF = fails high school; UU = uneducated; BB = reads a lot of books.
  2. Premises: (i) I→FI\to F; (ii) F→UF\to U; (iii) B→¬UB\to\neg U; (iv) I∧BI\wedge B.
  3. From (iv), simplify to get II and BB.
  4. From I→FI\to F and II, infer FF (MP).
  5. From F→UF\to U and FF, infer UU (MP).
  6. From B→¬UB\to\neg U and BB, infer ¬U\neg U (MP).
  7. Contradiction: U∧¬UU\wedge\neg U 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:

  1. Symbols: bb = ball game; dd = traveling difficult; aa = arrived on time.
  2. Premises: b→db\to d; a→¬da\to\neg d; aa. Conclusion: ¬b\neg b.
  3. From a→¬da\to\neg d and aa, infer ¬d\neg d (MP).
  4. From b→db\to d, form the contrapositive ¬d→¬b\neg d\to\neg b.
  5. From ¬d\neg d and ¬d→¬b\neg d\to\neg b, infer ¬b\neg b (MP).
  6. Alternatively, hypothetical syllogism on b→db\to d and d→¬ad\to\neg a (contrapositive of a→¬da\to\neg d) gives b→¬ab\to\neg a; with aa, MT yields ¬b\neg b.
  7. 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:

  1. (i) Domain = integers; P(n):n>0P(n):n>0. ∀x∀y((P(x)∧P(y))→P(x+y))\forall x\forall y\big((P(x)\wedge P(y))\to P(x+y)\big).
  2. (ii) Domain = people; L(a,b):aL(a,b):a loves bb. ∀x∃y L(y,x)\forall x\exists y\,L(y,x) — for each person xx there is some yy who loves xx.
  3. (iii) A(y,x):yA(y,x):y admires xx. ∃x∃y(Person(x)∧Person(y)∧¬A(y,x))\exists x\exists y\big(Person(x)\wedge Person(y)\wedge\neg A(y,x)\big) — equivalently ∃x(Person(x)∧¬∀y(Person(y)→A(y,x)))\exists x\big(Person(x)\wedge\neg\forall y(Person(y)\to A(y,x))\big).
  4. (iv) ∀x((Female(x)∧Parent(x))→∃y MotherOf(x,y))\forall x\big((Female(x)\wedge Parent(x))\to\exists y\,MotherOf(x,y)\big).
  5. Domain note: translations depend on the declared domain; with domain "all things", the predicates PersonPerson, FemaleFemale, ParentParent must be included as guards.
  6. Quantifier order: in (ii), ∀x∃y\forall x\exists y is not the same as ∃y∀x\exists y\forall x — the latter would mean one person loves everybody.
  7. 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 nn is an integer, then n2−n+4n^2 - n + 4 is a prime number’ is false.

Solution:

  1. The statement is a universal claim over all integers; one counterexample is sufficient to disprove it.
  2. Take n=1n=1 (an integer).
  3. Compute n2−n+4=1−1+4=4n^2-n+4=1-1+4=\mathbf{4}.
  4. 4=2×24=2\times2 is composite, not prime.
  5. Hence the implication "if nn is an integer then n2−n+4n^2-n+4 is prime" fails at n=1n=1.
  6. Another counterexample: n=4n=4 gives 16−4+4=1616-4+4=16, also composite. Indeed n=0n=0 gives 44, n=2n=2 gives 66 and n=3n=3 gives 1010 — all composite.
  7. Conclusion: the universal statement is false by counterexample.

Solved Q7 (2024-25 Sec A Q1c — 2 Marks)

Q: If P(x)P(x) represents " xx is a prime number" and Q(x)Q(x) represents " xx 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) ∃x(P(x)∧¬Q(x))\exists x\big(P(x)\wedge\neg Q(x)\big) — with integer domain, "even" is ¬Q(x)\neg Q(x).
  • (b) ∀x((P(x)∧x>2)→Q(x))\forall x\big((P(x)\wedge x>2)\to Q(x)\big) — note the implication after ∀\forall, 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 pp = "I wake up early in the morning" and qq = "I will be healthy". The inverse of p→qp\to q is ¬p→¬q\neg p\to\neg q: "If I do not wake up early in the morning, then I will not be healthy." (The converse would be q→pq\to p; the contrapositive ¬q→¬p\neg q\to\neg p 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:

  1. Converse: for p→qp\to q, the converse is q→pq\to p. Example: pp="it rains", qq="the ground is wet"; converse: "if the ground is wet then it rains." It is not logically equivalent to the original.
  2. Disjunction: p∨qp\vee q means "pp or qq (or both)" — inclusive OR. It is false only when both are false. Example: "I will have tea or coffee."
  3. Conjunction: p∧qp\wedge q means "pp and qq" — true only when both are true. Example: "It is raining and cold."
  4. Truth tables:
pp qq p∨qp\vee q p∧qp\wedge q
T T T T
T F T F
F T T F
F F F F
  1. Related forms: inverse =¬p→¬q=\neg p\to\neg q; contrapositive =¬q→¬p≡p→q=\neg q\to\neg p\equiv p\to q.
  2. Use: these connectives build every compound proposition and appear in the hypotheses of inference problems.
  3. 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:

  1. Universal quantifier: ∀xP(x)\forall xP(x) means P(x)P(x) holds for every xx in the domain. Example: ∀x(Man(x)→Mortal(x))\forall x(Man(x)\to Mortal(x)).
  2. Existential quantifier: ∃xP(x)\exists xP(x) means at least one xx satisfies P(x)P(x). Example: ∃xStudent(x)\exists x Student(x).
  3. Conversion: with domain = people in the course and A(x):xA(x):x got an A, "There is someone who got an A" → ∃x A(x)\exists x\,A(x).
  4. Proof step 1: ∀x(M(x)→T(x))\forall x(M(x)\to T(x)) — hypothesis ("all men are mortal").
  5. Proof step 2: M(s)→T(s)M(s)\to T(s) — Universal Instantiation with s=s= Socrates.
  6. Proof step 3: M(s)M(s) — hypothesis ("Socrates is a man").
  7. Proof step 4: T(s)T(s) — 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 ∃x\exists x asserts that at least one element of the domain satisfies the predicate: ∃xP(x)\exists xP(x) is true iff some xx makes P(x)P(x) true. Example over the integers: ∃x(x>5)\exists x(x>5) is true because x=6x=6 satisfies it. Its negation is ¬∃xP(x)≡∀x¬P(x)\neg\exists xP(x)\equiv\forall x\neg P(x).


Practice Questions (Self-Test)

  1. (2 Marks) Give one example each of a tautology, a contradiction and a satisfiable contingency.
  2. (7 Marks) Use a truth table to prove p→q≡¬q→¬pp\to q\equiv\neg q\to\neg p.
  3. (7 Marks) Test validity: p→q, q→r, ¬r⊢¬pp\to q,\ q\to r,\ \neg r\vdash\neg p.
  4. (7 Marks) Show that ¬(p∨q)≡¬p∧¬q\neg(p\vee q)\equiv\neg p\wedge\neg q without a truth table.
  5. (7 Marks) Symbolise: "Every student who studies hard passes; some students do not pass; therefore some students did not study hard" and test validity.
  6. (7 Marks) Translate: "No even integer greater than 2 is prime" into predicate logic.
  7. (7 Marks) Given ∃x(P(x)∧Q(x))\exists x(P(x)\wedge Q(x)), show ∃xP(x)∧∃xQ(x)\exists xP(x)\wedge\exists xQ(x) follows.
  8. (7 Marks) Explain why ∃y∀xL(y,x)\exists y\forall xL(y,x) and ∀x∃yL(y,x)\forall x\exists yL(y,x) are different statements.
  9. (2 Marks) Write the converse, inverse and contrapositive of "If it rains, the match is cancelled."
  10. (7 Marks) Prove the inconsistency of p→qp\to q, q→rq\to r, r→¬pr\to\neg p, pp.