When we prove theorems in mathematics, we are demonstrating the truth of certain statements. We therefore need to start our discussion of logic with a look at statements, and at how we recognize certain statements as true or false.
For something to be a statement, it has to be either true or false in principle; it does not matter whether we personally can verify its truth or falsity.
What makes statements valuable for our purposes is that there are a number of useful ways of forming new statements out of old ones. An analog to this would be the ways we have of combining numbers to get new ones, such as addition and multiplication; if we did not have these operations, then numbers would not be very interesting.
In this section we will discuss five ways of forming new statements out of old ones, corresponding to the English expressions: and; or; not; if, then; if and only if.
Let and be statements. The conjunction of and , which is denoted , is the statement that, intuitively, is true if both and are true, and is false otherwise. We read as โ and .โ The precise definition of is given by the โtruth tableโ
We could express the same idea more succinctly in English by saying โit is raining and cold today.โ In general, we will try to use statements that read well in English, as well as being logically correct.
The colloquial use of the word โandโ differs from the mathematical usage stated above. The mathematical usage means the above truth table, and nothing else, while colloquially there are other meanings in addition to this one. One source of confusion involving the word โandโ that is well worth avoiding is the colloquial use of this word in the sense of โtherefore.โ
Let and be statements. The disjunction of and , which is denoted , is the statement that, intuitively, is true if either is true or is true or both are true, and is false otherwise. We read as โ or .โ The precise definition of is given by the truth table
The mathematical use of the word โorโ always means an inclusive โor,โ so that if โ or โ is true, then either is true, or is true, or both and are true.
A simple example of a disjunction is the statement โmy car is red or it will rain today.โ This statement has the form , where โmy car is red,โ and โit will rain today.โ The truth of this statement implies that at least one of the statements โmy car is redโ or โit will rain todayโ is true. The only thing not allowed is that both โmy car is redโ and โit will rain todayโ are false.
Let and be statements. The negation of , which is denoted , is the statement that, intuitively, is true if is false, and is false if is true. We read as โnot .โ The precise definition of is given in the truth table
Let and be statements. The conditional from to , which is denoted , is the statement that, intuitively, is true if it is never the case that is true and is false. We read as if โ then โ. The precise definition of is given in the truth table
The above truth table for , which is universally accepted by mathematicians and logicians, may seem strange at first glance, and perhaps even contrary to intuition, but it is important to get used to it, because we will always use as we have defined it.
A simple example of a conditional statement is โif it rains today, then I will see a movie this evening.โ This statement has the form , where โit rains today,โ and โI will see a movie this evening.โ The truth of this statement does not say that it is raining today, nor that I will see a movie this evening. It only says what will happen if it rains today, which is that I will see a movie this evening. If it does not rain, I still might see a movie this evening, or I might not; both of these possibilities would be consistent with the truth of the original statement โif it rains today, then I will see a movie this evening.โ
There are a number of variations as to how to write the statement in English. In addition to writing โif then ,โ we could just as well write any of the following:
Let and be statements. The biconditional from to , which is denoted , is the statement that, intuitively, is true if and are both true or both false, and is false otherwise. We read as โ if and only if .โ The phrase โif and only ifโ is often abbreviated as โiff.โ The precise definition of is given in the truth table
An example of a biconditional statement is โI will go for a walk if and only if Fred will join me.โ This statement has the form , where โI will go for a walk,โ and โFred will join me.โ The truth of this statement does not say that I will go for a walk, or that Fred will join me. It says that either Fred will join me and I will go for a walk, or that neither of these things will happen. In other words, it could not be the case that Fred joins me and yet I do not go for a walk, and it also could not be the case that I go for a walk, and yet Fred has not joined me.
There are some variations as to how to write the statement in English. In addition to writing โ if and only if ,โ it is common to write โ is necessary and sufficient for .โ
Now that we have defined our five basic ways of combining statements, we can form more complicated compound statements by using combinations of the basic operations.
To save time and effort, it is possible to write a smaller truth table with the same information as the truth table above, by writing one column at a time, and labeling the columns in the order of how we write them. In the truth table shown below, we first write columns 1 and 2, which are just copies of the P and Q columns; we then write column 3, which is the negation of the R column; column 4 is formed from columns 2 and 3, and column 5 is formed from columns 1 and 4. We put the label โ5โ in a box, to highlight that its column is the final result of the truth table, and refers to the compound statement in which we are interested. It is, however, the same result as in the previous truth table.
A tautology is a statement that is always true by logical necessity, regardless of whether the component statements are true or false, and regardless of what we happen to observe in the real world.
An example of a tautology is the statement โIrene has red hair or she does not have red hair.โ It seems intuitively clear that this statement is a tautology, and we can verify this fact formally by using truth tables. Let โIrene has red hair.โ Then our purported tautology is the statement . The truth table for this statement is
In general, a statement is a tautology if, as verified using a truth table, it is always true, regardless of whether its component statements are true or false.
In general, a statement is a contradiction if, as verified using a truth table, it is always false, regardless of whether its component statements are true or false.
This assumptions, often referred to as the Law of the Excluded Middle (and known formally as bivalence), may seem innocuous enough, but in fact some mathematicians have chosen to work without this powerful axiom.