18 logic predicate logic free bound text - math.helsinki.fi · last jouko väänänen:...
TRANSCRIPT
Predicate Logic18. Free and bound variables
The Lecture
Last viewedJouko Väänänen: Propositional logic
Free and bound
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.
Last viewedJouko Väänänen: Propositional logic
Bound occurrence 1
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.
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))
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
Last viewedJouko Väänänen: Propositional logic
Bound occurrence 2
Last viewedJouko Väänänen: Propositional logic
Bound occurrence 2
!x(xEy & !y(¬yEx))
Last viewedJouko Väänänen: Propositional logic
Bound occurrence 2
!x(xEy & !y(¬yEx))
y boundy free
Last viewedJouko Väänänen: Propositional logic
Assignments and free variables
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.
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).
Last viewedJouko Väänänen: Propositional logic
Sentences
Last viewedJouko Väänänen: Propositional logic
Sentences
! Some formulas have no free variables. They are called sentences.
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.
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.
Last viewedJouko Väänänen: Propositional logic
Truth
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.
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.
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.