Chapter 1 Logic Unit Math 114

Similar documents
Unit 1 Logic Unit Math 114

Unit 1 Logic Unit Math 114

Unit 6 Logic Math 116

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Logic of Sentences (Propositional Logic) is interested only in true or false statements; does not go inside.

Chapter 1: The Logic of Compound Statements. January 7, 2008

PSU MATH RELAYS LOGIC & SET THEORY 2017

Logic Overview, I. and T T T T F F F T F F F F

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Chapter 1: Formal Logic

Logic and Truth Tables

THE LOGIC OF COMPOUND STATEMENTS

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

LOGIC CONNECTIVES. Students who have an ACT score of at least 30 OR a GPA of at least 3.5 can receive a college scholarship.

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

DISCRETE MATHEMATICS BA202

Mathematical Reasoning (Part I) 1

Predicate Logic & Quantification

Discrete Mathematics

Math Assignment 2 Solutions - Spring Jaimos F Skriletz Provide definitions for the following:

Proposition logic and argument. CISC2100, Spring 2017 X.Zhang

Where are my glasses?

Propositional Logic. Spring Propositional Logic Spring / 32

Section 1.3. Let I be a set. When I is used in the following context,

Math.3336: Discrete Mathematics. Propositional Equivalences

LOGIC. Name: Teacher: Pd: Page 1

CSC Discrete Math I, Spring Propositional Logic

1.1 Language and Logic

Compound Propositions

Chapter 2. Reasoning and Proof

Practice Final Math 116. Prime numbers and irrationals. 1) Which number is a prime number? a) 220 b) 111 c) 71 d) 135.

1.1 Language and Logic

Midterm Exam Solution

G E O M E T R Y CHAPTER 2 REASONING AND PROOF. Notes & Study Guide CHAPTER 2 NOTES

Logic Review Solutions

Chapter 5: Section 5-1 Mathematical Logic

Logic and Truth Tables

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Chapter 1: Inductive and Deductive Reasoning

Math 3336: Discrete Mathematics Practice Problems for Exam I

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

The statement calculus and logic

Rules of Inference. Arguments and Validity

Sec$on Summary. Propositions Connectives. Truth Tables. Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional

Section 1.1: Logical Form and Logical Equivalence

~ p is always false. Based on the basic truth table for disjunction, if q is true then p ~

To reason to a correct conclusion, we must build our arguments on true statements. Sometimes it is helpful to use truth tables. Simple Truth Table p

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

Intro to Logic and Proofs

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

Mat 243 Exam 1 Review

Formal Logic. Critical Thinking

Deductive and Inductive Logic

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Math 1312 Lesson 1: Sets, Statements, and Reasoning. A set is any collection of objects. These objects are called the elements of the set.

- a reversed conditional; if a conditional is p q, than its converse is q p

A Quick Lesson on Negation

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Over Lesson 2 3 Identify the hypothesis and conclusion. If 6x 5 = 19, then x = 4. Identify the hypothesis and conclusion. A polygon is a hexagon if it

PROPOSITIONAL CALCULUS

MAT 101 Exam 2 Logic (Part I) Fall Circle the correct answer on the following multiple-choice questions.

Discrete Structures of Computer Science Propositional Logic III Rules of Inference

CSE 20: Discrete Mathematics

Propositional Calculus. Problems. Propositional Calculus 3&4. 1&2 Propositional Calculus. Johnson will leave the cabinet, and we ll lose the election.

Chapter 3: Logic. Diana Pell. A statement is a declarative sentence that is either true or false, but not both.

DEDUCTIVE REASONING Propositional Logic

Five-Minute Check (over Lesson 2 3) Then/Now New Vocabulary Example 1: Real-World Example: Inductive and Deductive Reasoning Key Concept: Law of

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Rules Build Arguments Rules Building Arguments

ICS141: Discrete Mathematics for Computer Science I

Discrete Structures for Computer Science

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

THE LOGIC OF COMPOUND STATEMENTS

DERIVATIONS AND TRUTH TABLES

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

THE LOGIC OF COMPOUND STATEMENTS

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Definition 2. Conjunction of p and q

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Chapter 1 Elementary Logic

Math Final Exam December 14, 2009 Page 1 of 5

CSC 125 :: Final Exam May 3 & 5, 2010

Logic. Def. A Proposition is a statement that is either true or false.

The Logic of Compound Statements. CSE 2353 Discrete Computational Structures Spring 2018

Analyzing Extended Arguments

COT 2104 Homework Assignment 1 (Answers)

Sets and Logic Linear Algebra, Spring 2012

Truth-Functional Logic

SYMBOLIC LOGIC (PART ONE) LAMC INTERMEDIATE - 5/18/14

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

Conditional Statements

The Logic of Compound Statements cont.

Transcription:

Chapter 1 Logic Unit Math 114

Section 1.1 Deductive and Induction Reasoning Statements Definition: A statement is a group of words or symbols that can be classified as true or false. Examples of statements 1) The car is red 2) Cats make good pets 3) Columbus is the capital on Ohio. Examples of things that are not statements 1) Get out of here! 2) Stop doing that 3) How are you? Deductive Reasoning: The application of a general statement to a specific instance. Deductive reasoning goes from general to specific Example 1 (Example of Deductive Reasoning) Triangle ABC is isosceles All isosceles triangles have two equal angles Therefore, triangle ABC has two equal angles This argument is a deductive argument because it goes from general to specific.

Example 2 (Example of Deductive Reasoning) Solve the following equation: 2y + 5 = 17 2y + 5 5 = 17 5 2y = 12 2y = 2 y = 12 2 6 In this example, rules of algebra are used to solve for y. This is an example of deductive reasoning because the answer is the direct result of the application of the rules of algebra. Syllogism: An argument composed of two statements, or premise, which is followed by a conclusion. Example 2 Molly is a dog Dogs are very friendly Therefore, Molly is very friendly Inductive Reasoning: An argument that involves going from a series of specific cases to a general statement. Inductive reasoning goes from specific to general. In Deductive Reasoning the conclusion is guaranteed. In Inductive reasoning the conclusion is probable, but not necessarily guaranteed

Example 3 Is the following argument a deductive argument or an inductive argument. John sneezed around Jill s cat John sneezed around Jim s cat Therefore, John sneezes around all cats The argument is inductive because it goes from specific to general Example 4 Room 295 in Walker Hall is a technology classroom at RU Room 338 in Currie Hall is a technology classroom at RU Room 212 in Davis Hall is a technology classroom at RU Therefore, all classrooms at RU are technology classrooms The argument is inductive because it goes from specific to general Example 5 Determine if the following arguments use deductive reasoning or inductive reasoning All math teachers are strange Jim Morrison is a math teacher Therefore, Jim Morrison is strange. (This is an example of a deductive argument) Example 6 Determine if the following arguments use deductive reasoning or inductive reasoning Jimmy likes Mary Women whom Jimmy likes are pretty Thus, Mary is pretty (This is an example of a deductive argument)

Example 7 Determine if the following arguments use deductive reasoning or inductive reasoning In each of the last five years, the economy has grown by at least two percent. This year the economy is projected to grow by 2.5 % Therefore, the economy will always grow by at least 2 % (This is an example of an inductive argument)

Section 1.2 Connectors Compound Statements If two or more statements are put together this is referred to as a compound statement Similarly in the subject of English, two sentences put together form a compound sentence. In order to put statements together, we need to use what are called connectors Types of Connectors 1) Or 2) And 3) If-Then (Conditional or Implication) 4) Negation Symbols logic and Symbols Connector Or And If then (Conditional) Symbol Negation ~ How to use the four types of connectors I) Using or as a connector Symbolic representation: p or q ( p q )

Example 1 Write the following statement in symbolic form Either the sky is blue or the sea is green p = the sky is blue q = the sea is green p q Example 2 Write the following statement in symbolic form Dogs are loyal or cats are friendly p = dogs are loyal q = cats are friendly p q II) Using and as a connector Symbolic representation: p and q ( p q ) Example 3 Write the following statement in symbolic form The sky is blue and the sea is green. p = the sky is blue q = the sea is green p q

Example 4 Write the following statement in symbolic form I like oranges and apples p = I like oranges q = I like apples p q III) Using the conditional Symbolic representation: If p, then q ( p q ) where p is the premise or hypothesis, and q is the conclusion. Example 5 Write the following statement in symbolic form If you study for your geometry test, then you should do well on the test p = If you study for your geometry test (Hypothesis) q = you should do well on the test (Conclusion) p q Example 6 Write the following statement in symbolic form If it rains tomorrow, then I will bring an umbrella to work. p = If it rains tomorrow (Hypothesis) q = I will bring an umbrella to work (Conclusion) p q

Example 7 Write the following statement in symbolic form I will sell you my textbook, if you offer me a good price You can rewrite the statements as If you offer me a good price, then I will sell my textbook to help identify the hypothesis and conclusion p = If you offer me a good price (Hypothesis) q = I will sell you my textbook (Conclusion) p q IV) Using the negation Example 8 Negate the following statement p = I like apples Negation: ~p (I don t like apples) Note: The negation of all is some and the negation of some is all. Example 8 Negate the following statement All RU students like ice cream Negation: Some RU students do not like ice cream.

Example 9 Negate the following statement Some students dislike geometry Negation: All students like geometry Example 10 Negate the following statement Everyone loves Raymond Negation: Someone does not love Raymond Example 11 Which of the following are statements? a) 3 + 5 = 6 (Statement) b) Solve the equation 2x + 5 = 3 ( This is not a statement, because it can not be classified as true or false) 2 c) x + 1 = 0 has no solution (Statement) 2 d) x 1 = ( x + 1)( x 1) (Statement) e) Is 2 irrational? (Not a Statement) Example 12 Write a sentence that is the negation of each statement a) Her dress is not red Negation: Her dress is red. b) Some elephants are pink. Negation: All elephants are not pink c) All candy promotes tooth decay. Negation: Some candy does not promote tooth decay.

d) No lunch is free. Negation: Some lunches are free. Example 13 Using the symbolic representations: p: The food is spicy q: The food is aromatic Express the following compound statements in symbolic form. a) The food is aromatic and spicy. q p b) If the food isn t spicy, it isn t aromatic ~ p ~ q c) The food is spicy and it isn t aromatic p ~ q d) The food isn t spicy or aromatic. ~ ( p q)

De Morgan s Law Negation of compound Statements De Morgan s Law ~ ( p q) = ~ ~ ( p q) = ~ p ~ q p ~ q Using De Morgan s Law to negate compound statements Example 14 Negate each statement using De Morgan Law 1) ~ p ~ q Negation: ~ (~ p ~ q) = ~ (~ p) ~ (~ q) = p q 2) ~ p q Negation: ~ (~ p q) = ~ (~ p) ~ q = p ~ q 3) r ~ s Negation: ~ ( r ~ s) = ~ r ~ (~ s) = ~ r s 4) r s Negation: ~ ( r s) = ~ r ~ s = ~ r ~ s 5) Either I like apples or I like oranges. p q ~ ( p q) ~ p ~ q Negation: I don t like apples and I don t like oranges 6) The sky is blue and the sea is green

p q ~ ( p q) ~ p ~ q Negation: Either the sky is not blue or the sea is not green

Section 1.3 Truth Tables Review of the connectors Connector Or And If then (Conditional) Symbol Negation ~ Using the connectors in a truth table Basic Truth tables 1) p q p Q p q T T T T F T F T T F F F Think of the statement Either you like apple or you like oranges This statement is true unless you don t like oranges and you don t like apples (See red row in the truth table) 2) p q p Q p q T T T T F F F T F F F F Using the statement You like apples and oranges, it turns out that this statement is true only if you both like apples and oranges. (See blue) In the last three cases (rows) the statement is false. (See red)

3) p q p Q p q T T T T F F F T T F F T Using the example If you study for the test, you will pass the test, it turns out that this is all true accept when the hypothesis If you study for the test is true, and the conclusion you will pass the test is false (See red) Other examples of Truth Tables Example 1 Complete a truth table for ( p q) q p Q p q ( p q) q T T T T T F F T F T F T F F F T When a compound statement results with all true statements in the last column it is called a tautology (True in all cases) Example 2 Complete a truth table for ( p q) p p Q p q ( p q) p T T T T T F F T F T F F F F F F

Example 3 Complete a truth table for ( p q) (~ p) p Q ~p p q ( p q) (~ p) T T F T T T F F F F F T T F T F F T F T Example 4 Complete a truth table for ~ ( p q) p Q p q ~ ( p q) T T T F T F T F F T T F F F F T Example 5 Complete a truth table for (~ ( p q)) q p Q p q ~ ( p q) (~ ( p q)) q T T T F T T F T F T F T T F T F F F T F

Example 6 Complete a truth table for ( p q) ( p q) p Q p q p q ( p q) ( p q) T T T T T T F F T T F T F T T F F F F T This is a tautology Example 7 Complete a truth table for p ( ~ r q) P Q r ~r ( ~ r q) p ( ~ r q) T T T F F T T T F T F T T F T F F T T F F T F T F T T F F F F T F T T T F F T F F F F F F T F F Example 4 Complete a truth table for ( p q) r P Q r ( p q) ( p q) r T T T T T T T F T F T F T F T T F F F T F T T F T F T F F T F F T F T F F F F T

Section 1.4 Equivalent Statements and DeMorgan s Laws Equivalent Statements Equivalent Statements will have the same result in the last column of their truth tables. Example 1 Compare the truth tables for ~ ( p q) and ~ p ~ q Truth table for ~ ( p q) P Q p q ~ ( p q) T T T F T F T F F T T F F F F T Truth table for ~ p ~ q P Q ~p ~q ~ p ~ q T T F F F T F F T F F T T F F F F T T T Notice that the last columns of each table are identical. Thus, the arguments are equivalent.

Example 2 Compare the truth tables for ~ ( p q) and ~ p ~ q Truth table for ~ ( p q) P Q p q ~ ( p q) T T T F T F F T F T F T F F F T Truth table for ~ p ~ q P Q ~p ~q ~ p ~ q T T F F F T F F T T F T T F T F F T T T Again the truth tables have the same last column. Thus, the statements are equivalent. De Morgan s Laws ~ ( p q) = ~ ~ ( p q) = ~ p ~ q p ~ q

Section 1.5 Write arguments in symbolic form and valid arguments Writing an argument in symbolic form Example 1 I have a college degree (p) I am lazy (q) If I have a college degree, then I am not lazy I don t have a college degree Therefore, I am lazy Symbolic form: If I have a college degree, then I am not lazy ( p ~ q) I don t have a college degree (~ p ) Therefore, I am lazy q Hypothesis: (( p ~ q) ~ p) Conclusion: q Argument in symbolic form: (( p ~ q) ~ p) q To test to see if the argument is valid, we take the argument in symbolic form and construct a truth table. If the last column in the truth table results in all true s, then the argument is valid P q ~ p ~ q ( p ~ q) (( p ~ q) ~ p) (( p ~ q) ~ p) q T T F F F F T T F F T T F T F T T F T T T F F T T T T F Therefore, this argument is invalid because the last column has a false item.

Example 2 Symbolize the argument, construct a truth table, and determine if the argument is valid. If I pass the test, then I will graduate. I graduated Therefore, I passed the exam p = pass the exam g = I will graduate If I pass the test, then I will graduate. ( I graduated (g) Therefore, I passed the exam (p) p g ) Argument: (( p g) g) p p g ( p g ) (( p g) g) (( p g) g) p T T T T T T F F F T F T T T F F F T F T This argument is invalid Example 3 Symbolize the argument, construct a truth table, and determine if the argument is valid. Jen and Bill will be at the party Bill was at the party. Therefore, Jen was at the party J = Jen will be at the party B = Bill will be at the party Jen and Bill will be at the party J B Bill was at the party. B Therefore, Jen was at the party J

Argument in symbolic form: (( J B) B) J J B J B ( J B) B (( J B) B) J T T T T T T F F F T F T F F T F F F F T Since the last column is all true, the argument is valid Example 4 Symbolize the argument, construct a truth table, and determine if the argument is valid. It will be sunny or cloudy today It isn t sunny Therefore, it will be cloudy S = It will be sunny C = It will be cloudy It will be sunny or cloudy today It isn t sunny ~S Therefore, it will be cloudy C S C Hypothesis: ( S C) ~ S Conclusion: C S C ~S S C ( S C) ~ S (( S C) ~ S) C T T F T F T T F F T F T F T T T T T F F T F F T This is a valid argument

Example 5 Write in symbolic form p: The senator supports new taxes. q: The senator is reelected The senator is not reelected if she supports new taxes The senator does not support new taxes Therefore, the senator is reelected Symbolic form: The senator is not reelected if she supports new taxes The senator does not support new taxes ~ p Therefore, the senator is reelected q p ~ q Hypothesis: ( p ~ q) ~ Conclusion: q p Argument: (( p ~ q) ~ p) q 12) Determine if the argument in problem 6 above is valid p q ~q ~p p ~ q ( p ~ q) ~ p (( p ~ q) ~ p) q T T F F F F T T F F T F F T F T T F T F T F F T T T T F Since the last row results in false, the argument is invalid