Module02 Predicate Logic
Module02 Predicate Logic
Predicate Logic
Carleton University
Winter 2016
1
Propositional Logic
Predicate Calculus
Set Theory
Mathematical Reasoning and Proofs
Functions
Sequences and Sums
Complexity of Algorithms
Induction
Graphs
2
Predicates
Consider each of the following statements
Someone is laughing
Everyone is happy
X<3
Predicates
A predicate is a property that an object can
have
We can write a predicate as a propositional
function, which returns true or false depending
on the value that the object has
Predicates
Is a propositional function a proposition?
Predicates
How do we say something like
Someone likes tea
Universe of Discourse
Which objects are we talking about?
The universe of discourse, or domain, often denoted
by U, is the specific set of objects we are concerned
with in a given problem
L(y) is the predicate y likes star trek
Everyone likes star trek
Universal Quantification
The universal quantification of the propositional
function ( ) is the proposition ( ) is true for
all values of in the universe of discourse
( )
Universal Quantification
When is a universal quantification true/false?
Universal Quantification
All astronauts want to go to space
10
Existential Quantification
The existential quantification of the propositional
function ( ) is the proposition there exists an
element in the universe of discourse such that
( ) is true
( )
11
Existential Quantification
When is an existential quantification true/false?
12
Existential Quantification
Some astronauts want to go to space
13
Binding Variables
A variable is bound when
A value is assigned to it, or
A quantifier is used on it
14
Binding Variables
Consider
( )
15
Translations
: not
:
and, but, also
: or
: implies, if-then, only-if, necessary,
sufficient, whenever,
: if-and-only-if, necessary-and-sufficient
:
:
16
Negating Quantifiers
Everyone likes to smile
17
Negating Quantifiers
=
18
Negating Quantifiers
( )
( )
19
Nested Quantifiers
F(x,y) is x and y are friends
,
20
Example
Every CS major in this class knows at least one CS
major that is taking COMP 1405
21
Example
Everyone in this class knows exactly one person that
goes to uOttawa
22