Predicate Logic: The Language of Structure and Quantification

Predicate Logic (First-Order Logic, FOL) is the definitive formalization of mathematical and scientific reasoning. While propositional logic deals with opaque, atomic statements, predicate logic "opens the box," allowing us to reason about individual objects, their properties, and the complex relationships between them.

1. Spatial and Geometric Intuition

Predicate logic is fundamentally about the mapping of properties onto a domain of space.

1.1 Tarski’s World: Space as Model

The most effective spatial intuition for FOL is Tarski’s World, a "blocks world" where formulas describe a physical layout.

1.2 The Geometry of Elementary Geometry

Alfred Tarski proved that Euclidean geometry can be entirely reduced to FOL using only two primitives:

  1. Betweenness (\beta(x, y, z)): y lies on the segment xz.
  2. Equidistance (\delta(x, y, z, w)): The distance xy equals the distance zw. This demonstrates that our geometric intuition of "space" is perfectly isomorphic to the logical structure of FOL.

2. Quantitative Foundations: Completeness and Complexity

The mathematical power of FOL comes with significant computational constraints.

PropertyDescriptionQuantitative Result
CompletenessEvery valid formula is provable.Gödel’s Completeness Theorem (1929)
SatisfiabilityCan we find a model for a formula?Undecidable (Church-Turing, 1936)
Decision StatusCan an algorithm always return T/F?Semi-Decidable (Recursively Enumerable)
Monadic FragmentPredicates with only 1 variable.Decidable (NEXPTIME-complete)

2.1 The Semi-Decidability Limit

While Gödel proved that a proof always exists for every valid FOL statement, Church and Turing proved there is no general algorithm to find it or to determine if a statement is invalid. If you run a theorem prover on an invalid FOL formula, it may run forever (the Halting Problem).

3. Real-World Applications

3.1 Database Theory: Relational Calculus

The foundation of all relational databases (SQL) is First-Order Logic.

3.2 AI and Knowledge Representation

3.3 Formal Verification

Engineers use FOL to write Formal Specifications for software. Tools like Z3 or Lean use FOL to prove that a program's output will always satisfy its specification, a process essential for safety-critical systems like autonomous vehicles or flight controllers.

4. Syntax and Mechanics

A First-Order language consists of:

4.1 De Morgan's Laws for Quantifiers

The spatial intuition of "all" vs. "some" is captured by the duality of negation:

\neg \forall x P(x) \iff \exists x \neg P(x)
\neg \exists x P(x) \iff \forall x \neg P(x)

Visual Intuition: "Not everything is a cube" is equivalent to "There is at least one thing that is not a cube."

5. Limits and Higher Orders

First-order logic is restricted to quantifying over individuals.

Further Reading