2026-08-28·por Sijie Wang#node#idea#math

first-order-logic

First-order logic (FOL)

Parent: logic

The standard logic of mathematics: quantify over elements of a domain (not over sets — that's second-order / MSO).

Syntax

  • Terms: variables, constants, and function symbols applied to terms (f(x, c)).
  • Atomic formulas: a predicate applied to terms (P(x), x = y, x < y).
  • Formulas: atoms closed under ¬, ∧, ∨, → and the quantifiers ∀x ("for all elements"), ∃x ("for some element").
Semantics

A structure (model) M = a domain set + interpretations of the constant/function/predicate symbols. Satisfaction M ⊨ φ says "φ is true in M." A sentence is valid if true in every model (⊨ φ), satisfiable if true in some, and Γ ⊨ φ (entailment) if every model of Γ satisfies φ.

The two great theorems

  • Gödel's completeness theorem (1929): there is a sound and complete proof system — ⊢ φ ⟺ ⊨ φ (provable = valid). (Don't confuse with incompleteness: completeness is about FOL validity; incompleteness is about specific theories like arithmetic being unable to prove all truths.)
  • Compactness: if every finite subset of Γ is satisfiable, then Γ is satisfiable. A workhorse of model theory (builds infinite/non-standard models).

The catch

Completeness makes validity semi-decidable — enumerate proofs and you'll find one iff φ is valid. But you cannot decide validity in general: that's the undecidability of FOL (the Entscheidungsproblem), and it's exactly what Turing's 1936 paper was built to settle.

sobre esta entrada

Una de las entradas de wiki de sijie. La IA en este sitio está anclada en el mismo corpus y responde en la voz de sijie, con citas que vuelven a entradas como esta — responder le cuesta dinero a sijie, así que espera detrás de un código: ingrese código de acceso →

first-order-logic — Sijie Wang