Professional Documents
Culture Documents
and Applications
COT3100
Prof: A. Ungor
Foundations of
Logic: Overview
COT3100
Basic definitions.
Predicates.
Quantified predicate expressions.
Equivalences & derivations.
Nested Quantifiers
2
Predicate Logic
Predicate logic is an extension of propositional logic
that permits concisely reasoning about whole classes
of entities.
E.g., x>1, x+y=10
COT3100
Sunday, January 12, 2014
Applications of
Predicate Logic
COT3100
Sunday, January 12, 2014
Subjects and
Predicates
The proposition
The dog is sleeping
COT3100
Sunday, January 12, 2014
Propositional
Functions
COT3100
Sunday, January 12, 2014
Propositional
Functions
COT3100
Sunday, January 12, 2014
Universe of
Discourse
COT3100
Sunday, January 12, 2014
Quantifier
Expressions
Quantifiers allow us to quantify (count) how many
objects in the universe of discourse satisfy a given
predicate:
!
COT3100
Sunday, January 12, 2014
Universal Quantifier
: Example
COT3100
Sunday, January 12, 2014
10
Universal Quantifier
: Example
COT3100
Sunday, January 12, 2014
10
Universal Quantifier
: Example
COT3100
Sunday, January 12, 2014
10
Universal Quantifier
: Example
COT3100
Sunday, January 12, 2014
10
Universal Quantifier
: Example
COT3100
Sunday, January 12, 2014
10
Universal Quantifier
: Example
COT3100
Sunday, January 12, 2014
10
Universal Quantifier
: Example
COT3100
Sunday, January 12, 2014
10
Universal Quantifier
: Example
COT3100
Sunday, January 12, 2014
The Universal
Quantifier
COT3100
Sunday, January 12, 2014
11
The Universal
Quantifier
COT3100
Sunday, January 12, 2014
11
The Universal
Quantifier
COT3100
Sunday, January 12, 2014
11
The Universal
Quantifier
COT3100
Sunday, January 12, 2014
11
The Universal
Quantifier
COT3100
Sunday, January 12, 2014
11
Existential Quantifier
Example
COT3100
Sunday, January 12, 2014
12
Existential Quantifier
Example
COT3100
Sunday, January 12, 2014
12
Existential Quantifier
Example
COT3100
Sunday, January 12, 2014
12
Existential Quantifier
Example
COT3100
Sunday, January 12, 2014
12
Existential Quantifier
Example
COT3100
Sunday, January 12, 2014
12
Existential Quantifier
Example
COT3100
Sunday, January 12, 2014
12
Existential Quantifier
Example
COT3100
Sunday, January 12, 2014
12
Existential Quantifier
Example
COT3100
Sunday, January 12, 2014
Quantifier
Equivalence Laws
COT3100
Sunday, January 12, 2014
13
Quantifier
Equivalence Laws
COT3100
Sunday, January 12, 2014
DeMorgan's
13
More Equivalence
Laws
x P(x) x P(x)
x P(x) x P(x)
x y P(x,y) y x P(x,y)
x y P(x,y) y x P(x,y)
COT3100
Sunday, January 12, 2014
14
Scope of Quantifiers
COT3100
Sunday, January 12, 2014
15
COT3100
Sunday, January 12, 2014
16
Examples of
Binding
P(x,y) has 2 free variables, x and y.
COT3100
Sunday, January 12, 2014
17
Examples of
Binding
P(x,y) has 2 free variables, x and y.
x P(x,y) has 1 free variable,y and one bound
variable. [which is which?]
COT3100
Sunday, January 12, 2014
17
Examples of
Binding
P(x,y) has 2 free variables, x and y.
x P(x,y) has 1 free variable,y and one bound
variable.x [which is which?]
COT3100
Sunday, January 12, 2014
17
More to Know
About
Binding
x x P(x) - x is not a free variable in
COT3100
Sunday, January 12, 2014
18
More to Know
About
Binding
x x P(x) - x is not a free variable in
COT3100
Sunday, January 12, 2014
18
More to Know
About
Binding
x x P(x) - x is not a free variable in
COT3100
Sunday, January 12, 2014
18
More to Know
About
Binding
x x P(x) - x is not a free variable in
COT3100
Sunday, January 12, 2014
18
More to Know
About
Binding
x x P(x) - x is not a free variable in
COT3100
Sunday, January 12, 2014
18
More to Know
About
Binding
x x P(x) - x is not a free variable in
COT3100
Sunday, January 12, 2014
18
Nested Quantifiers
(Section 1.5)
Exist within the scope of other quantifiers
COT3100
Sunday, January 12, 2014
19
Nested Quantifiers
(Section 1.5)
Exist within the scope of other quantifiers
COT3100
Sunday, January 12, 2014
19
Nested Quantifiers
(Section 1.5)
Exist within the scope of other quantifiers
COT3100
Sunday, January 12, 2014
19
Order of Quantifiers Is
Important!!
If P(x,y)=x relies upon y, express the following in
unambiguous English:
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
COT3100
Sunday, January 12, 2014
20
Order of Quantifiers Is
Important!!
If P(x,y)=x relies upon y, express the following in
unambiguous English:
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
COT3100
Sunday, January 12, 2014
20
Order of Quantifiers Is
Important!!
If P(x,y)=x relies upon y, express the following in
unambiguous English:
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
COT3100
Sunday, January 12, 2014
20
Order of Quantifiers Is
Important!!
If P(x,y)=x relies upon y, express the following in
unambiguous English:
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
COT3100
Sunday, January 12, 2014
20
Order of Quantifiers Is
Important!!
If P(x,y)=x relies upon y, express the following in
unambiguous English:
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
COT3100
Sunday, January 12, 2014
Order of Quantifiers Is
Important!!
If P(x,y)=x relies upon y, express the following in
unambiguous English:
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
y(x P(x,y))=
x(y P(x,y))=
COT3100
Sunday, January 12, 2014
Natural language is
ambiguous!
COT3100
Sunday, January 12, 2014
x y Likes(x,y)
y x Likes(x,y)
21
Natural language is
ambiguous!
COT3100
Sunday, January 12, 2014
x y Likes(x,y)
y x Likes(x,y)
21
Natural language is
ambiguous!
COT3100
x y Likes(x,y)
y x Likes(x,y)
21
Notational
Conventions
COT3100
Sunday, January 12, 2014
Defining New
Quantifiers
As per their name, quantifiers can be used to express
that a predicate is true of any given quantity
(number) of objects.
Define !x P(x) to mean P(x) is true of exactly one x in
the universe of discourse.
!x P(x) x (P(x) y (P(y) y x))
There is an x such that P(x), where there is no y
such that P(y) and y is other than x.
COT3100
Sunday, January 12, 2014
23
Some Number
Theory Examples
24
Calculus Example
(limxa f (x) = L)
COT3100
Sunday, January 12, 2014
25
Reading
COT3100
Sunday, January 12, 2014
Sections 1.6-1.8