Skip to main content
\(\newcommand{\versionNum}{$4.0$\ } \renewcommand{\tabcolsep}{2.4pt} \def\savedlnot{\lnot} \renewcommand{\arraystretch}{.63} \renewcommand{\arraystretch}{1} \renewcommand{\Naturals}{{\mathbb Z}^{\mbox{\tiny noneg}} } \renewcommand{\arraystretch}{.9} \renewcommand{\arraystretch}{.77} \newcommand{\hint}[1]{ } \newcommand{\inlinehint}[1]{ } \newcommand{\sageprompt}{ \texttt{sage$>$} } \newcommand{\tab}{} \newcommand{\blnk}{\rule{.4pt}{1.2pt}\rule{9pt}{.4pt}\rule{.4pt}{1.2pt}} \newcommand{\suchthat}{\; \;} \newcommand{\divides}{\!\mid\!} \newcommand{\tdiv}{\; \mbox{div} \;} \newcommand{\restrict}[2]{#1 \,_{\,#2}} \newcommand{\lcm}[2]{\mbox{lcm} (#1, #2)} \renewcommand{\gcd}[2]{\mbox{gcd} (#1, #2)} \newcommand{\Naturals}{{\mathbb N}} \newcommand{\Integers}{{\mathbb Z}} \newcommand{\Znoneg}{{\mathbb Z}^{\mbox{\tiny noneg}}} \newcommand{\Zplus}{{\mathbb N}} \newcommand{\Enoneg}{{\mathbb E}^{\mbox{\tiny noneg}}} \newcommand{\Qnoneg}{{\mathbb Q}^{\mbox{\tiny noneg}}} \newcommand{\Rnoneg}{{\mathbb R}^{\mbox{\tiny noneg}}} \newcommand{\Rationals}{{\mathbb Q}} \newcommand{\Reals}{{\mathbb R}} \newcommand{\Complexes}{{\mathbb C}} \newcommand{\relQ}{\mbox{\textsf Q}} \newcommand{\relR}{\mbox{\textsf R}} \newcommand{\nrelR}{\mbox{$\not${\textsf R}}} \newcommand{\relS}{\mbox{\textsf S}} \newcommand{\relA}{\mbox{\textsf A}} \newcommand{\Dom}[1]{\mbox{Dom}(#1)} \newcommand{\Cod}[1]{\mbox{Cod}(#1)} \newcommand{\Rng}[1]{\mbox{Rng}(#1)} \DeclareMathOperator{\caret}{$\scriptstyle\wedge$} \renewcommand{\arraystretch}{.77} \newcommand{\lt}{ < } \newcommand{\gt}{ > } \newcommand{\amp}{ & } \)

Section2.2Implication

Suppose a mother makes the following statement to her child: “If you finish your peas, you'll get dessert.”

This is a compound sentence made up of the two simpler sentences \(P=\) “You finish your peas” and \(D=\) “You'll get dessert.” It is an example of a type of compound sentence called a conditional. Conditionals are if-then type statements. In ordinary language the word “then” is often elided (as is the case with our example above). Another way of phrasing the “If P then D.” relationship is to use the word “implies” — although it would be a rather uncommon mother who would say “Finishing your peas implies that you will receive dessert.”

As was the case in the previous section, there are four possible situations and we must consider each to decide the truth/falsity of this conditional statement. The peas may or may not be finished, and independently, the dessert may or may not be proffered.

Suppose the child finishes the peas and the mother comes across with the dessert. Clearly, in this situation the mother's statement was true. On the other hand, if the child finishes the hated peas and yet does not receive a treat, it is just as obvious that the mother has lied! What do we say about the mother's veracity in the case that the peas go unfinished? Here, Mom gets a break. She can either hold firm and deliver no dessert, or she can be a softy and give out unearned sweets — in either case, we can't accuse her of telling a falsehood. The statement she made had to do only with the eventualities following total pea consumption, she said nothing about what happens if the peas go uneaten.

A conditional statement's components are called the antecedent (this is the “if” part, as in “finish your peas”) and the consequent (this is the “then” part, as in “get dessert”). The discussion in the last paragraph was intended to make the point that when the antecedent is false, we should consider the conditional to be true. Conditionals that are true because their antecedents are false are said to be vacuously true. The conditional involving an antecedent \(A\) and a consequent \(B\) is expressed symbolically using an arrow: \(A \implies B\). Here is a truth table for this connective.

\(A\) \(B\) \(A \implies B\)
T T T
T \(\phi\) \(\phi\)
\(\phi\) T T
\(\phi\) \(\phi\) T
Exercise2.2.1

Note that this truth table is similar to the truth table for \(A \lor B\) in that there is only a single row having a \(\phi\) in the last column. For \(A \lor B\) the \(\phi\) occurs in the 4th row and for \(A \implies B\) it occurs in the 2nd row. This suggests that by suitably modifying things (replacing \(A\) or \(B\) by their negations) we could come up with an “or” statement that had the same meaning as the conditional. Try it!

It is fairly common that conditionals are used to express threats, as in the peas/dessert example. Another common way to express a threat is to use a disjunction — “Finish your peas, or you won't get dessert.” If you've been paying attention (and did the last exercise), you will notice that this is not the disjunction that should have the same meaning as the original conditional. There is probably no mother on Earth who would say “Don't finish your peas, or you get dessert!” to her child (certainly not if she expects to be understood). So what's going on here?

The problem is that “Finish your peas, or you won't get dessert.” has the same logical content as “If you get dessert then you finished your peas.” (Notice that the roles of the antecedent and consequent have been switched.) And, while this last sentence sounds awkward, it is probably a more accurate reflection of what the mother intended. The problem really is that people are incredibly sloppy with their conditional statements! A lot of people secretly want the 3rd row of the truth table for \(\implies\) to have a \(\phi\) in it, and it simply doesn't! The operator that results if we do make this modification is called the biconditional, and is expressed in English using the phrase “if and only if” (which leads mathematicians to the abbreviation “iff” much to the consternation of spell-checking programs everywhere). The biconditional is denoted using an arrow that points both ways. Its truth table follows.

\(A\) \(B\) \(A \iff B\)
T T T
T \(\phi\) \(\phi\)
\(\phi\) T \(\phi\)
\(\phi\) \(\phi\) T

Please note, that while we like to strive for precision, we do not necessarily recommend the use of phrases such as “You will receive dessert if, and only if, you finish your peas.” with young children.

Since conditional sentences are often confused with the sentence that has the roles of antecedent and consequent reversed, this switched-around sentence has been given a name: it is the converse of the original statement. Another conditional that is distinct from (but related to) a given conditional is its inverse. This sort of sentence probably had to be named because of a very common misconception, many people think that the way to negate an if-then proposition is to negate its parts. Algebraically, this looks reasonable — sort of a distributive law for logical negation over implications — \({\lnot}( A \implies B) = {\lnot}A \implies {\lnot}B\). Sadly, this reasonable looking assertion can't possibly be true; since implications have just one \(\phi\) in a truth table, the negation of an implication must have three — but the statement with the \(\lnot\)'s on the parts of the implication is going to only have a single \(\phi\) in its truth table.

To recap, the converse of an implication has the pieces (antecedent and consequent) switched about. The inverse of an implication has the pieces negated. Neither of these is the same as the original implication. Oddly, this is one of those times when two wrongs do make a right. If you start with an implication, form its converse, then take the inverse of that, you get a statement having exactly the same logical meaning as the original. This new statement is called the contrapositive.

This information is displayed in <<Unresolved xref, reference "tab_contra"; check spelling or use "provisional" attribute>>

converses
\ifx\pdfoutput\undefined
\else
\fi \parbox[c]{10pt}{ \begin{sideways} inverses \end{sideways} } \parbox[c]{10pt}{ \ifx\pdfoutput\undefined \else \fi }
\(A \implies B\) \(B \implies A\)
\({\lnot}A \implies {\lnot}B\) \({\lnot}B \implies {\lnot}A\)

One final piece of advice about conditionals: don't confuse logical if-then relationships with causality. Many of the if-then sentences we run into in ordinary life describe cause and effect: “If you cut the green wire the bomb will explode.” (Okay, that one is an example from the ordinary life of a bomb squad technician, but …) It is usually best to think of the if-then relationships we find in Logic as divorced from the flow of time, the fact that \(A \implies B\) is logically the same as \({\lnot}A \lor B\) lends credence to this point of view.

Subsection2.2.1Exercises

  1. The transitive property of equality says that if \(a=b\) and \(b=c\) then \(a=c\). Does the implication arrow satisfy a transitive property? If so, state it. \hint{ I sometimes like to rephrase the implication \(X \implies Y\) as “X's truth forces Y to be true.” Does that help? If we know that X being true forces Y to be true, and we also know that Y being true will force Z to be true, what can we conclude? }

  2. Complete truth tables for the compound sentences \(A \implies B\) and \({\lnot}A \lor B\). \hint{ You should definitely be able to do this one on your own, but anyway, here's an outline of the table:

    \(A\) \(B\) \(A \implies B\) \({\lnot}A \lor B\)
    \(T\) \(T\)
    \(T\) \(\phi\)
    \(\phi\) \(T\)
    \(\phi\) \(\phi\)
    }

  3. Complete a truth table for the compound sentence \(A \implies (B \implies C)\) and for the sentence \((A \implies B) \implies C\). What can you conclude about conditionals and the associative property? \hint{ No help on this one other than to say that the associative property does not hold for implications. }

  4. Determine a sentence using the and connector (\(\land\)) that gives the negation of \(A \implies B\). \hint{Hmmm… This will seem like a strange hint, but if you were to hear a kid at the playground say “Oh yeah? Well, I did call your mom a fatty and you still haven't clobbered me! Owww! OWWW!!! Stop hitting me!!” What conditional sentence was he attempting to negate? }

  5. Rewrite the sentence “Fix the toilet or I won't pay the rent!” as a conditional. \hint{The way I see it there are eight possible ways to arrange "You fix the toilet" and "I'll pay the rent" (or their respective negations) around an implication arrow. Here they all are. You decide which one sounds best. If you fix the toilet, then I'll pay the rent. If you fix the toilet, then I won't pay the rent. If you don't fix the toilet, I'll pay the rent. If you don't fix the toilet, then I won't pay the rent. If I payed the rent, then you must have fixed the toilet. If I payed the rent, then you must not have fixed the toilet. If I didn't pay the rent, then you must have fixed the toilet. If I didn't pay the rent, then you must not have fixed the toilet. Some of those are truly strange… }

  6. Why is it that the sentence “If pigs can fly, I am the king of Mesopotamia.” true? \hint{Unless we're talking about some celebrity bringing their pet Vietnamese pot-bellied pig into first class with them, or possibly a catapult of some type... The antecedent (the if part) is false, so Yay! I AM the king of Mesopotamia!! Whoo-hooh! What? I'm not? Oh. But the if-then sentence is true. Bummer.}

  7. Express the statement \(A \implies B\) using the Peirce arrow and/or the Scheffer stroke. (See Exercise e in the previous section.) \hint{You'll want to use \(\vert\), the Scheffer stroke, aka NAND, because it's truth table contains three \(T\)'s and one \(\phi\) — you'll just need to figure out which of its inputs to negate so as to make that one \(\phi\) occur in the second row of the table instead of the first.}

  8. Find the contrapositives of the following sentences.

    1. If you can't do the time, don't do the crime.

    2. If you do well in school, you'll get a good job.

    3. If you wish others to treat you in a certain way, you must treat others in that fashion.

    4. If it's raining, there must be clouds.

    5. If \(a_n \leq b_n\), for all \(n\) and \(\sum_{n=0}^\infty b_n\) is a convergent series, then \(\sum_{n=0}^\infty a_n\) is a convergent series.

    1. If you do the crime, you must do the time.

    2. If you don't have a good job, you must've done poorly in school.

    3. If you don't treat others in a certain way, you can't hope for others to treat you in that fashion,

    4. If there are no clouds, it can't be raining.

    5. If \(\sum_{n=0}^\infty a_n\) is not a convergent series, then either \(a_n \leq b_n\), for some \(n\) or \(\sum_{n=0}^\infty b_n\) is not a convergent series.

  9. What are the converse and inverse of “If you watch my back, I'll watch your back.”? \hint{ The converse is “If I watch your back, then you'll watch my back.” (Sounds a little dopey doesn't it — likes its sort of a wishful thinking…) The inverse is “If you don't watch my back, then I won't watch your back.” (Sounds less vapid, but it means the same thing…) }

  10. The integral test in Calculus is used to determine whether an infinite series converges or diverges: Suppose that \(f(x)\) is a positive, decreasing, real-valued function with \(\lim_{x \longrightarrow \infty} f(x) = 0\), if the improper integral \(\int_0^\infty f(x)\) has a finite value, then the infinite series \(\sum_{n=1}^\infty f(n)\) converges. The integral test should be envisioned by letting the series correspond to a right-hand Riemann sum for the integral, since the function is decreasing, a right-hand Riemann sum is an underestimate for the value of the integral, thus \begin{equation*} \sum_{n=1}^\infty f(n) \lt \int_0^\infty f(x). \end{equation*} Discuss the meanings of and (where possible) provide justifications for the inverse, converse and contrapositive of the conditional statement in the integral test. \hint{ The inverse says — if the integral isn't finite, then the series doesn't converge. You can cook-up a function that shows this to be false by (for example) creating one with vertical asymptotes that occur in between the integer \(x\)-values. Even one such pole can be enough to make the integral go infinite. The converse says that if the series converges, the integral must be finite. The counter-example we just discussed would work here too. The contrapositive says that if the series doesn't converge, then the integral must not be finite. If we were allowed to use discontinuous functions, it isn't too hard to come up with an \(f\) that actually has zero area under it — just make f be identically zero except at the integer x-values where it will take the same values as the terms of the series. But wait, the function we just described isn't “decreasing” — which is probably why that hypothesis was put in there! }

  11. On the Island of Knights and Knaves (see page f) you encounter two individuals named Locke and Demosthenes. Locke says, “Demosthenes is a knave.” Demosthenes says “Locke and I are knights.” Who is a knight and who a knave? \hint{Could Demosthenes be telling the truth?}