6.1 Logical Statements and Operations

To begin our study of logic, we must first define our most basic unit, the statement; we'll consider whether specific statements are true or not, and we'll combine statements to form compound statements and ultimately arguments.

The following sentences are statements:

It rained yesterday.

The Packers will win the Super Bowl this year.

Elephants are afraid of mice.

Statements

A statement is a claim that is either true or false, but not both.

Notice that it doesn't matter for the definition whether we know if a statement is true or false; it simply has to be one or the other.

What, then, is not a statement? The following are a few examples:

Get some milk at the store.

Why is the sky blue?

This sentence is false.

The first is a command and the second is a question, neither of which have any claim to being true or false. It doesn't make sense to talk about truth values with them.

The third is an interesting one. At first, it looks like a statement, because it makes a claim; however, upon closer inspection, we see that it isn't either true or false. This is known as the liar's paradox: if it were true, it would be false, which would mean it is true, which would mean...

In this chapter, we will commonly represent statements with letters to shorten the amount we have to write. For instance, we might define pp We typically start with pp for proposition, another name for a statement and qq as

pp: Today is the longest day of the year.

qq: Tomorrow is the shortest day of the year.

That way, if we want to combine these statements, we don't have to write them out over and over again; we can simply write pp and qq and save a lot of trouble.

In the coming sections, we'll spend a lot of time combining statements in various ways, and it can be easy to get lost in the notation and think of logic as some sort of abstract study of notation. Resist this temptation. Instead, always remember that the letters and symbols we use and manipulate are tied to simple statements like these examples. With every new operation we investigate, our goal is to not just focus on memorizing a list of symbols, but rather to understand why this operation makes sense.

Boolean Logic with Sets

Every time you use Google to search the Internet, the search engine turns to Boolean logic to narrow down the search results to give you what you're looking for, using key terms like "and," "or," and "not." Three basic Boolean operators:
1. And
2. Or
3. Not

For instance, if you searched for "Frederick," the search engine would pull up results that contain that word (like the city tourism website, the Wikipedia article on the city, maybe the article for Frederick Douglass, etc.). If you searched for "Frederick Community College," the search engine would look for pages that contain those three words; it would search for "Frederick" AND "Community" AND "College."

If instead you search for "Frederick Community -College," the search engine will search for pages that contain "Frederick" AND "Community" but NOT "College," so the FCC website will not be listed.

We can think of objects as belonging to sets; in this case, performing a search means looking for objects that belong to a specific list of sets. For instance, if you went to library and searched "History" AND "Fiction," you would find all the books that belong both to the History set and to the Fiction set (i.e. historical fiction).

As it turns out, we can deal with logic using either statements or sets. When working with statements, Boolean logic combines multiple statements that are either true or false into a compound statement that is either true or false. When working with sets, Boolean logic combines sets, and a search is considered "true" when it returns an object in that combination of sets.

A Venn diagram showing two circles: a red one labeled History and a blue one labeled Fiction.  The purple overlap is labeled Historical Fiction.

We can draw similar diagrams for the other two basic Boolean operations. For instance, if we searched for "History" OR "Fiction," the search would return any books that are either historical or fiction, or both.

A Venn diagram with circles for History and Fiction.  The circles overlap, and the entire area of both circles is shaded and labeled Historical OR Fiction

This is what is called the inclusive OR; it includes all values in the first set, plus all values in the second set, plus all values in the overlap. There is also an exclusive OR operation (that we won't consider) that includes all values in the first set and all values in the second set, but not the values in the overlap. It is equivalent to saying "Either history or fiction, but not both."

The inclusive OR is like the following question at a restaurant: "Would you like fries or a drink with that?" It is perfectly acceptable to respond "Both, please."

Finally, if we searched for NOT "Fiction," the search would return everything in the database except for those labeled "Fiction." For obvious reasons, Google gives an error if you only search for NOT something

A circle (labeled Fiction) inside a large rectangle (labeled Whole Library).  The area in the rectangle that is outside the circle is labeled NOT Fiction

Diagrams like these will helpful to visualize combining statements using these three operations.

Example 1Search Logic View video (opens in new tab)

Suppose we are searching for universities in Mexico. Express a reasonable search using Boolean logic.


Solution

We could search for "Mexico AND university," but we would be likely to get results for universities in New Mexico (in the U.S.). To account for this, we could revise our search terms:

Mexico AND university NOT "New Mexico"

The quotes around New Mexico group those words together, so that the search engine will know that we want to exclude that string.

Also, in most search engines, including the word AND is unnecessary, since the search engines that if you provide two keywords, you want results that include both keywords. In Google, a negative sign in front of a terms is used to indicate NOT.

Thus, in Google, this search would be

Mexico university -"New Mexico"

Example 2Describing a Set View video (opens in new tab)

Describe the set of numbers that meet the following conditions:

Even numbers that are greater than 12 and less than 20.

Solution

We could describe this as "numbers that are even" AND "numbers that are greater than 12" AND "numbers that are less than 20," so we're looking for the overlap for these three sets.

The numbers that fit this description are {14,16,18}\boxed{{14,16,18}}

Boolean Logic with Statements

We can use these same three operators with statements; instead of thinking of objects belonging to sets, we'll think about whether statements are true or false.

For instance, consider the following two statements.

pp: Greece belongs to the European Union.

qq: Tokyo is in Iran.

Clearly, pp is true and qq is false. What about pp AND qq? In words, this would be the compound statement "Greece belongs to the European Union, and Tokyo is in Iran."

Combining Statements with AND

The compound statement pp AND qq is only true if pp and qq are both true; if either one is false, that makes the compound statement false.

In this example, the fact that qq is false makes the compound statement break down; just because the first half is true isn't enough.

On the other hand, what if we wrote "Greece belongs to the European Union or Tokyo is in Iran"? In this case, the fact that the first half is true is enough to satisfy the compound statement.

Combining Statements with OR

The compound statement pp OR qq is true if at least one of pp and qq are true.

Therefore, pp OR qq is true, simply because pp is true.

Finally, what about NOT, the last of the three basic Boolean operators? What if we wrote "Greece does not belong to the European Union"? This statement would be false, because it is the opposite of a true statement. Conversely, "Tokyo is not in Iran" would be true, because it is the opposite of a false statement.

Negating Statements with NOT

If pp is true, then NOT pp is false; if pp is false, then NOT pp is true.

Notation

Although the notation can be a bit intimidating at first, it will soon become familiar. Just remember that the ideas are the same as the ones we've already seen; the notation is simply a shorthand that we can use to write compound statements more concisely.

Shorthand Notation for Basic Boolean Operators

AND: \wedge

OR: \vee

NOT: \sim or ¬\neg

To remember the difference between \wedge (AND) and \vee (OR), you can think of the \wedge as looking like the "A" in AND. As we do examples, you'll quickly grow more comfortable with these symbols.

Example 3Translating to Symbolic Form View video (opens in new tab)

Let pp and qq represent the following simple statements:

pp : There is life on Mars.

qq : There is life on Europa.

Write each of the following statements in symbolic form:
  1. "There is life on both Mars and Europa."
  2. "There is life on neither Mars nor Europa."
  3. "There is life on Mars, but not on Europa."
  4. "There is either life on Mars or no life on Europa."

Solution

  1. This is equivalent to saying "there is life on Mars" AND "there is life on Europa." p qp\ \wedge q

  2. This is equivalent to saying "there is NOT life on Mars" AND "there is NOT life on Europa." p q\sim p\ \wedge \sim q

  3. This is equivalent to saying "there is life on Mars" AND "there is NOT life on Europa." p qp\ \wedge \sim q

  4. This is equivalent to saying "there is life on Mars" OR ''there is NOT life on Europa.'' p qp\ \vee \sim q

Try It

Let pp and qq represent the following simple statements:

pp : We landed a man on the moon.

qq : The manned lunar program is inactive.

Write each of the following statements in symbolic form:

  1. "We never landed a man on the moon, and in any case the manned lunar program is inactive."

  2. pq\sim p \wedge q

  3. "Even though we never landed a man on the moon, the manned lunar program is still active."

  4. p q\sim p\ \wedge \sim q

  5. "We landed a man on the moon and the manned lunar program is active."

  6. p qp\ \wedge \sim q

  7. "Even though we landed a man on the moon, the manned lunar program is inactive."

  8. pqp \wedge q

Example 4Translating from Symbolic Form View video (opens in new tab)

Let pp and qq represent the following simple statements:

pp : Banana bread is delicious.

qq : Bacon is delicious.

Write each of the following statements in words:
  1. pqp \vee q
  2. pq\sim p \vee q
  3. (pq)\sim (p \wedge q)
  4. p q\sim p\ \vee \sim q

Solution

  1. "Banana bread is delicious or bacon is delicious."
  2. "Either banana bread is not delicious, or bacon is delicious."
  3. "It's not true that both banana bread and bacon are delicious."
  4. "Either banana bread is not delicious or bacon is not delicious."

Notice that the statements in (c) and (d) are logically equivalent; we'll prove this later (it's one of De Morgan's laws).

Try It

Let pp and qq represent the following simple statements:

pp : 1+4<51+4<5

qq : 1+4=51+4=5

Which of the following statements corresponds to p q\sim p\ \wedge \sim q? 1+4>51+451+45\begin{align*} 1+4 &> 5\\ 1+4 &\geq 5\\ 1+4 &\neq 5 \end{align*}

p q\sim p\ \wedge \sim q is equivalent to 1+4>51+4>5

Truth Tables

Let's summarize what we know about these three operators. We'll begin with the AND operator, and after we've seen how to handle it, we'll use a similar approach with the OR and NOT operators.

AND: The combination of two statements using AND is true when both statements are true; otherwise it is false.

  1. If pp is true and qq is true, then pqp \wedge q is true:
pp qq pqp \wedge q
T T T
  1. If pp is true and qq is false, then pqp \wedge q is false:
pp qq pqp \wedge q
T F F
  1. If pp is false and qq is true, then pqp \wedge q is false:
pp qq pqp \wedge q
F T F
  1. If pp is false and qq is false, then pqp \wedge q is false:
pp qq pqp \wedge q
F F F

These are the only four possible combinations of truth values for pp and qq. We can summarize these four possibilities in a single table; this is called a truth table, as shown below.

Truth Table for AND

pp qq pqp \wedge q
T T T
T F F
F T F
F F F

A computer scientist might write this table using 1 and 0 instead of T and F:

pp qq pqp \wedge q
1 1 1
1 0 0
0 1 0
0 0 0

A truth table handles all the possibilities at once; it lists every combination of whether pp and qq are true or false, and for each of them, it lists whether the compound statement is true or false. Notice that once we have this table, if we know the truth values of pp and qq, we can look up the appropriate row in the table to find whether pqp \wedge q is true or false.

For instance, if pp is "All fish are purple" and qq is "North America is in the Western Hemisphere," we would look at the row where pp is false and qq is true--the third row--and note that the compound statement "All fish are purple and North America is in the Western Hemisphere" is therefore false.

Truth tables will be especially useful once we begin to look at more complicated compound statements. If the compound statement is some combination of two statements pp and qq, the first two columns will be the same as the first two columns shown here, and we'll slowly build up to the final compound statement by systematically adding columns. That's all we'll say for now; it'll make more sense later when we see actual examples.

Truth Tables

A truth table lists all the possible combinations of one or more simple statements (pp, qq, rr, etc.) and calculates the results of applying one or more operation(s) to these simple statements.

When building a truth table with one statement, there will only be two rows:

pp \ldots
T \ldots
F \ldots

If we work with two statements, there are four possible combinations of true and false:

pp qq \ldots
T T \ldots
T F \ldots
F T \ldots
F F \ldots

If we have three statements, we'll have to double the number of rows; we'll need to include the four rows above when rr is true, and include them again when rr is false. In general, if we're working with nn statements, we'll need 2n2^n rows

pp qq rr \ldots
T T T \ldots
T F T \ldots
F T T \ldots
F F T \ldots
T T F \ldots
T F F \ldots
F T F \ldots
F F F \ldots

No matter how we order the rows, we need to account for these eight possibilities.

Now let's look at the truth tables for the other two operations.

OR: The combination of two statements using OR is true if at least one of the statements is true; it is only false if both of them are false. The truth table below summarizes this.

Truth Table for OR

pp qq pqp \vee q
T T T
T F T
F T T
F F F

NOT: The negation of a statement is true if the original statement is false; it is false if the original statement is true.

Truth Table for NOT

pp p\sim p
T F
F T

Sidenote: Logic Gates

In circuit design, these three operations are drawn as "gates," or boxes that accept one or two inputs and give the appropriate output in each case. The diagram for each operation is shown below.

AND

The symbol for the AND logic gate, which looks similar to the letter D

OR

The symbol for the OR logic gate, which looks similar to a bow.

NOT

The symbol for a NOT logic gate, which looks similar to a triangle with a circle at the right vertex.

There is a fourth common gate, called the exclusive OR, which returns true if one input or the other is true, but not if both are true. This is often called XOR (symbolized by \oplus), and represented with the following block.

XOR

The symbol for the XOR logic gate, which looks like the OR symbol with an added line to the left.

It can be proven that every logical circuit can be written solely in terms of NOR gates, or solely in terms of NAND gates.
For instance, the 7400 chip shown here contains four NAND gates; the remaining two pins supply power and connect the ground.
A photo and diagram of a TI 7400 chip

Each of these gates can be negated, which simply inverts all of the truth values. On the diagrams, this is represented with a small "bubble" at the end of the gate.

NAND

The symbol for the NAND logic gate, which looks like the AND gate with a circle to indicate negation.

NOR

The symbol for a NOR gate, which combines an OR gate with negation.

XNOR

The symbol for a XNOR logic gate, which combines the XOR gate with negation.

Circuits are created by cascading these gates, using the output of one gate as the input for another.

A compound logic gate diagram, showing the inputs A, B, C, and D combined into NOT((A AND B) XOR (C OR D))

These circuits form complex logical statements, and scale up to control the logic behind every computer function.

Combining Operations

As you may imagine, we can describe longer compound statements by using multiple operations. For instance, a university might advertise a scholarship by saying that "students are eligible if they have completed at least two years of college-level work and they have at least a 3.0 GPA or they have worked full-time for at least five years."

Let's take a look at this statement; first, define pp, qq, and rr to represent the simple pieces that are connected by the operations:

pp : a student has completed at least two years of college-level work

qq : a student has at least a 3.0 GPA

rr : a student has worked full-time for at least five years

Next, try to write the compound statement using the notation we've introduced so far: pqrp \wedge q \vee r

There's a problem with this, though; there is some ambiguity in the way the statement is phrased. Does it mean that a student is eligible after completing two years of college with a 3.0 GPA or after working for five years (with no GPA requirement)? Or does it mean that the student is eligible after completing two years of college, as long as they EITHER have a 3.0 GPA OR have worked at least five years?

To handle this ambiguity, we can use parentheses to group statements together. This works like the order of operations in algebra; the parentheses tell us in what order to combine the simple statements.

In this example, if we wanted to make it clear that the first option is the correct one (a student is eligible after completing two years of college with a 3.0 GPA or after working for five years (with no GPA requirement)) we would group the first two statements together: (pq)r(p \wedge q) \vee r

Evaluating Statements with Multiple Operations

Suppose we want to take the compound statement above and consider a specific case, whether a specific student meets the minimum requirements for the scholarship. All we have to know is whether pp, qq, and rr are true for this student. Then, if we substitute these values into the compound statement and get a true result, the student meets the requirements; if not, the student does not meet the requirements.

For instance, suppose a student applies who has completed two years of college and has five years of work experience, but only had a 2.5 GPA. For this student, pp is true, qq is false, and rr is true. If we substitute these values into the compound statement, we have (TF)T(T \wedge F) \vee T Now we can simplify this statement: the parentheses define the order in which we do so. Note: F \wedge T == F
and F \vee T == T

(TF)TFTT\begin{align*} (T \wedge F) &\vee T\ F &\vee T\ T \end{align*} For this student, the compound statement simplifies to T, so they meet the requirements.

Example 5Evaluating Statements View video (opens in new tab)

Evaluate the statement pq\sim p \wedge q when pp is true and qq is true.


Solution

Substitute these truth values for pp and qq, and start by simplifying p\sim p: TTFTF\begin{align*} \sim T &\wedge T\ F &\wedge T\ F \end{align*} Thus, when pp and qq are both true, pq\sim p \wedge q is false.

Try It

Evaluate the statement (pq)\sim (p \vee q) when pp and qq are both false.

(FF)= F=T\sim (F \vee F) =\ \sim F = T

Truth Tables for Statements with Multiple Operations

We could repeat the substitution and simplification process shown above every time we encounter a new student applying for the scholarship, but it will be more efficient in the long run to simply account for all the possibilities for the students that could apply; this is precisely what a truth table does for us.

Let's practice with the same example, using the compound statement (pq)r(p \wedge q) \vee r Since we have three simple statements (pp, qq, and rr) we'll need eight rows to account for all possible combinations of truth values.

pp qq rr \ldots
T T T \ldots
T F T \ldots
F T T \ldots
F F T \ldots
T T F \ldots
T F F \ldots
F T F \ldots
F F F \ldots

Now, to build up to (pq)r(p \wedge q) \vee r, we'll start by including a column for pqp \wedge q, using the rule for AND to create this column. Then we'll add another column that combines this new column with rr using the rule for OR. That final column will be the one we're interested in.

pp qq rr pqp \wedge q (pq)r(p \wedge q) \vee r
T T T T T
T F T F T
F T T F T
F F T F T
T T F T T
T F F F F
F T F F F
F F F F F

This table lists every possible combination of pp, qq, and rr, and the result for (pq)r(p \wedge q) \vee r in that case. If we were sorting applications for this scholarship, we could look at every student and see which row of this truth table they fit into; if it is one of the first five, they are eligible, but if it is one of the last three, they are ineligible. In practice, we'd probably write a computer program to do the sorting for us, and we'd consider this logic in order to write that program.

Example 6Constructing a Truth Table View video (opens in new tab)

Construct the truth table for p q\sim p\ \wedge \sim q.


Solution

In this case, there are only two simple statements (pp and qq), so our truth table will only need four rows to account for all the possibilities.

pp qq \ldots
T T \ldots
T F \ldots
F T \ldots
F F \ldots

Next, we'll need columns for p\sim p and q\sim q, which will simply invert pp and qq:

pp qq p\sim p q\sim q \ldots
T T F F \ldots
T F F T \ldots
F T T F \ldots
F F T T \ldots

Finally, we'll combine the columns for p\sim p and q\sim q using the rule for \wedge:

pp qq p\sim p q\sim q p q\sim p\ \wedge \sim q
T T F F F
T F F T F
F T T F F
F F T T T

Try It

Build a truth table for the statement p qp\ \vee \sim q.

pp qq q\sim q p qp\ \vee \sim q
T T
T F
F T
F F
pp qq q\sim q p qp\ \vee \sim q
T T F T
T F T T
F T F F
F F T T

Notice that we could have built the truth table in the last example without using the intermediate rows for p\sim p and q\sim q; to do so, we could substitute each combination of pp and qq into the final statement p q\sim p\ \wedge \sim q to jump straight from the first two columns to the final column:

If pp is true and qq is true: T TF FF\begin{align*} \sim T\ &\wedge \sim T\ F\ &\wedge F\ F \end{align*} Therefore, in the row where pp is T and qq is T, the compound statement p q\sim p\ \wedge \sim q is F. The other rows can be done similarly.

The reason we tend to build truth tables as shown in the example above—by slowly adding columns and only performing one operation per column—is that this systematic approach tends to be simpler and avoid errors.

Example 7Constructing a Truth Table View video (opens in new tab)

Construct the truth table for the statement (pq)\sim (p \vee q).


Solution

Again, we are only dealing with two statements pp and qq, so we begin with the same two columns as before.

pp qq \ldots
T T \ldots
T F \ldots
F T \ldots
F F \ldots

Next we add a column for p qp\ \vee q. Note that we're using the parentheses as a guide for the order; since the parentheses group the p qp\ \vee q, we'll fill in that column first, then negate it.

pp qq p qp\ \vee q \ldots
T T T \ldots
T F T \ldots
F T T \ldots
F F F \ldots

Finally, we negate this last column to get a column for (p q)\sim (p\ \vee q).

pp qq p qp\ \vee q (p q)\sim (p\ \vee q)
T T T F
T F T F
F T T F
F F F T

Notice that the column for (p q)\sim (p\ \vee q) here is identical to the column for p q\sim p\ \wedge \sim q in the previous example. Again, this is no accident; this is another representation of one of De Morgan's laws (which we'll encounter later in this chapter).

Try It

Fill in the truth table below for the statement p (p q)\sim p\ \wedge (p\ \vee \sim q).

pp qq p\sim p q\sim q p qp\ \vee \sim q p (p q)\sim p\ \wedge (p\ \vee \sim q)
T T
T F
F T
F F
pp qq p\sim p q\sim q p qp\ \vee \sim q p (p q)\sim p\ \wedge (p\ \vee \sim q)
T T F F T F
T F F T T F
F T T F F F
F F T T T T

Example 8Constructing a Truth Table View video (opens in new tab)

Construct the truth table for the statement (p q) (r p)(p\ \wedge \sim q)\ \vee (r\ \wedge \sim p).


Solution

Now we have three pieces (pp, qq, and rr), so we'll need three starting columns and eight rows to account for all the possibilities.

pp qq rr \ldots
T T T \ldots
T F T \ldots
F T T \ldots
F F T \ldots
T T F \ldots
T F F \ldots
F T F \ldots
F F F \ldots

Next, we'll need p\sim p and q\sim q in the final statement, so we'll add a column for each of those.

pp qq rr p\sim p q\sim q \ldots
T T T F F \ldots
T F T F T \ldots
F T T T F \ldots
F F T T T \ldots
T T F F F \ldots
T F F F T \ldots
F T F T F \ldots
F F F T T \ldots

Next, add two more columns: one for p qp\ \wedge \sim q and one for r pr\ \wedge \sim p. The last step will be to combine these two columns with \vee.

pp qq rr p\sim p q\sim q p qp\ \wedge \sim q r pr\ \wedge \sim p \ldots
T T T F F F F \ldots
T F T F T T F \ldots
F T T T F F T \ldots
F F T T T F T \ldots
T T F F F F F \ldots
T F F F T T F \ldots
F T F T F F F \ldots
F F F T T F F \ldots

Finally, combine these last two columns with the OR rule.

pp qq rr p\sim p q\sim q p qp\ \wedge \sim q r pr\ \wedge \sim p (p q) (r p)(p\ \wedge \sim q)\ \vee (r\ \wedge \sim p)
T T T F F F F F
T F T F T T F T
F T T T F F T T
F F T T T F T T
T T F F F F F F
T F F F T T F T
F T F T F F F F
F F F T T F F F

Quantified Statements

Some statements only make a claim about a specific category. For instance, one might say that "all politicians are dishonest." In this case, only those who fall into the category of politician are considered. This is an example of a quantified statement.

The words "all" or "some" (similarly "none" or "not all") are called quantifiers, since they refer to quantities, limiting the scope of a statement to a given category.

Quantifiers

The Universal Quantifier

The universal quantifier refers to all of a given category. The symbol \forall an upside-down A is used to mean "for all."

Example: To say that all human beings are mortal, we could write

"\forall human beings xx, xx is mortal" or

"x\forall x such that xx is a human being, xx is mortal"

Note: "none" is a variation of "for all." For instance, "no pig is beautiful" could be written "p\forall p such that pp is a pig, pp is not beautiful" (although that phrasing, admittedly, sounds pretty odd).

The Existential Quantifier

The existential quantifier refers to some of a given category. The symbol \existsa backwards E is used to mean "there exists." This is equivalent to saying that "there is at least one."

Example: To say that some dogs are retrievers, we could write

"x\exists x such that xx is a dog and xx is a retriever"

We can draw diagrams to represent quantified statements, like the following examples. We'll use circles to represent categories, but the size of the circles is not relevant; we're only interested in the location and interaction of the circles.

Example 9Diagram for the Universal Quantifier View video (opens in new tab)

Draw a diagram to represent the statement that "all battleships are ships."


Solution

The diagram below looks like a Venn diagram. The outer circle represents all ships, and the inner circle represents battleships.

Two circles: one labeled Battleships is drawn completely inside a larger one labeled Ships

Notice that anything in the battleship category is also automatically in the ship category; hence, this represents the quantified statement that "all battleships are ships."

Example 10Diagram for the Existential Quantifier View video (opens in new tab)

Draw a diagram to represent the statement that "some clouds are white."


Solution

Now, the left circle represents all white things, and the right circle represents all clouds.

Two circles are drawn: one is labeled White and the other is labeled Clouds.  The circles overlap, but neither is fully contained in the other.

Notice that there is some overlap, which is the clouds that are white. However, there are things that are white that are not clouds (Paper! Snow! A ghost!) and some clouds that are not white. This diagram therefore accurately represents the statement that "some clouds are white."

Negating Quantified Statements

Negating a quantified statement is not initially an intuitive process. For instance, suppose we have a false statement like "all clouds are white." If we negate it, we should get a true statement.

You may be tempted to write the negation as "all clouds are not white." However, this too is a false statement, so it cannot be the negation of the first false statement.

The correct negation would be "NOT all clouds are white," which can also be written "some clouds are not white" or "there is at least one cloud that is not white."

Negating a Quantified Statement

The negation of the statement "all AA are BB" is "some AA are not BB."

The negation of the statement "some AA are BB" is "all AA are not BB."

Example 11Negating Quantified Statements View video (opens in new tab)

Write the negation of each of the following quantified statements:

  1. All vegetarians eat carrots
  2. Some birds are flightless
  3. Every car salesman is dishonest
  4. There are some foods that cause cancer

Solution

  1. Some vegetarians do not eat carrots

  2. All birds are not flightless OR No birds are flightless OR All birds can fly

  3. At least one car salesman is not dishonest

  4. No foods cause cancer

Notice that there can be several equivalent ways to phrase something in English that all correspond to the same logical statement.

Try It

Write the negation of the statement "All dogs go to heaven."

Some dogs don't go to heaven.

Exercises

In problems 1—10, determine whether or not each sentence is a statement.

  1. 1024 is the smallest 4-digit number that is a perfect square.

  2. Doc Brown's time machine requires 1.21 jigowatts of power to operate.

  3. All elephants are purple.

  4. Don't do drugs.

  5. 64=2564=2^5

  6. Lizard people run the government.

  7. What are you holding?

  8. Don't believe everything you read.

  9. More soldiers died from sickness than combat in the Revolutionary War.

  10. This statement is a lie.

In problems 11—13, let pp and qq represent the following statements:

pp : It will rain this weekend.

qq : We can go to the mall on Saturday.

Write each of the following statements in symbolic form.

  1. "It won't rain this weekend."
  2. "Either it will rain this weekend, or we can go to the mall on Saturday."
  3. "We can't go to the mall on Saturday, but at least it won't rain this weekend."

In problems 14—16, let pp and qq represent the following statements:

pp : Interest rates are low.

qq : It is not time to buy a house.

Write each of the following statements in symbolic form.

  1. "It is time to buy a house; interest rates are low."
  2. "Interest rates are not low, and it is not time to buy a house."
  3. "Either it is time to buy a house, or interest rates are not low."

In problems 17—22, let pp and qq represent the following statements:

pp : You study hard.

qq : You graduate with honors.

Write each of the following statements in symbolic form.

  1. "You study hard and you graduate with honors."

  2. "You don't study hard, but you graduate with honors anyway."

  3. "You study hard, but you still don't graduate with honors."

  4. "You study hard or you don't graduate with honors."

  5. "You don't study hard or you graduate with honors anyway."

  6. "You don't study hard, or you don't graduate with honors."

In problems 23—26, let pp and qq represent the following statements:

pp : Kevin Durant will win the MVP award.

qq : The Lakers will win the NBA championship.

Write each of the following statements in words.

  1. pqp \vee q
  2. pqp \wedge q
  3. pq\sim p \vee q
  4. p qp\ \wedge \sim q

In problems 27—30, let pp and qq represent the following statements:

pp : This is a dog.

qq : This is a mammal.

Write each of the following statements in words.

  1. pq\sim p \wedge q
  2. p qp\ \wedge \sim q
  3. p q\sim p\ \vee \sim q
  4. q\sim q

In problems 31—34, let pp and qq represent the following statements:

pp : Eggs make a good breakfast.

qq : Bacon is not healthy.

Write each of the following statements in words.

  1. p\sim p
  2. p qp\ \vee \sim q
  3. p q\sim p\ \wedge \sim q
  4. pq\sim p \vee q

In problems 35—40, evaluate the truth value of the given statement for the given truth values of pp, qq, and rr.

  1. p qp\ \vee \sim q, where pp is T and qq is F.

  2. p q\sim p\ \wedge q, where pp is F and qq is F.

  3. p (q r)p\ \wedge (q\ \vee \sim r), where pp is T, qq is F, and rr is F.

  4. (p p)\sim (p\ \wedge \sim p), where pp is F.

  5. (p q) r(p\ \wedge q)\ \vee r, where pp is F, qq is T, and rr is T.

  6. (p (p q)) (qr)(p\ \vee (\sim p\ \vee q))\ \wedge \sim(q \wedge r), where pp is F, qq is F, and rr is T.

In problems 41—46, build a truth table for each statement.

  1. pq\sim p \wedge q
  2. (pq)p(p \wedge q) \vee \sim p
  3. p(p q)\sim p \wedge (p\ \vee \sim q)
  4. (p q)(pq)(p\ \wedge \sim q) \vee (\sim p \vee q)
  5. p (q r)\sim p\ \wedge (q\ \vee \sim r)
  6. [(p q)(p r)](p q)[(\sim p\ \vee q) \wedge (p\ \vee \sim r)] \wedge (\sim p\ \vee \sim q)

In problems 47—50, write the negation of each quantified statement.

  1. All mammals are land-based.

  2. Some horses are not domesticated.

  3. Some trains are late.

  4. All basketball players are not tall.