2.1 Propositions and Logical Operations

Slides:



Advertisements
Similar presentations
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.
Advertisements

Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
Discrete Mathematics Math 6A Instructor: M. Welling.
Discrete Structures Chapter 3: The Logic of Quantified Statements
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Survey of Mathematical Ideas Math 100 Chapter 3, Logic
Adapted from Discrete Math
Predicates and Quantifiers
Lecture 8 Introduction to Logic CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Propositions and Truth Tables
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
Conjunction A conjunction is a compound statement formed by combining two simple sentences using the word “AND”. A conjunction is only true when both.
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
TABLES AND VALUES Section 1.5. Open Sentence Equation.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Thinking Mathematically
4.1 Proofs and Counterexamples. Even Odd Numbers Find a property that describes each of the following sets E={…, -4, -2, 0, 2, 4, 6, …} O={…, -3, -1,
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Logical Operations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Logical Operations Reading: Kolman, Section 2.1.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
 To combine propositions using connectives  To construct the truth table of a given compound proposition  To define de Morgan Law for logic  To define.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
 Statement - sentence that can be proven true or false  Truth value – true or false  Statements are often represented using letters such as p and q.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
Chapter 1 Propositional Logic
Presented by: Tutorial Services The Math Center
AND.
CSE15 Discrete Mathematics 01/23/17
DISCRETE MATHEMATICS CHAPTER I.
CSNB 143 Discrete Mathematical Structures
CHAPTER 3 Logic.
Truth Tables for Negation, Conjunction, and Disjunction
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
How do I show that two compound propositions are logically equivalent?
CMSC Discrete Structures
Logic – Bell Ringer.
1.2 Propositional Equivalences
CHAPTER 1: LOGICS AND PROOF
Computer Science 210 Computer Organization
(1.4) An Introduction to Logic
Discrete Mathematics and Its Applications Kenneth H
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics Lecture 3: Predicate and Quantifier
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
1.2 Propositional Equivalences
Inductive Reasoning and Conjecture, and Logic
Discrete Mathematics Lecture 2: Propositional Logic
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Cs Discrete Mathematics
George Boole English Mathematician
Predicates and Quantifiers
Truth tables Mrs. Palmer.
1.2 Propositional Equivalences
1.3 Propositional Equivalences
2-2 Logic Part 2 Truth Tables.
2-2 Logic Vocab Statement: A sentence that is either true or false
CHAPTER 3 Logic.
Propositional Satisfiability
Presentation transcript:

2.1 Propositions and Logical Operations

A statement or proposition is a declarative sentence that is either true or false, but not both. Statement examples: The earth is round 2 + 3 = 5 Examples that are not statements: Do you speak Spanish? (this is a question) Take two aspirins. (this is a command)

Propositional variables used in logic are p q and r. These variables can be replaced with statements where p: The sun is shining today. q: It is cold. Statements can be combined by logical connectives to form compound statements. and is represented by ∧ or is repersented by ∨ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - not is not a connective. not is represented by

and: both statements must be true for the result to be or: only one statement must be true in order for the result to be true We use truth tables for our statements:

Truth Table for (p ∧ q) ∨ ( p) 2 variables p and q 22 =4 4 possible outcomes Col 1 Col 2 Col 3 Col 4 Col 5 p q p ∧ q ~ P (p ∧ q) ∨ (~p) T F

1. List all possibilities of p and q in column 1 and 2. 2. Fill in column 3 using the and connective. Both p and q must be true in order for the result to be true. 3. Fill in column 4 . Take the opposite of what is in column 1 and place the result in column 4. 4. Fill in column 5 by comparing column 3 and 4 using the or connective. Only one statement must be true in order for the result to be true.

Negation Statement 2 is an even integer and 8 is an odd integer To negate the statement 2 is not an even integer or 8 is not an odd integer

Universal quantification of P(x) Denoted ∀ x P(x) Meaning: For all values of x, P(x) is either true or false Example: P(x): -(-x)= x P(x) can be called a proposition that results in either true or false The opposite of a negative number is a positive number always. ∀ x P(x) is true (the universal quantification of P(x) is true)

Q(x) = x + 1 < 4 ∀ x Q(x) The universal quantification of Q(x) is false because we can replace x with a number that makes this statement false.

Existential quantification of P(x) is denoted ∃ xP(x) There exists a value(s) of x for which P(x) is true. Example: Q(x) : x + 1 ≺ 4 is true because x could be 1 or 2. ∃y where y + 2 = y is false because there is no value that makes this statement true

In programming we have IF statements or IF THEN ELSE statements. IF N ≺ 10 THEN replace N with N + 1 Return N The N ≺ 10 is called the guard The IF statement is a statement that can be either true or false.