First-Order Satisfiability #
This file deals with the satisfiability of first-order theories, as well as equivalence over them.
Main Definitions #
FirstOrder.Language.Theory.IsSatisfiable:T.IsSatisfiableindicates thatThas a nonempty model.FirstOrder.Language.Theory.IsFinitelySatisfiable:T.IsFinitelySatisfiableindicates that every finite subset ofTis satisfiable.FirstOrder.Language.Theory.IsComplete:T.IsCompleteindicates thatTis satisfiable and models each sentence or its negation.FirstOrder.Language.Theory.SemanticallyEquivalent:T.SemanticallyEquivalent φ ψindicates thatφandψare equivalent formulas or sentences in models ofT.Cardinal.Categorical: A theory isκ-categorical if all models of sizeκare isomorphic.
Main Results #
- The Compactness Theorem,
FirstOrder.Language.Theory.isSatisfiable_iff_isFinitelySatisfiable, shows that a theory is satisfiable iff it is finitely satisfiable. FirstOrder.Language.completeTheory.isComplete: The complete theory of a structure is complete.FirstOrder.Language.Theory.exists_large_model_of_infinite_modelshows that any theory with an infinite model has arbitrarily large models.FirstOrder.Language.Theory.exists_elementaryEmbedding_card_eq: The Upward Löwenheim–Skolem Theorem: Ifκis a cardinal greater than the cardinalities ofLand an infiniteL-structureM, thenMhas an elementary extension of cardinalityκ.
Implementation Details #
- Satisfiability of an
L.TheoryTis defined in the minimal universe containing all the symbols ofL. By Löwenheim-Skolem, this is equivalent to satisfiability in any universe.
A theory is satisfiable if a structure models it.
Equations
Instances For
A theory is finitely satisfiable if all of its finite subtheories are satisfiable.
Equations
- FirstOrder.Language.Theory.IsFinitelySatisfiable T = ∀ (T0 : Finset (FirstOrder.Language.Sentence L)), ↑T0 ⊆ T → FirstOrder.Language.Theory.IsSatisfiable ↑T0
Instances For
The Compactness Theorem of first-order logic: A theory is satisfiable if and only if it is finitely satisfiable.
Any theory with an infinite model has arbitrarily large models.
A version of The Downward Löwenheim–Skolem theorem where the structure N elementarily embeds
into M, but is not by type a substructure of M, and thus can be chosen to belong to the universe
of the cardinal κ.
The Upward Löwenheim–Skolem Theorem: If κ is a cardinal greater than the cardinalities of
L and an infinite L-structure M, then M has an elementary extension of cardinality κ.
The Löwenheim–Skolem Theorem: If κ is a cardinal greater than the cardinalities of L
and an infinite L-structure M, then there is an elementary embedding in the appropriate
direction between then M and a structure of cardinality κ.
A consequence of the Löwenheim–Skolem Theorem: If κ is a cardinal greater than the
cardinalities of L and an infinite L-structure M, then there is a structure of cardinality κ
elementarily equivalent to M.
A theory models a (bounded) formula when any of its nonempty models realizes that formula on all inputs.
Equations
- T ⊨ᵇ φ = ∀ (M : FirstOrder.Language.Theory.ModelType T) (v : α → ↑M) (xs : Fin n → ↑M), FirstOrder.Language.BoundedFormula.Realize φ v xs
Instances For
A theory models a (bounded) formula when any of its nonempty models realizes that formula on all inputs.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An alternative statement of the Compactness Theorem. A formula φ is modeled by a
theory iff there is a finite subset T0 of the theory such that φ is modeled by T0
A theory is complete when it is satisfiable and models each sentence or its negation.
Equations
Instances For
A theory is maximal when it is satisfiable and contains each sentence or its negation. Maximal theories are complete.
Equations
Instances For
Two (bounded) formulas are semantically equivalent over a theory T when they have the same
interpretation in every model of T. (This is also known as logical equivalence, which also has a
proof-theoretic definition.)
Equations
Instances For
Equations
- ⋯ = ⋯
Semantic equivalence forms an equivalence relation on formulas.
Equations
- FirstOrder.Language.Theory.semanticallyEquivalentSetoid T = { r := FirstOrder.Language.Theory.SemanticallyEquivalent T, iseqv := ⋯ }
Instances For
A theory is κ-categorical if all models of size κ are isomorphic.
Equations
- Cardinal.Categorical κ T = ∀ (M N : FirstOrder.Language.Theory.ModelType T), Cardinal.mk ↑M = κ → Cardinal.mk ↑N = κ → Nonempty (FirstOrder.Language.Equiv L ↑M ↑N)
Instances For
The Łoś–Vaught Test : a criterion for categorical theories to be complete.