TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt.

Slides:



Advertisements
Similar presentations
TRUTH TABLES Section 1.3.
Advertisements

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
Truth Tables Presented by: Tutorial Services The Math Center.
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.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
Review: Logic of Categories = Categorical Logic.
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.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Section 1.1 Logic. 2 Proposition Statement that is either true or false –can’t be both –in English, must contain a form of “to be” Examples: –Cate Sheller.
1. 2 Day 1Intro Day 2Chapter 1 Day 3Chapter 2 Day 4Chapter 3 Day 5Chapter 4 Day 6Chapter 4 Day 7Chapter 4 Day 8EXAM #1 40% of Exam 1 60% of Exam 1 warm-up.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
The semantics of SL   Defining logical notions (validity, logical equivalence, and so forth) in terms of truth-value assignments   A truth-value assignment:
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley. All rights reserved.
Truth Tables for Negation, Conjunction, and Disjunction.
3.2 – Truth Tables and Equivalent Statements
TRUTH TABLES. Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
The Foundations: Logic and Proofs
Chapter 1 Section 1.4 More on Conditionals. There are three statements that are related to a conditional statement. They are called the converse, inverse.
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
Discrete Maths 2. Propositional Logic Objective
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
MATH 102 Contemporary Math S. Rook
Fall 2002CMSC Discrete Structures1 Let’s get started with... Logic !
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
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
Chapter 3: Semantics PHIL 121: Methods of Reasoning March 13, 2013 Instructor:Karin Howe Binghamton University.
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.
MLS 570 Critical Thinking Reading Notes for Fogelin: Propositional Logic Fall Term 2006 North Central College.
Chapter 8 – Symbolic Logic Professor D’Ascoli. Symbolic Logic Because the appraisal of arguments is made difficult by the peculiarities of natural language,
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
How do I show that two compound propositions are logically equivalent?
Review Given p: Today is Thursday q: Tomorrow is Friday
Truth Tables Geometry Unit 11, Lesson 6 Mrs. King.
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.
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Logical Form and Logical Equivalence M Logical Form Example 1 If the syntax is faulty or execution results in division by zero, then the program.
3.1 Statements and Quantifiers 3.2 Truth Tables.  A statement is a declarative sentence that is either true or false.  Examples: Mr. Healey is my math.
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.
Notes - Truth Tables fun, fun, and more fun!!!!. A compound statement is created by combining two or more statements, p and q.
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,
Invitation to Critical Thinking Chapter 7 Lecture Notes Chapter 7.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
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.
Mathematics for Computing Lecture 2: Computer Logic and Truth Tables Dr Andrew Purkiss-Trew Cancer Research UK
Spring 2003CMSC Discrete Structures1 Let’s get started with... Logic !
 2012 Pearson Education, Inc. Slide Chapter 3 Introduction to Logic.
3/6/20161 Let’s get started with... Logic !. 3/6/20162 Logic Crucial for mathematical reasoningCrucial for mathematical reasoning Used for designing electronic.
Reasoning and Proof Chapter Use Inductive Reasoning Conjecture- an unproven statement based on an observation Inductive reasoning- finding a pattern.
 Statement - sentence that can be proven true or false  Truth value – true or false  Statements are often represented using letters such as p and q.
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
Section 3.2: Truth Tables for Negation, Conjunction, and Disjunction
Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT,  ) Negation (NOT,  ) Conjunction (AND,  ) Conjunction.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
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,
Thinking Mathematically
Truth Tables and Equivalent Statements
TRUTH TABLES.
TRUTH TABLES continued.
Presentation transcript:

TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt

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 all possible combinations of the individual statements as true or false, along with the resulting truth value of the compound statements. Truth tables are an aide in distinguishing valid and invalid arguments.

What are truth tables? Tables that give the truth-values of statements using AND, NOT, OR, IF THEN, and IF AND ONLY IF for every possible combination of truth-values. Visual aids for showing all possible true or false inputs and all possible true or false outputs. We will use the variables p, q, and r to represent the truth table values.

ConnectiveSymbol AND OR IF…THEN… IF AND ONLY IF NOT Symbols

Number of Rows If a compound statement consists of n individual statements, each represented by a different letter, the number of rows required in the truth table is 2 n.

Truth Table for ~p The negation of a statement is the denial of the statement. If the statement p is true, the negation of p, i.e. ~p is false. If the statement p is false, then ~p is true. Note that since the statement p could be true or false, we have 2 rows in the truth table. p~p TF FT Example: If P = everyone loves math If not P = not everyone loves math

Truth Table for p ^ q The conjunction is the joining of two statements with the word and. The number of rows in this truth table will be 4. (Since p has 2 values, and q has 2 value.) For p ^ q to be true, then both statements p, q, must be true. If either statement or if both statements are false, then the conjunction is false. pq p ^ q TTT TFF FTF FFF Example: If p = I got an A on the test. If q = My friend got an A on the test. If p and q = Both my friend and I got an A on the test.

Truth Table for p v q A disjunction is the joining of two statements with the word or. The number of rows in this table will be 4, since we have two statements and they can take on the two values of true and false. For a disjunction to be true, at least one of the statements must be true. A disjunction is only false, if both statements are false. pq p v q TTT TFT FTT FFF Example: If p = I got an A on the test. If q = My friend got an A on the test. If p or q = Either my friend or I got an A on the test. Either one makes a success but both is fine!!

Truth Table for p  q Conditional is a compound statement of the form “if p then q”. Think of a conditional as a promise. If I don’t keep my promise, in other words q is false, then the conditional is false if the premise is true. If I keep my promise, that is q is true, and the premise is true, then the conditional is true. When the premise is false (i.e. p is false), then there was no promise. Hence by default the conditional is true. pq p  q TTT TFF FTT FFT Example: If p = Roy Halladay pitches a no-hitter. If q = The Phillies win the game. If p, then q = If Halladay pitches a no-hitter, then the Phillies will win.

Truth Table for p q Biconditional is a connective statement of the form “p if and only if q”. The result is that the truth of either one of the connected statements requires the truth of the other. Another way to say the same things is: "Q is necessary, and sufficient for P". This means two things: "If P, Then Q" and "If Q, Then P" pq p q TTT TFF FTF FFT Example: If p = I study for the test. If q = I will get an A. If p, and only if, then q = If and only if I study, I will get an A. (I can’t get an A without studying).

Equivalent Expressions Equivalent expressions are symbolic expressions that have identical truth values for each corresponding entry in a truth table. Hence ~(~p) ≡ p. The symbol ≡ means equivalent to. p~p~(~p) TFT FTF

Negation of the Conditional Here we look at the negation of the conditional. Note that the 4 th and 6 th columns are identical. Hence p ^ ~q is equivalent to ~(p  q). pq~q p ^ ~q p  q ~(p  q) TTFFT ~~F~~F TFTTFT FTFFTF FFTFTF

De Morgan’s Laws The negation of the conjunction p ^ q is given by ~(p ^ q) ≡ ~p v ~q. “Not p and q” is equivalent to “not p or not q.” The negation of the disjunction p v q is given by ~(p v q) ≡ ~p ^ ~q. “Not p or q” is equivalent to “not p and not q.”

Let’s set up truth tables One variable/ two rows Two variables p T F p TT TF FT FF If a compound statement consists of n individual statements, each represented by a different letter, the number of rows required in the truth table is 2 n

How to set up truth tables (cont.) Three variables pr TTT TTF TFT TFF FTT FTF FFT FFF

Practice Examples p TT TF FT FF pr TTT TTF TFT TFF FTT FTF FFT FFF