ConceptComplete

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.

DefinitionFirst-Order Language

A first-order language L\mathcal{L} consists of:

  1. Logical symbols (common to all languages):

    • Variables: x,y,z,x1,x2,x, y, z, x_1, x_2, \ldots
    • Logical connectives: ¬,,,,\neg, \land, \lor, \to, \leftrightarrow
    • Quantifiers: \forall (universal), \exists (existential)
    • Equality: == (optional)
  2. Non-logical symbols (specific to L\mathcal{L}):

    • Constant symbols: c,d,c1,c2,c, d, c_1, c_2, \ldots
    • Function symbols: f,g,h,f, g, h, \ldots (each with a fixed arity)
    • Predicate symbols: P,Q,R,P, Q, R, \ldots (each with a fixed arity)
DefinitionTerms

The set of terms is defined recursively:

  1. Every variable is a term
  2. Every constant symbol is a term
  3. If ff is an nn-ary function symbol and t1,,tnt_1, \ldots, t_n are terms, then f(t1,,tn)f(t_1, \ldots, t_n) is a term
  4. Nothing else is a term

Terms represent objects in the domain of discourse.

DefinitionFormulas

The set of formulas (or well-formed formulas) is defined recursively:

  1. If PP is an nn-ary predicate symbol and t1,,tnt_1, \ldots, t_n are terms, then P(t1,,tn)P(t_1, \ldots, t_n) is a formula (atomic formula)
  2. If t1t_1 and t2t_2 are terms, then t1=t2t_1 = t_2 is a formula
  3. If ϕ\phi is a formula, then ¬ϕ\neg \phi is a formula
  4. If ϕ\phi and ψ\psi are formulas, then (ϕψ)(\phi \land \psi), (ϕψ)(\phi \lor \psi), (ϕψ)(\phi \to \psi), and (ϕψ)(\phi \leftrightarrow \psi) are formulas
  5. If ϕ\phi is a formula and xx is a variable, then xϕ\forall x \, \phi and xϕ\exists x \, \phi are formulas
  6. Nothing else is a formula
ExampleFirst-Order Formulas

In the language of arithmetic with constants 0,10, 1, function symbols +,×+, \times, and predicate symbol <<:

  • x(x+0=x)\forall x \, (x + 0 = x) states "zero is an additive identity"
  • y(x<y)\exists y \, (x < y) states "there exists a number greater than xx"
  • xy(x=y+yx=y+y+1)\forall x \, \exists y \, (x = y + y \lor x = y + y + 1) states "every number is even or odd"
DefinitionFree and Bound Variables

In a formula, an occurrence of variable xx is bound if it appears within the scope of a quantifier x\forall x or x\exists x. Otherwise, it is free. A formula with no free variables is called a sentence or closed formula.

Remark

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.