Ken Levasseur, Al Doerr, Michiel Smid, Oscar Levin, Charles M. Grinstead, J. Laurie Snell, Eric Lehman, F. Thomson Leighton, Albert R Meyer, Jeff Erickson, Kenneth P. Bogart, Carol Chritchlow, David Eck, OpenDSA Project, L.J. Miller
Section4.1Propositions and Logical Operators
Subsection4.1.1Propositions
Definition4.1.1.Proposition.
A proposition is a sentence to which one and only one of the terms true or false can be meaningfully applied.
In traditional logic, a declarative statement with a definite truth value is considered a proposition. Although our ultimate aim is to discuss mathematical logic, we wonβt separate ourselves completely from the traditional setting. This is natural because the basic assumptions, or postulates, of mathematical logic are modeled after the logic we use in everyday life.
Since compound sentences are frequently used in everyday speech, we expect that logical propositions contain connectives such as the words βandβ and βorβ. The statement βEuropa supports life or Mars supports lifeβ is a proposition and, hence, must have a definite truth value. Whatever that truth value is, it should be the same as the truth value of βMars supports life or Europa supports life.β
There are several ways in which we commonly combine simple statements into compound ones. The words/phrases and, or, not, if ... then..., and ...if and only if ... can be added to one or more propositions to create a new proposition. To avoid any confusion, we will precisely define each oneβs meaning and introduce its standard symbol.
With the exception of negation (not), all of the operations act on pairs of propositions. Since each proposition has two possible truth values, there are four ways that truth can be assigned to two propositions. In defining the effect that a logical operation has on two propositions, the result must be specified for all four cases. The most convenient way of doing this is with a truth table, which we will illustrate by defining the connective and.
To read this truth table, you must realize that any one line represents a case: one possible set of values for and .
The numbers 0 and 1 are used to denote false and true, respectively. Sometimes you will see F and T instead. The use of 0 and 1 is consistent with the way that many programming languages treat logical, or Boolean, variables since a single bit, 0 or 1, can represent a truth value.
For each case, the symbol under represents the truth value of . The same is true for . The symbol under represents its truth value for that case. For example, the second row of the truth table represents the case in which is false, is true, and the resulting truth value for is false. As in everyday speech, is true only when both propositions are true.
Just as the letters , and are frequently used in algebra to represent numeric variables, , and seem to be the most commonly used symbols for logical variables. When we say that is a logical variable, we mean that any proposition can take the place of .
One final comment: The order in which we list the cases in truth table rows is standardized in this book. It is important to be consistent with the ordering so that all possible combinations are represented.
There will always be rows in a truth table with propositions
From top to bottom, the first column should have of the rows as 0s followed by of the rows as 1s. The second column should have of the rows 0s followed by of the rows 1s, then another rows of 0s followed another rows of 1s. The final column of simple propositions should have rows of alternating 0s and 1s.
If the truth table involves two simple propositions, the numbers under the simple propositions can be interpreted as the two-digit binary integers in increasing order, 00, 01, 10, and 11, for 0, 1, 2, and 3, respectively.
All three propositions are conditional, they can all be restated to fit into the form βIfCondition, then Conclusion.β For example, the first statement can be rewritten as βIf I donβt get a raise, then Iβm going to quit.β
A conditional statement is meant to be interpreted as a guarantee; if the condition is true, then the conclusion is expected to be true. It says no more and no less.
Example4.1.7.Analysis of a Conditional Proposition.
Assume your instructor told you βIf you receive a grade of 95 or better in the final examination, then you will receive an A in this course.β Your instructor has made a promise to you. If you fulfill his condition, you expect the conclusion (getting an A) to be forthcoming. Suppose your graded final has been returned to you. Has your instructor told the truth or is your instructor guilty of a falsehood?
Case I: Your final exam score was less than 95 (the condition is false) and you did not receive an A (the conclusion is false). The instructor told the truth.
Case II: Your final exam score was less than 95, yet you received an A for the course. The instructor told the truth. (Perhaps your overall course average was excellent.)
The order of the condition and conclusion in a conditional proposition is important. If the condition and conclusion are exchanged, a different proposition is produced.
The converse of βIf you receive a grade of 95 or better in the final exam, then you will receive an A in this course,β is βIf you receive an A in this course, then you received a grade of 95 or better in the final exam.β It should be clear that these two statements say different things.
Although βif ... then...β and β...if and only if ...β are frequently used in everyday speech, there are several alternate forms that you should be aware of. They are summarized in the following lists.
Let = βI like discrete structuresβ, = βI will pass this courseβ and = βI will do my assignments.β Express each of the following propositions in symbolic form:
For each of the following propositions, identify simple propositions, express the compound proposition in symbolic form, and determine whether it is true or false:
Let ββ, = β8 is an even integer,β and = β11 is a prime number.β Express the following as a statement in English and determine whether the statement is true or false: