You are on page 1of 33

Predicate Logic

16. Quantifiers

The Lecture
First order (predicate logic) formulas
 Quantifiers are the final elements that
first order (i.e. predicate logic)
formulas are built up from.
 First order formulas are built up from
atomic formulas by means of logical
operations: negation ¬, conjunction ,
disjunction , implication ,
equivalence , existential quantifier ,
and universal quantifier . Parentheses
(,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

where A and B are first order formulas.


Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

atomic

where A and B are first order formulas.


Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

atomic

¬A

where A and B are first order formulas.


Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

atomic

¬A
AB

where A and B are first order formulas.


Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

atomic

¬A
AB
AB

where A and B are first order formulas.


Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

atomic AB
¬A
AB
AB

where A and B are first order formulas.


Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

atomic AB
¬A AB
AB
AB

where A and B are first order formulas.


Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

atomic AB
¬A AB
AB xA
AB

where A and B are first order formulas.


Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
First order formulas
 are of the form

atomic AB
¬A AB
AB xA
AB xA
where A and B are first order formulas.
Parentheses (,) are used for clarity.
Jouko Väänänen: Predicate logic
Examples

 P0(x)P1(x)
 ¬(x<y  y<x)  
 x(xEy  z(xEz  ¬zEy))
 x(B(x) z(Y(z)z<x))
  

Jouko Väänänen: Predicate logic


Universal quantifier explained

Jouko Väänänen: Predicate logic


Universal quantifier explained

 xA: Every value of x satisfies A.

Jouko Väänänen: Predicate logic


Universal quantifier explained

 xA: Every value of x satisfies A.


 Every tile is red.

Jouko Väänänen: Predicate logic


Universal quantifier explained

 xA: Every value of x satisfies A.


 Every tile is red.
 Every x satisfies x2 0.

Jouko Väänänen: Predicate logic


Universal quantifier explained

 xA: Every value of x satisfies A.


 Every tile is red.
 Every x satisfies x2 0.
 All vertices x and y are neighbors.

Jouko Väänänen: Predicate logic


Universal quantifier explained

 xA: Every value of x satisfies A.


 Every tile is red.
 Every x satisfies x2 0.
 All vertices x and y are neighbors.
 All men are mortal.

Jouko Väänänen: Predicate logic


Universal quantifier explained

 xA: Every value of x satisfies A.


 Every tile is red.
 Every x satisfies x2 0.
 All vertices x and y are neighbors.
 All men are mortal.
 Everybody loves her.

Jouko Väänänen: Predicate logic


Existential quantifier explained

Jouko Väänänen: Predicate logic


Existential quantifier explained

 xA: Some value of x satisfies A.

Jouko Väänänen: Predicate logic


Existential quantifier explained

 xA: Some value of x satisfies A.


 Some tiles are red.

Jouko Väänänen: Predicate logic


Existential quantifier explained

 xA: Some value of x satisfies A.


 Some tiles are red.
 Some reals x satisfy x2 =2.

Jouko Väänänen: Predicate logic


Existential quantifier explained

 xA: Some value of x satisfies A.


 Some tiles are red.
 Some reals x satisfy x2 =2.
 Some vertices x and y are neighbors.

Jouko Väänänen: Predicate logic


Existential quantifier explained

 xA: Some value of x satisfies A.


 Some tiles are red.
 Some reals x satisfy x2 =2.
 Some vertices x and y are neighbors.
 There is a yellow tile.

Jouko Väänänen: Predicate logic


Existential quantifier explained

 xA: Some value of x satisfies A.


 Some tiles are red.
 Some reals x satisfy x2 =2.
 Some vertices x and y are neighbors.
 There is a yellow tile.
 There is a vertex with two neighbors.

Jouko Väänänen: Predicate logic


Assignments and quantifiers

 In order to define when an assignment


satisfies a quantified formula, we need the
concept of a modified assignment.

This row is
a modified x y z
assignment S 1 5 1 This row is
S(2/x) 2 5 1 another
modified
S(8/z) 1 5 8 assignment

Jouko Väänänen: Predicate logic


Modified assignments

 Assignment s(a/x) is like assignment s except


that the value of x is changed to a.

x y z
S 1 5 1
S(2/x) 2 5 1
S(8/z) 1 5 8

Jouko Väänänen: Predicate logic


Assignment satisfying a quantified formula

Jouko Väänänen: Predicate logic


Assignment satisfying a quantified formula

 Assignment s satisfies xA in M if


the modified assignment s(a/x)
satisfies A in M for every a in M.

Jouko Väänänen: Predicate logic


Assignment satisfying a quantified formula

 Assignment s satisfies xA in M if


the modified assignment s(a/x)
satisfies A in M for every a in M.
 Assignment s satisfies xA in M if
the modified assignment s(a/x)
satisfies A in M for some a in M.

Jouko Väänänen: Predicate logic


Satisfaction
 We have defined when an assignment s
satisfies a formula A in a structure M.
 When this is the case, we write M s A.
 This is called the Tarski Truth Definition.
   

Jouko Väänänen: Predicate logic


Tarski Truth Definition
Atomic Atomic Atomic Negation

M s x=y M s R(x,y) M s ¬A
M s Pn(x)
if and only if if and only if if and only if if and only if
s(x)=s(y) s(x)PnM (s(x),s(y))RM
M s A

Conjunction Disjunction Implication


M s AB M s AvB M s AB
if and only if if and only if if and only if
M s A and M s B M s A or M s B M s A or M s B

Equivalence Universal quantifier Existential quantifier


M s AB
M s xA M s xA
if and only if
if and only if if and only if
[M s A and M s B] or
M s(a/x) A for all M s(a/x) A for
[M s A and M s B] a in M some a in M

Jouko Väänänen: Predicate logic 11

You might also like