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

Similar documents
CSC Discrete Math I, Spring Propositional Logic

Compound Propositions

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

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

Section 3.1 Statements, Negations, and Quantified Statements

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

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

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

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

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

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

DISCRETE MATHEMATICS BA202

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

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

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

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

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

Propositions. Frequently, we will use the word statement instead of proposition.

THE LOGIC OF COMPOUND STATEMENTS

Section 1.1: Logical Form and Logical Equivalence

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

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

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

PROPOSITIONAL CALCULUS

Basic Logic and Proof Techniques

Chapter 4, Logic using Propositional Calculus Handout

AMTH140 Lecture 8. Symbolic Logic

Introducing Proof 1. hsn.uk.net. Contents

EECS 1028 M: Discrete Mathematics for Engineers

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.

1.3 Propositional Equivalences

LOGIC. Name: Teacher: Pd: Page 1

Logic and Propositional Calculus

The statement calculus and logic

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

Chapter 1: Formal Logic

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

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

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

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

1.1 Language and Logic

3.2: Compound Statements and Connective Notes

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

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

Introduction to Sets and Logic (MATH 1190)

1.1 Language and Logic

STRATEGIES OF PROBLEM SOLVING

Mathematical Logic Part One

Logic of Sentences (Propositional Logic) is interested only in true or false statements; does not go inside.

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

Discrete Mathematics

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

Propositional logic ( ): Review from Mat 1348

Propositional Logic. Argument Forms. Ioan Despi. University of New England. July 19, 2013

A Little Deductive Logic

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

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

Truth Tables for Propositions

1 Propositional Logic

PHIL12A Section answers, 16 February 2011

Mathematical Reasoning (Part I) 1

Definition 2. Conjunction of p and q

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

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.

Implications, Quantifiers, and Venn Diagrams. Implications Logical Quantifiers Venn Diagrams. Different Ways of Stating Implications

Propositional Equivalence

CSE 20: Discrete Mathematics

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

A Little Deductive Logic

We last time we began introducing equivalency laws.

Unit 6 Logic Math 116

Announcements CompSci 102 Discrete Math for Computer Science

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

Chapter 5: Section 5-1 Mathematical Logic

Discrete Mathematics and Applications COT3100

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

Math Assignment 2 Solutions - Spring Jaimos F Skriletz Provide definitions for the following:

Introduction to Decision Sciences Lecture 2

Boolean Logic. CS 231 Dianna Xu

Chapter 1 Elementary Logic

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

Predicate Logic & Quantification

1.1 Statements and Compound Statements

Propositional Logic 1

Discrete Mathematics and Its Applications

Computer Science 280 Spring 2002 Homework 2 Solutions by Omar Nayeem

2.2: Logical Equivalence: The Laws of Logic

To reason to a correct conclusion, we must build our arguments on true statements. Sometimes it is helpful to use truth tables. Simple Truth Table p

THE LOGIC OF COMPOUND STATEMENTS

Mat 243 Exam 1 Review

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Discrete Mathematics and Its Applications

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

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

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.

Logical Representations. LING 7800/CSCI 7000 Martha Palmer 9/30/2014

Homework assignment 1: Solutions

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

Transcription:

Chapter 3: Logic Diana Pell Section 3.1: Statements and Quantifiers A statement is a declarative sentence that is either true or false, but not both. Exercise 1. Decide which of the following are statements and which are not. a) Most scientists agree that global warming is a threat to the environment. b) Is that your laptop? c) Watching reality shows turns your brain to mush. A compound statement is a statement formed by joining two or more simple statements with a connective. There are four basic connectives used in logic: and (the conjunction), or (disjunction), if... then (conditional), and if and only if (biconditional). Exercise 2. Classify each statement as simple or compound. If it is compound, state the name of the connective used. a) Our school mascot is a moose. b) If you register for WiFi service, you will get 3 days of free access. c) Tomorrow is the last day to register for classes. d) In the interest of saving the planet, I plan to buy either a hybrid or a motorcycle. Quantified statements involve terms such as all, each, every, no, none, some, there exists, and at least one. The first five (all, each, every, no, none) are called universal quantifiers because they either include or exclude every element of the universal set. The latter three (some, there exists, at least one) are called existential quantifiers because they show the existence of something, but do not include the entire universal set. The negation of a statement is a corresponding statement with the opposite truth value. This means that if a statement is true its negation is false, and if a statement is false its negation is true. Exercise 3. Write the negation of each of the following quantified statements. 1

Statement Contains All do Some do Some do not None do Negation Some do not, or not all do None do, or all do not. All do Some do a) Every student taking Math for Liberal Arts this semester will pass. Negation: Some student taking Math for Liberal Arts this semester will not pass b) Some people who are Miami Hurricane fans are also Miami Dolphin fans. Negation: No people who are Miami Hurricane fans are also Miami Dolphin fans. c) There is at least one professor in this school who does not have brown eyes. Negation: All professors in this school have brown eyes. d) No nursing student is also majoring in criminal justice. Negation: At least one nursing student is also majoring in criminal justice. Symbolic Notation Connective Symbol Name and Conjunction or Disjunction if... then Conditional if and only if Biconditional Exercise 4. Let p represent the statement It is cloudy and q represent the statement I will go to the beach. Write each statement in symbols. a) I will not go to the beach. b) It is cloudy, and I will go to the beach. c) If it is cloudy, then I will not go to the beach. d) I will go to the beach if and only if it is not cloudy. Exercise 5. Write each statement in words. Let p = My dog is a golden retriever and q = My dog is fuzzy. a) p My dog is not a golden retriever. 2

b) p q My dog is a golden retriever or my dog is fuzzy. c) p q If my dog is not a golden retriever, then my dog is fuzzy. d) q p My dog is fuzzy if and only if my dog is a golden retriever. e) q p My dog is fuzzy, and my dog is a golden retriever. Section 3.2: Truth Tables A truth table is a diagram in table form that is used to show when a compound statement is true or false based on the truth values of the simple statements that make up that compound statement. This will allow us to analyze arguments objectively. Negation According to our definition of statement, a statement is either true or false, but never both. The truth table for the negation of p looks like this. Consider the simple statement p = Today is Tuesday. p T F q F T Conjunction If we have a compound statement with two component statements p and q, there are four possible combinations of truth values for these two statements. Suppose a friend who s prone to exaggeration tells you, I bought a new laptop and a new ipad. p q p q T T T T F F F T F F F F 3

Disjunction Next, we ll look at truth tables for or statements. Suppose your friend made the statement, I bought a new laptop or a new ipad. p q p q T T T T F T F T T F F F What if the person actually bought both items? You might lean toward the statement I bought a new laptop or a new ipad being false. Believe it or not, it depends on what we mean by the word or. There are two interpretations of that word, known as the inclusive or and the exclusive or. The inclusive or has the possibility of both statements being true; but the exclusive or does not allow for this, that is, exactly one of the two simple statements must be true. In the study of logic, we ll use the inclusive or, so a disjunctive statement like I bought a new laptop or an ipad is considered true if both things occur. Conditional Statement A conditional statement, which is sometimes called an implication, consists of two simple statements using the connective if... then. To illustrate the truth table for the conditional statement, we ll think about the following example: If the Cubs win tomorrow, they make the playoffs. We ll use p = the Cubs win tomorrow and q = they make the playoffs. p q p q T T T T F F F T T F F T 4

Biconditional Statement A biconditional statement is really two statements; it s the conjunction of two conditional statements. For example, consider the statement I will stay in and study Friday if and only if I don t have any money p q p q T T T T F F F T F F F T Note: The biconditional statement p q is true when p and q have the same truth value and false when they have opposite truth values. Exercise 6. Construct a truth table for each. a) p q b) p q c) (p q) 5

d) p (p q) e) p (q r) f) (p q) r 6

A hierarchy of connectives has been agreed upon somewhere along the line. This hierarchy tells us which connectives should be done first when there are no parentheses to guide us: 1. Negation ( ) 2. Conjunction ( ) or disjunction ( ) 3. Conditional ( ) 4. Biconditional ( ) Exercise 7. Use the truth value of each simple statement to determine the truth value of the compound statement. p: Kate Middleton married Prince William in 2011. q: Prince William s mother was the Queen of England. r: barring death or divorce, Kate Middleton will become queen one day. Statement: p q r Section 3.3: Types of Statements A tautology is a compound statement that s always true, regardless of the truth values of the simple statements that make it up. A self-contradiction is a compound statement that is always false. Note: Don t make the mistake of thinking that every statement is either a tautology or a self-contradiction. We ve seen many examples of statements that are sometimes true and other times false. For more complicated statements, we ll need to construct a truth table to decide if a statement is a tautology, a self-contradiction, or neither. Exercise 8. Decide if each statement is a tautology, a self-contradiction, or neither. a) (p q) p 7

b) (p q) ( p q) c) (p q) q d) (p q) ( p q) Two compound statements are logically equivalent if and only if they have the same truth values for all possible combinations of truth values for the simple statements that compose them. The symbol for logically equivalent statements is. Exercise 9. Decide if the two statements p q and q p are logically equivalent. Then write examples of simple statements p and q and write each compound statement verbally. 8

De Morgan s Laws for Logic For any statements p and q, (p q) p q and (p q) p q Exercise 10. Write the negations of the following statements, using De Morgan s laws. a) Studying is necessary and I am a hard worker. b) Shoplifting is a felony or a misdemeanor. c) The patient needs an RN or an LPN, and she s very sick. Exercise 11. Write the negation of the statement If you agree to go out with me, I ll buy you a late-model vehicle. Statement Negation Equivalent Negation p q (p q) p q p q (p q) p q p q (p q) p q 9

Exercise 12. Write the converse, the inverse, and the contrapositive for the statement If you earned a bachelor s degree, then you got a high-paying job. Exercise 13. Write each statement in symbols. Let p = A building uses solar heat and q = The owner will pay less for electricity. a) If a building uses solar heat, the owner will pay less for electricity. b) Using less electricity is necessary for a building using solar heat. c) A building uses solar heat only if the owner pays less for electricity. d) Using solar heat is sufficient for paying less on your electric bill. e) The owner pays less for electricity if a building uses solar heat. 10