© Jalal Kawash 2010Peeking into Computer Science George Boole 1815-1864 English Mathematician His The Mathematical Analysis of Logic, 1848 is the first.

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

1.3 Predicates and Quantifiers
Section 1.3. More Logical Equivalences Constructing New Logical Equivalences We can show that two expressions are logically equivalent by developing.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Propositions and Connectives Conditionals and Bi-conditionals Quantifiers.
Discrete Mathematics Math 6A Instructor: M. Welling.
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
Adapted from Discrete Math
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
Predicates and Quantifiers
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
Lecture 8 Introduction to Logic CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
The Foundations: Logic and Proofs
Discrete Maths Objective to introduce predicate logic (also called the predicate calculus) , Semester 2, Predicate Logic 1.
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.
© Jalal Kawash 2010 Logic Peeking into Computer Science.
1 Predicates and Quantifiers CS/APMA 202, Spring 2005 Rosen, section 1.3 Aaron Bloomfield.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Chapter 1, Part II With Question/Answer Animations Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the.
© Jalal Kawash Programming Peeking into Computer Science 1.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
1 Sections 1.3 and 1.4 Predicates & Quantifiers. 2 Propositional Functions In a mathematical assertion, such as x < 3, there are two parts: –the subject,
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.
Lecture Predicates and Quantifiers 1.4 Nested Quantifiers.
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
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.
Discrete Structures – CNS 2300
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Discrete Structures Predicate Logic 1 Dr. Muhammad Humayoun Assistant Professor COMSATS Institute of Computer Science, Lahore.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Predicate Logic One step stronger than propositional logic Copyright © Curt Hill.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Mathematics for Comter I Lecture 3: Logic (2) Propositional Equivalences Predicates and Quantifiers.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
CSNB 143 Discrete Mathematical Structures
Chapter 3 The Logic of Quantified Statements
6/20/2018 Arab Open University Faculty of Computer Studies M131 - Discrete Mathematics 6/20/2018.
Predicates & Quantifiers
2.1 Propositions and Logical Operations
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
Mathematics for Computer Science MIT 6.042J/18.062J
(1.4) An Introduction to Logic
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Discrete Mathematics Lecture 3: Predicate and Quantifier
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
George Boole English Mathematician
Predicates and Quantifiers
CS201: Data Structures and Discrete Mathematics I
Predicates and Quantifiers
Presentation transcript:

© Jalal Kawash 2010Peeking into Computer Science George Boole English Mathematician His The Mathematical Analysis of Logic, 1848 is the first contribution to symbolic logic In this book he introduced what is today called Boolean Logic (or Algebra) ◦JT: Boolean (True, False outcome) 1

© Jalal Kawash 2010 Logic Peeking into Computer Science

© Jalal Kawash 2010Peeking into Computer Science Reading Assignment Mandatory: Chapter 2 – Section 2.2 3

Predicate Logic 4

© Jalal Kawash 2010Peeking into Computer Science Objectives By the end of this section, you will be able to: 1. Define a predicate 2. Understand universal and existential quantifiers 3. Use quantification to convert a predicate to a proposition 4. Work with quantifier equivalence rules 5

© Jalal Kawash 2010Peeking into Computer Science JT’s Extra: Review Proposition: a declarative sentence that is either true or false, but not both. 1 ◦Example propositions  3 > 4  4 > 3 6 1) “Peeking into Computer Science” (2 nd Ed) Kawash J. JT: True/False clear cut

© Jalal Kawash 2010Peeking into Computer Science JT’s Extra: New Material Predicate: a proposition where the value of a variable is unknown. ◦Example predicate  P(X): X > 0 7 JT: True/False “it depends”

© Jalal Kawash 2010Peeking into Computer Science Predicate Logic X > 3 ◦Is not a proposition X is taller than Y ◦Is not a proposition These are predicates P(X): X > 3 Q(X,Y): X is taller than Y 8

© Jalal Kawash 2010Peeking into Computer Science Quantification Predicates can be made propositions by 1.Substituting values for the variables  P(X): X > 3, P(4) is true, P(-1) is false  Q(X,Y): X is taller than Y, Q(Debra, Doug) OR 2.Binding the variable with a quantifier in the universe of discourse 1  Universal Quantifier x P(x) ◦ P(x) is true for all x in the universe of discourse  Existential Quantifier x P(x) ◦ P(x) is true for at least one x in the universe of discourse 9 1 JT: Universe of discourse = “…the entities referred to in a discourse or an argument.” –

© Jalal Kawash 2010Peeking into Computer Science JT’s Extra: Additional Example Predicate: ◦P(x,y): x works as a y. Proposition: ◦P(Jet Li, actor): Jet Li works as an actor.

© Jalal Kawash 2010Peeking into Computer Science JT’s Extra: Additional Example Predicate: ◦P(x): x is odd. Proposition: ◦P(3): 3 is odd

© Jalal Kawash 2010Peeking into Computer Science Quantification Examples Universe of discourse: this 203 class P(x): x is female x P(x) ◦All students in this class are female x P(x) ◦There is at least one student in this class who is female 12

© Jalal Kawash 2010Peeking into Computer Science JT’s Extra: “There Exists” (at least one) Existential Quantifier and Connective OR ◦If all the elements in the universe of discourse can be listed, then the existential quantification xP(x) is equivalent to the disjunction: P(x1) P(x2) P(x3)... P(xn)

© Jalal Kawash 2010Peeking into Computer Science JT’s Extra: “For All” (Applies in every case) Universal Quantifier and Connective AND ◦If all the elements in the universe of discourse can be listed then the universal quantification x P(x) is equivalent to the conjunction: P(x1)) P(x2) P(x3)... P(xn).

© Jalal Kawash 2010Peeking into Computer Science JT’s Extra Universe of discourse: cars W(x): has wheels ◦All cars have wheels ◦Some cars have wheels 15

© Jalal Kawash 2010Peeking into Computer Science Quantification Examples Universe of discourse: all earth creatures M(x): x is a monkey F(x): x lives in a forest Express: some monkeys live in forests x (M(x)  F(x)) : ◦At least some monkey lives in a forest 16

© Jalal Kawash 2010Peeking into Computer Science Quantification Examples Universe of discourse: all earth creatures M(x): x is a monkey F(x): x lives in a forest Express: all monkeys live in forests x (M(x)  F(x)) : ◦All earth creatures are monkeys and live in forests x (M(x) → F(x)) : ◦From all creatures if x is a monkey, then x lives in a forest X 17

© Jalal Kawash 2010Peeking into Computer Science JT’s Extra: Additional Examples Universe of discourse: people T(X): x is tall Contrast: ◦x (T(x)   T(x)) ◦x (T(x)   T(x)) ◦x (T(x)   T(x)) ◦x (T(x)   T(x)) 18

© Jalal Kawash 2010Peeking into Computer Science Quantifier Equivalence x P(x) is equivalent to  [x  P(x)] ◦All monkeys are black ◦There is no one monkey which is not black x P(x) is equivalent to  [x  P(x)] ◦There is at least one student who likes the course ◦It is not the case that all students do not like the course 19