HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Conditionals, Contrapositives and Quantifiers
  1. 1Conditional and biconditional statements
  2. 2Converse, inverse and contrapositive
  3. 3Quantifiers and their negations
  1. Mathematics
  2. /Conditionals, Contrapositives and Quantifiers
  3. /Conditional and biconditional statements

Course 36.2·Lesson 1 of 3

Conditional and biconditional statements

The conditional p⇒qp \Rightarrow qp⇒q, 'if ppp then qqq

Lesson 1 of 3Show all lessonsHide
Conditionals, Contrapositives and Quantifiers
  1. 1Conditional and biconditional statements
  2. 2Converse, inverse and contrapositive
  3. 3Quantifiers and their negations

Try the code and the simulations beside the lesson.

What you will be able to do

  • give the truth value of an if-then statement and an if-and-only-if statement;
  • read the many ways of saying "if ppp then qqq";
  • write the negation of a conditional correctly.

When is a promise broken?

A parent says: "If you finish your homework, you can go to the park." Think of four evenings.

  1. You finish the homework and you go to the park. The promise is kept.
  2. You finish the homework and you are not allowed to go. The promise is broken.
  3. You do not finish, and you still go. The promise said nothing about this case. It is not broken.
  4. You do not finish, and you do not go. Not broken either.

Only one evening breaks the promise. That is exactly how logic treats "if ... then".

The conditional

For statements ppp and qqq, "if ppp then qqq" is the conditional, written p⇒qp \Rightarrow qp⇒q. Here ppp is the hypothesis (or antecedent) and qqq is the conclusion (or consequent).

p⇒qp \Rightarrow qp⇒q is false only when ppp is true and qqq is false.

ppp, qqqp⇒qp \Rightarrow qp⇒q∼p∨q\sim p \vee q∼p∨q
T, TTT
T, FFF
F, TTT
F, FTT

The last column agrees in every row. So

p⇒q≡∼p∨q.\displaystyle p \Rightarrow q \equiv \sim p \vee q.p⇒q≡∼p∨q.

When ppp is false, the conditional is true whatever qqq is. People say it is vacuously true. "If 2+2=52 + 2 = 52+2=5, then the Moon is made of glass" is a true statement.

Many exam papers and university books write p→qp \to qp→q for the same thing. NCERT and IB use ⇒\Rightarrow⇒.

Many ways to say "if p then q"

All of these mean p⇒qp \Rightarrow qp⇒q:

  • if ppp, then qqq;
  • ppp implies qqq;
  • qqq if ppp;
  • ppp only if qqq;
  • ppp is sufficient for qqq;
  • qqq is necessary for ppp;
  • qqq whenever ppp.

"Only if" is the one that trips people up. "You may board only if you have a ticket" says: boarding needs a ticket. So "you board ⇒\Rightarrow⇒ you have a ticket". It does not promise that a ticket gets you on board.

"Unless" means "if not". "The match is played unless it rains" says ∼r⇒p\sim r \Rightarrow p∼r⇒p, where rrr is "it rains" and ppp is "the match is played". That is equivalent to p∨rp \vee rp∨r.

The negation of a conditional

When is "if you finish, you go to the park" false? Only on evening 2: you finish, and you do not go. So

  • ∼(p⇒q)≡p∧∼q\sim(p \Rightarrow q) \equiv p \wedge \sim q∼(p⇒q)≡p∧∼q.

The negation of an if-then is an "and", not another if-then. A common wrong answer is "if you finish, you do not go". Check it on evening 4. Both the promise and that sentence are true there. A negation cannot agree with its statement, so that answer is wrong.

The biconditional

"A triangle is equilateral if and only if its three angles are equal." This says two things: equilateral implies equal angles, and equal angles imply equilateral.

The biconditional p⇔qp \Leftrightarrow qp⇔q means (p⇒q)∧(q⇒p)(p \Rightarrow q) \wedge (q \Rightarrow p)(p⇒q)∧(q⇒p). It is true when ppp and qqq have the same truth value.

ppp, qqqp⇔qp \Leftrightarrow qp⇔q
T, TT
T, FF
F, TF
F, FT

Other ways to say it: "ppp is necessary and sufficient for qqq", "ppp iff qqq". Its negation is true when exactly one part is true:

  • ∼(p⇔q)≡p⇔∼q\sim(p \Leftrightarrow q) \equiv p \Leftrightarrow \sim q∼(p⇔q)≡p⇔∼q.

That is the exclusive or of the last course.

Practise with new numbers

Try it in Python

Python has no symbol for "implies", so the program writes it as (not p) or q. It prints the table of p⇒qp \Rightarrow qp⇒q and of p⇔qp \Leftrightarrow qp⇔q, and checks that the negation of p⇒qp \Rightarrow qp⇒q is p∧∼qp \wedge \sim qp∧∼q.

Read it first. Then run it. In how many rows is implies(p, q) false?

1. Add a column for implies(q, p). In which rows does it differ from implies(p, q)?

2. Replace the test of the negation with not implies(p, q) == implies(p, not q) for every row. What does the program print, and why?

Common mistakes

  • Thinking a false hypothesis makes the conditional false. It makes it true.
  • Reversing "only if". "ppp only if qqq" is p⇒qp \Rightarrow qp⇒q, not q⇒pq \Rightarrow pq⇒p.
  • Negating an if-then with an if-then. The negation of p⇒qp \Rightarrow qp⇒q is p∧∼qp \wedge \sim qp∧∼q.
  • Treating "if" as "if and only if". A conditional says nothing about the case when the hypothesis fails.

Remember these

  • p⇒qp \Rightarrow qp⇒q is false only for ppp T and qqq F.
  • p⇒q≡∼p∨qp \Rightarrow q \equiv \sim p \vee qp⇒q≡∼p∨q and ∼(p⇒q)≡p∧∼q\sim(p \Rightarrow q) \equiv p \wedge \sim q∼(p⇒q)≡p∧∼q.
  • "ppp only if qqq" and "qqq is necessary for ppp" both mean p⇒qp \Rightarrow qp⇒q.
  • p⇔qp \Leftrightarrow qp⇔q is true when ppp and qqq agree.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Give the truth value of "If 333 is even, then 333 is greater than 101010".
  1. Write "A number is divisible by 444 only if it is even" in if-then form.
  1. Write the negation of "If the shop is open, then the lights are on".
  1. Is "x2=4x^2 = 4x2=4 if and only if x=2x = 2x=2" true for real numbers xxx?
  1. Rewrite "The road is closed unless the snow is cleared" as an if-then statement.

References

  • NCERT, Mathematics Textbook for Class XI (edition before 2023), Chapter 14, section 14.5.
  • OpenStax, Contemporary Mathematics, Chapter 2, section on the conditional and biconditional.

Enroll free in Conditionals, Contrapositives and Quantifiers

Every lesson is open to read. Enrolling also lets you:

  • Mark lessons done and carry on where you stopped.
  • Take the tests of this lesson and its course.
  • Count the course towards the certificate for its chapter.
No payment. You can leave at any time.

Problems (4)

Decide the truth value of each statement…Hard · High School (11–12) · by StemPy Lab
A college prints three rules about a certificate…Hard · High School (11–12) · by StemPy Lab
Prove, with the laws of logic, that p ⇒ (q ⇒ r) ≡ (p wedge q) ⇒ r…Advanced · High School (11–12) · by StemPy Lab
Next: lesson 2Converse, inverse and contrapositive
← Conditionals, Contrapositives and Quantifiers
← PreviousConverse, inverse and contrapositive →

Discussion (0)

Log in to join the discussion.

Loading…

', is false only when
ppp
is true and
qqq
is false; it is equivalent to
∼p∨q\sim p \vee q∼p∨q
, and its negation is
p∧∼qp \wedge \sim qp∧∼q
. It is also said as '
ppp
only if
qqq
', '
qqq
if
ppp
', '
ppp
is sufficient for
qqq
' and '
qqq
is necessary for
ppp
'. The biconditional
p⇔qp \Leftrightarrow qp⇔q
is true when
ppp
and
qqq
have the same truth value.
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

For each whole number n from 1 to 50, consider the statement S(n): "if n is a multiple of 6, then n…
Hard · High School (11–12) · by StemPy Lab