

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An in-depth exploration of the syntax of predicate logic, focusing on terms, formulas, and substitution. It covers the definitions of terms and formulas, the difference between free and bound variables, and the process of substitution. The document also includes examples to illustrate the concepts.
Typology: Summaries
1 / 25
This page cannot be seen from the preview
Don't miss anything!


















Syntax of Predicate Logic 1/
Syntax of Predicate Logic 2/
Using functions allows us to avoid ugly/inelegant predicate logic formulas.
Try translating the following sentence with and without functions.
โAndy and Paul have the same maternal grandmother.โ
Syntax of Predicate Logic 4/
The seven kinds of symbols:
Function symbols and predicate symbols have an assigned arity โthe number of arguments required. For example,
Syntax of Predicate Logic Symbols 5/
Each term refers to an object of the domain.
We define the set of terms inductively as follows.
Syntax of Predicate Logic Terms and Formulas 7/
A term refers to an object of the domain.
Which of the following expressions is a term?
a. ๐(๐, ๐)
b. ๐ (๐(๐ฅ, ๐ฆ), ๐)
c. ๐(๐ฅ, ๐(๐ฆ, ๐ง), ๐)
d. ๐(๐ฅ, ๐(๐ฆ, ๐ง), ๐)
Let ๐ be a constant symbol. Let ๐ be a predicate symbol with 2 arguments. Let ๐ be a function symbol with 2 arguments and ๐ be a function symbol with 3 arguments. Let ๐ฅ, ๐ฆ, and ๐ง be variable symbols.
Syntax of Predicate Logic Terms and Formulas 8/
We define the set of well-formed formulas of predicate logic inductively as follows.
Syntax of Predicate Logic Terms and Formulas 10/
๐ is a constant and ๐ฅ and ๐ฆ are variables. ๐ (2)^ and ๐(2)^ are binary predicates. ๐(1)^ is a unary function.
Which of the following is a well-formed predicate logic formula?
a. (๐(๐ฅ) โ ๐ (๐ฅ, ๐ฆ))
b. โ๐ฆ ๐ (๐, ๐(๐ฆ))
c. ๐ (๐ฅ, ๐ฆ) โ ๐(๐(๐ฅ))
d. ๐(๐, ๐(๐))
e. ๐ (๐, ๐(๐(๐ฅ, ๐ฆ)))
Syntax of Predicate Logic Terms and Formulas 11/
Letโs compare and contrast the definitions of WFFs for propositional and predicate logic.
Syntax of Predicate Logic Terms and Formulas 13/
New elements in the parse tree:
Example 1: (โ๐ฅ (๐ (๐ฅ) โง ๐(๐ฅ))) โ (ยฌ(๐ (๐(๐ฅ, ๐ฆ)) โจ ๐(๐ฆ)))
Example 2: (โ๐ฅ ((๐ (๐ฅ) โง ๐(๐ฅ)) โ (ยฌ(๐ (๐(๐ฅ, ๐ฆ)) โจ ๐(๐ฆ)))))
Syntax of Predicate Logic Terms and Formulas 14/
In a formula (โ๐ฅ ๐ผ) or (โ๐ฅ ๐ผ), the scope of a quantifier is the formula ๐ผ. A quantifier binds its variable within its scope.
An occurrence of a variable in a formula is bound if it lies in the scope of some quantifier of the same variable. Otherwise the occurrence of this variable is free.
A formula with no free variables is called a closed formula or sentence.
Syntax of Predicate Logic Free and Bound Variables 16/
Determine whether a variable is free or bound using a parse tree.
Example 1: (โ๐ฅ (๐ (๐ฅ) โง ๐(๐ฅ))) โ (ยฌ(๐ (๐(๐ฅ, ๐ฆ)) โจ ๐(๐ฆ)))
Example 2: (โ๐ฅ ((๐ (๐ฅ) โง ๐(๐ฅ)) โ (ยฌ(๐ (๐(๐ฅ, ๐ฆ)) โจ ๐(๐ฆ)))))
Syntax of Predicate Logic Free and Bound Variables 17/
Intuitively, ๐ผ[๐ก/๐ฅ] answers the question,
โWhat happens to ๐ผ if ๐ฅ has the value specified by term ๐ก?โ
For a variable ๐ฅ, a term ๐ก, and a formula ๐ผ, ๐ผ[๐ก/๐ฅ] denotes the resulting formula by replacing each free occurrence of ๐ฅ in ๐ผ with ๐ก. In other words, substitution does NOT affect bound occurrences of the variable.
Syntax of Predicate Logic Substitution 19/
Examples.
Syntax of Predicate Logic Substitution 20/