33
Predicate Logic 16. Quantifiers The Lecture

Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Predicate Logic 16. Quantifiers

The Lecture

Page 2: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

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.

Page 3: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

Page 4: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

atomic

Page 5: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

atomic

¬A

Page 6: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

atomic

¬A

A B

Page 7: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

atomic

¬A

A B

A B

Page 8: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

atomic

¬A

A B

A B

A B

Page 9: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

atomic

¬A

A B

A B

A BA B

Page 10: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

atomic

¬A

A B

A B

A BA B

xA

Page 11: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

First order formulasare of the form

where A and B are first order formulas.

Parentheses (,) are used for clarity.

atomic

¬A

A B

A B

A BA B

xA

xA

Page 12: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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

Page 13: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

Universal quantifier explained

Page 14: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

Universal quantifier explained

xA: Every value of x satisfies A.

Page 15: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

Universal quantifier explained

xA: Every value of x satisfies A.Every tile is red.

Page 16: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 17: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 18: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 19: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 20: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

Existential quantifier explained

Page 21: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

Existential quantifier explained

xA: Some value of x satisfies A.

Page 22: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

Existential quantifier explained

xA: Some value of x satisfies A.Some tiles are red.

Page 23: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 24: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 25: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 26: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 27: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

x y z

S 1 5 1

S(2/x) 2 5 1

S(8/z) 1 5 8

This row is a modified assignment

This row is another modified

assignment

Page 28: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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

Page 29: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Jouko Väänänen: Predicate logic

Assignment satisfying a quantified formula

Page 30: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 31: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 32: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

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.

Page 33: Predicate Logic 16. Quantifiers · 2011-04-21 · Quantifiers are the final elements that first order (i.e. predicate logic) formulas are built up from. First order formulas are built

Tarski Truth Definition

11

Conjunction

Equivalence

Disjunction

Negation

Implication

Jouko Väänänen: Predicate logic

M s A B

if and only if

M s A and M s

B

M s AvB

if and only if

M s A or M s

B

M s A B

if and only if

M s A or M s

B

M s ¬A

if and only if

M s A

M s A B

if and only if

[M s A and M s

B] or

[M s A and M s

B]

Universal quantifier

M s

xA

if and only if

M s(a/x) A for all

a in M

Existential quantifier

M s

xA

if and only if

M s(a/x) A for

some a in M

Atomic

M s Pn(x)

if and only if s(x) Pn

M

M s R(x,y)

if and only if(s(x),s(y)) RM

AtomicAtomic

M s x=y

if and only if s(x)=s(y)