MCS-212 · Block 1 Unit 1

Propositional Calculus

Section 3 of 8

Block 1 · Unit 1Propositional Calculus14 min · Section 3 of 8

1.3Conditional and biconditional

Covers IGNOU MCS-212 §1.3 (Conditional Connectives)

Most mathematical theorems and most program logic have the form “if something, then something else”. This section explains the conditional “if pp, then qq” and the biconditional ”pp if and only if qq”. The truth table of the conditional surprises many students, so we will look at it slowly.

The conditional p→qp \to q

ppqqp→qp \to q
TTT
TFF
FTT
FFT

Many ways to say p→qp \to q

All of the following mean p→qp \to q:

  • if pp, then qq;   \; pp implies qq;   \; qq if pp;   \; qq whenever pp
  • pp only if qq
  • pp is sufficient for qq
  • qq is necessary for pp

”pp only if qq” often confuses students. “You can board the plane only if you have a boarding pass” means: if you board the plane, then you have a boarding pass. It does not say that having a pass guarantees boarding.

Vacuously true and trivially true

When the hypothesis pp is false, p→qp \to q is true whatever qq is. We then say that p→qp \to q is vacuously true. When the conclusion qq is true, p→qp \to q is true whatever pp is; we then say p→qp \to q is trivially true.

Example: “If 3<03 < 0, then 5>05 > 0” is vacuously true (the hypothesis is false). It is also trivially true (the conclusion is true).

Converse, inverse and contrapositive

From one conditional p→qp \to q we can build three related conditionals.

NameFormSame truth table as p→qp \to q?
Originalp→qp \to q—
Converseq→pq \to pNo
Inverse¬p→¬q\neg p \to \neg qNo
Contrapositive¬q→¬p\neg q \to \neg pYes
Original

p → q

If it rains, the ground is wet.

Converse

q → p

If the ground is wet, it rains.

Not the same meaning

Inverse

¬p → ¬q

If it does not rain, the ground is not wet.

Not the same meaning

Contrapositive

¬q → ¬p

If the ground is not wet, it did not rain.

Same meaning as the original

The four conditionals built from p and q

The converse of "p→qp \to q" is read ”pp if qq”, or ”pp is necessary for qq” — the roles of pp and qq are swapped.

The biconditional p↔qp \leftrightarrow q

ppqqp→qp \to qq→pq \to pp↔qp \leftrightarrow q
TTTTT
TFFTF
FTTFF
FFTTT

Other readings: ”pp is necessary and sufficient for qq”, ”pp implies and is implied by qq”. In programming, p == q on two Booleans is exactly p↔qp \leftrightarrow q.

Key takeaways

  • p→qp \to q is false only when pp is T and qq is F.
  • ”pp only if qq”, ”pp is sufficient for qq” and ”qq is necessary for pp” all mean p→qp \to q.
  • A conditional with a false hypothesis is vacuously true; one with a true conclusion is trivially true.
  • The contrapositive ¬q→¬p\neg q \to \neg p is equivalent to p→qp \to q; the converse and inverse are not.
  • p↔qp \leftrightarrow q is true when pp and qq have the same truth value.

Practice questions

Answer on paper first, then check. The explanation matters more than the letter you chose.

Question 1 · multiple choice

In which case is p→qp \to q false?

Show answer

Answer: A. pp is true and qq is false

A conditional is like a promise; it is broken only when the condition pp holds and the result qq does not. When pp is false (options 2 and 3), the conditional is vacuously true.

Question 2 · multiple choice

What is the contrapositive of “If it rains, then the match is cancelled”?

Show answer

Answer: B. If the match is not cancelled, then it does not rain.

The contrapositive of p→qp \to q is ¬q→¬p\neg q \to \neg p, and it has the same meaning as the original. Option 3 is the inverse ¬p→¬q\neg p \to \neg q, which is not equivalent (the match could be cancelled for another reason).

Question 3 · multiple choice

Let pp: “You can register” and qq: “You have paid the fee”. How is “You can register only if you have paid the fee” written in symbols?

Show answer

Answer: D. p→qp \to q

”pp only if qq” means p→qp \to q: if you register, then you have paid. Option 1 is tempting, but paying the fee does not guarantee registration; it is only necessary.

Question 4 · multiple choice

What is the truth value of “If 2+2=52 + 2 = 5, then the moon is made of cheese”?

Show answer

Answer: C. T, vacuously, because the hypothesis is false

The hypothesis 2+2=52 + 2 = 5 is false, so the conditional is vacuously true. Option 4 uses the right truth value but the wrong reason: the conclusion is false, so the conditional is not trivially true.

Question 5 · multiple choice

Let pp: “7 is prime” and qq: “7 is even”. What is the truth value of p↔qp \leftrightarrow q?

Show answer

Answer: A. F

pp is T and qq is F; a biconditional is true only when both sides have the same truth value, so p↔qp \leftrightarrow q is F. Option 3 is tempting, but one true side is not enough for “if and only if”.

Question 6 · short answer

Write the converse, inverse and contrapositive of “If an integer is divisible by 6, then it is divisible by 3”. Which of the four statements are true for all integers?

Show worked answer

Let pp: ”nn is divisible by 6” and qq: ”nn is divisible by 3”. Original p→qp \to q: true, because n=6k=3(2k)n = 6k = 3(2k). Converse q→pq \to p: “If nn is divisible by 3, then it is divisible by 6” — false, counterexample n=3n = 3. Inverse ¬p→¬q\neg p \to \neg q: “If nn is not divisible by 6, then it is not divisible by 3” — false, counterexample n=3n = 3. Contrapositive ¬q→¬p\neg q \to \neg p: “If nn is not divisible by 3, then it is not divisible by 6” — true, because it is equivalent to the original. So the original and the contrapositive are true.

↑ ↓ move↵ openTab switch type