◆ Study Hub By J

Study Hub › Study Guides

MATHS · DISCRETE

Propositional Logic and Proof by Induction: A Step-by-Step Guide

By Janidu Sandaruwan · Updated October 2026 · 3 min read

Logic and induction are where many students first meet "proof" in computing maths. Both follow strict rules, which is good news: once you know the template, you can write answers that get full marks every time.

1. Propositions and connectives

A proposition is a statement that is either true or false, such as "7 is prime". Connectives join propositions:

SymbolNameTrue when…
¬pNegation (not)p is false
p ∧ qConjunction (and)both are true
p ∨ qDisjunction (or)at least one is true
p → qImplication (if p then q)every case except p true and q false
p ↔ qBiconditional (if and only if)both have the same value

The implication is the one students get wrong most often: p → q is true whenever p is false. "If it rains, I'll bring an umbrella" isn't broken on a dry day.

2. Truth tables

A truth table lists every combination of truth values. With n variables there are 2n rows. Here is p → q and its equivalent ¬p ∨ q:

pqp → q¬p¬p ∨ q
TTTFT
TFFFF
FTTTT
FFTTT

The two columns match in every row, so p → q ≡ ¬p ∨ q. A formula that is true in every row is a tautology; one false in every row is a contradiction.

3. Equivalences and De Morgan's laws

When simplifying, write the law you used next to each line. Markers give method marks for named steps.

4. Proof by induction: the template

Induction proves that a statement P(n) is true for every integer n ≥ some starting value. Think of dominoes: show the first one falls, and show that any falling domino knocks over the next.

  1. Base case: show P(n0) is true for the starting value (often n = 1).
  2. Inductive hypothesis: assume P(k) is true for some arbitrary k ≥ n0.
  3. Inductive step: using that assumption, prove P(k + 1) is true.
  4. Conclusion: by the principle of mathematical induction, P(n) is true for all n ≥ n0.

5. Worked example

Prove: 1 + 2 + … + n = n(n + 1)/2 for all n ≥ 1.

Base case (n = 1): left side = 1, right side = 1(2)/2 = 1. True.

Hypothesis: assume 1 + 2 + … + k = k(k + 1)/2 for some k ≥ 1.

Step: 1 + 2 + … + k + (k + 1) = k(k + 1)/2 + (k + 1) (using the hypothesis) = (k + 1)(k/2 + 1) = (k + 1)(k + 2)/2, which is exactly the formula with n = k + 1.

Conclusion: by mathematical induction, the formula holds for all n ≥ 1. ∎

6. Common mistakes

J

Written by Janidu Sandaruwan, an IT undergraduate at SLIIT and the creator of Study Hub By J. Guides are written from a student's point of view; always confirm official rules with your faculty and module outline.

Study Hub By J: a non-profit student help platform, made for university students. 💙
Study Guides · Study Hub · GPA Calculator · Privacy & Policy · About the creator
Independent student project · not officially affiliated with any university · © 2026 Study Hub By J