Logic Basics
Introduction
What you’ll learn to do: Create truth tables to interpret statements and conditionals
In the previous section, we discussed fallacies (illogical arguments). In this section, we focus on constructing logical statements and creating proper arguments. Logic is a systematic way of thinking that allows us to deduce new information from old information and to parse the meanings of sentences. You use logic informally in everyday life and certainly also in doing mathematics. For example, suppose you are working with a certain circle, call it “Circle X,” and you have available the following two pieces of information.- Circle X has radius equal to 3.
- If any circle has radius [latex]r[/latex], then its area is [latex]\pi{r}^{2}[/latex] square units.
- Circle X has area [latex]9\pi[/latex] square units.
Learning Outcomes
- Determine if a sentence is a statement.
- Create new statements using connectors and negations.
- Determine the truth value of a statement using a truth table.
- Use a truth table to interpret complex statements or conditionals.
- Write truth tables given a logical implication, and its related statements.
- Determine whether two statements are logically equivalent.
Logical Statements
Statements
A statement (or proposition) is a sentence that makes a claim that is either true or false.- We will often use letters to stand for statements. For example, the letter P could stand for the statement "An apple is a fruit."
Example
Decide if each of the following sentences are statements.- Whales are mammals.
- The Beatles were the best band of the 20th century.
- Millie West was the governor of Colorado in 2015.
- Why do you like spaghetti?
- Please stop doing that!
Answer:
- The truth of this first sentence can easily be decided. Therefore, it is a statement.
- This sentence gives an opinion, therefore its truth cannot be determined. It is not a statement. Note that even widely held opinions are not statements.
- This sentence is false, but since its truth can be decided (ie: it is not true), it is also a statement.
- Questions are not statements because they cannot be labeled as true or false.
- Imperatives (commands) are also not statements because they cannot be labeled as true or false.
Try It
[ohm_question]108578[/ohm_question] [ohm_question]108573[/ohm_question]Negation
The logical opposite of a statement is called its negation. Note that the negation of a statement will have the opposite truth value of the original statement.- If a statement is true, its negation will be false. If a statement is false, its negation will be true.
Example
Give the negation of the statement: Whales are mammals.Answer: Whales are not mammals.
Truth Tables
A truth table is a table showing what the resulting truth value of a complex statement is for all the possible truth values for the simple statements. We can visualize the relationship between a statement and its negation with a truth table as shown below:[latex]P[/latex] | not [latex]P[/latex] |
---|---|
T | F |
F | T |
Logical Connectors
Let P and Q be statements.- The statement P and Q is called their conjunction. The conjunction is true when both statements P and Q are true.
- The statement P or Q is called their disjunction. The disjunction is true when either statement P is true, OR statement Q is true, OR both statement P and statement Q are true
- P is true and Q is true.
- P is true and Q is false.
- P is false and Q is true.
- P is false and Q is false.
Truth Table - Conjunction
[latex]P[/latex] | [latex]Q[/latex] | [latex]P[/latex] and [latex]Q[/latex] |
---|---|---|
T | T | T |
T | F | F |
F | T | F |
F | F | F |
Truth Tables - Disjunction
[latex]P[/latex] | [latex]Q[/latex] | [latex]P[/latex] or [latex]Q[/latex] |
---|---|---|
T | T | T |
T | F | T |
F | T | T |
F | F | F |
Example
Suppose you’re picking out a new couch, and your significant other says “get a sectional or something with a chaise.” Construct a truth table that describes the elements of the conditions of this statement and whether the conditions are met.Answer: This is a complex statement made of two simpler conditions: “is a sectional,” and “has a chaise.” For simplicity, let’s use S to designate “is a sectional,” and C to designate “has a chaise.” The condition S is true if the couch is a sectional. A truth table for this would look like this:
S | C | S or C |
---|---|---|
T | T | T |
T | F | T |
F | T | T |
F | F | F |
Example
Suppose we are searching a library database for Mexican universities. Express a reasonable search using a logical connector.Answer: We could start with the search “Mexico and university”, but would be likely to find results for the U.S. state New Mexico. To account for this, we could revise our search to read: Mexico and university not “New Mexico”
Mexico university -“New Mexico”
Example
Describe the numbers that meet the condition: even and less than 10 and greater than 0Answer: The numbers that satisfy all three requirements are {2, 4, 6, 8}
Try It
[ohm_question]25592[/ohm_question]Which Comes First?
Sometimes statements made in English can be ambiguous. For this reason, mathematical logic uses parentheses to show precedent, just like in algebraic order of operations. The English phrase “Go to the store and buy me eggs and bagels or cereal” is ambiguous; it is not clear whether the requestors is asking for eggs always along with either bagels or cereal, or whether they’re asking for either the combination of eggs and bagels, or just cereal. For this reason, using parentheses clarifies the intent:Eggs and (bagels or cereal) means | Option 1: Eggs and bagels, Option 2: Eggs and cereal |
(Eggs and bagels) or cereal means | Option 1: Eggs and bagels, Option 2: Cereal |
Example
Describe the numbers that meet the condition: odd number and less than 20 and greater than 0 and (multiple of 3 or multiple of 5)Answer: The first three conditions limit us to the numbers: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19. The last grouped conditions tell us to include numbers that are also either a multiple of 3 or a multiple of 5. This leaves us with just the numbers: 3, 5, 9, 15 Notice that we would have gotten a very different result if we had written (odd number and less than 20 and greater than 0 and multiple of 3) or multiple of 5 The first grouped set of conditions would give the numbers: 3, 9, 15. When combined with the last condition, though, this set expands without limits to include the numbers:
3, 5, 9, 15, 20, 25, 30, 35, 40, 45, …
Licenses & Attributions
CC licensed content, Original
- Revision and Adaptation. Provided by: Lumen Learning License: CC BY: Attribution.
CC licensed content, Shared previously
- Question ID 25462, 25592. Authored by: Lippman, David. License: CC BY: Attribution. License terms: IMathAS Community License CC-BY + GPL.
- Math in Society. Authored by: Lippman, David. Located at: http://www.opentextbookstore.com/mathinsociety/. License: CC BY: Attribution.
- Question ID 108578, 108573. Authored by: Hartley,Josiah. License: CC BY: Attribution. License terms: IMathAS Community License CC-BY + GPL.