Functions. Lecture 4: Truth functions, evaluating compound statements. Arithmetic Functions. x y x+y

Similar documents
CSC Discrete Math I, Spring Propositional Logic

PHI Propositional Logic Lecture 2. Truth Tables

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

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

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

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

Section 3.1. Statements and Logical Connectives. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Compound Propositions

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

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

PROPOSITIONAL CALCULUS

Discrete Mathematics and Applications COT3100

CSE 20: Discrete Mathematics

It is not the case that ϕ. p = It is not the case that it is snowing = It is not. r = It is not the case that Mary will go to the party =

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

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

EECS 1028 M: Discrete Mathematics for Engineers

AMTH140 Lecture 8. Symbolic Logic

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

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

PHIL12A Section answers, 16 February 2011

1.3 Propositional Equivalences

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

13.3 Truth Tables for the Conditional and the Biconditional

Solutions to Homework I (1.1)

Propositional Equivalence

Section 1.1: Logical Form and Logical Equivalence

CSE 240 Logic and Discrete Mathematics

DeMorgan s Laws and the Biconditional. Philosophy and Logic Sections 2.3, 2.4 ( Some difficult combinations )

2.2: Logical Equivalence: The Laws of Logic

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

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

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

Boolean Logic. CS 231 Dianna Xu

DERIVATIONS AND TRUTH TABLES

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

INTRODUCTION TO LOGIC 3 Formalisation in Propositional Logic

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

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

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

Discrete Mathematics

CSE 20 DISCRETE MATH. Fall

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

3.2: Compound Statements and Connective Notes

Propositional logic ( ): Review from Mat 1348

CSE 311: Foundations of Computing. Lecture 2: More Logic, Equivalence & Digital Circuits

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science

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

Discrete Mathematics and Its Applications

Chapter 4 INTRO LOGIC. Sentential Logic DAY 03. Schedule for Unit 1. Review. An argument is valid or invalid purely in virtue of its form.

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

Section L.1- Introduction to Logic

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

Truth-Functional Logic

Mathematical Logic Part One

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

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

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

GEOMETRY. Chapter 2: LOGIC. Name: Teacher: Pd:

Mathematical Logic Part One

PHIL 422 Advanced Logic Inductive Proof

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

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Chapter 1, Section 1.1 Propositional Logic

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

Propositional Logic. Fall () Propositional Logic Fall / 30

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

DISCRETE STRUCTURES WEEK5 LECTURE1

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

Discrete Structures for Computer Science

Propositional Logic George Belic

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

Logic and Truth Tables

Today s Topic: Propositional Logic

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Classical Propositional Logic

ICS141: Discrete Mathematics for Computer Science I

1 Propositional Logic

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Propositional Logic. Propositional Equivalences. Agenda. Yutaka HATA, IEEE Fellow. Ch1.1 Propositional Logic. Ch1.2 Propositional Equivalences

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

The statement calculus and logic

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

Truth Tables for Arguments

Lecture 7. Logic. Section1: Statement Logic.

A Little Deductive Logic

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38

Tautologies, Contradictions, and Contingencies

Logic, Sets, and Proofs

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Chapter 4: Classical Propositional Semantics

The Logic of Compound Statements cont.

Mathematical Logic Part One

Transcription:

Lecture 4: ruth functions, evaluating compound statements 1. unctions, arithmetic functions, and truth functions 2. Definitions of truth functions unctions A function is something that takes inputs and produces outputs. You can think of them as a sort of abstract machine - like a bread machine that will produce as output bread, if it is given as input flour, yeast, sugar, etc. 3. Evaluating compound expressions 4. Categorizing statements Arithmetic unctions amiliar examples of functions are the arithmetic functions addition, subtraction, multiplication and division Addition takes 2 numbers as input, and produces 1 number as output If you input 4 and 3, it outputs 7 Addition takes 2 numbers as input, and produces 1 number as output If you input 4 and 3, it outputs 7 A function can be defined in terms of its entire input-output structure x y x+y A function can be defined in terms of its entire input-output structure Addition + x y x+y Rickification x y x y Addition + x y x+y Multiplication x x y x x y 1 1 1 1 2 2 2 1 2 Subtraction - x y x-y 1 1 0 1 2-1 2 1 1 2 2 0 Division + x y x y 1 1 1 1 2.5 2 1 2 2 2 1

ruth unctions ruth functions are functions that take truth values as inputs, and produce truth values as outputs. here are two truth values: rue () alse () Every simple statement is either rue or alse he statement operators that form compound statements (conjunction, negation, etc.) symbolize truth functions. H = I left you my house. C = I left you my car. I left you my house and I left you my car. (H! C) H C H! C Conjunction!!!!! Negation I am married. I am not married.! ~! Disjunction Shelly won Lotto Shelly got a big inheritance Either Shelly won Lotto, or Shelly got a big inheritance. Shelly either won Lotto or got a big inheritance Disjunction Shelly won Lotto Shelly got a big inheritance Shelly either won Lotto or got a big inheritance.!!! v!

Disjunction he expression or in English is ambiguous, can express two different truth functions. You can have soup or salad.!!! v! Disjunction Inclusive OR!!!v! You can have soup or salad. (P v D)! ~(P! D) Exclusive OR!!!v! Conditional You turn in all the homework. I give you an A in the class. If you turn in all the homework, I ll give you an A in the class.!!!! Biconditional You earn a C- or better. I ll give you a P I ll give you a P if and only if you earn a C- or better.!!!! Evaluating compound statements a + b a b a+b Evaluating compound statements (a x b) + (b - a) a b a x b b-a (a x b) + (b-a) 1 1 1 0 1 1 2 2 1 2-1 1 0 4

Construct a ruth able n Number of Rows = 2 + 1 Where n is the number of simple statements 2 involved: 2 + 1 = 5 Construct a ruth able Number of Columns: 1 for each statement involved in the compound statement. P; Q; P! Q; Q P; = 5 P Q P Q In the first columns on the top row, put the simple statement in alphabetical order In the columns under the simple statements, fill out s and s so that every possible combination of truth values has a row P Q In the first column, top half s and bottom half s. or each subsequent column, alternate groups of s and s half the size of the groups of the previous column, until finished. P Q P! Q Q P In subsequent columns, build up from the smallest compound statements to the largest, and fill in its truth column according to the truth function of that operator, and the truth values of the components

P Q P! Q Q P P Q P! Q Q P!!!!!!!!! P Q P! Q Q P ~(~C D) ~D C D ~C ~D ~C D ~(~C D) ~(~C D) ~D!!!v! ~R R R ~R ~R R!!!! {(G v E) ~K} ~(~K! ~E) E G K ~E ~K GvE (GvE) ~K ~K! ~E ~(~K! ~E) {(GvE) ~K} ~(~K!~E)

Categorizing statements It is often useful to know the range of truth values that a statement can have. Statements that are always true are tautologies. Statements that are always false are contradictions. Statements that are can be either true or false are contingencies. Categorizing statements What does it mean to say that a statement might always be true? or always be false? Arithmetic example: while n might be any number, we can know, because of the details of the multiplication function, that 2n will always be even. 2 n will always be greater than or equal to zero. Categorizing statements By definition, simple statements are contingencies: they can be either true or false. his does not mean that all compound statements are contingencies, though. P v ~P P ~P P v ~P o determine whether a statement is a tautology, contradiction, or contingency, do a truth table for that statement, and look at its truth column: if it has only s, then it is a tautology if it has only s, then it is a contradiction if it has both s and s, then it is a contingency P v ~P P ~P P v ~P B! ~B R! ~(S v R) B ~B B! ~B R S S v R ~(S v R) R! ~(S v R)