The words that build mathematical claims, "not", "and", "or", "if ... then", mean something slightly different in conversation every time they are used, and a proof cannot rest on a word whose meaning moves.
The previous lesson unpacked "the sum of two odd integers is even" into a claim with an "if ... then" inside it, and its proofs worked only because it was clear what that claim asserted. This lesson makes that clarity routine. It says which sentences can be true or false, fixes the meaning of each connective with a truth table, and spends most of its time on the conditional, the connective every theorem is written in. It assumes school algebra and the definitions of even and odd: an integer is even when it equals for some integer , and odd when it equals .
Statements
A statement is a sentence that is either true or false. " is prime" is a statement, and a false one, since . "" is a true one, since . What matters is that the sentence has a truth value, not that anyone knows it. "Every even integer greater than is the sum of two primes" is Goldbach's conjecture, proposed in a letter to Euler in 1742 and checked by computer for every even number up to . Nobody knows whether it is true, but it is certainly one or the other, so it is a statement.
Plenty of mathematical sentences are not statements. "Is prime?" is a question and "Let " is an instruction. The subtler case is a sentence with a free variable, such as "", which is true when , false when , and has no truth value until is pinned down. Such a sentence is an open sentence. Turning open sentences into statements is the job of the next lesson; this one works with statements, or with open sentences read for one value of the variable at a time.
Statements are written with capital letters, , , , so that the structure of a claim can be seen apart from its content. The rules below depend only on whether each part is true or false, never on what it says.
Not, and, or
Each connective is defined by saying, for every combination of truth values of its parts, whether the compound is true. With two parts there are four combinations, and a truth table lists them, one per row.
Negation, written and read "not ", is true exactly when is false. Conjunction, , read " and ", is true exactly when both parts are true. Disjunction, , read " or ", is true when at least one part is true, including when both are.
| T | T | F | T | T |
| T | F | F | F | T |
| F | T | T | F | T |
| F | F | T | F | F |
The last column is the one that departs from conversation. "Soup or salad" on a menu usually means one but not both. In mathematics "or" is always inclusive, and the sentences mathematicians write show why. The rule "if then or " must not exclude , and " is divisible by or by " is true of . When the exclusive sense is wanted it is spelt out: " or but not both", which is .
The negation of a statement is whatever is true in exactly the cases where the statement is false, and ordinary language often reaches for an opposite instead. The negation of "" is "", not "": at both "" and "" are false, so the second cannot be the negation of the first. And "" is itself a disjunction, " or ".
Negating a compound statement
Two compound statements are equivalent when they have the same truth value in every row of their truth table. Since the table lists every case, checking the rows is a complete proof. Note that , which denies the whole conjunction, is a different thing from , where applies only to .
The most useful equivalences say how to negate an "and" or an "or". To deny that two things both hold is to say that at least one fails, and to deny that at least one holds is to say that both fail. These are De Morgan's laws, after Augustus De Morgan, who stated them in 1847, and they are what a proof needs whenever it must say what the failure of a condition looks like.
Example. Show that and are equivalent, and use this to negate " and ".
Compute both columns in each of the four rows.
| T | T | T | F | F | F | F |
| T | F | F | T | F | T | T |
| F | T | F | T | T | F | T |
| F | F | F | T | T | T | T |
The fourth and seventh columns agree in every row, so the two statements are equivalent. Now let be "" and be "". The negation of is , and the negations of the parts are "" and "". So the negation of " and " is " or ".
Now you. Show that and are equivalent, and use this to negate " or ".
Answer
is false only in the row where and are both false, so is true in that row and false in the other three. is true only when and are both true, which is the same row. The columns agree in all four rows, so the statements are equivalent. The negation of " or " is therefore " and ", that is, .
The common error is to negate the parts and leave the connective alone. "Not ( and )" is not " and ", which no number satisfies. Negating a compound always turns "and" into "or" or the reverse.
The conditional
The fourth connective is the conditional, , read "if then " or " implies ". is the hypothesis and the conclusion. The fifth is the biconditional, , read " if and only if ", which is true when and have the same truth value.
| T | T | T | T |
| T | F | F | F |
| F | T | T | F |
| F | F | T | T |
The first two rows of the conditional need no defence. "If is divisible by , then is even" is kept by a number divisible by that is even, and would be broken by one divisible by that is odd: a true hypothesis with a false conclusion is exactly what it means for an implication to fail.
The last two rows are the ones that surprise. Whenever the hypothesis is false, the conditional is true, whatever the conclusion, so "if , then is even" is a true statement. A conditional true because its hypothesis is false is called vacuously true. It looks like a convention, and slightly at odds with sense, but no other choice would let mathematics state its theorems.
Why a false hypothesis gives a true conditional
Take a theorem nobody doubts: for every integer , if is divisible by , then is even. It claims something about every integer, so it is true only if each instance, one conditional per integer, is true. At the instance has a true hypothesis and a true conclusion. At the hypothesis is false and the conclusion true. At both are false. If either of the last two instances counted as false, this theorem would be false, and so would nearly every theorem of the form "if ... then", since nearly any hypothesis fails for some values. Those rows have to be true for mathematics to be sayable at all.
Nothing else could go in them either. Making both rows false turns into , so the theorem would assert that is divisible by . Making only the false-true row false turns it into , so the theorem would claim every even number is divisible by , which refutes. Making only the false-false row false gives a column identical to , and the hypothesis would do nothing.
The conditional asserts no connection between its parts: "if , then is even" is true though its halves are unrelated. In mathematics that costs nothing, because the connection is what the proof supplies. The table also tells a proof where to look. A conditional can fail only in the row where is true, so to prove it is enough to assume and show that follows, which is what the previous lesson did when it began "let and be odd".
That same row gives the negation. Since is false only when is true and false, its negation is . The negation of an implication is not another implication: it says the hypothesis holds and the conclusion fails, which is what a counterexample exhibits.
Example. Negate "if is prime, then is odd", decide whether the conditional is true for , and , and say what this shows.
The negation is " is prime and is even", since is . For the hypothesis is true and the conclusion false, so the conditional is false, and its negation is true: is prime and even. For the hypothesis is false, since , so the conditional is vacuously true. For both parts are true and so is the conditional. The claim "every prime is odd" is therefore false, and is the counterexample: an integer at which the negation holds.
Now you. Negate "if , then ", and decide whether the conditional is true for , and .
Answer
The negation is " and ". At both and hold, so the conditional is true. At the hypothesis fails, so the conditional is vacuously true, even though . At the hypothesis and the conclusion both fail, and again the conditional is vacuously true. None of the three makes the negation true.
Converse, inverse and contrapositive
Swapping and negating the parts of gives three new conditionals: the converse , the inverse , and the contrapositive . Their tables settle which say the same thing as the original.
| T | T | T | T | T | T |
| T | F | F | F | T | T |
| F | T | T | T | F | F |
| F | F | T | T | T | T |
The contrapositive agrees with the original in every row, so the two are equivalent. The converse and inverse agree with each other and differ from the original in the middle two rows. So a proof of is a proof of , which a later lesson turns into a method, while a proof of says nothing about . Treating it as if it did is the commonest logical error in student proofs.
Example. Write the converse, inverse and contrapositive of "if is divisible by , then is divisible by ", and decide which are true for every integer .
The statement is true: if for an integer , then , and is an integer. The converse is "if is divisible by , then is divisible by ", which is false, since is divisible by and not by . The inverse is "if is not divisible by , then is not divisible by ", and refutes it too, as it must, being equivalent to the converse. The contrapositive is "if is not divisible by , then is not divisible by ", which is true because it is equivalent to the original.
Now you. For real numbers , write the converse, inverse and contrapositive of "if , then ", and decide which are true.
Answer
The statement is true: if then is positive, so . The converse, "if then ", is false, since gives with . The inverse, "if then ", is false by the same . The contrapositive, "if then ", is true, being equivalent to the original.
Necessary, sufficient and only if
When holds, is a sufficient condition for : having guarantees . And is a necessary condition for : without there is no , which is the contrapositive read aloud. Divisibility by is sufficient for divisibility by , and divisibility by is necessary for divisibility by . These are one fact seen from its two ends.
" only if " also means . "Only" marks the necessary condition, which is the conclusion: " is divisible by only if is even" says divisibility by cannot happen without evenness. By contrast " if " means . The two are opposite, so together they make "if and only if": is the same as , a condition both necessary and sufficient. That is why proving an "if and only if" takes two proofs, one per direction.
One convention catches every newcomer. Definitions are written with "if", as in "an integer is even if for some integer ", but a definition is always read as "if and only if". The previous lesson used its definitions in both directions, producing a from an even number and concluding evenness from a , and was right to.
What connectives cannot say
The five connectives are now fixed, and the negation of each compound can be written down mechanically. Yet the argument for the conditional's table used something no connective contains. "For every integer , if is divisible by , then is even" is not a conditional between two statements, since " is divisible by " is an open sentence; the phrase "for every integer " is what made the whole a true statement. Refuting "every prime is odd" needed the opposite phrase: there is a prime that is even. Nearly every theorem is about all numbers or some number, and neither "all" nor "some" can be built from the five connectives. The next lesson adds them, with rules for negating them that turn "not every" into "some fails".