Introduction to Decision Sciences Lecture 2

Similar documents
CSC Discrete Math I, Spring Propositional Logic

Introduction to Sets and Logic (MATH 1190)

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

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

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

Compound Propositions

Recall that the expression x > 3 is not a proposition. Why?

Mat 243 Exam 1 Review

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

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

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

2.2: Logical Equivalence: The Laws of Logic

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

1.1 Language and Logic

1.1 Language and Logic

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

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

Propositional Logic. Spring Propositional Logic Spring / 32

Chapter 1, Section 1.1 Propositional Logic

EECS 1028 M: Discrete Mathematics for Engineers

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

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.

Solutions to Homework I (1.1)

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

Discrete Mathematics and Its Applications

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

Proofs. Joe Patten August 10, 2018

Propositional Equivalence

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

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes!

2-4: The Use of Quantifiers

On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA

ICS141: Discrete Mathematics for Computer Science I

Logic and Proofs. (A brief summary)

Boolean Logic. CS 231 Dianna Xu

Logic and Propositional Calculus

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

Learning Goals of CS245 Logic and Computation

Discrete Mathematics. Instructor: Sourav Chakraborty. Lecture 4: Propositional Logic and Predicate Lo

Propositional Logic Not Enough

AMTH140 Lecture 8. Symbolic Logic

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

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

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

Stanford University CS103: Math for Computer Science Handout LN9 Luca Trevisan April 25, 2014

Equivalence and Implication

Math.3336: Discrete Mathematics. Propositional Equivalences

Logic, Sets, and Proofs

Logic and Proof. Aiichiro Nakano

Tautologies, Contradictions, and Contingencies

Logic and Propositional Calculus

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.

The Logic of Compound Statements cont.

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

MATH 2001 MIDTERM EXAM 1 SOLUTION

Mathematical Reasoning (Part I) 1

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

1 Propositional Logic

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

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

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

CISC-102 Winter 2016 Lecture 17

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

CSE 20: Discrete Mathematics

Chapter 1 Elementary Logic

Logic and Proofs. (A brief summary)

A. Propositional Logic

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

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

1 The Foundation: Logic and Proofs

Supplementary Logic Notes CSE 321 Winter 2009

CSC165 Mathematical Expression and Reasoning for Computer Science

Propositional logic ( ): Review from Mat 1348

Propositional Logic. Fall () Propositional Logic Fall / 30

Predicate Calculus lecture 1

2 Truth Tables, Equivalences and the Contrapositive

Propositional Logic Logical Implication (4A) Young W. Lim 4/21/17

Definition 2. Conjunction of p and q

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

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

Math 3336: Discrete Mathematics Practice Problems for Exam I

HANDOUT AND SET THEORY. Ariyadi Wijaya

Solutions to Exercises (Sections )

Chapter 4, Logic using Propositional Calculus Handout

We last time we began introducing equivalency laws.

1 The Foundation: Logic and Proofs

1.3 Propositional Equivalences

Math.3336: Discrete Mathematics. Applications of Propositional Logic

CS 173: Discrete Mathematical Structures, Spring 2008 Homework 1 Solutions

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

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements.

MAT2345 Discrete Math

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology

Propositional Logic: Equivalence

Prof. Girardi Exam 1 Math 300 MARK BOX

Transcription:

Introduction to Decision Sciences Lecture 2 Andrew Nobel August 24, 2017

Compound Proposition A compound proposition is a combination of propositions using the basic operations. For example (p q) ( p) ( q) (p q) q

Conditional (If-Then) Statement Implication: p implies q Denoted p q In words: if p then q (also q if p, p sufficient for q,...) Truth value: p q is F only if p is T and q is F Truth Table Note: If p is F then p q is T Fact: p q is logically equivalent to (has same truth values as) p q

Other Conditional Statements Given: Propositions p and q, implication p q Converse of p q is q p Contrapositive of p q is q p Biconditional p q defined by (p q) (q p) Truth tables Fact Contrapositive q p equivalent to p q Biconditional p q is T only when p, q have same truth values

Precedence of Operators Notational device to save parentheses and simplify written expressions. Add parentheses around elements of compound proposition in the following order of priority (first to last): Example: p q p is the same as ( p) (q p). Example: p q is the same as ( p) q. When in doubt: use parentheses

Translation Translation is the action of representing English sentences as logical expressions, and vice-versa Common activity when reading or proving theorems Enables one to check the validity of complex expressions where common sense may fail

Tautologies and Contradictions Definition: A compound proposition is a Tautology if it is always true, whatever the truth values of its constituent propositions. Contradiction if it is always false, whatever the truth values of its constituent propositions. Note: A single true proposition, e.g. 4 2, is not considered to be a tautology. Likewise, a false proposition is not a contradiction. Examples p = q q p = q q

Logical Equivalence Definition: Two compound propositions r and s are logically equivalent, written r s, if they have the same truth values, whatever the truth values of their constituent propositions. Equivalently, r s if r s is a tautology Examples (p q) p q p q p q Equivalences can be verified by looking at truth tables, but for complex examples, it is helpful to have a set of simple rules that can be applied sequentially to an expression of interest. Some notation: T = tautology, F = contradiction

Logical Equivalence A. Unconditional Rules Identity: p T p, p F p Domination: p F F, p T T Idempotence: p p p, p p p Double negation: ( p) p Commutative: p q q p, p q q p, Associative: p (q r) (p q) r and p (q r) (p q) r De Morgan: (p q) p q and (p q) p q Absorbtion: p (p q) p and p (p q) p

Logical Equivalences, continued Distributive p (q r) (p q) (p r) p (q r) (p q) (p r) B. Conditional Rules p q p q p q q p p q p q C. Biconditional Rules p q (p q) (q p) p q p q

Predicates Definition: A domain is a collection/set U of objects x of interest Definition: A predicate P for U is a property of the objects x U such that every x U has P, or does not have P, but not both. Note: Predicate equivalent to the subset of x U having property P Propositional function: If P is a predicate and x is in U let P (x) = proposition object x has property P Thus P (x) is T if x has property P and F otherwise.

Examples of Predicates Example: UNC Students Set U = all undergraduates currently enrolled at UNC Predicate P is the property of being a Senior Predicate Q is property of being enrolled in STOR 215 P (Bob) = Bob is a Senior at UNC Q(Kelly) = Kelly is enrolled in STOR 215

Examples of Predicates Example: Even integers Set U = positive integers {1, 2, 3,...} Predicate P is the property of being even P (x) = x is even Example: Perfect squares Set U = positive integers {1, 2, 3,...} Predicate Q is the property of being a perfect square P (x) = x is a perfect square

Quantifiers Two flavors Universal: means for all Existential: means there exists Definition: Let P be a predicate on a domain U xp (x) is a proposition that is T if and only if P (x) is T for each x in U xp (x) is a proposition that is T if and only if P (x) is T for some x in U In other words xp (x) is true if every element of U has property P xp (x) is true if some element of U has property P

Quantifiers, cont. Note: If domain U = {x 1,..., x n} is finite, then xp (x) P (x 1) P (x 2) P (x n) xp (x) P (x 1) P (x 2) P (x n) Note: Truth of xp (x) and xp (x) depends on domain U Example Domains: U = positive integers, V = {2, 4, 6, 8} Predicates: P = even, Q = perfect square