1.3 Predicates and Quantifiers
|
|
- Hugh Ward
- 6 years ago
- Views:
Transcription
1 1.3 Predicates and Quantifiers INTRODUCTION Statements x>3, x=y+3 and x + y=z are not propositions, if the variables are not specified. In this section we discuss the ways of producing propositions from such statements. In the statement x is greater than 3 : x variable, is greater than 3 - predicate and it is donated by P. So the statement x is greater than 3 can be denoted by P(x) and it is said to be the value of the propositional function P at x. Once x gets a value, the statement P(x) becomes a proposition and has a truth value. Example 1. Let P(x) be the statement x>3. What are the truth values of P(4) and P(2)? Solution: P(4) is true and P(2) is false, since 4>3 is true and 2>3 is false. Example 2. Let Q(x,y) denote the statement x=y+3. What are the truth values of Q(1,2) and Q(3,0)? Solution: Q(1,2) is false and Q(3,0) is true, since 1=2+3 is false and 3=0+3 is true. Example 3. Let R(x,y,z) be the statement x + y=z. What are the truth values of R(1,2,3) and R(0,0,1)? Solution: R(1,2,3) is true and R(0,0,1) is false, since 1+2=3 is true and 0+0=3 is false. In general a statement involving the n variables x,, xn can be denoted by P(x,, xn). Propositional functions occur in computer programs, as the following shows. Example 4. Consider the statement If x>0, then x:=x+1. Solution: If the stored value of x is positive, then assignment x:=x+1 is executed, that is value of x increased by one. Otherwise assignment x:=x+1 is executed, x remains with the original stored value. 1
2 QUANTIFIERS For a propositional function P(x), if the variable is assigned a value, then P(x) becomes a proposition. However there is another way, called quantification, creating a proposition from P(x). We see two types of quantification: universal and existential. The area of logic that deals with predicates and quantifiers is called predicate calculus. THE UNIVERSAL QUANTIFIER Many mathematical statements assert that a property is true for all values of a variable in a particular domain, called the universe of discourse or the(definition) domain. The universal quantification of a propositional function is the proposition that asserts that P(x) is true for all values of x in universe of discourse. The universe of discourse specifies the possible values of the variable x. Definition 1 The universal quantification of P(x) is the proposition P(x) for all values of x in the domain. The notation x P(x) denotes the universal quantification of P(x). Here is called the universal quantifier. The proposition x P(x) is read as for all x P(x), for every x P(x). Example 5.a) Let P(x) be the statement x>x+1. What is the truth value of the quantification x P(x), where the domain is R(all real numbers)? b) What is if P(x) is the statement x+1>x. Solution: a) x P(x) is false, since x>x+1 is false for all x in R. b) x P(x) is true, since x+1>x is true for all x in R. Example 6. Let Q(x) be the statement x<2. What is the truth value of the quantification x Q(x), where the domain is R? Solution: the quantification x Q(x) is false, since x<2 is false for x=3. Example 7. What is the truth value of x P(x), where P(x) is the statement x 2 <10 the domain is {1,2,3,4}? 2
3 Solution: x P(x) is false, since 4 2 <10 is false and so P(1) P(2) P(3) P(4) is false. Example 8. What does the statement xt(x) mean if T(x) is x has two parents and the domain consists of all people? Example 9. What is the truth value of x (x x 2 ) if the domain is R and what is its truth value if the domain is Z (all integers)? Solution: x (x x 2 ) is false, since x x 2 is false, if 0<x<1. If the domain is Z, then x (x x 2 ) is true, since x x 2 is true for all x in Z. Counter Example: one value for x from the universe of discourse which makes P(x) false, is enough to show that statement x P(x) is false. Example 10. Suppose that P(x) is x 2 >0. Give a counterexample that indicates the statement x P(x) is false when the domain is Z. Solution: x P(x) is false for x=0, since 0 2 >0 is false. Definition 2 The existential quantification of P(x) is the proposition There exists an element x in the domain such that P(x). We use the notation x P(x) for the existential quantification of P(x). Here is called existential quantifier. The existential quantification x P(x) is read as There is an x such that P(x), There is at least one x such that P(x) or For some x P(x). Example 11. Let P(x) be x>3. What is the truth value of x P(x), where the domain is R. Solution: x P(x) is true, since x>3 is true for x=4. Example 12. Let Q(x) be the statement x=x+1. What is the truth value of x Q(x), where the domain is R. Solution: x Q(x) is false, since x=x+1 is false for any x in R. Remark: If the the domain is {x1, x2,, xn}, then x P(x) is the same as P(x1) P(x2) P(xn) and x P(x) is the same as P(x1) P(x2) P(xn). 3
4 Example 13. Let P(x) be x 2 >10. What is the truth value of x P(x), where the domain is {1,2,3,4}. Solution: x P(x) is true, since x 2 >10 is true for x=4. Other Quantifiers Universal and existential quantifiers are the most important quantifiers. However many other quantifiers can be defined such as the uniqueness quantifier, quantifiers with restricted domains. Actually using two essential quantifiers and propositional logic we can express the other quantifiers. Precedence of Quantifiers The quantifiers and have higher precedence than all logical operators of logical calculus. Binding Variables When a quantifier is used on the variable x, we say that this occurrence of the variables is bound. An occurrence of a variable that is not bound to particular value is said to be free. To turn a propositional function into a proposition, all variables in a proposition must be bound or a particular value must be assigned to them. This can be done using a combination of quantifiers (universal, existential) and value assignments. The part of a logical expression to which a quantifier is applied is called the scope of this quantifier. Thus a variable is free if it is outside the scope of all quantifiers. Example: In x(x+y=1), the variable x is bound by existential quantification, but y is free, because it is not bound by a quantifier and no value is assigned. Logical Equivalences Involving Quantifiers We have seen the notion of logical equivalences of compound propositions. We can extend this notion to expressions involving predicate and quantifiers. Definition 3 Statements involving predicates and quantifiers are logically equivalent if and only if they have the same truth value independent of predicates and the domain. 4
5 Example19. Show that x(p(x) Q(x)) and x P(x) x Q(x) are logically equivalent. Solution: If x(p(x) Q(x)) is true, then for every a in the domain P(a) Q(a) is true. Then of course P(a) is true and Q(a) is true. Since P(a) is true and Q(a) is true for every element in the domain, x P(x) and x Q(x) are both true. This means x P(x) x Q(x) is true. If x P(x) x Q(x) is true, then x P(x) is true and x Q(x) is true. So if a is in the domain, then P(a) is true and Q(a) is true. This means then P(a) Q(a) is true for all a in the domain. This is x(p(x) Q(x)) is true. So x(p(x) Q(x)) x P(x) x Q(x). Negating Quantified Expressions Some times we need to negate a quantified expression. Negation of universal quantifier: Every student in your class has taken a course in calculus. Let P(x) be x has taken a course in calculus and the domain be all students in the class. So the statement is x P(x). Negation: Not every student in your class has taken a course in calculus. This means There is at least one student in the class who has not taken a class in calculus. This is simply the existential quantification of the negation of the original propositional function: x P(x). Therefore x P(x) x P(x). Verification: x P(x) is true if and only if x P(x) is false. This can happen if and only if there is an x in the domain for which P(x) is false. This happens if and only if there is an x in the domain for which P(x) is true. Therefore there is an x in the domain for which P(x) is true if and only if x P(x) is true. Thus x P(x) and x P(x) are logically equivalent. Negation of existential quantifier: There is a student in the class who has taken a course in calculus. 5
6 The statement is the existential quantification x Q(x), where Q(x) is the statement x has taken a course in calculus. So negation is It is not the case that there is a student in the class who has taken a course in calculus. This is equivalent to Every student in this class has not taken a course in calculus. This is just the universal quantification of the negation of the original propositional function: x Q(x) x Q(x). Proof: Let Q(x)=T(x). Since x T(x) x T(x) we get x T(x) x T(x) and so x T(x) x T(x). Thus x Q(x) x Q(x). Example 20 What are the negations of the statements There is an honest politician And All Americans eat cheeseburgers? Solution: Let H(x) be x is honest. So the statement There is an honest politician is represented by x H(x), where the domain consists of all politicians. The negations is x H(x) x H(x) and expressed as Every politician is dishonest. Let C(x) be x eats cheeseburgers. Then All Americans eat cheeseburgers is represented by x C(x), where the domain consists of all Americans. The negation is x C(x) x C(x) and means There is an American who does not eat cheeseburgers. Example 21 What are the negations of the statements x (x 2 >x) and x(x 2 =2)? Solution: x (x 2 >x)= x (x 2 >x)= x(x 2 =<x), x(x 2 =2)= x (x 2 =2)= x (x 2 2). Example 22 Show that x (P(x) Q(x)) x(p(x) Q(x)). Solution: By De Morgan s Law for quantifiers, x (P(x) Q(x))= x (P(x) Q(x))= x ( P(x) Q(x))= x(p(x) Q(x)). Translating from English into logical expressions 6
7 Translating sentences in English into logical expressions is a crucial task in: Mathematics, Logic programming, Artificial intelligence, Software engineering, Many other disciplines. We used propositions and logical operators to translate English sentences to logical expressions. With quantifiers involving, translation is more complex and there might be many ways of translating a particular sentence. Example 23 Express Every student in this class has studied calculus using predicates and quantifiers. Solution: Every: ; student in this class: x; x has studied calculus: C(x). So the statement is x C(x). If we change the domain to consist of all people, then the statement is expressed as For every person x, if person x is student in this class, then x has studied calculus. Denoting person x is student in this class with S(x), the statement is then x (S(x) C(x)). Simplest way is the best way! Example 24 Express Some student in this class has studied calculus and Every student in this class has studied calculus or music using predicates and quantifiers. Solution: (I) Some student: there is/exists a student -- x; students in this class: domain; x has studied calculus C(x). So the statement is x C(x). (II) Students in this class: domain; every student: x; x studied calculus: C(x); x studied music: M(x). So x(c(x) or M(x))= x(c(x) M(x)). 7
8 If we are also interested in people who is not student, then (III) All person: domain; person x is student in this class: S(x); every person: x; x has studied calculus: C(x); x has studied music: M(x). So the statement is x(s(x) (C(x) M(x)), in words For every x, if x is in this class, x has studied calculus or x has studied music. Using Quantifiers in System Specifications To represent system specifications not only propositions are used, but also predicates and quantifications can be used. Example 25. Use predicates and quantifiers to express the system specifications Every mail message larger than one megabyte will be compressed and If a user is active, at least one network link will be available. Solution: Let S(m, y) be Mail message m is larger than y megabyte, where the variable m has the domain of all mail messages and the variable y is a positive real number, and let C(m) denote Mail message m will be compressed. So the first message can be expressed as x(s(m,1) C(m)). Let A(u) represent User u is active, where the variable u has the domain of all users, let N(n, s) be Network link n is in state s, where the variable n has the domain of all network links and s has the domain of all possible states for a network link. Then the expression is: u A(u) n N(n, available). Examples by Lewis Carroll Example 26 Consider these statements. The first two are premises and the third is the conclusion. All lions are fierce. Some lions do not drink coffee. Some fierce creatures do not drink coffee. Solution: Let P(x), Q(x) and R(x) be the statements x is a lion, x is fierce and x drinks coffee. respectively. Let the domain consists of all creatures. Now the statements are: 8
9 x (P(x) Q(x)). (For an arbitrary animal x, if x is a lion, then x is fierce.) x (P(x) R(x)). There is an animal x which is lion and x does not drink coffee. x (Q(x) R(x)). There is an animal x which is fierce and does not drink coffee. Not okay: x (P(x) R(x)). There is an animal x, if x is a lion, then x does not drink coffee. x (Q(x) R(x)). There is an animal x, if x is fierce, then x does not drink coffee. Not exact -- both are true even if P(x) and Q(x) both are not true! The two implications claims more than the original statements. Example 27 Consider these statements. The first three are premises and the fourth is a valid conclusion. All hummingbirds are richly colored. No large birds live on honey. Birds that do not live on honey are dull in color. Hummingbirds are small. Solution: Let H(x): x is a hummingbird, B(x): x is large, (large=big) L(x): x lives on honey, C(x): x is richly colored. Let the domain consists of all birds. So the statements are: x (H(x) C(x)). For any bird x, if x is a hummingbird, then x is richly colored. x (B(x) L(x)) or x (B(x) L(x)). It is not the case that there is a bird x which is large/big and lives on honey. For any bird x, if x is large/big, then x does not live on honey. 9
10 Warning: No large birds live on honey. Some/all small birds live on honey. The later one is If the bird x is small (not big), then x lives on honey., i.e, x ( B(x) L(x))= x (B(x) L(x)) and this is saying that For any bird x, x is either large or lives on honey. But this could mean The bird x is large and lives on honey. and clearly this is not equal to No large birds live on honey. x ( L(x) C(x)). For any bird x, if x does not live on honey, then x is not rich in color. x (H(x) B(x)). For any bird x, if x is a hummingbird, then x is small(not big). Logic Programming An important type of programming language is designed to reason using the rules of predicate logic. Prolog. Prolog programs include a set of declarations consisting of two types of statements, Prolog facts and Prolog rules. Prolog facts define predicates by specifying the elements that satisfy these predicates. Prolog rules are used to define new predicates using those already defined by Prolog facts. Example 28 Consider a Prolog program given facts telling it the instructor of each class and in which classes students are enrolled. The program uses these facts to answer queries concerning the professors who teach particular students. Such a programs could use the predicates instructor(p, c) and enrolled(s, c) to represent that professor p is the instructor of course c and that the student s is enrolled in course c, respectively. For example, the Prolog facts in such a program might include: instructor(chan, math273) instructor(patel, ee222) instructor(grossman, cs301) enrolled(kevin, math273) enrolled(juana, ee222) enrolled(juana, cs301) enrolled(kiko, math273) enrolled(kiko, cs301) A new predicate teaches(p, s), representing that professor p teaches student s, can be defined using the prolog rule 10
11 teaches (P, S): - instructor(p, C), enrolled(s, C) which means that teaches(p, s) is true if there exists a class c such that professor p is the instructor of class c and student s is enrolled in class c. Remark: in Prolog: conjunction is represented by,, disjunction is represented by ; and query is represented by?. The query Is Kevin enrolled in math273?,? enrolled(kevin, math273) the answer: yes. The query who is enrolled in math273?,? enrolled(x, math273) the answer: kevin kiko The query who are the instructors of classes taken by Juana?,? teaches(x, juana) the answer: patel grossman 11
Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)
Predicate Logic 1 Section Summary Predicates Variables Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Logic Programming
More informationChapter 1, Part II: Predicate Logic
Chapter 1, Part II: Predicate Logic With Question/Answer Animations Copyright McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill
More informationSection Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier
Section 1.4 Section Summary Predicate logic Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Propositional Logic
More informationSection Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier
Section 1.4 Section Summary Predicate logic Quantifiers Universal Quantifier Existential Quantifier Negating Quantifiers De Morgan s Laws for Quantifiers Translating English to Logic Propositional Logic
More informationDiscrete Mathematics and Its Applications
Discrete Mathematics and Its Applications Lecture 1: The Foundations: Logic and Proofs (1.3-1.5) MING GAO DASE @ ECNU (for course related communications) mgao@dase.ecnu.edu.cn Sep. 19, 2017 Outline 1 Logical
More informationPropositional Logic Not Enough
Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks
More information2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic
CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares
More informationPredicates and Quantifiers. CS 231 Dianna Xu
Predicates and Quantifiers CS 231 Dianna Xu 1 Predicates Consider P(x) = x < 5 P(x) has no truth values (x is not given a value) P(1) is true 1< 5 is true P(10) is false 10 < 5 is false Thus, P(x) will
More informationIntroduction to Sets and Logic (MATH 1190)
Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition
More informationLogical equivalences 12/8/2015. S T: Two statements S and T involving predicates and quantifiers are logically equivalent
1/8/015 Logical equivalences CSE03 Discrete Computational Structures Lecture 3 1 S T: Two statements S and T involving predicates and quantifiers are logically equivalent If and only if they have the same
More informationCSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE
1 CSCI-2200 FOUNDATIONS OF COMPUTER SCIENCE Spring 2015 February 5, 2015 2 Announcements Homework 1 is due now. Homework 2 will be posted on the web site today. It is due Thursday, Feb. 12 at 10am in class.
More informationPredicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04
Predicate Logic Today s Menu Predicate Logic Quantifiers: Universal and Existential Nesting of Quantifiers Applications Limitations of Propositional Logic Suppose we have: All human beings are mortal.
More informationSection Summary. Section 1.5 9/9/2014
Section 1.5 Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements into Statements involving Nested Quantifiers Translated
More informationPredicates and Quantifiers. Nested Quantifiers Discrete Mathematic. Chapter 1: Logic and Proof
Discrete Mathematic Chapter 1: Logic and Proof 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers Dr Patrick Chan School of Computer Science and Engineering South China University of Technology http://125.216.243.100/dm/
More informationCS 220: Discrete Structures and their Applications. Predicate Logic Section in zybooks
CS 220: Discrete Structures and their Applications Predicate Logic Section 1.6-1.10 in zybooks From propositional to predicate logic Let s consider the statement x is an odd number Its truth value depends
More informationDiscrete Structures Lecture Predicates and Quantifiers
Introduction In this section we will introduce a more powerful type of logic called predicate logic. Predicates Consider the statement: xx > 3. The statement has two parts: 1. the variable, xx and 2. the
More informationAnnouncement. Homework 1
Announcement I made a few small changes to the course calendar No class on Wed eb 27 th, watch the video lecture Quiz 8 will take place on Monday April 15 th We will submit assignments using Gradescope
More information! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers
Sec$on Summary (K. Rosen notes for Ch. 1.4, 1.5 corrected and extended by A.Borgida)! Predicates! Variables! Quantifiers! Universal Quantifier! Existential Quantifier! Negating Quantifiers! De Morgan s
More informationLecture Predicates and Quantifiers 1.5 Nested Quantifiers
Lecture 4 1.4 Predicates and Quantifiers 1.5 Nested Quantifiers Predicates The statement "x is greater than 3" has two parts. The first part, "x", is the subject of the statement. The second part, "is
More informationICS141: Discrete Mathematics for Computer Science I
ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Originals slides by Dr. Baek and Dr. Still, adapted by J. Stelovsky Based on slides Dr. M. P. Frank and Dr. J.L. Gross
More informationProposi'onal Logic Not Enough
Section 1.4 Proposi'onal Logic Not Enough If we have: All men are mortal. Socrates is a man. Socrates is mortal Compare to: If it is snowing, then I will study discrete math. It is snowing. I will study
More information3. The Logic of Quantified Statements Summary. Aaron Tan August 2017
3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,
More informationDiscrete Structures for Computer Science
Discrete Structures for Computer Science William Garrison bill@cs.pitt.edu 6311 Sennott Square Lecture #4: Predicates and Quantifiers Based on materials developed by Dr. Adam Lee Topics n Predicates n
More informationPredicate Calculus lecture 1
Predicate Calculus lecture 1 Section 1.3 Limitation of Propositional Logic Consider the following reasoning All cats have tails Gouchi is a cat Therefore, Gouchi has tail. MSU/CSE 260 Fall 2009 1 MSU/CSE
More informationFormal (Natural) Deduction for Predicate Calculus
Formal (Natural) Deduction for Predicate Calculus Lila Kari University of Waterloo Formal (Natural) Deduction for Predicate Calculus CS245, Logic and Computation 1 / 42 Formal deducibility for predicate
More information2-4: The Use of Quantifiers
2-4: The Use of Quantifiers The number x + 2 is an even integer is not a statement. When x is replaced by 1, 3 or 5 the resulting statement is false. However, when x is replaced by 2, 4 or 6 the resulting
More informationAnnouncements CompSci 102 Discrete Math for Computer Science
Announcements CompSci 102 Discrete Math for Computer Science Read for next time Chap. 1.4-1.6 Recitation 1 is tomorrow Homework will be posted by Friday January 19, 2012 Today more logic Prof. Rodger Most
More informationPredicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic
Predicate Logic Predicate Logic (Rosen, Chapter 1.4-1.6) TOPICS Predicate Logic Quantifiers Logical Equivalence Predicate Proofs Some statements cannot be expressed in propositional logic, such as: All
More informationLogic and Propositional Calculus
CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know
More informationPredicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo
Predicate Logic CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo c Xin He (University at Buffalo) CSE 191 Discrete Structures 1 / 22 Outline 1 From Proposition to Predicate
More information2. Use quantifiers to express the associative law for multiplication of real numbers.
1. Define statement function of one variable. When it will become a statement? Statement function is an expression containing symbols and an individual variable. It becomes a statement when the variable
More informationNested Quantifiers. Predicates and. Quantifiers. Agenda. Limitation of Propositional Logic. Try to represent them using propositional.
Disc rete M athema tic Chapter 1: Logic and Proof 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers Dr Patrick Chan School of Computer Science and Engineering South China Univers ity of Technology
More informationProving Arguments Valid in Predicate Calculus
Proving Arguments Valid in Predicate Calculus Lila Kari University of Waterloo Proving Arguments Valid in Predicate Calculus CS245, Logic and Computation 1 / 22 Predicate calculus - Logical consequence
More informationLogic and Proof. Aiichiro Nakano
Logic and Proof Aiichiro Nakano Collaboratory for Advanced Computing & Simulations Department of Computer Science Department of Physics & Astronomy Department of Chemical Engineering & Materials Science
More information4 Quantifiers and Quantified Arguments 4.1 Quantifiers
4 Quantifiers and Quantified Arguments 4.1 Quantifiers Recall from Chapter 3 the definition of a predicate as an assertion containing one or more variables such that, if the variables are replaced by objects
More informationTransparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers
Section 1.3 Predicates and Quantifiers A generalization of propositions - propositional functions or predicates.: propositions which contain variables Predicates become propositions once every variable
More informationDiscrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques
Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques Colin Stirling Informatics Some slides based on ones by Myrto Arapinis Colin Stirling (Informatics) Discrete Mathematics
More informationLogical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional
Logical Operators Conjunction Disjunction Negation Exclusive Or Implication Biconditional 1 Statement meaning p q p implies q if p, then q if p, q when p, q whenever p, q q if p q when p q whenever p p
More informationReview: Potential stumbling blocks
Review: Potential stumbling blocks Whether the negation sign is on the inside or the outside of a quantified statement makes a big difference! Example: Let T(x) x is tall. Consider the following: x T(x)
More informationLogic and Propositional Calculus
CHAPTER 4 Logic and Propositional Calculus 4.1 INTRODUCTION Many algorithms and proofs use logical expressions such as: IF p THEN q or If p 1 AND p 2, THEN q 1 OR q 2 Therefore it is necessary to know
More informationsoftware design & management Gachon University Chulyun Kim
Gachon University Chulyun Kim 2 Outline Propositional Logic Propositional Equivalences Predicates and Quantifiers Nested Quantifiers Rules of Inference Introduction to Proofs 3 1.1 Propositional Logic
More informationPredicate Logic: Introduction and Translations
Predicate Logic: Introduction and Translations Alice Gao Lecture 10 Based on work by J. Buss, L. Kari, A. Lubiw, B. Bonakdarpour, D. Maftuleac, C. Roberts, R. Trefler, and P. Van Beek 1/29 Outline Predicate
More informationPREDICATE LOGIC. Schaum's outline chapter 4 Rosen chapter 1. September 11, ioc.pdf
PREDICATE LOGIC Schaum's outline chapter 4 Rosen chapter 1 September 11, 2018 margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, 2018 1 / 25 Contents 1 Predicates and quantiers 2 Logical equivalences
More informationRecall that the expression x > 3 is not a proposition. Why?
Predicates and Quantifiers Predicates and Quantifiers 1 Recall that the expression x > 3 is not a proposition. Why? Notation: We will use the propositional function notation to denote the expression "
More informationPredicate Calculus - Syntax
Predicate Calculus - Syntax Lila Kari University of Waterloo Predicate Calculus - Syntax CS245, Logic and Computation 1 / 26 The language L pred of Predicate Calculus - Syntax L pred, the formal language
More informationReview. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.
Review Propositional Logic Propositions atomic and compound Operators: negation, and, or, xor, implies, biconditional Truth tables A closer look at implies Translating from/ to English Converse, inverse,
More information2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.
Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.3) TOPICS Propositional Logic Logical Operations Equivalences Predicate Logic CS160 - Spring Semester 2014 2 What
More informationMat 243 Exam 1 Review
OBJECTIVES (Review problems: on next page) 1.1 Distinguish between propositions and non-propositions. Know the truth tables (i.e., the definitions) of the logical operators,,,, and Write truth tables for
More information1 The Foundation: Logic and Proofs
1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( 명제 ) a declarative sentence that is either true or false, but not both nor neither letters denoting propositions p, q, r, s, T:
More informationMAT2345 Discrete Math
Fall 2013 General Syllabus Schedule (note exam dates) Homework, Worksheets, Quizzes, and possibly Programs & Reports Academic Integrity Do Your Own Work Course Web Site: www.eiu.edu/~mathcs Course Overview
More information1 The Foundation: Logic and Proofs
1 The Foundation: Logic and Proofs 1.1 Propositional Logic Propositions( ) a declarative sentence that is either true or false, but not both nor neither letters denoting propostions p, q, r, s, T: true
More informationMath.3336: Discrete Mathematics. Nested Quantifiers
Math.3336: Discrete Mathematics Nested Quantifiers Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu Fall 2018
More informationECOM Discrete Mathematics
ECOM 2311- Discrete Mathematics Chapter # 1 : The Foundations: Logic and Proofs Fall, 2013/2014 ECOM 2311- Discrete Mathematics - Ch.1 Dr. Musbah Shaat 1 / 85 Outline 1 Propositional Logic 2 Propositional
More informationFirst order Logic ( Predicate Logic) and Methods of Proof
First order Logic ( Predicate Logic) and Methods of Proof 1 Outline Introduction Terminology: Propositional functions; arguments; arity; universe of discourse Quantifiers Definition; using, mixing, negating
More informationDenote John by j and Smith by s, is a bachelor by predicate letter B. The statements (1) and (2) may be written as B(j) and B(s).
PREDICATE CALCULUS Predicates Statement function Variables Free and bound variables Quantifiers Universe of discourse Logical equivalences and implications for quantified statements Theory of inference
More informationLecture 4. Predicate logic
Lecture 4 Predicate logic Instructor: Kangil Kim (CSE) E-mail: kikim01@konkuk.ac.kr Tel. : 02-450-3493 Room : New Milenium Bldg. 1103 Lab : New Engineering Bldg. 1202 All slides are based on CS441 Discrete
More informationIntroduction. Predicates and Quantifiers. Discrete Mathematics Andrei Bulatov
Introduction Predicates and Quantifiers Discrete Mathematics Andrei Bulatov Discrete Mathematics Predicates and Quantifiers 7-2 What Propositional Logic Cannot Do We saw that some declarative sentences
More informationQuantifiers. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing February, 2018
Quantifiers Alice E. Fischer CSCI 1166 Discrete Mathematics for Computing February, 2018 Alice E. Fischer Quantifiers... 1/34 1 Predicates and their Truth Sets Sets of Numbers 2 Universal Quantifiers Existential
More informationLecture 3 : Predicates and Sets DRAFT
CS/Math 240: Introduction to Discrete Mathematics 1/25/2010 Lecture 3 : Predicates and Sets Instructor: Dieter van Melkebeek Scribe: Dalibor Zelený DRAFT Last time we discussed propositions, which are
More informationBefore you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.
Chapter 2 Mathematics and Logic Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. 2.1 A Taste of Number Theory In this section, we will
More informationLogic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:
Logic Logic is a discipline that studies the principles and methods used in correct reasoning It includes: A formal language for expressing statements. An inference mechanism (a collection of rules) to
More informationFormal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures
Formal Logic: Quantifiers, Predicates, and Validity CS 130 Discrete Structures Variables and Statements Variables: A variable is a symbol that stands for an individual in a collection or set. For example,
More informationCOMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University
COMP 182 Algorithmic Thinking Proofs Luay Nakhleh Computer Science Rice University 1 Reading Material Chapter 1, Section 3, 6, 7, 8 Propositional Equivalences The compound propositions p and q are called
More informationIntroduction to Predicate Logic Part 1. Professor Anita Wasilewska Lecture Notes (1)
Introduction to Predicate Logic Part 1 Professor Anita Wasilewska Lecture Notes (1) Introduction Lecture Notes (1) and (2) provide an OVERVIEW of a standard intuitive formalization and introduction to
More informationMath Fundamentals of Higher Math
Lecture 9-1/29/2014 Math 3345 ematics Ohio State University January 29, 2014 Course Info Instructor - webpage https://people.math.osu.edu/broaddus.9/3345 office hours Mondays and Wednesdays 10:10am-11am
More informationChapter 16. Logic Programming. Topics. Logic Programming. Logic Programming Paradigm
Topics Chapter 16 Logic Programming Introduction Predicate Propositions Clausal Form Horn 2 Logic Programming Paradigm AKA Declarative Paradigm The programmer Declares the goal of the computation (specification
More informationCS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.
3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on
More informationLecture 3. Logic Predicates and Quantified Statements Statements with Multiple Quantifiers. Introduction to Proofs. Reading (Epp s textbook)
Lecture 3 Logic Predicates and Quantified Statements Statements with Multiple Quantifiers Reading (Epp s textbook) 3.1-3.3 Introduction to Proofs Reading (Epp s textbook) 4.1-4.2 1 Propositional Functions
More informationLogic Overview, I. and T T T T F F F T F F F F
Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical
More informationRosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples
Rosen, Discrete Mathematics and Its Applications, 6th edition Extra Examples Section 1.4 Nested Quantifiers Page references correspond to locations of Extra Examples icons in the textbook. #1. Write the
More informationToday s Lecture. ICS 6B Boolean Algebra & Logic. Predicates. Chapter 1: Section 1.3. Propositions. For Example. Socrates is Mortal
ICS 6B Boolean Algebra & Logic Today s Lecture Chapter 1 Sections 1.3 & 1.4 Predicates & Quantifiers 1.3 Nested Quantifiers 1.4 Lecture Notes for Summer Quarter, 2008 Michele Rousseau Set 2 Ch. 1.3, 1.4
More informationPredicate Logic & Quantification
Predicate Logic & Quantification Things you should do Homework 1 due today at 3pm Via gradescope. Directions posted on the website. Group homework 1 posted, due Tuesday. Groups of 1-3. We suggest 3. In
More informationIntro to Logic and Proofs
Intro to Logic and Proofs Propositions A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. Examples: It is raining today. Washington
More information3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations
Logic Propositions and logical operations Main concepts: propositions truth values propositional variables logical operations 1 Propositions and logical operations A proposition is the most basic element
More informationTest 1 Solutions(COT3100) (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology:
Test 1 Solutions(COT3100) Sitharam (1) Prove that the following Absorption Law is correct. I.e, prove this is a tautology: ( q (p q) (r p)) r Solution. This is Modus Tollens applied twice, with transitivity
More informationQuantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.
Quantifiers 1-17-2008 Here is a (true) statement about real numbers: Every real number is either rational or irrational. I could try to translate the statement as follows: Let P = x is a real number Q
More informationDISCRETE MATHEMATICS BA202
TOPIC 1 BASIC LOGIC This topic deals with propositional logic, logical connectives and truth tables and validity. Predicate logic, universal and existential quantification are discussed 1.1 PROPOSITION
More informationIII. Elementary Logic
III. Elementary Logic The Language of Mathematics While we use our natural language to transmit our mathematical ideas, the language has some undesirable features which are not acceptable in mathematics.
More informationChapter 3. The Logic of Quantified Statements
Chapter 3. The Logic of Quantified Statements 3.1. Predicates and Quantified Statements I Predicate in grammar Predicate refers to the part of a sentence that gives information about the subject. Example:
More informationCSI30. Chapter 1. The Foundations: Logic and Proofs Nested Quantifiers
Chapter 1. The Foundations: Logic and Proofs 1.9-1.10 Nested Quantifiers 1 Two quantifiers are nested if one is within the scope of the other. Recall one of the examples from the previous class: x ( P(x)
More informationSteinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)
Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning Terminology, Notations, Definitions, & Principles: Mathematical Proof and Proving (MPP) 1. A statement
More information(Refer Slide Time: 02:20)
Discrete Mathematical Structures Dr. Kamala Krithivasan Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 5 Logical Inference In the last class we saw about
More informationDiscrete Structures Lecture 5
Introduction EXAMPLE 1 Express xx yy(xx + yy = 0) without the existential quantifier. Solution: xx yy(xx + yy = 0) is the same as xxxx(xx) where QQ(xx) is yyyy(xx, yy) and PP(xx, yy) = xx + yy = 0 EXAMPLE
More informationPredicate Calculus. Lila Kari. University of Waterloo. Predicate Calculus CS245, Logic and Computation 1 / 59
Predicate Calculus Lila Kari University of Waterloo Predicate Calculus CS245, Logic and Computation 1 / 59 Predicate Calculus Alternative names: predicate logic, first order logic, elementary logic, restricted
More informationPredicates, Quantifiers and Nested Quantifiers
Predicates, Quantifiers and Nested Quantifiers Predicates Recall the example of a non-proposition in our first presentation: 2x=1. Let us call this expression P(x). P(x) is not a proposition because x
More informationDiscrete Mathematics
Department of Mathematics National Cheng Kung University 2008 2.4: The use of Quantifiers Definition (2.5) A declarative sentence is an open statement if 1) it contains one or more variables, and 1 ) quantifier:
More informationChapter 2: The Logic of Quantified Statements
Chapter 2: The Logic of Quantified Statements Topics include 2.1, 2.2 Predicates and Quantified Statements, 2.3 Statements with Multiple Quantifiers, and 2.4 Arguments with Quantified Statements. cs1231y
More informationPredicate Logic: Sematics Part 1
Predicate Logic: Sematics Part 1 CS402, Spring 2018 Shin Yoo Predicate Calculus Propositional logic is also called sentential logic, i.e. a logical system that deals with whole sentences connected with
More informationMathacle. PSet ---- Algebra, Logic. Level Number Name: Date: I. BASICS OF PROPOSITIONAL LOGIC
I. BASICS OF PROPOSITIONAL LOGIC George Boole (1815-1864) developed logic as an abstract mathematical system consisting of propositions, operations (conjunction, disjunction, and negation), and rules for
More informationCSC Discrete Math I, Spring Propositional Logic
CSC 125 - Discrete Math I, Spring 2017 Propositional Logic Propositions A proposition is a declarative sentence that is either true or false Propositional Variables A propositional variable (p, q, r, s,...)
More informationPacket #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics
CSC 224/226 Notes Packet #2: Set Theory & Predicate Calculus Barnes Packet #2: Set Theory & Predicate Calculus Applied Discrete Mathematics Table of Contents Full Adder Information Page 1 Predicate Calculus
More informationTHE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.
CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS SECTION 3.1 Predicates and Quantified Statements I Copyright Cengage Learning. All rights reserved. Copyright Cengage Learning. All rights reserved. Predicates
More informationChapter 1 Elementary Logic
2017-2018 Chapter 1 Elementary Logic The study of logic is the study of the principles and methods used in distinguishing valid arguments from those that are not valid. The aim of this chapter is to help
More informationChapter 2: The Logic of Quantified Statements. January 22, 2010
Chapter 2: The Logic of Quantified Statements January 22, 2010 Outline 1 2.1- Introduction to Predicates and Quantified Statements I 2 2.2 - Introduction to Predicates and Quantified Statements II 3 2.3
More informationQuantifiers. P. Danziger
- 2 Quantifiers P. Danziger 1 Elementary Quantifiers (2.1) We wish to be able to use variables, such as x or n in logical statements. We do this by using the two quantifiers: 1. - There Exists 2. - For
More informationUniversity of Aberdeen, Computing Science CS2013 Predicate Logic 4 Kees van Deemter
University of Aberdeen, Computing Science CS2013 Predicate Logic 4 Kees van Deemter 01/11/16 Kees van Deemter 1 First-Order Predicate Logic (FOPL) Lecture 4 Making numerical statements: >0, 1,>2,1,2
More informationSolutions to Exercises (Sections )
s to Exercises (Sections 1.1-1.10) Section 1.1 Exercise 1.1.1: Identifying propositions (a) Have a nice day. : Command, not a proposition. (b) The soup is cold. : Proposition. Negation: The soup is not
More informationMATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG
MATH 215 DISCRETE MATHEMATICS INSTRUCTOR: P. WENG Suggested Problems for Logic and Proof The following problems are from Discrete Mathematics and Its Applications by Kenneth H. Rosen. 1. Which of these
More informationPredicate Logic. Andreas Klappenecker
Predicate Logic Andreas Klappenecker Predicates A function P from a set D to the set Prop of propositions is called a predicate. The set D is called the domain of P. Example Let D=Z be the set of integers.
More informationWhy Learning Logic? Logic. Propositional Logic. Compound Propositions
Logic Objectives Propositions and compound propositions Negation, conjunction, disjunction, and exclusive or Implication and biconditional Logic equivalence and satisfiability Application of propositional
More information