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

Similar documents
THE LOGIC OF COMPOUND STATEMENTS

Compound Propositions

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

CSC Discrete Math I, Spring Propositional Logic

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

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

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

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

PHI Propositional Logic Lecture 2. Truth Tables

Discrete Mathematics and Applications COT3100

CSE 240 Logic and Discrete Mathematics

Definition 2. Conjunction of p and q

Introduction to Sets and Logic (MATH 1190)

Chapter 4: Classical Propositional Semantics

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

Boolean Logic. CS 231 Dianna Xu

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

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

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

Logic and Proof. Aiichiro Nakano

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

Logic and Truth Tables

We last time we began introducing equivalency laws.

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

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

Propositional logic ( ): Review from Mat 1348

CITS2211 Discrete Structures. Propositional Logic

Section 1.1: Logical Form and Logical Equivalence

Logic and Truth Tables

1.3 Propositional Equivalences

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

EECS 1028 M: Discrete Mathematics for Engineers

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

2.2: Logical Equivalence: The Laws of Logic

1.1 Language and Logic

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

CSE 20: Discrete Mathematics

AMTH140 Lecture 8. Symbolic Logic

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

Solutions to Homework I (1.1)

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

Chapter 1, Section 1.1 Propositional Logic

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

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

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

Truth-Functional Logic

Propositional Equivalence

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

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

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

Propositional Logic. Spring Propositional Logic Spring / 32

1.1 Language and Logic

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

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

Discrete Mathematics and Its Applications

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

Chapter 4, Logic using Propositional Calculus Handout

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.

Learning Goals of CS245 Logic and Computation

Logical Structures in Natural Language: Propositional Logic II (Truth Tables and Reasoning

Introduction to Decision Sciences Lecture 2

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

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.

Propositional Logic: Equivalence

PROPOSITIONAL CALCULUS

Proof strategies, or, a manual of logical style

13.3 Truth Tables for the Conditional and the Biconditional

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

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

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

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

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

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

UNIT-I: Propositional Logic

Mathematical Logic Part One

Mathematical Reasoning (Part I) 1

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

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.

Discrete Mathematics and Its Applications

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

MAT2345 Discrete Math

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

LING 106. Knowledge of Meaning Lecture 3-1 Yimei Xiang Feb 6, Propositional logic

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Today s Topic: Propositional Logic

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

Math.3336: Discrete Mathematics. Propositional Equivalences

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

Math 13, Spring 2013, Lecture B: Midterm

Discrete Structures for Computer Science

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

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

CISC-102 Winter 2016 Lecture 17

An Introduction to Logic 1.1 ~ 1.4 6/21/04 ~ 6/23/04

ICS141: Discrete Mathematics for Computer Science I

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

Transcription:

Logic Logic is study of abstract reasoning, specifically, concerned with whether reasoning is correct. Logic focuses on relationship among statements as opposed to the content of any particular statement. 1 Example Seuence of statements: 1 All students take Math 112. 2 Anyone who takes Math 112 is a Math major. 3 herefore, all students are Math majors. If 1 and 2 were true, then logic would assure that 3 is true. 2 Outline of logic topics Simple Statements Compound Statements Conditional Statements Quantified Statements Valid and Invalid Arguments for all kind of statements Logical Statements Definition: A statement is a sentence that is true or false but not both. Examples: 3+5=8 true statement t t oday is riday false statement Note: x>y is not a statement 4 Logical Connectives Operator Symbol Usage Negation not Conjunction and Disjunction or Exclusive or xor Conditional if, then Biconditional iff Logical Connectives or given statements p and : Negation of p: ~p not p Conjunction of p and : p p and p Disjunction of p and : p or Lecture 1 5 6

ruth table for negation ruth table for conjunction p ~p rue only if both statements are true p p 7 8 ruth table for disjunction alse only if both statements are false p p 9 Statement form Expression made up of statement variables such as p,and logical connectives becomes a statement when actual statements are substituted for the variables. Example: Exclusive Or p ~ p p 10 ruth able for a Statement orm Ex: ruth table for ~ p p p ~p p ~ p p Conditional Implication English usage of if, then or implies DE: p is true if is true, or if p and are both false. Semantics: p implies is true if one can mathematically derive from p. 11 Lecture 1 12

Conditional -- truth table p p Conditional Q: Does this makes sense? Let s try examples for each row of truth table: 1. If pigs like mud then pigs like mud. 2. If pigs like mud then pigs can fly. 3. If pigs can fly then pigs like mud. 4. If pigs can fly then pigs can fly. Lecture 1 13 Lecture 1 14 Bi-Conditional -- truth table or p to be true, p and must have the same truth value. Else, p is false: p p Bi-Conditional A : has exactly the opposite truth table as. his means that we could have defined the bi-conditional in terms of other previously defined d symbols, so it is redundant. d In fact, only really need negation and disjunction to define everything else. Extra operators are for convenience. Q : Which operator is the opposite of? 15 Lecture 1 16 Logical euivalence Statements P and Q are logically euivalent: P Q if and only if they have identical truth values for each substitution of their component statement variables. Ex: xyyx Verifying logical euivalence Ex: ~ p ~ p~ p ~p ~ p ~ p ~ p ~ 17 18

Important Logical Euivalences Double negation: ~ ~ p p De Morgan s laws: ~ p ~ p ~ ~ p ~ p ~ Ex: negation of -5 < x < 7 is x 5 or x 7 autologies and Contradictions autology is a statement form which is true for all values of statement variables. Eg E.g., x ~x is a tautology: x ~ x t Contradiction is a statement form which is false for all values of statement variables. E.g., x ~x is a contradiction: x ~ x c 19 20 More Logical Euivalences Commutative laws: p p p p Associative laws: Distributive laws: Absorption laws: p r p r p r p r p r p p r p r p p r p p p p p p Simplifying Statement orms ~ p ~ p ~ p p by De Morgan' s law ~ p p by distributive law t by negation law by identity law 21 22 SEAWORK Write on a piece of yellow paper 23 24

1 Let p and be the propositions he election is decided and he votes have been counted, respectively. Express each of these compound propositions as an English sentence. a p b p c p d p e p f p g p h p 2 Let p,, and r be the propositions p :You get an A on the final exam. :You do every exercise in this book. r :You get an A in this class. Write these propositions using p,, and r and logical connectives including negations. a You get an A in this class, but you do not do every exercise in this book. 25 26 b You get an A on the final, you do every exercise in this book, and you get an A in this class. c o get an A in this class, it is necessary for you to get an A on the final. d You get an A on the final, but you don t do every exercise in this book; nevertheless, you get an A in this class. e Getting an A on the final and doing every exercise in this book is sufficient for getting an A in this class. 27 3 Construct a truth table for each of these compound propositions. a p p b p c p p d p p 28