Skip to main content
Logo image

Section 1.2 Propositional Logic

Subsection Introduction

Investigate!
Holmes always wears one of the two vests he owns: one tweed and one mint green. He always wears either the green vest or red shoes. Whenever he wears a purple shirt and the green vest, he chooses to not wear a bow tie. He never wears the green vest unless he is also wearing either a purple shirt or red shoes. Whenever he wears red shoes, he also wears a purple shirt. Today, Holmes is wore a bow tie. What else did he wear?

Checkpoint 1.2.1.

Spend a few minutes thinking about the Investigate! problem above. Of the six statements in the puzzle, only one is atomic. Use this atomic statement and one other statement to deduce a new statement about what Holmes might (or might not) be wearing. Explain why you think your new statement is true.
Hint.
The atomic statement is “Holmes wore a bow tie.” Only one of the molecular statements has this as one of its atoms.
Propositional logic studies the ways statements can interact with each other (the term “proposition” is simply a synonym for “statement”). More precisely, we consider the way the logical form of propositions interact. Thus, propositional logic does not really care about the content of the atomic statements that make up the propositions. For example, in terms of propositional logic, the claims, “if the moon is made of cheese, then cheddar is a type of cheese,” and “if spiders have six legs, then Sam walks with a limp” are exactly the same. That the first statement has two atomic parts that reference cheese is irrelevant. What we care about is that the two molecular statements have the same logical form: they are implications, \(P \imp Q\text{.}\)
Of course, in mathematics we often do know some relationship between various atomic statements (for the record, I do not know any such relationship between the moon’s composition and cheddar). For example, we know a relationship between being even and being a multiple of 10. That relationship allows us to make claims such as, “if the number I’m thinking of is a multiple of 10, then it is even.” What can you conclude from the fact that I am now thinking of an odd number (i.e., not even)? If we accept both statements as true, we can deduce that that I am not thinking of a multiple of 10, and importantly, we can make this deduction without thinking about the nature of numbers. Being able to separate the content from the form of arguments can feel very liberating and provide much needed clarity when trying to understand complicated reasoning.
Our goal in this section is to establish some procedures for analyzing how the truth or falsity of statements interact, based on their logical form. We will see that some molecular statements must be true regardless of whether their atomic parts are true or false, while some statements must always be false. For other statements, it can be that two statements are always true or false together, or that whenever one statements is true, another statement must also be true.
The main method for establishing these relationships will be truth tables. There is a very clear procedure for constructing and analyzing truth tables, but for complicated arguments that contain many atomic statements, the truth tables become very large and unwieldy. We will therefore use truth tables to understand some basic equivalences and deductions, that can be applied in a sequence of reasoning to construct larger arguments.

Exercises Preview Activity

Before reading on to the main content of the section, complete this preview activity to start thinking about the types of questions this section will address.
1.
    Consider the statement, “Whenever Holmes wears a purple shirt and the green vest, he chooses to not wear a bow tie.” Let \(P\) be the statement “Holmes wears a purple shirt,” \(G\) be the statement “Holmes wears the green vest,” and \(B\) be the statement “Holmes wears a bow tie.” Which of the following is the best translation of the statement into propositional logic?
  • \((P \wedge G) \imp \neg B \)
  • \((P \wedge G) \imp B \)
  • \((P \vee G) \imp \neg B \)
  • \(P \wedge (G \imp B) \)
2.
    Consider the statement, “Holmes never wears the green vest unless he is also wearing either a purple shirt or red shoes.” With \(P\) and \(G\) as in the previous question, and \(R\) being the statement “Holmes wears red shoes,” which of the following is the best translation of the statement into propositional logic?
  • \(G \imp (P \vee R) \)
  • \(\neg G \imp (P \vee R) \)
  • Consider the case where Holmes does wear a green vest but does not wear a purple shirt or red shoes. That would make \(\neg G\) false and \(P \vee R\) true, so the implication would be true. But in this situation, the original statement would be false.
  • \((P \vee R) \imp G \)
  • Consider the case where Holmes does not wear a purple shirt or red shoes, and does wear the green vest. That would make \(P \vee R\) false and \(G\) true, so the implication would be true. But in this situation, the original statement would be false.
  • \((P \vee R) \imp \neg G \)
  • Consider the case where Holmes does not wear a purple shirt or red shoes, and does wear the green vest. That would make \(P \vee R\) false and \(\neg G\) false, so the implication would be true. But in this situation, the original statement would be false.
3.
    Consider the statement, “if you major in math, then you will get a high paying job,” and the statement, “either you don’t major in math or you will get a high paying job.” In which of the following cases are both of the statement true? Select all that apply.
  • You major in math and get a high paying job.
  • You major in math and don’t get a high paying job.
  • In fact, in this case, both of the statements are false.
  • You don’t major in math and do get a high paying job.
  • This makes the implication true because the if part is false. The disjunction is true because the first part is true.
  • You don’t major in math and don’t get a high paying job.

Subsection Truth Tables

Here’s a question about playing Monopoly:
If you get more doubles than any other player then you will lose, or if you lose then you must have bought the most properties.
True or false? We will answer this question, and won’t need to know anything about Monopoly. Instead we will look at the logical form of the statement.
We need to decide when the statement \((P \imp Q) \vee (Q \imp R)\) is true. Using the definitions of the connectives in Section 1.1, we see that for this to be true, either \(P \imp Q\) must be true or \(Q \imp R\) must be true (or both). Those are true if either \(P\) is false or \(Q\) is true (in the first case) and \(Q\) is false or \(R\) is true (in the second case). So—yeah, it gets kind of messy. Luckily, we can make a chart to keep track of all the possibilities. Enter truth tables. The idea is this: on each row, we list a possible combination of T’s and F’s (True and False) for each of the propositional variables, and then mark down whether the (molecular) statement in question is true or false in that case. We do this for every possible combination of T’s and F’s. Then we can clearly see in which cases the statement is true or false. For complicated statements, we will first fill in values for each part of the statement, as a way of breaking up our task into smaller, more manageable pieces.
Since the truth value of a statement is completely determined by the truth values of its parts and how they are connected, all you really need to know is the truth tables for each of the logical connectives. Here they are:
\(P\) \(Q\) \(P\wedge Q\)
T T T
T F F
F T F
F F F
\(P\) \(Q\) \(P\vee Q\)
T T T
T F T
F T T
F F F
\(P\) \(Q\) \(P\imp Q\)
T T T
T F F
F T T
F F T
\(P\) \(Q\) \(P\iff Q\)
T T T
T F F
F T F
F F T
The truth table for negation looks like this:
\(P\) \(\neg P\)
T F
F T
None of these truth tables should come as a surprise; they are all just restating the definitions of the connectives. Let’s try another one.

Example 1.2.2.

Make a truth table for the statement \(\neg P \vee Q\text{.}\)
Solution.
Note that this statement is not \(\neg(P \vee Q)\text{,}\) the negation belongs to \(P\) alone. Here is the truth table:
\(P\) \(Q\) \(\neg P\) \(\neg P \vee Q\)
T T F T
T F F F
F T T T
F F T T
We added a column for \(\neg P\) to make filling out the last column easier. The entries in the \(\neg P\) column were determined by the entries in the \(P\) column. Then to fill in the final column, look only at the column for \(Q\) and the column for \(\neg P\) and use the rule for \(\vee\text{.}\)
Now let’s answer our question about monopoly:

Example 1.2.3.

Analyze the statement, “if you get more doubles than any other player you will lose, or that if you lose you must have bought the most properties,” using truth tables.
Solution.
Represent the statement in symbols as \((P \imp Q) \vee (Q \imp R)\text{,}\) where \(P\) is the statement “you get more doubles than any other player,” \(Q\) is the statement “you will lose,” and \(R\) is the statement “you must have bought the most properties.” Now make a truth table.
The truth table needs to contain 8 rows in order to account for every possible combination of truth and falsity among the three statements. Here is the full truth table:
\(P\) \(Q\) \(R\) \(P \imp Q\) \(Q \imp R\) \((P \imp Q) \vee (Q \imp R)\)
T T T T T T
T T F T F T
T F T F T T
T F F F T T
F T T T T T
F T F T F T
F F T T T T
F F F T T T
The first three columns are simply a systematic listing of all possible combinations of T and F for the three statements (do you see how you would list the 16 possible combinations for four statements?). The next two columns are determined by the values of \(P\text{,}\) \(Q\text{,}\) and \(R\) and the definition of implication. Then, the last column is determined by the values in the previous two columns and the definition of \(\vee\text{.}\) It is this final column we care about.
Notice that in each of the eight possible cases, the statement in question is true. So our statement about monopoly is true (regardless of how many properties you own, how many doubles you roll, or whether you win or lose).
The statement about monopoly is an example of a tautology, a statement which is true on the basis of its logical form alone. Tautologies are always true but they don’t tell us much about the world. No knowledge about monopoly was required to determine that the statement was true. In fact, it is equally true that “If the moon is made of cheese, then Elvis is still alive, or if Elvis is still alive, then unicorns have 5 legs.”

Subsection Logical Equivalence

You might have noticed in Example 1.2.2 that the final column in the truth table for \(\neg P \vee Q\) is identical to the final column in the truth table for \(P \imp Q\text{:}\)
\(P\) \(Q\) \(P \imp Q\) \(\neg P \vee Q\)
T T T T
T F F F
F T T T
F F T T
This says that no matter what \(P\) and \(Q\) are, the statements \(\neg P \vee Q\) and \(P \imp Q\) either both true or both false. We therefore say these statements are logically equivalent.

Definition 1.2.4. Logical Equivalence.

Two (molecular) statements \(P\) and \(Q\) are logically equivalent provided \(P\) is true precisely when \(Q\) is true. That is, \(P\) and \(Q\) have the same truth value under any assignment of truth values to their atomic parts.
To verify that two statements are logically equivalent, you can make a truth table for each and check whether the columns for the two statements are identical.
Recognizing two statements as logically equivalent can be very helpful. Rephrasing a mathematical statement can often lend insight into what it is saying, or how to prove or refute it. By using truth tables we can systematically verify that two statements are indeed logically equivalent.

Example 1.2.5.

Are the statements, “it will not rain or snow” and “it will not rain and it will not snow” logically equivalent?
Solution.
We want to know whether \(\neg(P \vee Q)\) is logically equivalent to \(\neg P \wedge \neg Q\text{.}\) Make a truth table which includes both statements:
\(P\) \(Q\) \(\neg(P \vee Q)\) \(\neg P \wedge \neg Q\)
T T F F
T F F F
F T F F
F F T T
Since in every row the truth values for the two statements are equal, the two statements are logically equivalent.
Notice that this example gives us a way to “distribute” a negation over a disjunction (an “or”). We have a similar rule for distributing over conjunctions (“and”s):
This suggests there might be a sort of “algebra” you could apply to statements (okay, there is: it is called Boolean algebra) to transform one statement into another. We can start collecting useful examples of logical equivalence, and apply them in succession to a statement, instead of writing out a complicated truth table.
De Morgan’s laws do not do not directly help us with implications, but as we saw above, every implication can be written as a disjunction:

Implications are Disjunctions.

\begin{equation*} P \imp Q \text{ is logically equivalent to } \neg P \vee Q\text{.} \end{equation*}
Example: “If a number is a multiple of 4, then it is even” is equivalent to, “a number is not a multiple of 4 or (else) it is even.”
With this and De Morgan’s laws, you can take any statement and simplify it to the point where negations are only being applied to atomic propositions. Well, actually not, because you could get multiple negations stacked up. But this can be easily dealt with:

Double Negation.

\begin{equation*} \neg \neg P \text{ is logically equivalent to } P\text{.} \end{equation*}
Example: “It is not the case that \(c\) is not odd” means “\(c\) is odd.”
Let’s see how we can apply the equivalences we have encountered so far.

Example 1.2.7.

Prove that the statements \(\neg(P \imp Q)\) and \(P\wedge \neg Q\) are logically equivalent without using truth tables.
Solution.
We want to start with one of the statements, and transform it into the other through a sequence of logically equivalent statements. Start with \(\neg(P \imp Q)\text{.}\) We can rewrite the implication as a disjunction this is logically equivalent to
\begin{equation*} \neg(\neg P \vee Q)\text{.} \end{equation*}
Now apply De Morgan’s law to get
\begin{equation*} \neg\neg P \wedge \neg Q\text{.} \end{equation*}
Finally, use double negation to arrive at \(P \wedge \neg Q\)
Notice that the above example illustrates that the negation of an implication is NOT an implication: it is a conjunction! We saw this before, in Section 1.1, but it is so important and useful, it warrants a second blue box here:
To verify that two statements are logically equivalent, you can use truth tables or a sequence of logically equivalent replacements. The truth table method, although cumbersome, has the advantage that it can verify that two statements are NOT logically equivalent.

Example 1.2.9.

Are the statements \((P \vee Q) \imp R\) and \((P \imp R) \vee (Q \imp R)\) logically equivalent?
Solution.
Note that while we could start rewriting these statements with logically equivalent replacements in the hopes of transforming one into another, we will never be sure that our failure is due to their lack of logical equivalence rather than our lack of imagination. So instead, let’s make a truth table:
\(P\) \(Q\) \(R\) \((P\vee Q) \imp R\) \((P\imp R) \vee (Q \imp R)\)
T T T T T
T T F F F
T F T T T
T F F F T
F T T T T
F T F F T
F F T T T
F F F T T
Look at the fourth (or sixth) row. In this case, \((P \imp R) \vee (Q \imp R)\) is true, but \((P \vee Q) \imp R\) is false. Therefore the statements are not logically equivalent.
While we don’t have logical equivalence, it is the case that whenever \((P \vee Q) \imp R\) is true, so is \((P \imp R) \vee (Q \imp R)\text{.}\) This tells us that we can deduce \((P \imp R) \vee (Q \imp R)\) from \((P \vee Q) \imp R\text{,}\) just not the reverse direction.

Subsection Deductions

Earlier we claimed that the following was a valid argument:
If Edith eats her vegetables, then she can have a cookie. Edith ate her vegetables. Therefore Edith gets a cookie.
How do we know this is valid? Let’s look at the form of the statements. Let \(P\) denote “Edith eats her vegetables” and \(Q\) denote “Edith can have a cookie.” The logical form of the argument is then:
\(P \imp Q\)
\(P\)
\(\therefore\) \(Q\)
This is an example of a deduction rule, an argument form which is always valid. This one is a particularly famous rule called modus ponens. Are you convinced that it is a valid deduction rule? If not, consider the following truth table:
\(P\) \(Q\) \(P\imp Q\)
T T T
T F F
F T T
F F T
This is just the truth table for \(P \imp Q\text{,}\) but what matters here is that all the lines in the deduction rule have their own column in the truth table. Remember that an argument is valid provided the conclusion must be true given that the premises are true. The premises in this case are \(P \imp Q\) and \(P\text{.}\) Which rows of the truth table correspond to both of these being true? \(P\) is true in the first two rows, and of those, only the first row has \(P \imp Q\) true as well. And lo-and-behold, in this one case, \(Q\) is also true. So if \(P\imp Q\) and \(P\) are both true, we see that \(Q\) must be true as well.
Here are a few more examples.

Example 1.2.10.

Show that the following is a valid deduction rule.
\(P \imp Q\)
\(\neg P \imp Q\)
\(\therefore\) \(Q\)
Solution.
We make a truth table which contains all the lines of the argument form:
\(P\) \(Q\) \(P\imp Q\) \(\neg P\) \(\neg P \imp Q\)
T T T F T
T F F F T
F T T T T
F F T T F
(we include a column for \(\neg P\) just as a step to help getting the column for \(\neg P \imp Q\)).
Now look at all the rows for which both \(P \imp Q\) and \(\neg P \imp Q\) are true. This happens only in rows 1 and 3. Hey! In those rows \(Q\) is true as well, so the argument form is valid (it is a valid deduction rule).

Example 1.2.11.

Decide whether the following is a valid deduction rule.
\(P \imp R\)
\(Q \imp R\)
\(R\)
\(\therefore\) \(P \vee Q\)
Solution.
Let’s make a truth table containing all four statements.
\(P\) \(Q\) \(R\) \(P \imp R\) \(Q \imp R\) \(P \vee Q\)
T T T T T T
T T F F F T
T F T T T T
T F F F T T
F T T T T T
F T F T F T
F F T T T F
F F F T T F
Look at the second to last row. Here all three premises of the argument are true, but the conclusion is false. Thus this is not a valid deduction rule.
While we have the truth table in front of us, look at rows 1, 3, and 5. These are the only rows in which all of the statements \(P \imp R\text{,}\) \(Q \imp R\text{,}\) and \(P\vee Q\) are true. It also happens that \(R\) is true in these rows as well. Thus we have discovered a new deduction rule we know is valid:
\(P \imp R\)
\(Q \imp R\)
\(P \vee Q\)
\(\therefore\) \(R\)

Reading Questions Reading Questions

1.

To check whether two statements are logically equivalent, you can use a truth table. Explain what you would look for in the truth table to be able to conclude that the two statements are logically equivalent. What would tell you they are not logically equivalent?

2.

To check whether a deduction rule is valid, you can use a truth table. Explain what you would look for in the completed truth table to say that the deduction rule is valid, and what would tell you the deduction rule is not valid.

3.

What questions do you have after reading this section? Write at least one question about the content of this section that we could answer in class or online.

Exercises Practice Problems

1.

Make a truth table for the statement \((P \wedge Q) \rightarrow (P \vee Q)\text{.}\)
\(P\) \(Q\) \(P \wedge Q\) \(P \vee Q\) \((P \wedge Q) \rightarrow (P \vee Q))\)
T T
T F
F T
F F

2.

Make a truth table for the statement \(\neg Q \vee (Q \rightarrow P))\)
\(P\) \(Q\) \(\neg Q\) \(Q \rightarrow P\) \(\neg Q \vee (Q \rightarrow P))\)
T T
T F
F T
F F
What can you conclude about \(P\) and \(Q\) if you knew the statement above was false?
  • That \(P\) is false and \(Q\) is true.
  • That \(P\) and \(Q\) are both true.
  • That \(P\) is true and \(Q\) is false.
  • That \(P\) and \(Q\) are both false.
  • None of the above.

3.

Make a truth table for the statement \(\neg Q \rightarrow (P \vee R)\)
\(P\) \(Q\) \(R\) \(\neg Q\) \(P \vee R\) \(\neg Q \rightarrow (P \vee R)\)
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F

4.

Determine whether the statements \(P \rightarrow (Q \vee R)\) and \((P \rightarrow Q) \vee (P\rightarrow R)\) are logically equivalent.
First, make a truth table for both of the statements. (You might want to complete the truth table on paper so you can make columns for intermediate steps; just record the final columns here.)
\(P\) \(Q\) \(R\) \(P \rightarrow (Q \vee R)\) \((P \rightarrow Q) \vee (P\rightarrow R)\)
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
Are the two statements logically equivalent?
  • Yes, because the columns for the two statements are identical.
  • Yes, because even though the columns are not identical, there are some rows in which they are identical.
  • No, because the statements are not always true.
  • No, because the columns for the two statements are not identical.
  • Impossible to determine without more information.

5.

Determine if the following is a valid deduction rule:
\(P \rightarrow Q\)
\(\neg Q\)
\(\therefore\) \(\neg P\)
First, make a truth table for the relevant statements. (You might want to complete the truth table on paper so you can make columns for intermediate steps; just record the final columns here.)
\(P\) \(Q\) \(P \rightarrow Q\) \(\neg Q\) \(\neg P\)
T T
T F
F T
F F
Is the deduction rule valid?
  • No, because the columns for the two premises are not identical.
  • Yes, because there is a row in which both premises are true.
  • No, because the conclusion is not always true.
  • Yes, in every row where both premises are true, the conclusion is also true.
  • Impossible to determine without more information.

6.

Determine if the following is a valid deduction rule:
\(P \rightarrow (Q \vee R)\)
\(\neg(P \rightarrow Q)\)
\(\therefore\) \(R\)
First, make a truth table for the relevant statements. (You might want to complete the truth table on paper so you can make columns for intermediate steps; just record the final columns here.)
\(P\) \(Q\) \(R\) \(P \rightarrow (Q \vee R)\) \(\neg(P \rightarrow Q)\)
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
Is the deduction rule valid?
  • Yes, in every row where both premises are true, the conclusion is also true.
  • Yes, because there is a row in which both premises are true.
  • No, because the statements are not always true.
  • No, because the columns for the two premises are not identical.
  • Impossible to determine without more information.

7.

Determine if the following is a valid deduction rule:
\((P \wedge Q) \rightarrow R\)
\(\neg P \vee \neg Q\)
\(\therefore\) \(\neg R\)
First, make a truth table for the relevant statements. (You might want to complete the truth table on paper so you can make columns for intermediate steps; just record the final columns here.)
\(P\) \(Q\) \(R\) \((P \wedge Q) \rightarrow R\) \(\neg P \vee \neg Q\) \(\neg R\)
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
Is the deduction rule valid?
  • Yes, because there is a row in which the conclusion and both premises are true.
  • No, because there is a row in which both premises are true but the conclusion is false.
  • Yes, because in every row that the conclusion is true, one of the premises is true.
  • No, because the columns for the two premises are not identical.
  • Impossible to determine without more information.

8.

Determine if the following is a valid deduction rule:
\(P \rightarrow Q\)
\(P \wedge \neg Q\)
\(\therefore\) \(R\)
First, make a truth table for the relevant statements. (You might want to complete the truth table on paper so you can make columns for intermediate steps; just record the final columns here.)
\(P\) \(Q\) \(R\) \(P \rightarrow Q\) \(P \wedge \neg Q\)
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
Is the deduction rule valid?
  • No, because the premises are never both true in the same row.
  • Yes, because there is a row in which both premises are true.
  • Yes, in every row where both premises are true, the conclusion is also true.
  • No, because the columns for the two premises are not identical.
  • Impossible to determine without more information.

Exercises Additional Exercises

1.

You stumble upon two trolls playing Stratego®. They tell you:
Troll 1: If we are cousins, then we are both knaves.
Troll 2: We are cousins or we are both knaves.
Could both trolls be knights? Recall that all trolls are either always-truth-telling knights or always-lying knaves. Explain your answer and how you can use truth tables to find it.
Hint.
You could probably reason through the cases by hand, but try making a truth table. Use two statements, \(P\) being “we are cousins” and \(Q\) being “we are both knaves”.

2.

Next you come upon three trolls, helpfully wearing name tags. They say:
Pat
If either Quinn or I are knights, then so is Ryan.
Quinn
Ryan is a knight and if Pat is a knight, then so am I.
Ryan
Quinn is a knave, but Pat and I share the same persuasion.
Create a truth table that includes all three statements. Then use the truth table to determine the persuasion of each troll.

3.

Consider the statement about a party, “If it’s your birthday or there will be cake, then there will be cake.”
  1. Translate the above statement into symbols. Clearly state which statement is \(P\) and which is \(Q\text{.}\)
  2. Make a truth table for the statement.
  3. Assuming the statement is true, what (if anything) can you conclude if there will be cake?
  4. Assuming the statement is true, what (if anything) can you conclude if there will not be cake?
  5. Suppose you found out that the statement was a lie. What can you conclude?

4.

Geoff Poshingten is out at a fancy pizza joint, and decides to order a calzone. When the waiter asks what he would like in it, he replies, “I want either pepperoni or sausage. Also, if I have sausage, then I must also include quail. Oh, and if I have pepperoni or quail then I must also have ricotta cheese.”
  1. Translate Geoff’s order into logical symbols.
  2. The waiter knows that Geoff is either a liar or a truth-teller (so either everything he says is false, or everything is true). Which is it?
  3. What, if anything, can the waiter conclude about the ingredients in Geoff’s desired calzone?
Hint.
You should write down three statements using the symbols \(P, Q, R, S\text{.}\) If Geoff is a truth-teller, then all three statements would be true. If he was a liar, then all three statements would be false. But in either case, we don’t yet know whether the four atomic statements are true or false, since he hasn’t said them by themselves.
A truth table might help, although is probably not entirely necessary.

5.

Determine whether the following two statements are logically equivalent: \(\neg(P \imp Q)\) and \(P \wedge \neg Q\text{.}\) Explain how you know you are correct.

6.

Simplify the following statements (so that negation only appears right before variables).
  1. \(\neg(P \imp \neg Q)\text{.}\)
  2. \((\neg P \vee \neg Q) \imp \neg (\neg Q \wedge R)\text{.}\)
  3. \(\neg((P \imp \neg Q) \vee \neg (R \wedge \neg R))\text{.}\)
  4. It is false that if Sam is not a man then Chris is a woman, and that Chris is not a woman.

7.

Use De Morgan’s Laws, and any other logical equivalence facts you know to simplify the following statements. Show all your steps. Your final statements should have negations only appear directly next to the sentence variables or predicates (\(P\text{,}\) \(Q\text{,}\) \(E(x)\text{,}\) etc.), and no double negations. It would be a good idea to use only conjunctions, disjunctions, and negations.
  1. \(\neg((\neg P \wedge Q) \vee \neg(R \vee \neg S))\text{.}\)
  2. \(\neg((\neg P \imp \neg Q) \wedge (\neg Q \imp R))\) (careful with the implications).
  3. For both parts above, verify your answers are correct using truth tables. That is, use a truth table to check that the given statement and your proposed simplification are actually logically equivalent.

8.

Consider the statement, “If a number is triangular or square, then it is not prime”
  1. Make a truth table for the statement \((T \vee S) \imp \neg P\text{.}\)
  2. If you believed the statement was false, what properties would a counterexample need to possess? Explain by referencing your truth table.
  3. If the statement were true, what could you conclude about the number 5657, which is definitely prime? Again, explain using the truth table.
Hint.
  1. There will be three rows in which the statement is false.
  2. Consider the three rows that evaluate to false and say what the truth values of \(T\text{,}\) \(S\text{,}\) and \(P\) are there.
  3. You are looking for a row in which \(P\) is true, and the whole statement is true.

9.

Tommy Flanagan was telling you what he ate yesterday afternoon. He tells you, “I had either popcorn or raisins. Also, if I had cucumber sandwiches, then I had soda. But I didn’t drink soda or tea.” Of course you know that Tommy is the worlds worst liar, and everything he says is false. What did Tommy eat?
Justify your answer by writing all of Tommy’s statements using sentence variables (\(P, Q, R, S, T\)), taking their negations, and using these to deduce what Tommy actually ate.
Hint.
Write down three statements, and then take the negation of each (since he is a liar). You should find that Tommy ate one item and drank one item. (\(Q\) is for cucumber sandwiches.)

10.

Can you chain implications together? That is, if \(P \imp Q\) and \(Q \imp R\text{,}\) does that means the \(P \imp R\text{?}\) Can you chain more implications together? Let’s find out:
  1. Prove that the following is a valid deduction rule:
    \(P \imp Q\)
    \(Q \imp R\)
    \(\therefore\) \(P \imp R\)
  2. Prove that the following is a valid deduction rule for any \(n \ge 2\text{:}\)
    \(P_1 \imp P_2\)
    \(P_2 \imp P_3\)
    \(\vdots\)
    \(P_{n-1} \imp P_n\)
    \(\therefore\) \(P_1 \imp P_n\text{.}\)
    I suggest you don’t go through the trouble of writing out a \(2^n\) row truth table. Instead, you should use part (a) and mathematical induction.
Hint.
For the second part, you can inductively assume that from the first \(n-2\) implications you can deduce \(P_1 \imp P_{n-1}\text{.}\) Then you are back in the case in part (a) again.

11.

Suppose \(P\) and \(Q\) are (possibly molecular) propositional statements. Prove that \(P\) and \(Q\) are logically equivalent if any only if \(P \iff Q\) is a tautology.
Hint.
What do these concepts mean in terms of truth tables?

12.

Suppose \(P_1, P_2, \ldots, P_n\) and \(Q\) are (possibly molecular) propositional statements. Suppose further that
\(P_1\)
\(P_2\)
\(\vdots\)
\(P_n\)
\(\therefore\) \(Q\)
is a valid deduction rule. Prove that the statement
\begin{equation*} (P_1 \wedge P_2 \wedge \cdots \wedge P_n) \imp Q \end{equation*}
is a tautology.
You have attempted of activities on this page.