Definition
First-order logic is a formal system extending propositional logic to include quantifiers, variables, and predicates. It distinguishes between objects (terms) and properties of objects (formulas). Unlike second-order logic, quantification occurs only over variables, not over predicates or functions.
Syntax
The syntax is defined relative to a signature containing function symbols and relation symbols with fixed arities.
Alphabet
- Variable:
- Logical connectives:
- Quantifiers:
- Equality: (typically treated as a logical constant)
- Auxiliary symbols: parentheses.
Terms
The set of terms is defined inductively:
- Any variable is a term.
- If is an -ary function symbol and are terms, then is a term.
Formulas
The set of formulas is defined inductively:
- If is an -ary relation symbol and are terms, is an atomic formula.
- If are terms, is an atomic formula.
- If are formulas, then , , , are formulas.
- If is a formula and is a variable, and are formulas.
Semantics
Semantics are defined via Tarski’s definition of truth relative to a structure .
- is a non-empty domain (universe).
- interprets -ary function symbols as functions and -ary relation symbols as subsets of .
Satisfaction
Let be a variable assignment. The satisfaction relation is defined inductively.
Metatheoretic Properties
- Soundness: If , then .
- Completeness (Gödel): If , then .
- Compactness: A set of sentences is satisfiable iff every finite subset is satisfiable.
- Löwenheim-Skolem: If a countable theory has an infinite model, it has models of all infinite cardinalities.
- Incompleteness (Gödel): Any sufficiently strong consistent effective theory containing arithmetic is incomplete.
- Undecidability (Church-Turing): The decision problem for validity is undecidable (semidecidable).
Relation to Type Theory
In the context of the Curry-Howard Correspondance:
- Universal quantification corresponds to the dependent product type .
- Existential quantification corresponds to the dependent sum type (specifically the propositional truncation thereof in HoTT to ensure proof irrelevance).
- Predicates are modeled as type families .