Top Banner
45

Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Dec 24, 2015

Download

Documents

Primrose Harvey
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.
Page 2: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Chapter 3 – Introduction to Logic

The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments.

Logic is the formal systematic study of the principles of valid inference and correct reasoning.

It is used in most intellectual activities, but is studied primarily in the disciplines of philosophy, mathematics, semantics, and computer science.

Logic examines:

(a) general forms which arguments may take,

(b) which forms are valid, and

(c) which forms are fallacies.

Page 3: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

StatementsA statement is defined as a declarative sentence that is either true or false, but not both simultaneously.

3.1 – Statements and Quantifiers

Compound Statements

A compound statement may be formed by combining two or more statements.

The statements making up the compound statement are called the component statements.

Connectives such as and, or, not, and if…then, can be used in forming compound statements.

Page 4: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Determine whether or not the following sentences are statements, compound statements, or neither.

3.1 – Statements and Quantifiers

If Amanda said it, then it must be true.

Compound statement (if, then)

Today is extremely warm.

Statement

The gun is made by Smith and Wesson.

Statement

Compound statement (and)

The gun is a pistol and it is made by Smith and Wesson.

Page 5: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Negations

3.1 – Statements and Quantifiers

A negation is a statement that is a refusal or denial of some other statement.

Max has a valuable card.

Max does not have a valuable card.

The negation of a true statement is false and the negation of a false statement is true.

Statement:

Negation:

The number 9 is odd.

The number 9 is not odd.

Statement:

Negation:

The product of 2 negative numbers is not positive.

The product of 2 negative numbers is positive.

Statement:

Negation:

Page 6: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Negations and Inequality Symbols

Symbolism Meaning

a is less than b

a is greater than b

a is less than or equal to b

a is greater than or equal to b

a ba b

a ba b

3.1 – Statements and Quantifiers

Give a negation of each inequality. Do not use a slash symbol.

p ≥ 3

p < 3

Statement:

Negation:

3x – 2y < 12

3x – 2y ≥ 12

Statement:

Negation:

Page 7: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Symbols

To simplify work with logic, symbols are used.

Connective Symbol Type of Statement

3.1 – Statements and Quantifiers

 

 

 

Statements are represented with letters, such as p, q, or r, while several symbols for connectives are shown below.

and

or

not

Conjunction

Negation

Disjunction

Page 8: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Translating from Symbols to Words

Write each symbolic statement in words.

3.1 – Statements and Quantifiers

q represent “It is March.”

Let: p represent “It is raining,”

p ˅ q

It is raining or it is March.

�̴ (p ˄ q)

it is raining and it is March. It is not the case that

Page 9: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Quantifiers

Universal Quantifiers are the words all, each, every, no, and none.

Quantifiers are used extensively in mathematics to indicate how many cases of a particular situation exist.

3.1 – Statements and Quantifiers

Existential Quantifiers are words or phrases such as some, there exists, for at least one, and at least one.

Negations of Quantified Statements

Statement Negation

All do. Some do not.

Some do. None do.

Page 10: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Forming Negations of Quantified Statements

3.1 – Statements and Quantifiers

Some cats have fleas.

No cats have fleas.

Statement:

Negation:

Some cats do not have fleas.

All cats have fleas.

Statement:

Negation:

All dinosaurs are extinct.

Not all dinosaurs are extinct.

Statement:

Negation:

No horses fly.

Some horses fly.

Statement:

Negation:

Page 11: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Sets of Numbers

3.1 – Statements and Quantifiers

Natural Numbers: {1, 2, 3, 4, …}

Whole Numbers: {0, 1, 2, 3, …}

Rational Numbers: Any number that can be expressed as a quotient of two integers (terminating or repeating decimal).

and are integers and 0a

a b bb

Irrational Numbers: Any number that can not be expressed as a quotient of two integers (non-terminating and non-repeating).

Integers: {…, -3, -2, -1, 0, 1, 2, 3, 4, …}

Real Numbers: Any number expressed as a decimal.

Page 12: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

True or False

3.1 – Statements and Quantifiers

Every integer is a natural number.

False: – 1 is an integer but not a natural number.

A whole number exists that is not a natural number.

True: 0 is the number.

There exists an irrational number that is not real.

False: All irrational numbers are real numbers.

Page 13: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Conjunctions

The truth values of component statements are used to find the truth values of compound statements.

The truth values of the conjunction p and q (p ˄ q), are given in the truth table on the next slide. The connective “and” implies “both.”

3.2 – Truth Tables and Equivalent StatementsTruth Values

Truth Table

A truth table shows all four possible combinations of truth values for component statements.

Page 14: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Conjunction Truth Table

p q p ˄ q

T T T

T F F

F T F

F F F

p and q

3.2 – Truth Tables and Equivalent Statements

Page 15: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Finding the Truth Value of a Conjunction

If p represent the statement 4 > 1 and q represent the statement 12 < 9, find the truth value of p ˄ q.

3.2 – Truth Tables and Equivalent Statements

p q p ˄ q

T T T

T F F

F T F

F F F

p and q

12 < 9

4 > 1 p is true

q is false

The truth value for p ˄ q is false

Page 16: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Disjunctions

The truth values of the disjunction p or q (p ˅ q) are given in the truth table below. The connective “or” implies “either.”

3.2 – Truth Tables and Equivalent Statements

p q p ˅ q

T T T

T F T

F T T

F F F

p or q

Disjunction Truth Table

Page 17: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Finding the Truth Value of a Disjunction

If p represent the statement 4 > 1, and q represent the statement 12 < 9, find the truth value of p ˅ q.

3.2 – Truth Tables and Equivalent Statements

p q p ˅ q

T T T

T F T

F T T

F F F

p or q

12 < 9

4 > 1 p is true

q is false

The truth value for p ˅ q is true

Page 18: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Negation

The truth values of the negation of p ( B p) are given in the truth table below.

p B̴ p

T F

F T

not p

3.2 – Truth Tables and Equivalent Statements

Page 19: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Constructing a Truth Table

p q ~ p ~ q ~ p ˅ ~ q p ˄ (~ p ˅ ~ q)

T T

T F

F T

F F

Construct the truth table for: p ˄ (~ p ˅ ~ q)

3.2 – Truth Tables and Equivalent Statements

A logical statement having n component statements will have 2n rows in its truth table.

22 = 4 rows

Page 20: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Constructing a Truth Table

p q ~ p ~ q ~ p ˅ ~ q p ˄ (~ p ˅ ~ q)

T T F

T F F

F T T

F F T

Construct the truth table for: p ˄ (~ p ˅ ~ q)

3.2 – Truth Tables and Equivalent Statements

A logical statement having n component statements will have 2n rows in its truth table.

22 = 4 rows

Page 21: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Constructing a Truth Table

p q ~ p ~ q ~ p ˅ ~ q p ˄ (~ p ˅ ~ q)

T T F F

T F F T

F T T F

F F T T

Construct the truth table for: p ˄ (~ p ˅ ~ q)

3.2 – Truth Tables and Equivalent Statements

A logical statement having n component statements will have 2n rows in its truth table.

22 = 4 rows

Page 22: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Constructing a Truth Table

p q ~ p ~ q ~ p ˅ ~ q p ˄ (~ p ˅ ~ q)

T T F F F

T F F T T

F T T F T

F F T T T

Construct the truth table for: p ˄ (~ p ˅ ~ q)

3.2 – Truth Tables and Equivalent Statements

A logical statement having n component statements will have 2n rows in its truth table.

22 = 4 rows

Page 23: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Constructing a Truth Table

p q ~ p ~ q ~ p ˅ ~ q p ˄ (~ p ˅ ~ q)

T T F F F F

T F F T T T

F T T F T F

F F T T T F

Construct the truth table for: p ˄ (~ p ˅ ~ q)

3.2 – Truth Tables and Equivalent Statements

A logical statement having n component statements will have 2n rows in its truth table.

22 = 4 rows

Page 24: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Mathematical Statements

If p represent the statement 4 > 1, and q represent the statement 12 < 9, and r represent 0 < 1, decide whether the statement is true or false.

3.2 – Truth Tables and Equivalent Statements

p q ̴� p B q

T T

T F

F T

F F

� p ˄ B q�̴ p ˄ B q

Page 25: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Mathematical Statements

If p represent the statement 4 > 1, and q represent the statement 12 < 9, and r represent 0 < 1, decide whether the statement is true or false.

3.2 – Truth Tables and Equivalent Statements

p q ̴� p B q

T T F F

T F F T

F T T F

F F T T

� p ˄ B q�̴ p ˄ B q

Page 26: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Mathematical Statements

If p represent the statement 4 > 1, and q represent the statement 12 < 9, and r represent 0 < 1, decide whether the statement is true or false.

3.2 – Truth Tables and Equivalent Statements

p q ̴� p B q

T T F F

T F F T

F T T F

F F T T

� p ˄ B q

F

F

F

T

�̴ p ˄ B q

The truth value for the statement is false.

Page 27: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

˅

Example: Mathematical Statements

If p represent the statement 4 > 1, and q represent the statement 12 < 9, and r represent 0 < 1, decide whether the statement is true or false.

3.2 – Truth Tables and Equivalent Statements

p q r ̴� p B q B 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

� p ˄ r � q ˄ p( � p ˄ r) ˅ ( � q ˄ p)

Page 28: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

˅

Example: Mathematical Statements

If p represent the statement 4 > 1, and q represent the statement 12 < 9, and r represent 0 < 1, decide whether the statement is true or false.

3.2 – Truth Tables and Equivalent Statements

p q r ̴� p B q B r

T T T

F F F

T T F F F T

T F T F T F

T F F F T T

F T T T F F

F T F T F T

F F T T T F

F F F T T T

� p ˄ r � q ˄ p( � p ˄ r) ˅ ( � q ˄ p)

Page 29: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

˅

Example: Mathematical Statements

If p represent the statement 4 > 1, and q represent the statement 12 < 9, and r represent 0 < 1, decide whether the statement is true or false.

3.2 – Truth Tables and Equivalent Statements

p q r ̴� p B q B r

T T T

F F F

T T F F F T

T F T F T F

T F F F T T

F T T T F F

F T F T F T

F F T T T F

F F F T T T

� p ˄ r � q ˄ p

F

F

F

F

T

F

T

F

( � p ˄ r) ˅ ( � q ˄ p)

Page 30: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

˅

Example: Mathematical Statements

If p represent the statement 4 > 1, and q represent the statement 12 < 9, and r represent 0 < 1, decide whether the statement is true or false.

3.2 – Truth Tables and Equivalent Statements

p q r ̴� p B q B r

T T T

F F F

T T F F F T

T F T F T F

T F F F T T

F T T T F F

F T F T F T

F F T T T F

F F F T T T

� p ˄ r � q ˄ p

F F

F F

F T

F T

T F

F F

T F

F F

( � p ˄ r) ˅ ( � q ˄ p)

Page 31: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Example: Mathematical Statements

If p represent the statement 4 > 1, and q represent the statement 12 < 9, and r represent 0 < 1, decide whether the statement is true or false.

3.2 – Truth Tables and Equivalent Statements

p q r ̴� p B q B r

T T T

F F F

T T F F F T

T F T F T F

T F F F T T

F T T T F F

F T F T F T

F F T T T F

F F F T T T

� p ˄ r � q ˄ p

F F

F F

F T

F T

T F

F F

T F

F F

( � p ˄ r) ˅ ( � q ˄ p) ˅

F

F

T

T

T

F

T

F

The truth value for the statement is true.

Page 32: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Equivalent Statements

Are the following statements equivalent?

p q ~ p ˄ ~ q � (p ˅ q)

T T

T F

F T

F F

Two statements are equivalent if they have the same truth value in every possible situation.

3.2 – Truth Tables and Equivalent Statements

~ p ˄ ~ q and � (p ˅ q)

Page 33: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Equivalent Statements

Are the following statements equivalent?

p q ~ p ˄ ~ q � (p ˅ q)

T T F

T F F

F T F

F F T

Two statements are equivalent if they have the same truth value in every possible situation.

3.2 – Truth Tables and Equivalent Statements

~ p ˄ ~ q and � (p ˅ q)

Page 34: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Equivalent Statements

Are the following statements equivalent?

p q ~ p ˄ ~ q � (p ˅ q)

T T F F

T F F F

F T F F

F F T T

Yes

Two statements are equivalent if they have the same truth value in every possible situation.

3.2 – Truth Tables and Equivalent Statements

~ p ˄ ~ q and � (p ˅ q)

Page 35: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

3.3 – The ConditionalA conditional statement is a compound statement that uses the connective if…then.The conditional is written with an arrow, so “if p then q” is symbolized

.p q

The conditional is read as “p implies q” or “if p then q.”

The statement p is the antecedent, while q is the consequent.

Page 36: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Special Characteristics of Conditional Statementsfor a Truth Table

3.3 – The Conditional

When the antecedent is true and the consequent is true, p → q is true.

Teacher:

“If you participate in class, then you will get extra points."  

If you participate in class (true) and you get extra points (true) then,The teacher's statement is true.

If you participate in class (true) and you do not get extra points (false), then,

The teacher’s statement is false.

When the antecedent is true and the consequent is false, p → q is false.

Page 37: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Special Characteristics of Conditional Statementsfor a Truth Table

3.3 – The Conditional

If the antecedent is false, then p → q is automatically true.

“If you participate in class, then you will get extra points."  

If you do not participate in class (false), the truth of the teacher's statement cannot be judged. The teacher did not state what would happen if you did NOT participate in class.  Therefore, the statement has to be “true”.

If you do not participate in class (false), then you get extra points.

The teacher's statement is true in both cases.

If you do not participate in class (false), then you do not get extra points.

Page 38: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Truth Table for The Conditional

p q p → q

T T T

T F F

F T T

F F T

If p, then q

3.3 – The Conditional

A tautology is a statement that is always true, no matter what the truth values of the components are.

Page 39: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Examples:Decide whether each statement is True or False 

T → (4 < 2)

3.3 – The Conditional

(T represents a true statement, F a false statement).

T → F

F

(8 = 1) → F

F → F

T

F → (3 ≠ 9)

F → T

T

Page 40: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Converse, Inverse, and Contrapositive

Conditional Statement

3.4 – More on the Conditional

Converse

Inverse

Contrapositive

q → p

p → q

�̴ p → q ̴�

�̴ q → p ̴�

If q, then p

If not p, then not q

If not q, then not p

If p, then q

Page 41: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Determining Related Conditional Statements

3.4 – More on the Conditional

Given the conditional statement, determine the following:      a) the converse, b) the inverse, and c) the contrapositive.

If I live in Wisconsin, then I shovel snow,a) ConverseIf I shovel snow,  then I live in Wisconsin.

b) InverseIf I do not live in Wisconsin,  then I do not shovel snow.

c) ContrapositiveIf I do not shovel snow,  then I do not live in Wisconsin.

Page 42: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

EquivalencesA conditional statement and its contrapositive are equivalent, and the converse and inverse are equivalent.

3.4 – More on the Conditional

Alternative Forms of “If p, then q”

The conditional p → q can be translated in any of the following ways:

If p, then q.   p is sufficient for q.If p, q. q is necessary for p.p implies q. All p are q.

p only if q.  q if p.

Page 43: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Rewording Conditional StatementsWrite each statement in the form “if p, then q.”

3.4 – More on the Conditional

b)  Today is Sunday only if yesterday was Saturday.

c)  All Chemists wear lab coats.

a)  You’ll be sorry if I go.(q if p)

If I go,  then you’ll be sorry.

(p only if q)

If today is Sunday,  then yesterday was Saturday.

(All p are q)If you are a Chemist,  then you wear a lab coat.

Page 44: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Negation of a ConditionalThe negation of  

3.4 – More on the Conditional

If the river is narrow, then we can cross it.

q: we can cross it.

Examples:

The river is narrow and we cannot cross it.

p: the river is narrow.

Negation:

A Conditional as a Disjunction

The conditional  is equivalent to 

p: the river is not narrow.q: we cannot cross it.

The river is not narrow or we can cross it.

Disjunction:

Page 45: Chapter 3 – Introduction to Logic The initial motivation for the study of logic was to learn to distinguish good arguments from bad arguments. Logic is.

Negation of a ConditionalThe negation of  

3.4 – More on the Conditional

If you are absent, then you have a test.

q: you have a test.

Examples:

You are absent and you do not have a test.

p: you are absent.

Negation:

A Conditional as a Disjunction

The conditional  is equivalent to 

p: you are not absent.q: you do not have a test.

You are not absent or you have a test.

Disjunction: