Unit summary

  • A proposition is a statement that is either true or false, and connectives join propositions into compound statements.
  • Truth tables give the value of a statement for every assignment, with 2^n rows for n variables.
  • A tautology is always true, a contradiction always false, a contingency sometimes true.
  • Logical equivalence is shown by truth tables or by laws such as De Morgan's laws.
  • Quantifiers ∀ and ∃ express "for all" and "there exists", and are negated by swapping them.
  • Every statement has a DNF (OR of ANDs) and a CNF (AND of ORs).
  • Rules of inference such as modus ponens and modus tollens build valid proofs.
  • Proof by contradiction and mathematical induction are key methods of proof.

Glossary

Term Meaning
CNF An AND of ORs of literals.
Conditional The statement p → q, false only when p is true and q false.
Connective A symbol that joins propositions, such as ∧, ∨, ¬, →.
Contingency A statement that is neither a tautology nor a contradiction.
Contradiction A statement false in every case.
Contrapositive The statement ¬q → ¬p, equivalent to p → q.
Converse The statement q → p.
DNF An OR of ANDs of literals.
Literal A variable or its negation.
Logical equivalence Two statements with the same truth table.
Mathematical induction Proof by a basis step and an inductive step.
Modus ponens From p and p → q, infer q.
Modus tollens From ¬q and p → q, infer ¬p.
Predicate A statement with variables.
Proposition A statement that is either true or false.
Quantifier A symbol, ∀ or ∃, stating how many elements satisfy a predicate.
Tautology A statement true in every case.
Truth table A table of the truth values of a statement for all cases.

Question bank

Short Answer Questions (2 marks each)

  1. Define a proposition with an example.
  2. Write the truth table of p → q.
  3. Define a tautology and a contradiction.
  4. Write the contrapositive of p → q.
  5. State De Morgan's laws.
  6. Negate ∀x P(x).
  7. Define CNF and DNF.
  8. State modus ponens and modus tollens.
  9. What is proof by contradiction?
  10. State the principle of mathematical induction.

Medium Answer Questions (5 marks each)

  1. Construct the truth table of (p → q) ∧ (q → p) and compare it with p ↔ q.
  2. Show that (p → q) ∨ (q → p) is a tautology.
  3. Prove ¬(p ∨ (¬p ∧ q)) ≡ ¬p ∧ ¬q using the laws of logic.
  4. Find the CNF and DNF of (p → q) ∧ r.
  5. Explain the rules of inference with examples.
  6. Prove by induction that 1 + 3 + 5 + … + (2n − 1) = n².

Long Answer Questions (15 marks each)

  1. Explain propositions, connectives and truth tables, and classify statements as tautology, contradiction or contingency.
  2. Explain logical equivalence, quantifiers and their negation, with examples.
  3. Explain CNF and DNF and the methods of converting a statement to each form.
  4. Explain the rules of inference, proof by contradiction and mathematical induction, with examples.

Sources

  • Official BCA syllabus Mathematics Foundations to Computer Science II, course code 25BCA402DS01, Unit I