Predicate Logic - Core Definitions
Predicate logic (also called first-order logic or FOL) extends propositional logic by introducing variables, quantifiers, predicates, and functions, enabling us to express statements about objects and their properties.
A first-order language consists of:
-
Logical symbols (common to all languages):
- Variables:
- Logical connectives:
- Quantifiers: (universal), (existential)
- Equality: (optional)
-
Non-logical symbols (specific to ):
- Constant symbols:
- Function symbols: (each with a fixed arity)
- Predicate symbols: (each with a fixed arity)
The set of terms is defined recursively:
- Every variable is a term
- Every constant symbol is a term
- If is an -ary function symbol and are terms, then is a term
- Nothing else is a term
Terms represent objects in the domain of discourse.
The set of formulas (or well-formed formulas) is defined recursively:
- If is an -ary predicate symbol and are terms, then is a formula (atomic formula)
- If and are terms, then is a formula
- If is a formula, then is a formula
- If and are formulas, then , , , and are formulas
- If is a formula and is a variable, then and are formulas
- Nothing else is a formula
In the language of arithmetic with constants , function symbols , and predicate symbol :
- states "zero is an additive identity"
- states "there exists a number greater than "
- states "every number is even or odd"
In a formula, an occurrence of variable is bound if it appears within the scope of a quantifier or . Otherwise, it is free. A formula with no free variables is called a sentence or closed formula.
The distinction between free and bound variables is crucial: free variables act like parameters, while bound variables are dummy variables whose names can be changed (alpha-conversion). Only sentences have definite truth values in a structure; formulas with free variables require variable assignments to be evaluated.