You have 3 free guides left 😟
Unlock your guides
You have 3 free guides left 😟
Unlock your guides

3.1 Syntax and formation rules of first-order logic

2 min readaugust 7, 2024

First-order logic provides a powerful framework for expressing complex statements about objects and their relationships. It builds on propositional logic by introducing quantifiers and predicates, allowing for more nuanced and expressive logical formulations.

The syntax of first-order logic consists of symbols, terms, and formulas. These elements combine to create well-formed formulas that can represent intricate logical statements, laying the groundwork for formal reasoning and proof construction in mathematical and philosophical contexts.

Vocabulary

Symbols and Constants

Top images from around the web for Symbols and Constants
Top images from around the web for Symbols and Constants
  • symbols represent relations between objects (Loves, IsGreaterThan)
  • Function symbols denote functions that map objects to other objects (MotherOf, Successor)
  • Constants refer to specific objects in the domain of discourse (Alice, Bob, 0, 1)
  • Variables are used to represent arbitrary objects (x, y, z)

Terms and Atomic Formulas

Building Blocks of First-Order Logic

  • Terms are expressions that refer to objects
    • Can be constants (a, b, c), variables (x, y, z), or function applications (f(x), g(a, y))
    • Function applications consist of a function symbol followed by a tuple of terms (MotherOf(Alice), Successor(0))
  • Atomic formulas are the simplest type of well-formed formulas in first-order logic
    • Formed by applying a predicate symbol to a tuple of terms (Loves(Alice, Bob), IsGreaterThan(x, y))
    • Represent basic assertions about objects and their relations

Logical Connectives and Quantifiers

Constructing Complex Formulas

  • Logical connectives are used to combine simpler formulas into more complex ones
    • (\land): "and" connects two formulas (ϕψ\phi \land \psi)
    • (\lor): "or" connects two formulas (ϕψ\phi \lor \psi)
    • Implication (\rightarrow): "if...then" connects two formulas (ϕψ\phi \rightarrow \psi)
    • (¬\lnot): "not" negates a formula (¬ϕ\lnot \phi)
  • Quantifiers express properties about collections of objects
    • (\forall): "for all" specifies that a formula holds for all objects (xϕ(x)\forall x \, \phi(x))
    • (\exists): "there exists" specifies that a formula holds for at least one object (xϕ(x)\exists x \, \phi(x))

Well-formed Formulas

Syntactically Correct Formulas

  • Well-formed formulas (wffs) are syntactically correct expressions in first-order logic
    • Atomic formulas are wffs
    • If ϕ\phi and ψ\psi are wffs, then so are (ϕψ\phi \land \psi), (ϕψ\phi \lor \psi), (ϕψ\phi \rightarrow \psi), and (¬ϕ\lnot \phi)
    • If ϕ\phi is a wff and xx is a variable, then xϕ\forall x \, \phi and xϕ\exists x \, \phi are also wffs
  • Free and bound variables
    • A variable xx is bound in a formula if it falls within the scope of a (x\forall x or x\exists x)
    • A variable is free if it is not bound by any quantifier
    • In xy(P(x)Q(x,y,z))\forall x \, \exists y \, (P(x) \land Q(x,y,z)), xx and yy are bound, while zz is free
  • Scope of quantifiers
    • The scope of a quantifier is the portion of the formula it applies to
    • In x(P(x)yQ(x,y))\forall x \, (P(x) \land \exists y \, Q(x,y)), the scope of x\forall x is the entire formula, while the scope of y\exists y is Q(x,y)Q(x,y)
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Glossary
Glossary