18 logic predicate logic free bound text - math.helsinki.fi · last jouko väänänen:...

21
Predicate Logic 18. Free and bound variables The Lecture

Upload: others

Post on 24-Sep-2019

16 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Predicate Logic18. Free and bound variables

The Lecture

Page 2: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Free and bound

Page 3: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Free and bound

! Variables play two different roles in predicate logic.

! The meaning of !x(xEy) is that y has a neighbor. This is a property of y and may be true or false depending on what y is.

! The role of x in !x(xEy) is to bind the quantifier !x and the formula xEy together.

Page 4: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Bound occurrence 1

Page 5: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Bound occurrence 1

! Every occurrence of a variable x in a formula of the form !xB or of the form "xB is called a bound occurrence. Occurrences which are not bound are called free.

Page 6: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Bound occurrence 1

! Every occurrence of a variable x in a formula of the form !xB or of the form "xB is called a bound occurrence. Occurrences which are not bound are called free.

!x(xEy & "z(zEy!z=x))

Page 7: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Bound occurrence 1

! Every occurrence of a variable x in a formula of the form !xB or of the form "xB is called a bound occurrence. Occurrences which are not bound are called free.

!x(xEy & "z(zEy!z=x))

Bound occurrence

Page 8: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Bound occurrence 2

Page 9: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Bound occurrence 2

!x(xEy & !y(¬yEx))

Page 10: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Bound occurrence 2

!x(xEy & !y(¬yEx))

y boundy free

Page 11: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Assignments and free variables

Page 12: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Assignments and free variables

! Whether an assignment s satisfies a formula in a model or not, depends only on the values of s on variables that occur free in the formula.

Page 13: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Assignments and free variables

! Whether an assignment s satisfies a formula in a model or not, depends only on the values of s on variables that occur free in the formula.

! Whether s satisfes !x(xEy & !y(¬yEx)) or not, depends only on s(y), not on s(x).

Page 14: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Sentences

Page 15: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Sentences

! Some formulas have no free variables. They are called sentences.

Page 16: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Sentences

! Some formulas have no free variables. They are called sentences.

! "y!x(xEy & !z(¬zEx)) is a sentence.

Page 17: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Sentences

! Some formulas have no free variables. They are called sentences.

! "y!x(xEy & !z(¬zEx)) is a sentence.! "y!x(xEy & !z(¬zEx)) says of a graph

that every vertex has a neighbor with a non-neighbor.

Page 18: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Truth

Page 19: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Truth

! Sentences are true or false in a structure, according to whether some (equivalently, all) assignments satisfy them.

Page 20: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Truth

! Sentences are true or false in a structure, according to whether some (equivalently, all) assignments satisfy them.

! If a sentence A is true in a structure M, the structure M is called a model of the sentence A.

Page 21: 18 Logic Predicate Logic free bound text - math.helsinki.fi · Last Jouko Väänänen: Propositional logic viewed Free and bound ! Variables play two different roles in predicate

Last viewedJouko Väänänen: Propositional logic

Truth

! Sentences are true or false in a structure, according to whether some (equivalently, all) assignments satisfy them.

! If a sentence A is true in a structure M, the structure M is called a model of the sentence A.

! This is denoted M A.