PREDICATE LOGIC. Schaum's outline chapter 4 Rosen chapter 1. September 11, ioc.pdf

Size: px
Start display at page:

Download "PREDICATE LOGIC. Schaum's outline chapter 4 Rosen chapter 1. September 11, ioc.pdf"

Transcription

1 PREDICATE LOGIC Schaum's outline chapter 4 Rosen chapter 1 September 11, 2018 margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

2 Contents 1 Predicates and quantiers 2 Logical equivalences for quantiers 3 Validity and satisability 4 Examples margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

3 Next section 1 Predicates and quantiers 2 Logical equivalences for quantiers 3 Validity and satisability 4 Examples margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

4 Motivation Propositional logic cannot adequately express the meaning of all statements in mathematics and in natural language. Example Having assumptions: Every computer connected to the school network is functioning properly. ELVIS is one of the computers connected to the school network. No rules of propositional logic allow us to conclude the truth of the statement ELVIS is functioning properly Classical example From the propositions All men are mortal. Socrates is a man. we cannot derive that Socrates is mortal. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

5 Motivation Propositional logic cannot adequately express the meaning of all statements in mathematics and in natural language. Example Having assumptions: Every computer connected to the school network is functioning properly. ELVIS is one of the computers connected to the school network. No rules of propositional logic allow us to conclude the truth of the statement ELVIS is functioning properly Classical example From the propositions All men are mortal. Socrates is a man. we cannot derive that Socrates is mortal. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

6 Predicate logic Extends propositional logic by Individuals a,b,..., ELVIS,... (Individual) variables x, y,... Predicates (= propositional functions) P(x), Q(x), R(x, y),... Quantiers, A propositional function is a generalization of proposition: its argument stands for en element from its domain; its value is T or F depending on the property of its argument(s). margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

7 Predicate logic Extends propositional logic by Individuals a,b,..., ELVIS,... (Individual) variables x, y,... Predicates (= propositional functions) P(x), Q(x), R(x, y),... Quantiers, A propositional function is a generalization of proposition: its argument stands for en element from its domain; its value is T or F depending on the property of its argument(s). margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

8 Propositional function Formally, for a given n {0,1,...}, a predicate is a n-ary function (=a function with n arguments) of type P : D 1... D n {T,F } U = D 1... D n is the domain (or the universe) of the predicate P; the statement P(x 1,...,x n ), becomes a proposition (representing a property of its arguments) if either x 1 D 1,...,x n D n or all variables x 1,...,x n are bound by quantiers (see next slides). Example 1 Let P(x) denote x > 2 and U = Z. Then P(5) is true; P(2) is false. Example 2 Let R(x,y,z) denote the statement x + y = z and U = Z. Then R(1,2,3) is true; R(0,0, 5) is false. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

9 Propositional function Formally, for a given n {0,1,...}, a predicate is a n-ary function (=a function with n arguments) of type P : D 1... D n {T,F } U = D 1... D n is the domain (or the universe) of the predicate P; the statement P(x 1,...,x n ), becomes a proposition (representing a property of its arguments) if either x 1 D 1,...,x n D n or all variables x 1,...,x n are bound by quantiers (see next slides). Example 1 Let P(x) denote x > 2 and U = Z. Then P(5) is true; P(2) is false. Example 2 Let R(x,y,z) denote the statement x + y = z and U = Z. Then R(1,2,3) is true; R(0,0, 5) is false. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

10 Propositional function Formally, for a given n {0,1,...}, a predicate is a n-ary function (=a function with n arguments) of type P : D 1... D n {T,F } U = D 1... D n is the domain (or the universe) of the predicate P; the statement P(x 1,...,x n ), becomes a proposition (representing a property of its arguments) if either x 1 D 1,...,x n D n or all variables x 1,...,x n are bound by quantiers (see next slides). Example 1 Let P(x) denote x > 2 and U = Z. Then P(5) is true; P(2) is false. Example 2 Let R(x,y,z) denote the statement x + y = z and U = Z. Then R(1,2,3) is true; R(0,0, 5) is false. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

11 Universal quantier Let U is a given domain of discourse (= universe of discourse or simply domain). Denition The universal quantication of P(x) is the statement P(x) for all values of x in the domain U. The notation xp(x) denotes the universal quantication of P(x). Here is called the universal quantier. We read xp(x) as for all x P(x) or for every x P(x). An element for which P(x) is false is called a counterexample of xp(x). margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

12 Universal quantier Let U is a given domain of discourse (= universe of discourse or simply domain). Denition The universal quantication of P(x) is the statement P(x) for all values of x in the domain U. The notation xp(x) denotes the universal quantication of P(x). Here is called the universal quantier. We read xp(x) as for all x P(x) or for every x P(x). An element for which P(x) is false is called a counterexample of xp(x). Examples Let P(x) be the statement x + 1 > x and domain is Z. Then the quantication xp(x) is true. Let Q(x) be the statement x < 2 and domain is Z. Then the quantication xq(x) is false. Let R(x) be the statement x 2 > 0 and domain is R. Then the quantication xr(x) is false. A counterexample here is x = 0. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

13 Universal quantier Let U is a given domain of discourse (= universe of discourse or simply domain). Denition The universal quantication of P(x) is the statement P(x) for all values of x in the domain U. The notation xp(x) denotes the universal quantication of P(x). Here is called the universal quantier. We read xp(x) as for all x P(x) or for every x P(x). An element for which P(x) is false is called a counterexample of xp(x). Aanother example Let P(x) be the statement x 2 x and domain is R. Then the quantication xp(x) is false. A counterexample is x = 1 2. However, if domain is Z, then the quantication xp(x) is true. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

14 Existential quantier Denition The existential quantication of P(x) is the statement There exists an element x in the domain U such that P(x). We use the notation notation xp(x) for the existential quantication of P(x). Here is called the existential quantier. Remark: The meaning of xp(x) changes when the domain changes. Without specifying the domain, the statement xp(x) has no meaning. Examples Let P(x) be the statement x > 3 and domain is R. Then the quantication xp(x) is true. Let Q(x) be the statement x = x + 1 and domain is R. Then the quantication xq(x) is false. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

15 Existential quantier Denition The existential quantication of P(x) is the statement There exists an element x in the domain U such that P(x). We use the notation notation xp(x) for the existential quantication of P(x). Here is called the existential quantier. Remark: The meaning of xp(x) changes when the domain changes. Without specifying the domain, the statement xp(x) has no meaning. Examples Let P(x) be the statement x > 3 and domain is R. Then the quantication xp(x) is true. Let Q(x) be the statement x = x + 1 and domain is R. Then the quantication xq(x) is false. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

16 Bound and free variables The quantiers are said to bind the variable x in the expressions xp(x) and xp(x). Variables in the scope of some quantier are called bound variables. All other variables in the expression are called free variables. A propositional function that does not contain any free variables is a proposition and has a truth value. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

17 Bound and free variables The quantiers are said to bind the variable x in the expressions xp(x) and xp(x). Variables in the scope of some quantier are called bound variables. All other variables in the expression are called free variables. A propositional function that does not contain any free variables is a proposition and has a truth value. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

18 Bound and free variables The quantiers are said to bind the variable x in the expressions xp(x) and xp(x). Variables in the scope of some quantier are called bound variables. All other variables in the expression are called free variables. A propositional function that does not contain any free variables is a proposition and has a truth value. Examples In the statement x(x + y = 1), the variable x is bound, but the variable y is free; In the statement x(p(x) Q(x)) xr(x), all variables are bound margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

19 Quantiers as conjunctions and/or disjunctions If the domain is nite then universal/existential quantiers can be expressed by conjunctions/disjunctions. If the domain U = {1,2,3,4}, then xp(x) = P(1) P(2) P(3) P(4), and xp(x) = P(1) P(2) P(3) P(4). Even if the domains are innite, you can still think of the quantiers in this fashion, but the equivalent expressions without quantiers will be innitely long. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

20 Quantiers as conjunctions and/or disjunctions If the domain is nite then universal/existential quantiers can be expressed by conjunctions/disjunctions. If the domain U = {1,2,3,4}, then xp(x) = P(1) P(2) P(3) P(4), and xp(x) = P(1) P(2) P(3) P(4). Even if the domains are innite, you can still think of the quantiers in this fashion, but the equivalent expressions without quantiers will be innitely long. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

21 Quantiers as conjunctions and/or disjunctions If the domain is nite then universal/existential quantiers can be expressed by conjunctions/disjunctions. If the domain U = {1,2,3,4}, then xp(x) = P(1) P(2) P(3) P(4), and xp(x) = P(1) P(2) P(3) P(4). Even if the domains are innite, you can still think of the quantiers in this fashion, but the equivalent expressions without quantiers will be innitely long. Example Let P(x) be the statement x 2 < 10. Then it is true for the domain U 1 = {1,2,3}, but it is false for the domain U 2 = {1,2,3,4}. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

22 Examples of nested quantiers Statements with complex semantics require nested quantiers. Example 1 Statement: Every real number has an inverse w.r.t. addition Domain U = R. The property is expressed by x y(x + y = 0) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

23 Examples of nested quantiers Statements with complex semantics require nested quantiers. Example 1 Statement: Every real number has an inverse w.r.t. addition Domain U = R. The property is expressed by x y(x + y = 0) Example 2 Statement: Every real number except zero has a multiplicative inverse. Domain U = R. The property is expressed by x(x 0 y(xy = 1)) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

24 Notation: quantiers with restricted domains An abbreviated notation is often used to restrict the domain of a quantier. x < 0.(x 2 > 0) is another way of expressing x(x < 0 x 2 > 0). x A.(0 < x 5) is another way of expressing x(x A (0 < x) (x 5)). z > 0.(z 2 = 2) is another way of expressing z(z > 0 z 2 = 2). margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

25 Precedence of quantiers The quantiers and have higher precedence than all logical operators from propositional calculus For example xp(x) Q(x) means ( xp(x)) Q(x) rather than x(p(x) Q(x)). margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

26 Next section 1 Predicates and quantiers 2 Logical equivalences for quantiers 3 Validity and satisability 4 Examples margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

27 Equivalences Statements involving predicates and quantiers are logically equivalent if and only if they have the same truth value no matter which predicates are substituted into these statements and which domain of discourse is used for the variables in these propositional functions. We use the notation S T to indicate that two statements S and T involving predicates and quantiers are logically equivalent. Examples x. S(x) x.s(x) x.(p(x) Q(x)) x.p(x) x.q(x) x. y.p(x, y) y. x.p(x, y) x. y.p(x, y) y. x.p(x, y) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

28 Equivalences Statements involving predicates and quantiers are logically equivalent if and only if they have the same truth value no matter which predicates are substituted into these statements and which domain of discourse is used for the variables in these propositional functions. We use the notation S T to indicate that two statements S and T involving predicates and quantiers are logically equivalent. Examples x. S(x) x.s(x) x.(p(x) Q(x)) x.p(x) x.q(x) x. y.p(x, y) y. x.p(x, y) x. y.p(x, y) y. x.p(x, y) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

29 Equivalences Statements involving predicates and quantiers are logically equivalent if and only if they have the same truth value no matter which predicates are substituted into these statements and which domain of discourse is used for the variables in these propositional functions. We use the notation S T to indicate that two statements S and T involving predicates and quantiers are logically equivalent. Examples x. S(x) x.s(x) x.(p(x) Q(x)) x.p(x) x.q(x) x. y.p(x, y) y. x.p(x, y) x. y.p(x, y) y. x.p(x, y) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

30 Equivalences Statements involving predicates and quantiers are logically equivalent if and only if they have the same truth value no matter which predicates are substituted into these statements and which domain of discourse is used for the variables in these propositional functions. We use the notation S T to indicate that two statements S and T involving predicates and quantiers are logically equivalent. Examples x. S(x) x.s(x) x.(p(x) Q(x)) x.p(x) x.q(x) x. y.p(x, y) y. x.p(x, y) x. y.p(x, y) y. x.p(x, y) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

31 Equivalences Statements involving predicates and quantiers are logically equivalent if and only if they have the same truth value no matter which predicates are substituted into these statements and which domain of discourse is used for the variables in these propositional functions. We use the notation S T to indicate that two statements S and T involving predicates and quantiers are logically equivalent. Examples x. S(x) x.s(x) x.(p(x) Q(x)) x.p(x) x.q(x) x. y.p(x, y) y. x.p(x, y) x. y.p(x, y) y. x.p(x, y) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

32 Quantications of two variables. Example where x. y.p(x,y) y. x.p(x,y) Let P(x,y) denotex + y = 0, where the domain for all variables consists of all real numbers. y. x.p(x, y) means the proposition There is a real number y such that for every real number x, x + y = 0. Actually, no matter what value of y is chosen, there is only one value of x for which x + y = 0. Hence, the proposition y. x.p(x,y) false. x. y.p(x, y) means the proposition For every real number x there is a real number y such that x + y = 0. In fact, given a real number x, there is a real number y such that x + y = 0; namely, y = x. Hence, the statement is true. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

33 Quantications of two variables. The meanings of the dierent possible quantications involving two variables. ICY0001: Lecture 2 September 11, / 25

34 De Morgan's law for quantiers The rules for negating quantiers are: ( x.p(x)) x. P(x) ( x.p(x)) x. P(x) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

35 Next section 1 Predicates and quantiers 2 Logical equivalences for quantiers 3 Validity and satisability 4 Examples margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

36 Validity An assertion in predicate calculus is logically valid (or simply valid) if it is true in every interpretation, that is i it is true for all domains for every propositional functions substituted for the predicates in the assertion Valid assertions in predicate logic play a role similar to tautologies in propositional logic. Example x.(p(x) P(x)) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

37 Validity An assertion in predicate calculus is logically valid (or simply valid) if it is true in every interpretation, that is i it is true for all domains for every propositional functions substituted for the predicates in the assertion Valid assertions in predicate logic play a role similar to tautologies in propositional logic. Example x.(p(x) P(x)) margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

38 Satisability An assertion in predicate calculus is satisable i it is true for some domain for some propositional functions that can be substituted for the predicates in the assertion Valid assertions in predicate logic play a role similar to tautologies in propositional logic. Examples x. y.p(x, y) is satisable The domain N, and the propositional function satisfy this assertion. x.(p(x) P(x)) is unsatisable margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

39 Satisability An assertion in predicate calculus is satisable i it is true for some domain for some propositional functions that can be substituted for the predicates in the assertion Valid assertions in predicate logic play a role similar to tautologies in propositional logic. Examples x. y.p(x, y) is satisable The domain N, and the propositional function satisfy this assertion. x.(p(x) P(x)) is unsatisable margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

40 Next section 1 Predicates and quantiers 2 Logical equivalences for quantiers 3 Validity and satisability 4 Examples margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

41 Example 1: If x is irrational then so is x Let Irrational(x) denote the propositional function x is irrational, and Rational(x) = Irrational(x) Proposition x R +. Irrational(x) Irrational( x) Proof. Let x be positive real number. We will show the contrapositive, i.e. x R +. Rational( x) Rational(x) In other words we prove that if x is rational then so is x. Assume that x is a rational number. Then, by denition, there must exists two natural numbers m and n such that x = m/n. But then x = m 2 /n 2 and, since m 2 and n 2 are natural numbers, which by denition implies that x is a rational number as required. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

42 Example 2: n is even i n 2 is even Let Even(x) denote the propositional function x is even, and Odd(x) = Even(x) Proposition n Z. Even(n) Even(n 2 ) Proof. Let n Z Necessity. Let's assume that n is even, i.e. there exists an integer k such that n = 2k. Then n 2 = (2k) 2 = 4k 2 = 2(2k 2 ), and thus for l = 2k 2,n 2 = 2l and so is even. Suciency. We will show the contrapositive,i.e. Odd(n) Odd(n 2 ). Let's assume that n is odd, i.e. there exists an integer k such that n = 2k + 1. Then n 2 = (2k + 1) 2 = 2(2k 2 + 2k) + 1,and thus for l = 2k 2 + k,n 2 = 2l + 1 and so is odd. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

43 Example 3: 4k = i 2 j 2 Proposition k N. i N. j N. 4k = i 2 j 2 Proof. Let k N. Let i = k + 1 and j = k 1. i 2 j 2 = (k + 1) 2 (k 1) 2 = k 2 + 2k + 1 k 2 + 2k 1 = 4k. margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

44 Example 4: Either n 2 0 (mod 4) or n 2 1 (mod 4) Remark: Formula a b (mod 4) stands for the proposition b is the remainder after division of a by 4. Proposition n Z. n 2 0 (mod 4) n 2 1 (mod 4) Proof. Let n Z. n is either even or odd. We consider each case separately. (1). Assume n is even. Then there exists m such that n = 2m. But then n 2 = 4m 2 0 (mod 4). (2). Assume n is odd. Then there exists m such that n = 2m + 1. But then n 2 = 4m 2 + 4m + 1 = 4(m 2 + m) (mod 4). margarita.spitsakova@ttu.ee ICY0001: Lecture 2 September 11, / 25

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

Discrete 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 information

Propositional Logic Not Enough

Propositional 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 information

Introduction to Sets and Logic (MATH 1190)

Introduction 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 information

Proposi'onal Logic Not Enough

Proposi'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 information

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

COMP 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 information

Discrete Mathematics and Its Applications

Discrete 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 information

Logic Part I: Classical Logic and Its Semantics

Logic Part I: Classical Logic and Its Semantics Logic Part I: Classical Logic and Its Semantics Max Schäfer Formosan Summer School on Logic, Language, and Computation 2007 July 2, 2007 1 / 51 Principles of Classical Logic classical logic seeks to model

More information

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Section 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 information

Section Summary. Predicate logic Quantifiers. Negating Quantifiers. Translating English to Logic. Universal Quantifier Existential Quantifier

Section 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 information

Review. 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. 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 information

ICS141: Discrete Mathematics for Computer Science I

ICS141: 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 information

Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Section 1.3. Section 1.3 Predicates and Quantifiers

Transparencies 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 information

Predicate Calculus - Syntax

Predicate 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 information

2. Use quantifiers to express the associative law for multiplication of real numbers.

2. 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 information

2-4: The Use of Quantifiers

2-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 information

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker

CSCE 222 Discrete Structures for Computing. Predicate Logic. Dr. Hyunyoung Lee. !!!!! Based on slides by Andreas Klappenecker CSCE 222 Discrete Structures for Computing Predicate Logic Dr. Hyunyoung Lee Based on slides by Andreas Klappenecker 1 Predicates A function P from a set D to the set Prop of propositions is called a predicate.

More information

Section Summary. Section 1.5 9/9/2014

Section 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 information

https://vu5.sfc.keio.ac.jp/slide/

https://vu5.sfc.keio.ac.jp/slide/ 1 FUNDAMENTALS OF LOGIC NO.7 PREDICATE LOGIC Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical Connectives (,,, ) Truth Table Tautology

More information

! Predicates! Variables! Quantifiers. ! Universal Quantifier! Existential Quantifier. ! Negating Quantifiers. ! De Morgan s Laws for Quantifiers

! 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 information

First order Logic ( Predicate Logic) and Methods of Proof

First 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 information

Predicate Calculus lecture 1

Predicate 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 information

Announcements CompSci 102 Discrete Math for Computer Science

Announcements 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 information

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Logical 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 information

Chapter 1 Elementary Logic

Chapter 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 information

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

Before 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 information

Mat 243 Exam 1 Review

Mat 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 information

Part I: Propositional Calculus

Part I: Propositional Calculus Logic Part I: Propositional Calculus Statements Undefined Terms True, T, #t, 1 False, F, #f, 0 Statement, Proposition Statement/Proposition -- Informal Definition Statement = anything that can meaningfully

More information

Predicate Logic. Andreas Klappenecker

Predicate 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 information

Section Summary. Predicates Variables Quantifiers. Negating Quantifiers. Translating English to Logic Logic Programming (optional)

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 information

Propositional Functions. Quantifiers. Assignment of values. Existential Quantification of P(x) Universal Quantification of P(x)

Propositional Functions. Quantifiers. Assignment of values. Existential Quantification of P(x) Universal Quantification of P(x) Propositional Functions Rosen (6 th Ed.) 1.3, 1.4 Propositional functions (or predicates) are propositions that contain variables. Ex: P(x) denote x > 3 P(x) has no truth value until the variable x is

More information

Predicate 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 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 information

CSE 311: Foundations of Computing. Lecture 6: More Predicate Logic

CSE 311: Foundations of Computing. Lecture 6: More Predicate Logic CSE 311: Foundations of Computing Lecture 6: More Predicate Logic Last class: Predicates Predicate A function that returns a truth value, e.g., Cat(x) ::= x is a cat Prime(x) ::= x is prime HasTaken(x,

More information

1 The Foundation: Logic and Proofs

1 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 information

Discrete Mathematics and Logic II. Predicate Calculus

Discrete Mathematics and Logic II. Predicate Calculus Discrete Mathematics and Logic II. Predicate Calculus SFWR ENG 2FA3 Ryszard Janicki Winter 2014 Acknowledgments: Material based on A Logical Approach to Discrete Math by David Gries and Fred B. Schneider

More information

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1 EECS 70 Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1 Getting Started In order to be fluent in mathematical statements, you need to understand the basic framework of the language

More information

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Packet #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 information

1 The Foundation: Logic and Proofs

1 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 information

Logic and Propositional Calculus

Logic 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 information

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

3. 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 information

Lecture Predicates and Quantifiers 1.5 Nested Quantifiers

Lecture 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 information

Logic and Propositional Calculus

Logic 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 information

Lecture Notes: Mathematical/Discrete Structures

Lecture Notes: Mathematical/Discrete Structures Lecture Notes: Mathematical/Discrete Structures Rashid Bin Muhammad, PhD. This booklet includes lecture notes, homework problems, and exam problems from discrete structures course I taught in Fall 2006

More information

Formal (Natural) Deduction for Predicate Calculus

Formal (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 information

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel LECTURE NOTES on DISCRETE MATHEMATICS Eusebius Doedel 1 LOGIC Introduction. First we introduce some basic concepts needed in our discussion of logic. These will be covered in more detail later. A set is

More information

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

3/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 information

Formal Logic: Quantifiers, Predicates, and Validity. CS 130 Discrete Structures

Formal 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 information

Discrete Structures for Computer Science

Discrete 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 information

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

2/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 information

Denote 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).

Denote 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 information

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel Lecture Notes on DISCRETE MATHEMATICS Eusebius Doedel c Eusebius J. Doedel, 009 Contents Logic. Introduction............................................................................... Basic logical

More information

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel LECTURE NOTES on DISCRETE MATHEMATICS Eusebius Doedel 1 LOGIC Introduction. First we introduce some basic concepts needed in our discussion of logic. These will be covered in more detail later. A set is

More information

1.3 Predicates and Quantifiers

1.3 Predicates and Quantifiers 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

More information

Quantifiers Here is a (true) statement about real numbers: Every real number is either rational or irrational.

Quantifiers 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 information

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.

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. Math 0413 Appendix A.0 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. This type of logic is called propositional.

More information

Introduction to first-order logic:

Introduction to first-order logic: Introduction to first-order logic: First-order structures and languages. Terms and formulae in first-order logic. Interpretations, truth, validity, and satisfaction. Valentin Goranko DTU Informatics September

More information

Predicate Logic: Sematics Part 1

Predicate 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 information

software design & management Gachon University Chulyun Kim

software 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 information

Proof by Contradiction

Proof by Contradiction Proof by Contradiction MAT231 Transition to Higher Mathematics Fall 2014 MAT231 (Transition to Higher Math) Proof by Contradiction Fall 2014 1 / 12 Outline 1 Proving Statements with Contradiction 2 Proving

More information

ECOM Discrete Mathematics

ECOM 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 information

Predicate Logic Thursday, January 17, 2013 Chittu Tripathy Lecture 04

Predicate 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 information

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.

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. Chapter 1 Logic 1.1 Introduction and Definitions Definitions. A sentence (statement, proposition) is an utterance (that is, a string of characters) which is either true (T) or false (F). A predicate is

More information

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014 Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014 1. Translate each of the following English sentences into formal statements using the logical operators (,,,,, and ). You may also use mathematical

More information

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

THE 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 information

Lecture 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. 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 information

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003

MATH 22 INFERENCE & QUANTIFICATION. Lecture F: 9/18/2003 MATH 22 Lecture F: 9/18/2003 INFERENCE & QUANTIFICATION Sixty men can do a piece of work sixty times as quickly as one man. One man can dig a post-hole in sixty seconds. Therefore, sixty men can dig a

More information

EECS 1028 M: Discrete Mathematics for Engineers

EECS 1028 M: Discrete Mathematics for Engineers EECS 1028 M: Discrete Mathematics for Engineers Suprakash Datta Office: LAS 3043 Course page: http://www.eecs.yorku.ca/course/1028 Also on Moodle S. Datta (York Univ.) EECS 1028 W 18 1 / 21 Predicate Logic

More information

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1

Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1 CS 70 Discrete Mathematics and Probability Theory Fall 2012 Vazirani Note 1 Course Outline CS70 is a course on "Discrete Mathematics and Probability for Computer Scientists." The purpose of the course

More information

First order logic. Example The deduction of statements: This reasoning is intuitively correct. Every man is mortal. Since Ade is a man, he is mortal.

First order logic. Example The deduction of statements: This reasoning is intuitively correct. Every man is mortal. Since Ade is a man, he is mortal. First Order Logic In the propositional logic, the most basic elements are atoms. Through atoms we build up formulas. We then use formulas to express various complex ideas. In this simple logic, an atom

More information

Logic and Proof. Aiichiro Nakano

Logic 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 information

Predicates and Quantifiers. Nested Quantifiers Discrete Mathematic. Chapter 1: Logic and Proof

Predicates 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 information

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

Logic 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 information

Discrete Mathematics

Discrete 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 information

Transformation Rules for Locally Stratied Constraint Logic Programs

Transformation Rules for Locally Stratied Constraint Logic Programs Transformation Rules for Locally Stratied Constraint Logic Programs Fabio Fioravanti 1, Alberto Pettorossi 2, Maurizio Proietti 3 (1) Dipartimento di Informatica, Universit dell'aquila, L'Aquila, Italy

More information

Section 2.1: Introduction to the Logic of Quantified Statements

Section 2.1: Introduction to the Logic of Quantified Statements Section 2.1: Introduction to the Logic of Quantified Statements In the previous chapter, we studied a branch of logic called propositional logic or propositional calculus. Loosely speaking, propositional

More information

Chapter 1, Part II: Predicate Logic

Chapter 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 information

1 Predicates and Quantifiers

1 Predicates and Quantifiers 1 Predicates and Quantifiers We have seen how to represent properties of objects. For example, B(x) may represent that x is a student at Bryn Mawr College. Here B stands for is a student at Bryn Mawr College

More information

MAT2345 Discrete Math

MAT2345 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 information

Logic Part II: Intuitionistic Logic and Natural Deduction

Logic Part II: Intuitionistic Logic and Natural Deduction Yesterday Remember yesterday? classical logic: reasoning about truth of formulas propositional logic: atomic sentences, composed by connectives validity and satisability can be decided by truth tables

More information

Solutions to Homework I (1.1)

Solutions to Homework I (1.1) Solutions to Homework I (1.1) Problem 1 Determine whether each of these compound propositions is satisable. a) (p q) ( p q) ( p q) b) (p q) (p q) ( p q) ( p q) c) (p q) ( p q) (a) p q p q p q p q p q (p

More information

1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology

More information

Math Fundamentals of Higher Math

Math 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 information

Lecture 3 : Predicates and Sets DRAFT

Lecture 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 information

x P(x) x P(x) CSE 311: Foundations of Computing announcements last time: quantifiers, review: logical Inference Fall 2013 Lecture 7: Proofs

x P(x) x P(x) CSE 311: Foundations of Computing announcements last time: quantifiers, review: logical Inference Fall 2013 Lecture 7: Proofs CSE 311: Foundations of Computing Fall 2013 Lecture 7: Proofs announcements Reading assignment Logical inference 1.6-1.7 7 th Edition 1.5-1.7 6 th Edition Homework #2 due today last time: quantifiers,

More information

CS 2800: Logic and Computation Fall 2010 (Lecture 13)

CS 2800: Logic and Computation Fall 2010 (Lecture 13) CS 2800: Logic and Computation Fall 2010 (Lecture 13) 13 October 2010 1 An Introduction to First-order Logic In Propositional(Boolean) Logic, we used large portions of mathematical language, namely those

More information

Today s Lecture. ICS 6B Boolean Algebra & Logic. Predicates. Chapter 1: Section 1.3. Propositions. For Example. Socrates is Mortal

Today 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 information

Some Review Problems for Exam 1: Solutions

Some Review Problems for Exam 1: Solutions Math 3355 Fall 2018 Some Review Problems for Exam 1: Solutions Here is my quick review of proof techniques. I will focus exclusively on propositions of the form p q, or more properly, x P (x) Q(x) or x

More information

Predicate Logic. Example. Statements in Predicate Logic. Some statements cannot be expressed in propositional logic, such as: Predicate Logic

Predicate 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 information

Thinking of Nested Quantification

Thinking of Nested Quantification Section 1.5 Section Summary Nested Quantifiers Order of Quantifiers Translating from Nested Quantifiers into English Translating Mathematical Statements into Statements involving Nested Quantifiers. Translating

More information

Full file at

Full file at Transparencies to accompany Rosen, Discrete Mathematics and Its Applications Introduction Chapter 1 - Introduction Applications of discrete mathematics: Formal Languages (computer languages) Compiler Design

More information

Math.3336: Discrete Mathematics. Nested Quantifiers

Math.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 information

CS70 is a course about on Discrete Mathematics for Computer Scientists. The purpose of the course is to teach you about:

CS70 is a course about on Discrete Mathematics for Computer Scientists. The purpose of the course is to teach you about: CS 70 Discrete Mathematics for CS Fall 2006 Papadimitriou & Vazirani Lecture 1 Course Outline CS70 is a course about on Discrete Mathematics for Computer Scientists. The purpose of the course is to teach

More information

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

Today. Proof using contrapositive. Compound Propositions. Manipulating Propositions. Tautology 1 Math/CSE 1019N: Discrete Mathematics for Computer Science Winter 2007 Suprakash Datta datta@cs.yorku.ca Office: CSEB 3043 Phone: 416-736-2100 ext 77875 Course page: http://www.cs.yorku.ca/course/1019

More information

Chapter 2: The Logic of Quantified Statements. January 22, 2010

Chapter 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 information

AMTH140 Lecture 8. Symbolic Logic

AMTH140 Lecture 8. Symbolic Logic AMTH140 Lecture 8 Slide 1 Symbolic Logic March 10, 2006 Reading: Lecture Notes 6.2, 6.3; Epp 1.1, 1.2 Logical Connectives Let p and q denote propositions, then: 1. p q is conjunction of p and q, meaning

More information

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof:

Section 1.7 Proof Methods and Strategy. Existence Proofs. xp(x). Constructive existence proof: Section 1.7 Proof Methods and Strategy Existence Proofs We wish to establish the truth of xp(x). Constructive existence proof: - Establish P(c) is true for some c in the universe. - Then xp(x) is true

More information

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

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!! CSCE 222 Discrete Structures for Computing Review for Exam 1 Dr. Hyunyoung Lee 1 Topics Propositional Logic (Sections 1.1, 1.2 and 1.3) Predicate Logic (Sections 1.4 and 1.5) Rules of Inferences and Proofs

More information

Discrete Mathematics Recitation Course 張玟翔

Discrete Mathematics Recitation Course 張玟翔 Discrete Mathematics Recitation Course 1 2013.03.07 張玟翔 Acknowledge 鄭安哲 TA 2012 About Myself English Name : Zak Chinese Name : 張玟翔 Mail:o0000032@yahoo.com.tw Lab: ED612 1-1 Propositional Logic 1-1 Ex.2

More information

Math 3336: Discrete Mathematics Practice Problems for Exam I

Math 3336: Discrete Mathematics Practice Problems for Exam I Math 3336: Discrete Mathematics Practice Problems for Exam I The upcoming exam on Tuesday, February 26, will cover the material in Chapter 1 and Chapter 2*. You will be provided with a sheet containing

More information

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms CS206 Lecture 03 Propositional Logic Proofs G. Sivakumar Computer Science Department IIT Bombay siva@iitb.ac.in http://www.cse.iitb.ac.in/ siva Page 1 of 12 Fri, Jan 03, 2003 Plan for Lecture 03 Axioms

More information

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference

Math.3336: Discrete Mathematics. Nested Quantifiers/Rules of Inference Math.3336: Discrete Mathematics Nested Quantifiers/Rules of Inference Instructor: Dr. Blerina Xhabli Department of Mathematics, University of Houston https://www.math.uh.edu/ blerina Email: blerina@math.uh.edu

More information