Chapter 8 Logic DP Studies. Content A Propositions B Compound propositions C Truth tables and logical equivalence D Implication and equivalence E Converse,

Slides:



Advertisements
Similar presentations
Logic The study of correct reasoning.
Advertisements

TRUTH TABLES Section 1.3.
TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
Logic & Critical Reasoning
1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton.
Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
IB Math Studies – Topic 3. IB Course Guide Description.
Logic Chapter 2. Proposition "Proposition" can be defined as a declarative statement having a specific truth-value, true or false. Examples: 2 is a odd.
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Adapted from Discrete Math
IB Math Studies – Topic 3. IB Course Guide Description.
Truth Tables for Negation, Conjunction, and Disjunction.
TRUTH TABLES. Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements.
Logic A statement is a sentence that is either true or false (its truth value). Logically speaking, a statement is either true or false. What are the values.
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 Foundations: Logic and Proofs
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Intro to Discrete Structures
Propositions and Truth Tables
1.1 Sets and Logic Set – a collection of objects. Set brackets {} are used to enclose the elements of a set. Example: {1, 2, 5, 9} Elements – objects inside.
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
Discrete Maths 2. Propositional Logic Objective
Looking Ahead Monday: Starting Logic Tuesday: Continuing Logic Wednesday: 15 week Exam, Projects Returned Thursday: Activity Friday: Finish Logic.
Lecture for Week Spring.   Introduction to Propositional Logic  Types of Proposition  Operator and Truth table Agenda.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Logic The study of critical thinking. Mathematical Sentence A statement of fact…called a statement Can be judged as true or false Not a question, command,
Review I Rosen , 3.1 Know your definitions!
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
Ch.2 Reasoning and Proof Pages Inductive Reasoning and Conjecture (p.62) - A conjecture is an educated guess based on known information.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
Chapter 7 Logic, Sets, and Counting
Conditional Statements
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
MAIN TOPIC : Statement, Open Sentences, and Truth Values Negation Compound Statement Equivalency, Tautology, Contradiction, and Contingency Converse, Inverse,
How do I show that two compound propositions are logically equivalent?
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
Logic. Statements, Connectives, and Quantifiers In symbolic logic, we only care whether statements are true or false – not their content. In logic, a.
6.1 Logic Logic is not only the foundation of mathematics, but also is important in numerous fields including law, medicine, and science. Although the.
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
LOGIC.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
TRUTH TABLES. Introduction The truth value of a statement is the classification as true or false which denoted by T or F. A truth table is a listing of.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
Mathematics for Computing Lecture 2: Computer Logic and Truth Tables Dr Andrew Purkiss-Trew Cancer Research UK
Conditional statement or implication IF p then q is denoted p ⇒ q p is the antecedent or hypothesis q is the consequent or conclusion ⇒ means IF…THEN.
Reasoning and Proof Chapter Use Inductive Reasoning Conjecture- an unproven statement based on an observation Inductive reasoning- finding a pattern.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Chapter 1 Logic and proofs
Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT,  ) Negation (NOT,  ) Conjunction (AND,  ) Conjunction.
Logical functors and connectives. Negation: ¬ The function of the negation is to reverse the truth value of a given propositions (sentence). If A is true,
Logic The study of correct reasoning.
Principles of Computing – UFCFA3-30-1
Chapter 8 Logic Topics
2 Chapter Introduction to Logic and Sets
Information Technology Department
3.5 Symbolic Arguments.
3.5 Symbolic Arguments.
Presentation transcript:

Chapter 8 Logic DP Studies

Content A Propositions B Compound propositions C Truth tables and logical equivalence D Implication and equivalence E Converse, inverse, and contrapositive F Valid arguments b

Opening Problem b

A. Propositions Propositions are statements which may be true or false. Examples: 1. The sky is green. 2. There is a virus on this computer.

A. Propositions Questions are not propositions. Is the sky green today? Comments or opinions that are subjective, are also not propositions since they are not definitely true or false. ‘Green is a nice color’ Propositions may be indeterminate. ‘your father is 50 years old’ would not have the same answer (true or false) for all people.

A. Proposition The truth value of a proposition is whether it is true or false. example: 1. one plus one equals two ( T ) 2. one plus one equals three ( F )

A. Proposition Example 1

A. Proposition Solution to example 1

A. Proposition We represent propositions by letters such as p, q, and r. For example, p: It always rains on Tuesdays. q: = 46 r: x is an even number.

A. Proposition

We can also represent negation using a truth table. p TF FT

A. Proposition Example 2

A. Proposition Solutions to example 2:

A. Proposition We can use a Venn diagram to represent these propositions and their negations.

A. Proposition Example 3

A. Proposition Solutions to example 3:

B. Compound Propositions Compound propositions are statements which are formed using connectives such as and and or. For example: p: Bob went to the beach q: Bob flew a kite p ^ q: Bob went to the beach and flew a kite

B. Compound Propositions When two propositions are joined using the word and, the new proposition is the conjunction of the original propositions. If p and q are propositions, p ^ q is used to denote their conjunction. For example: p: Eli had soup for lunch q: Eli had a pie for lunch p ^ q: Eli had soup and a pie for lunch. A conjunction is true only when both original propositions are true.

B. Compound Propositions Conjunction truth table pqp ^ q TTT TFF FTF FFF p ^ q is true when both p and q are true. The first 2 columns list the possible combinations for p and q.. p ^ q is false whenever one or both of p and q are false.

B. Compound Propositions

When two propositions are joined by the word or, the new proposition is the disjunction of the original propositions. If p and q are propositions, p V q is used to denote their disjunction. For example: p: Frank played tennis today q: Frank played golf today p V q: Frank played tennis or golf today. p V q is true if Frank played tennis or golf or both today. A disjunction is true when one or both propositions are true. A disjunction is only false if both propositions are false.

B. Compound Propositions The truth table for the disjunction “p or q” is: pqp V q TTT TFT FTT FFF p V q is true if p or q or both are true. p V q is only false if both p and q are false.

B. Compound Propositions We can use Venn diagrams to represent disjunction.

B. Compound Propositions The exclusive disjunction is true when only one of the propositions is true. The exclusive disjunction of p and q is written p V q. We can describe p V q as “p or q, but not both”, or “exactly one of p and q”. For example: p: Sally ate cereal for breakfast q: Sally ate toast for breakfast p V q: Sally ate cereal or toast, but not both, for breakfast.

B. Compound Propositions The truth table for the exclusive disjunction p V q is: pqp V q TTF TFT FTT FFF p Y q is true if exactly one of p and q is true. p Y q is false if p and q are both true or both false.

B. Compound Propositions If P and Q are the truth sets for propositions p and q respectively, then the truth set for p V q is the region shaded, where exactly one of p and q is true.

B. Compound Propositions Example 4:

B. Compound Propositions Solutions to example 4:

C. Truth Tables and Logical Equivalence This is what we know so far.

C. Truth Tables and Logical Equivalence

Solution to example 5

C. Truth Tables and Logical Equivalence Solution to example 5

C. Truth Tables and Logical Equivalence Solution to example 5

C. Truth Tables and Logical Equivalence A compound proposition is a tautology if all the values in its truth table column are true. Example:

C. Truth Tables and Logical Equivalence

Solution to example 8:

C. Truth Tables and Logical Equivalence When three propositions are under consideration, we usually denote them p, q, and r. The possible combinations of the truth values for p, q, and r are listed systematically in the table alongside.

C. Truth Tables and Logical Equivalence Example 9: Construct a truth table for the compound proposition (p V q) Л r.

C. Truth Tables and Logical Equivalence Solution to example 9:

D. Implication and Equivalence If two propositions can be linked with “If.... then....”, then we have an implication. The implicative statement “if p then q” is written p => q and reads “p implies q”. p is called the antecedent and q is called the consequent. For example: Given p: Kato has a TV set, and q: Kato can watch TV, we have p => q: If Kato has a TV set, then Kato can watch TV.

C. Truth Tables and Logical Equivalence the truth table for p => q is:

C. Truth Tables and Logical Equivalence If two propositions are linked with “.... if and only if....”, then we have an equivalence. The equivalence “p if and only if q” is written p  q. p  q is logically equivalent to the conjunction of the implications p => q and q => p. Example: Consider p: I will pass the exam, and q: The exam is easy. We have p => q: If I pass the exam, then the exam is easy. q => p: If the exam is easy, then I will pass it. p  q: I will pass the exam if and only if the exam is easy.

C. Truth Tables and Logical Equivalence We can find the truth table for p, q by constructing the truth table of its logical equivalent (p => q) Л (q => p) So, the truth table for equivalence p  q is

E. Converse, Inverse, and Contrapositive The converse of the statement p => q is the statement q => p. Example: p => q: If it is a red car, then it’s a convertible q => p: If it’s a convertible, then it is a red car The truth table for converse is

E. Converse, Inverse, and Contrapositive Example 10: For p: the triangle is isosceles, and q: two angles of the triangle are equal, state p => q and its converse q => p.

E. Converse, Inverse, and Contrapositive Solution to example 10: p => q: If the triangle is isosceles, then two of its angles are equal. q => p: If two angles of the triangle are equal, then the triangle is isosceles

E. Converse, Inverse, and Contrapositive

the converse and inverse of an implication are logically equivalent. converse inverse

E. Converse, Inverse, and Contrapositive

p => q

E. Converse, Inverse, and Contrapositive For example, consider p: Sam is in the library and q: Sam is reading.

E. Converse, Inverse, and Contrapositive Example 11: Write down the contrapositive of: “All teachers drive blue cars”.

E. Converse, Inverse, and Contrapositive Solution to example 11:

F. Valid Arguments An argument is made up of a set of propositions, called the premise, that leads to a conclusion. An argument is usually indicated by a word such as ‘therefore’ or ‘hence’. Example: If George is at the beach, then he is getting sunburnt. George is at the beach. Therefore, George is getting sunburnt.

E. Converse, Inverse, and Contrapositive We set out arguments by separating the premise and the conclusion with a horizontal line. If George is at the beach, then he is getting sunburnt. George is at the beach. George is getting sunburnt. premise conclusion

E. Converse, Inverse, and Contrapositive So, from the propositions p => q and p, we are implying the conclusion q. We can write this argument in logical form as (p => q) Л p => q. To determine whether this argument is valid, we construct a truth table for this proposition, and see whether it is a tautology. We have a tautology, so our argument is valid. The conclusion we have made follows logically from the premise.

E. Converse, Inverse, and Contrapositive Example 12: Determine the validity of the following argument: If a triangle has three sides, then 2 +4 = = 7 Hence, a triangle has three sides.

E. Converse, Inverse, and Contrapositive Solution to example 12:

E. Converse, Inverse, and Contrapositive IMPORTANT: Proposition q is clearly false. However, this does not affect the validity of the argument. Logic is not concerned with whether the premise is true or false, but rather with what can be validly concluded from the premise. So if we started out with a wrong premise, our conclusion is wrong, but it is logically sound.

E. Converse, Inverse, and Contrapositive Example 13: Determine the validity of the following argument: If x is a natural number, then x is an integer. If x is an integer, then x is rational. Therefore, if x is a natural number, then x is rational.

E. Converse, Inverse, and Contrapositive Solution to example 13: