Unit 6 Logic Math 116

Similar documents
Unit 1 Logic Unit Math 114

Unit 1 Logic Unit Math 114

Chapter 1 Logic Unit Math 114

Logic and Truth Tables

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

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

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

Compound Propositions

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

ANALYSIS EXERCISE 1 SOLUTIONS

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

Logic Review Solutions

Part 2 Module 2 The Conditional Statement. A conditional statement is a statement of the form "If p, then q,"

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

CSC Discrete Math I, Spring Propositional Logic

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

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

Logic and Truth Tables

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.

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Section 1.2: Conditional Statements

Examples. Example (1) Example (2) Let x, y be two variables, and denote statements p : x = 0 and q : y = 1. Solve. x 2 + (y 1) 2 = 0.

Unit 2: Logic and Reasoning. start of unit

Topic 1: Propositional logic

A statement is a sentence that is definitely either true or false but not both.

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

Write the negation of each of the following propositions without using any form of the word not :

Overview. 1. Introduction to Propositional Logic. 2. Operations on Propositions. 3. Truth Tables. 4. Translating Sentences into Logical Expressions

1.5 MATHEMATICAL LANGUAGE

AMTH140 Lecture 8. Symbolic Logic

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

Math 102 Section 08, Fall 2010 Solutions Practice for Formal Proofs of Arguments

The statement calculus and logic

Mat 243 Exam 1 Review

PSU MATH RELAYS LOGIC & SET THEORY 2017

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

Math Exam Jam Concise. Contents. 1 Algebra Review 2. 2 Functions and Graphs 2. 3 Exponents and Radicals 3. 4 Quadratic Functions and Equations 4

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

Discrete Mathematics

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

Sets and Logic Linear Algebra, Spring 2012

Chapter 1: Formal Logic

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

DISCRETE MATHEMATICS BA202

Math.3336: Discrete Mathematics. Propositional Equivalences

Section 2.1: Introduction to the Logic of Quantified Statements

MACM 101 Discrete Mathematics I. Exercises on Propositional Logic. Due: Tuesday, September 29th (at the beginning of the class)

Math Final Exam December 14, 2009 Page 1 of 5

Introduction to Logic

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

Boolean Logic. CS 231 Dianna Xu

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements.

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

Logic. Propositional Logic: Syntax

CSCI Homework Set 1 Due: September 11, 2018 at the beginning of class

Propositional Logic. Spring Propositional Logic Spring / 32

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

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

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Definition 2. Conjunction of p and q

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

DERIVATIONS AND TRUTH TABLES


Lesson 10: True and False Equations

Propositional Logic. Fall () Propositional Logic Fall / 30

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

Methods of Proof. 1.6 Rules of Inference. Argument and inference 12/8/2015. CSE2023 Discrete Computational Structures

Chapter 2: The Logic of Quantified Statements

Recitation Week 3. Taylor Spangler. January 23, 2012

Formal Geometry. Conditional Statements

Full file at

Discrete Structures of Computer Science Propositional Logic I

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

Section 1.1: Logical Form and Logical Equivalence

EECS 1028 M: Discrete Mathematics for Engineers

INTRODUCTION TO LOGIC

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

Logic. Propositional Logic: Syntax. Wffs

2.2: Logical Equivalence: The Laws of Logic

2-1. Inductive Reasoning and Conjecture. Lesson 2-1. What You ll Learn. Active Vocabulary

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

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

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

Proving logical equivalencies (1.3)

ICS141: Discrete Mathematics for Computer Science I

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

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

(p == train arrives late) (q == there are taxis) (r == If p and not q, then r. Not r. p. Therefore, q. Propositional Logic

Introduction to Sets and Logic (MATH 1190)

Statements and Quantifiers

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

Logic and Proofs. (A brief summary)

Propositional Logic: Syntax

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

The Nature of Mathematics 13th Edition, Smith Notes. Korey Nishimoto Math Department, Kapiolani Community College October

22 3. STATEMENTS. P : 2 is an even number

THE LOGIC OF COMPOUND STATEMENTS

FORMAL PROOFS DONU ARAPURA

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

Transcription:

Unit 6 Logic Math 116

Logic Unit Statement: A group words or symbols that can be classified as true or false. Examples of statements Violets are blue Five is a natural number I like Algebra 3 + 7 = 10 Examples of things that are not statements. Get out of here. What s up! Don t worry, be happy Conditional Statements Conditional: A B Converse: B A Inverse ~ A ~ B Contrapositive: ~ B ~ A Logical Symbols Connector Symbol And Or If-then Negation ~ Negations Examples: 1) 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.

Examples 2) All RU students love ice cream Negation: Some RU students do not like ice cream. 3) Some students dislike geometry Negation: All students like geometry 4) Everyone loves Raymond Negation: Someone does love Raymond 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. Examples Page 378 10) We call it the period from noon to sunset Not a statement 12) An obtuse angle is not an Statement 0 90 angle. 14) A pencil is a writing implement. Statement

Negate each statement 20) My dog is a Dalmatian. Negation: My dog is not a Dalmatian. 22) The jokes are great. Negation: The jokes are not great. 33) All fish can live under water. Negation: Some fish can not live under water. 35) Some numbers are not prime numbers. Negation: All numbers are prime numbers Write the inverse, converse, and contrapositive of each statement If you study the test, then you will pass the test Inverse: If you will pass the test, then you will study for the test Converse: If you don t study for the test, then you will not pass the test Contrapositive: If you didn t pass the test, then you didn t study for the test. When I am a sleep, nothing bothers me Inverse: If nothing bothers me, then I am sleeping Converse: If something bothers me, then I am not sleeping. Contrapositive: If I am not sleeping, then something bothers me.

Section 6.3 Truth Tables Logical Symbols Connector Symbol And Or If-then Negation ~ Truth Tables A truth table is a chart consisting of all possible combinations of the clauses in the statement. To full understand truth tables, you must first understand the basic truth table for the basic connectors Basic Truth Tables Or A B A B T T T T F T F T T F F F If you let A = John likes apples and B = John likes oranges, then the statement A B or Either John likes apples or John likes oranges is always true except when both A and B are false. And A B A B T T T T F F F T F F F F If you let A = John likes apples and B = John likes oranges, then the statement A B or John likes apples and John likes oranges is only true when both A and B are true.

If then A B A B T T T T F F F T T F F T Let A B be then conditional statement If you study for the test, then you will pass the test. The only time this statement is false is if you would study for the test and not pass the test, which is T F Negation A ~A T F F T More Truth Tables Use the results from the four above truth tables. 1) ( A B) A A B B A B T T T T T F F T F T F F F F F F 2) ( A B) ~ B A ( ) A A B ~B B A B ~ T T F T T T F F F F F T T F T F F T F T A ( ) B

3) ( A B) ~ A A B ~A B A ( A B) ~ A T T F T T T F F F F F T T T T F F T T T 4) ~ B ~ A A B ~A ~B ~ B ~ A T T F F T T F F T F F T T F T F F T T T 5) ( ~ A ~ B) A A B ~A ~B ~ A ~ B (~ A ~ B) A T T F F T T T F F T T T F T T F F T F F T T T F 6) B A A B B A T T T T F T F T F F F T If the last column of an argument result in all true statements, then the argument is a tautology.

Equivalent statements Two statements are equivalent if they have the same result in last column of their truth tables. Examples Show that the following arguments are equivalent: A B and ~ B ~ A A B A B T T T T F F F T T F F T A B ~A ~B ~ B ~ A T T F F T T F F T F F T T F T F F T T T Show that the following arguments are equivalent: ~ A ~ B and B A A B B A T T T T F T F T F F F T A B ~A ~B ~ A ~ B T T F F T T F F T T F T T F F F F T T T

De Morgan s Law Negation of compound Statements De Morgan s Law ~ ( A B) = ~ ~ ( A B) = ~ A ~ B A ~ B Proof: Compare the truth tables for ~ ( A B) and ~ A ~ B Truth table for ~ ( A B) A B A B ~ ( A B) T T T F T F T F F T T F F F F T Truth table for ~ A ~ B A B ~A ~B ~ A ~ B 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. Compare the truth tables for ~ ( A B) and ~ A ~ B Truth table for ~ ( A B) A B A B ~ ( A B) T T T F T F F T F T F T F F F T

Truth table for ~ A ~ B A B ~A ~B ~ A ~ B 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. Using De Morgan s Law to negate compound statements Examples Negate each statement using De Morgan Law 1) ~ A ~ B Negation: ~ (~ A ~ B) = ~ (~ A) ~ (~ B) = A B 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

Validity An argument is valid if the truth table of the argument in symbolic form is a tautology 1) Determine if the following argument is valid If it rains on Friday, then I will bring my umbrella to work on Friday I didn t bring my umbrella to work on Friday Therefore, it didn t rain on Friday. Let: A = It rains on Friday B = I will bring my umbrella to work. If it rains on Friday, then I will bring my umbrella to work on Friday ( A B ) I didn t bring my umbrella to work on Friday ~ B Therefore, it didn t rain on Friday. ~ A Argument in symbol form: (( A B) ~ B) ~ A A B ~A ~B ( A B) ( A B) ~ B (( A B) ~ B) ~ A T T F F T F T T F F T F F T F T T F T F T F F T T T T T Since the argument results in all true statements, the argument is a tautology Thus, the argument is valid

2) Determine if the following argument is valid A = It is raining B = the streets are wet If it is raining, then the streets are wet ( A B) It is raining A Therefore, the streets are wet. B Argument: (( A B) A) B A B ( A B) (( A B) A) (( A B) A) B T T T T T T F F F T F T T F T F F T F T This is a tautology. Therefore, the argument is valid. 3) P: You exercise regularly Q: You are healthy If you exercise regularly, then you are healthy ( P Q) You are healthy Q Therefore, you exercise regularly P Argument: (( P Q) Q) P P Q ( P Q) (( P Q) Q) (( P Q) Q) P T T T T T T F F F T F T T T F F F T F T This argument is not a tautology. Thus, the argument is invalid

4) The senator is not reelected, if she supports new taxes The senator does not support new taxes Therefore, the senator is reelected A = the senator support new taxes B = the senator is reelected The senator is not reelected, if she supports new taxes The senator does not support new taxes ~ A Therefore, the senator is reelected B A ~ B Argument: (( A ~ B) ~ A) B A B ~A ~B ( A ~ B) ( A ~ B) ~ A (( A ~ B) ~ A) B 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 5) If you practice hard, you will improve your skills You didn t improve your skills Therefore, you did not practice hard. P = you practice hard Q = you will improve your skills If you practice hard, you will improve your skills ( P Q) You didn t improve your skills ~ Q Therefore, you did not practice hard. ~ P Argument: (( P Q) ~ Q) ~ P P Q ~P ~Q ( P Q) ( P Q) ~ Q (( P Q) ~ Q) ~ P T T F F T F T T F F T F F T F T T F T F T F F T T T T T Valid Argument