Logic · Lesson 1 of 2

Statements and implications

Statements and their truth values, the symbols ∼, ∧, ∨, ⇒ and ⇔ with their truth tables, and which of the converse, inverse and contrapositive of p ⇒ q is a valid conclusion.

14 minYou should already know: Sets & Venn diagrams
  1. 1
  2. 2

A statement is a sentence that is either true or false, but not both. “Lagos is in Nigeria” is a true statement and “7 is an even number” is a false one. “Close the door” and “Is it raining?” are not statements: they can’t be true or false. Whether a statement is true or false is its truth value, T or F. Statements are named with small letters such as pp and qq.

The negation of pp, written ∼p{\sim}p (“not pp”), says the opposite. If pp is “Kofi is tall”, then ∼p{\sim}p is “Kofi is not tall”. When pp is true, ∼p{\sim}p is false, and the other way round.

Joining statements

Two statements can be joined into one:

  • p∧qp \wedge q, ”pp and qq” (the conjunction): true only when both are true. “But” means “and” here: with rr: “it is sunny” and ss: “it is warm”, “it is sunny but cold” is r∧∼sr \wedge {\sim}s.
  • p∨qp \vee q, ”pp or qq” (the disjunction): true when at least one is true, including when both are.
  • p⇒qp \Rightarrow q, “if pp, then qq” (the implication, also read ”pp implies qq”): false only when pp is true and qq is false.
  • p⇔qp \Leftrightarrow q, ”pp if and only if qq”: true when pp and qq have the same truth value.
p∼p
TF
FT
Negation ∼pThe opposite of p
pqp ∧ q
TTT
TFF
FTF
FFF
And: p ∧ qTrue only if both are true
pqp ∨ q
TTT
TFT
FTT
FFF
Or: p ∨ qTrue if at least one is true
pqp ⇒ q
TTT
TFF
FTT
FFT
If … then: p ⇒ qFalse only for T ⇒ F
pqp ⇔ q
TTT
TFF
FTF
FFT
If and only if: p ⇔ qTrue when they match

Try it

Truth tablesFill the table a row at a time
pqp ⇒ q
TT?
TF?
FT?
FF?
0 of 4rows filled
p: “Ada scores 80”. q: “Ada gets a prize”. Press Next row to work out p ⇒ q one row at a time.

Fill in “if pp then qq” row by row. Think of p⇒qp \Rightarrow q as a promise: “if Ada scores 80, she gets a prize”. The promise is broken only if she scores 80 and gets no prize. When she doesn’t score 80, the promise isn’t tested, so it counts as true.

Converse, inverse and contrapositive

From an implication p⇒qp \Rightarrow q you can make three others:

  • the converse q⇒pq \Rightarrow p: swap the two parts;
  • the inverse ∼p⇒∼q{\sim}p \Rightarrow {\sim}q: negate both parts;
  • the contrapositive ∼q⇒∼p{\sim}q \Rightarrow {\sim}p: swap and negate.

Only the contrapositive means the same as p⇒qp \Rightarrow q. “If Ada scores 80, she gets a prize” and “if Ada gets no prize, she didn’t score 80” say the same thing. The converse, “if Ada gets a prize, she scored 80”, doesn’t follow: she might have won it another way. So from p⇒qp \Rightarrow q:

p⇒qis equivalent to∼q⇒∼pp \Rightarrow q \quad\text{is equivalent to}\quad {\sim}q \Rightarrow {\sim}p
swapnegate bothnegate bothswapStatementp ⇒ qConverseq ⇒ pInverse∼p ⇒ ∼qContrapositive∼q ⇒ ∼p
The four implicationsThe gold pair mean the same: p ⇒ q and its contrapositive. The dashed pair mean the same as each other.

Pick “The four implications” on the board above to see it in the truth table: the contrapositive’s column is the same as p⇒qp \Rightarrow q‘s, row for row.

Worked example · WAEC 2018

WAEC 2018 · Paper 2 · Q11 (b)

Consider the statements pp: Landi has cholera; qq: Landi is in the hospital. If p⇒qp \Rightarrow q, state whether or not the following statements are valid: (i) If Landi is in the hospital, then he has cholera. (ii) If Landi is not in the hospital, then he does not have cholera. (iii) If Landi does not have cholera, then he is not in the hospital.

  1. Name the parts

    pp: Landi has cholera. qq: Landi is in the hospital. We’re told p⇒qp \Rightarrow q.

    Think first. Which statement is p and which is q in each sentence?

  2. (i) In hospital ⇒ cholera

    “If Landi is in the hospital, then he has cholera” is q⇒pq \Rightarrow p, the converse. He could be in hospital for another reason. Not valid.

    Think first. Is this the converse, the inverse or the contrapositive?

  3. (ii) Not in hospital ⇒ no cholera

    This is ∼q⇒∼p{\sim}q \Rightarrow {\sim}p, the contrapositive, which means the same as p⇒qp \Rightarrow q. Valid.

    Think first. Write it with ∼.

  4. (iii) No cholera ⇒ not in hospital

    This is ∼p⇒∼q{\sim}p \Rightarrow {\sim}q, the inverse. He could be in hospital without cholera. Not valid.

    Think first. Write it with ∼.

Your turn

WAEC 2022 · Paper 1 · Q15

Consider the statements pp: Stephen is intelligent; qq: Stephen is good at Mathematics. If p⇒qp \Rightarrow q, which of the following is a valid conclusion?

Worked solution (try it first)
  1. The implication pp
    ⇒q\Rightarrow q is equivalent to its contrapositive ∼q\sim q
    ⇒∼p\Rightarrow \sim p: swap the parts and negate both.
  2. ∼q\sim q is "Stephen is not good at Mathematics" and ∼p\sim p is "he is not intelligent".
  3. So the valid conclusion is "If Stephen is not good at Mathematics, then he is not intelligent", option B.

Report a problem with this question

More past questions like this