5: If-Then Statements
( \newcommand{\kernel}{\mathrm{null}\,}\)
Table of contents
Part 4: If-Then Statements
Why If-Then Statements Matter
Imagine you have a membership card to an exclusive club. The rule says:
"If you have the membership card, then you can enter the club."
This is an if-then statement (a conditional or implication). It connects having a membership card (hypothesis) to being allowed inside (conclusion). If-then statements are everywhere in daily life and mathematics. They help us set conditions and figure out consequences — essential for problem-solving and structured thinking.
What Is an If-Then Statement?
An if-then statement has two parts: 1. Hypothesis (if-part): The condition that might be true or false.
2. Conclusion (then-part): What is claimed to follow if the hypothesis holds.
In symbolic form, "if
-
Everyday Language Examples
-
"If you jump off the cliff, then you will get hurt."
Hypothesis: "You jump off the cliff."
Conclusion: "You will get hurt." -
"What goes up comes down."
(Can be phrased as: "If something goes up, then it comes down.") -
"Bigger engines burn more gas."
(As an implication: "If an engine is bigger, then it burns more gas.")
Other Ways to Say It
"
- "
- "Whenever
- "
Truth of If-Then: It's Not About Causality
In everyday life, we often expect an if-then to reflect a cause-and-effect relationship (if you water plants, they grow). However, in formal logic, the truth of
Consider these four examples of "
-
If the sky is blue, then the oceans are wet.
= "The sky is blue" (true),p = "The oceans are wet" (true).q
True hypothesis, true conclusion → the if-then statement is true (even though one doesn't cause the other). -
If the sky is neon yellow, then the oceans are wet.
= "The sky is neon yellow" (false),p = "The oceans are wet" (true).q
Hypothesis is false, so is considered true (a false "if" makes the implication true, regardless ofp→q ).q -
If the sky is neon yellow, then the oceans are dry.
= "The sky is neon yellow" (false),p = "The oceans are dry" (false).q
Hypothesis is false, is false, but stillq is true (because a falsep→q makesp true, regardless ofp→q ).q -
If the sky is blue, then the oceans are dry.
= "The sky is blue" (true),p = "The oceans are dry" (false).q
Here, hypothesis is true and conclusion is false → is false.p→q
Key Truth Rule for Implications
Truth Table for If-Then
To confirm the rule, let's see the truth table for a conditional
T | T | T |
T | F | F |
F | T | T |
F | F | T |
Row by row: - Row 1:
- Row 2:
- Row 3:
- Row 4:
Far-Fetched Hypothesis
Let
The implication
Using If-Then in Reasoning
In logic, if we know
From "
" and " p→q ," infer " p ." q
Real-Life Example (Modus Ponens)
= "I have a valid ticket."p = "I can enter the concert."q
If "Having a valid ticket implies I can enter the concert" (
Another common reasoning pattern is the contrapositive form (covered in Part 5): from
Common Misconceptions
-
"If
is false, thenp must be false."p→q
Reality: If is false,p is true by the logical definition (no matter whatp→q is).q -
"An if-then statement must reflect a real cause-and-effect."
Reality: Formal logic cares only about truth values, not actual causality or relevance. Even a nonsensical implication can be true in the logical sense if the condition is false or the conclusion is true. -
"If
is true, thenp→q causesp ."q
Reality: " " simply means "ifp→q is true, thenp is true." It says nothing about causation. (For example, "If 2+2=5, then pigs can fly" is logically true because 2+2=5 is false, but there's no causal link intended.)q
Historical Context
The concept of conditional statements dates back to ancient Greek logic. Aristotle was among the first to formalize logical reasoning, and the Stoic philosophers further developed propositional logic including early ideas of the if-then statement.
In modern symbolic logic, the implication operator (
Applications in Different Fields
Mathematics: Mathematical theorems are often stated as conditionals ("If a number is prime and greater than 2, then it is odd"). Mastering if-then helps in understanding proofs and the concept of necessary/sufficient conditions.
Computer Science: Conditional statements (if
-then
-else
) are the backbone of decision-making in algorithms and programs. Knowing logical implications helps programmers avoid bugs in complex conditions.
Law: Many laws are conditional ("If a person commits act X, then consequence Y follows"). Understanding the logic helps in interpreting statutes and constructing legal arguments without logical loopholes.
Medicine: Diagnostic reasoning uses implications ("If the patient shows symptoms X, Y, and Z, then they have condition A"). Recognizing these as if-then rules clarifies why certain tests or treatments are applied.
Exercises
Converting to If-Then Form
Rewrite each statement in a clear if-then form (
4.1. "By getting enough votes you will win the election."
4.2. "On the fourth Thursday in November we eat turkey."
4.3. "I am happy when I am studying calculus."
4.4. "People taller than six feet weigh more than three pounds."
4.5. "I will attend school in the fall if I am accepted at Stanford."
4.6. "A valid ID is required for admission." (Hint: think of it as "If a person does not have a valid ID, then...")
4.7. "I must pay my rent or I will be evicted." (Hint: rewrite as an implication by contrapositive: "If I don't pay rent, then...")
Identifying Hypotheses and Conclusions
For each implication below, label the hypothesis (if-part) and the conclusion (then-part):
4.8. If it rains today, the picnic will be canceled.
4.9. If Tom is a bachelor, then Tom is unmarried.
4.10. If the alarm is ringing, then a door or window was opened.
4.11. If Alice passes the exam, then Bob will throw a party.
Reasoning with Implications
4.12. Modus Ponens: Given "If I finish my work (
4.13. Modus Tollens: Given "If the cake is made with sugar (
4.14. Explain in your own words why an implication with a false hypothesis is considered true (use an example different from ones given above).
Next: In Part 5: The Converse and the Contrapositive, we will explore what happens when we flip or negate if-then statements — and why some transformations preserve truth while others do not.