Chapter 4: Logic

Section 4.1: Thinking Logically

Logic is basically the study of valid reasoning. When searching the internet, we use Boolean logic terms, like "and" and "or", to help us find specific web pages that fit in the sets we are interested in. After exploring this form of logic, we will look at logical arguments and how we can determine the validity of a claim or argument.

We can often classify items as belonging to set, like what was covered in the previous lesson. If you went to the library to find a specific book and the librarian asked you to express your search criteria in terms of unions, intersections, and compliments of sets, you would probably look at the librarian like they were crazy. Instead, we typically use words like "and", "or", and "not" to connect our keywords together to form a search. These words, which form the basics of Boolean logic1, are directly related to our set operations that were learned in the previous chapter.

Boolean Logic

Boolean logic combines multiple statements that are either true or false into an expression that is either true or false.

First, let's look at what makes something a statement. Not all sentences are statements. A statement is a declarative sentence that can be objectively determined to be either true or false, but not both.

Example 1

Determine if the following are statements or not. If they are statements, declare their truth value. If they are not statements, identify what they are.

  1. Where in the world is Carmen SanDiego?
  2. Dude, where's my car?
  3. Go get me a cheeseburger.
  4. That movie was horrible!
  5. A horse is a mammal.

Solution

  1. Not a statement - This is a question. It does not have a definitive true or false value.
  2. Not a statement - This is also a question.
  3. Not a statement - This is a directive. It does not have a definitive true or false value.
  4. Not a statement - This is an opinion. While it will have a true or false value, that value is not definitive as each person has their own opinion.
  5. Statement - This is a true statement. Horses are mammals.

Simple and Compound Statements

Not all logic is Boolean logic. Boolean logic uses multiple conjoined statements to make up a logical thought. While sometimes statements are just simple statements, a simple statement is a statement that doesn't use any connectives. Connectives are words that join one or more sentences together to create a compound statement. Also, sometimes in Boolean logic, we also need to negate a statement. Negations typically use the word "not" and they change the truth value of the statement. It is important to note that a negation is not a connective. We will list it in the table below:

Connectives

Words that are used to create compound statements:

Name Word Symbol
Conjunction "and" $\wedge$
Disjunction "or" $\vee$
Conditional "If...then..." $\rightarrow$
Biconditional "...if and only if..." $\leftrightarrow$
Negation "not" $\sim$

Example 2

Identify the following statements as either simple or compound. If the statement is compound, identify the connective.

  1. "Carlos studied for 5 hours and got an A on his exam."
  2. "Mary is taking a History class this semester."
  3. "If the women's softball team practices every day, then they will have a winning season."
  4. "I will go to the beach if and only if I complete my homework."
  5. "I will either go to the baseball game or to the movies."

Solution

  1. "Carlos studied for 5 hours and got an A on his exam."
    1. Compound - It has a connective.
    2. "and" Conjunction
  2. "Mary is taking a History class this semester."
    1. Simple - No connective.
  3. "If the women's softball team practices every day, then they will have a winning season."
    1. Compound - It has a connective.
    2. "If...then..." Conditional
  4. "I will go to the beach if and only if I complete my homework."
    1. Compound - It has a connective.
    2. "...if and only if..." Biconditional
  5. "I will either go to the baseball game or to the movies."
    1. Compound - It has a connective.
    2. "or" Disjunction

Example 3

Write the negation of the following statements.

  1. The sun will come out today.
  2. I will not go to the movies this week.

Solution

  1. The sun will not come out today.

    In English we could also re-phrase this to say, "It will be cloudy today". While that isn't the same sentence, it has the opposite truth value of what was previously written.

  2. I will go to the movies this week.

    It would sound funny to say "I will not not go to the movies this week." That would be a double negative, thus the two "not's" cancel each other out.

Symbolic Logic

If we refer back to the definition of connectives, we can see the symbols that are given for each connective. It should be no surprise that in Mathematics, we'd rather use symbols than words. After all, Mathematicians prefer numbers and symbols to words.

Example 4

Allow p = "I like chicken" and q = "I like potatoes." Write the verbal form of the symbolic logic below:

  1. $p\vee q$
  2. $\sim p\wedge q$
  3. $q\rightarrow \sim p$
  4. $q \leftrightarrow p$

Solution

  1. "I like chicken or I like potatoes." This could also be written as "I like chicken or potatoes."
  2. "I don't like chicken and I like potatoes."
  3. "If I like potatoes, then I don't like chicken."
  4. "I like potatoes if and only if I like chicken."

Example 5

Translate each statement into symbolic notation. Allow p to represent "I like Pepsi" and let q represent "I like Coke".

  1. "I like Pepsi or I like Coke."
  2. "I like Pepsi and I like Coke."
  3. "It is not the case that I like Pepsi or Coke."
  4. "If I like Pepsi, then I don't like Coke."

Solution

  1. $p\vee q$ - The connective in this problem is "or".
  2. $p\wedge q$ - The connective in this problem is "and".
  3. $\sim (p\vee q)$ - Notice that it says "it is not the case". That means not for what's following that.
  4. $p\rightarrow \sim q$ - This example used the words "If...then..." and the word "not".

Quantified Statements

Words that describe an entire set, such as "all", "every" or "none", are all called Universal Quantifiers because that set could be considered a Universal set. In contrast, words or phrases such as "some", "one", or "at least one", are called Existential Quantifier because they describe the existence of at least one element in a set.

Quantifiers

A Universal Quantifier states that an entire set of things share a characteristic.

An Existential Quantifier states that a set contains at least one element.

Example 6

Identify if the following are Universally or Existentially quantified:

  1. "There exists a house with three sides."
  2. "No one will pass this math class."

Solution

  1. This statement is Existentially quantified, because it is referring to at least one, and not all.
  2. This statement is Universally quantified because it is referring to everyone.

However, when we negate a quantified statement, it isn't as simple as just adding in a "not" to the statement. In order to negate a quantified statement, you'd replace a Universal quantifier with an Existential quantifier and vice-versa.

Negating a Quantified Statement

Example 7

Negate the quantified statements below:

  1. "Somebody brought a flashlight."
  2. "There are no even prime numbers."
  3. "Everybody cheats on their taxes."

Solution

  1. "Somebody brought a flashlight." This is an Existential statement, thus the negation would be, "Nobody brought a flashlight."
  2. "There are no even prime numbers." This is an example of a Universal quantified statement, making the negation, "There exists at least one even prime number."
  3. "Everybody cheats on their taxes." Once again, this is a Universal quantified statement, making the negation, "At least one person doesn't cheat on their taxes."