TRUTH TABLES. Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements.

Slides:



Advertisements
Similar presentations
Logic ChAPTER 3.
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.
Constructing a Truth Table
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.
Logic ChAPTER 3 1. Truth Tables and Validity of Arguments
DEDUCTIVE REASONING: PROPOSITIONAL LOGIC Purposes: To analyze complex claims and deductive argument forms To determine what arguments are valid or not.
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 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Phil 120 week 1 About this course. Introducing the language SL. Basic syntax. Semantic definitions of the connectives in terms of their truth conditions.
Homework 3.
3.2 – Truth Tables and Equivalent Statements
The Foundations: Logic and Proofs
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 1 Section 1.4 More on Conditionals. There are three statements that are related to a conditional statement. They are called the converse, inverse.
Conditional Statements M Deductive Reasoning Proceeds from a hypothesis to a conclusion. If p then q. p  q hypothesis  conclusion.
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
Chapter 8 Logic DP Studies. Content A Propositions B Compound propositions C Truth tables and logical equivalence D Implication and equivalence E Converse,
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.
Valid and Invalid Arguments
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Logic Eleanor Roosevelt High School Geometry Mr. Chin-Sung Lin.
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.
HAWKES LEARNING Students Count. Success Matters. Copyright © 2015 by Hawkes Learning/Quant Systems, Inc. All rights reserved. Section 3.2 Truth Tables.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
3.3: Truth Tables. Types of Statements Negation: ~p Conjunction: p ˄ q (p and q) Disjunction: p V q (p or q, or both) Conditional: p → q (if p, then q)
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.
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,
CS1022 Computer Programming & Principles Lecture 1 Logic and Proof.
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
How do I show that two compound propositions are logically equivalent?
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
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.
Introductory Logic PHI 120 Presentation: "Truth Tables – Validity vs. Soundness" This PowerPoint Presentation contains a large number of slides, a good.
Lesson 20 INTERPRETING TRUTH TABLES. Review Conditional Statements (Less. 17) Original If p, then q. Converse If q, then p. Inverse If ~p, then ~q. Contrapositive.
Conditional Statements – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Conditional Statements Reading: Kolman, Section 2.2.
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
Formal Test for Validity. EVALUATIONS Evaluations An evaluation is an assignment of truth-values to sentence letters. For example: A = T B = T C = F.
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.
Metalogic. TWO CONCEPTIONS OF LOGICAL CONSEQUENCE.
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,
رياضيات متقطعة لعلوم الحاسب 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.
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
TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt.
Spring 2003CMSC Discrete Structures1 Let’s get started with... 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.
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.
Assign Yourself and Do Now Thursday, January 10, 2013.
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,
Information Technology Department
Presentation transcript:

TRUTH TABLES

Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements are made up of substatements.

Statements It is raining. The grass is wet. I did my homework. Roses are red. Violets are blue.

Compound Statements Roses are red and violets are blue. He is very intelligent or he studies at night. My cat is hungry and he is black.

Questions are not statements Questions cannot be true or false. –What time is it? –What color is my cat? –What grade will I get in CS230?

TRUTH VALUE The truth or falsity of a statement is its truth value. Simple statements have a true or false truth value. –It is raining. T if it is raining F if it isn’t The truth value of a compound statement is determined by the truth value of the substatements combined with how they are connected.

STATEMENTS Our book represents statements with the letters –p –q –r –s

COMPOUND STATEMENT We created compound statements using connectives. –Conjunction (And) –Disjunction (Or) –Negation (Not)

Conjunction Joining two statements with AND forms a compound statement called a conjunction. p Λ q Read as “p and q” The truth value is determined by the possible values of ITS substatements. To determine the truth value of a compound statement we create a truth table

CONJUNCTION TRUTH TABLE pqp Λ q TTT TFF FTF FFF

Conjunction Rule The compound statement p Λ q will only be TRUE when p is true and q is true

Disjunction Joining two statements with OR forms a compound statement called a “disjunction. p ν q Read as “p or q” The truth value is determined by the possible values of ITS substatements. To determine the truth value of a compound statement we create a truth table

DISJUNCTION TRUTH TABLE pqp ν q TTT TFT FTT FFF

DISJUNCTION RULE The compound statement p ν q will only be FALSE when p is false and q is false

NEGATION ~p read as not p Negation reverses the truth value of any statement

NEGATION TRUTH TABLE P~P TF FT

PROPOSITIONS AND TRUTH TABLES We can use our connectives to create compound statements that are much more complicated than just 2 substatements. When p and q become variables of a complex statement we call this a proposition. ~(pΛ~q) is an example of a proposition The truth value of a proposition depends upon the truth values of its variables so we create a truth table.

TRUTH TABLE THE PROPOSITION ~(pΛ~q) pq~qpΛ~q~(pΛ~q) TTFFT TFTTF FTFFT FFTFT

PROPOSITIONS AND TRUTH TABLES First Columns are always your initial variables –2 variables requires 4 rows –3 variables requires 8 rows –N variables requires 2 n rows We then create a column for each stage of the proposition and determine the truth value for the stage. The last column is the final truth value for the entire proposition.

Creating a stepwise truth table pq~(p^~q) TTTTFFT TFFTTTF FTTFFFT FFTFFTF Step41321

Step 1 pq~(p^~q) TTTT TFTF FTFT FFFF Step11

Step 2 pq~(p^~q) TTTFT TFTTF FTFFT FFFTF Step121

Step 3 pq~(p^~q) TTTFFT TFTTTF FTFFFT FFFFTF Step1321

Step 4 pq~(p^~q) TTTTFFT TFFTTTF FTTFFFT FFTFFTF Step41321

TAUTOLOGIES AND CONTRADICTIONS Tautology – when a proposition’s truth value (last column) consists of only T’s Contradiction – when a proposition’s truth value (last column) consists of only F’s p~pp V ~p TFT FTT p~pp Λ ~p TFF FTF

Principle of Substitution If P(p,q,…) is a tautology then P(P 1, P 2,…) is a tautology for any propositions P 1 and P 2

Principle of Substitution pqp^q~(p^q)(p^q) V ~(p^q) TTTFT TFFTT FTFTT FFFTT

LOGICAL EQUIVALENCE Two propositions P(p,q,…) and Q(p,q, …) are said to be logically equivalent, or simply equivalent or equal when they have identical truth tables. ~(p Λ q) ≡ ~p V ~q

Logical Equivalence pqp^q~(p^q) TTTF TFFT FTFT FFFT pq~p~q~pV~q TTFFF TFFTT FTTFT FFTTT

Conditional and Biconditional Statements If p then q is a conditional statement –p  q read as p implies q or p only if q P if and only if q is a biconditional statement – p  q read as p if and only if q

Conditional p  q pq TTT TFF FTT FFT

Biconditional p  q pq TTT TFF FTF FFT

Conditionals and equivalence ~p V q ≡ p  q pq~p~p V q TTFT TFFF FTTT FFTT pqp  q TTT TFF FTT FFT

Converse, Inverse and Contrapositive ConditionalConverseInverseContrapositive pqp  qq  p~p  ~q~q  ~p TTTTTT TFFTTF FTTFFT FFTTTT

Arguments An argument is a relationship between a set of propositions P 1, P 2, … called premises and another proposition Q called the conclusion. P 1, P 2, …P 8 |- Q An argument is valid if the premises yields the conclusion An argument is called a fallacy when it is not valid.

Logical Implication A proposition P(p,q,…) is said to logically imply a proposition Q(p,q…) written P(p,q…) => Q (p,q…) if Q (p,q…) is true whenever P(p,q…) is true