A first-order theory admits quantifier elimination when every first-order formula has a quantifier-free formula , in the same first-order signature and with no additional free variables, such that
Thus all first-order models of agree that the two first-order formulas define the same tuples. This definition concerns first-order formulas with free variables, as well as first-order sentences; merely deciding closed assertions would be weaker. The existence of an effective procedure is an additional issue, supplied by the explicit construction in part (d).
If is inconsistent, it proves by explosion. Conversely, suppose is consistent and, towards a contradiction, has a proof of with standard code . Consistency excludes any proof of . In particular, for each , the closed bounded statement is true and is provable in by Sigma-1 completeness. The true bounded statement is also provable.
Using the given finite-numeral exhaustion below , these finitely many nonproof facts give
For arbitrary , the given comparison splits into or . In the first case the antecedent is false. In the second case the known negative proof at code supplies the required witness . Hence proves
The Rosser sentence equivalence now gives , contradicting consistency. Thus
Only a fixed finite list of closed bounded facts was used; no assumption that the first-order theory is omega-consistent is needed.
Löb's theorem states that, for a first-order theory with the stated provability and diagonalization properties,
where . It does not require an extra consistency assumption.
By the diagonal lemma, choose with . necessitation rule and distribution applied to give
Using positive introspection gives the unconditional theorem . If , it follows that , and the reverse fixed-point implication gives . Necessitating gives , hence and finally .
The same derivation also gives the Internal form of Löb's theorem, needed for modal soundness. Put . From the unconditional , propositional reasoning and the fixed point give . necessitation rule and distribution imply , and hence
This internal statement was derived without necessitating a temporary assumption.
The Gödel second incompleteness theorem says that a consistent, effectively axiomatized first-order theory with enough arithmetic and its standard derivability and diagonalization properties cannot prove its formal consistency statement .
If a consistent proved , it would prove by classical propositional logic. Apply Löb's theorem to . This would give , contradicting consistency. Therefore
For an inconsistent first-order theory the conclusion need not hold, since it proves every first-order sentence.
Suppose such a first-order theory existed. Add two new constants and consider
where is the finite lower-bound logical formula from (iii).
Every finite subset of has a first-order model. Choose a first-order structure with exactly two equivalence classes: one countably infinite, and one finite of size at least the largest bound appearing in that subset. Interpret in the infinite class and in the finite class. The first-order structure satisfies all of , by its assumed characterization, and meets the finite demands on both named classes.
Compactness theorem in the language with the two new constants gives a first-order model of all of . Its classes of and are distinct and both infinite. Its reduct still satisfies , which is impossible if characterizes exactly one infinite class. Hence
The finite approximations work because any finite list of lower bounds permits the second class to remain finite; the entire list prevents that escape.
The local omission of a partial type by a consistent first-order theory means that, for every formula consistent with , there is some such that
is consistent. Equivalently, no formula consistent with implies every member of . Thus every possible local condition has a compatible refinement excluding at least one proposed type formula.
The omitting types theorem states: in a countable first-order language, if is consistent and locally omits each of countably many finite-arity families , then it has a countable model omitting them all. Omission means that no tuple satisfies every formula in the family. In the case of a complete type, local omission is equivalent to the type being nonisolated. Countability of the language and of the list of omission requirements is essential to this formulation.
The Godel completeness theorem is strong completeness: for any first-order theory and sentence ,
Equivalently every syntactically consistent theory has a model. Work in the ordinary classical metatheory with choice; the language need not be countable. Soundness is induction on a derivation: logical axioms hold under every assignment, modus ponens preserves truth, and the quantifier rule preserves truth when its variable is not free in the assumptions. We prove the nontrivial converse by a Henkin construction.
Start with a consistent and add a constant if the language has no closed term. Let be this language. At stage , for every existential sentence of , add a fresh constant and the witness axiom
An axiom of this form is conservative for consistency: if a contradiction followed after adding it, the old theory would prove its negation, hence both and . Since the constant is fresh, replace it by a fresh variable and generalize, obtaining , a contradiction. Every finite set of new witness axioms can be handled one at a time, so each stage remains consistent. Their union is consistent because a finite proof uses only finitely many stages.
Well-order the sentences of . Successively add a sentence if doing so is consistent, and otherwise add its negation. At least one of those two choices preserves consistency: otherwise the deduction theorem would give both its negation and its double negation in the previous theory. At limits take unions. The deductive closure of the resulting union is complete and consistent and retains all witness axioms. Every sentence of uses finitely many symbols and belongs to some , so its existential witness was added at the next stage. Thus has the Henkin witness property even for formulas using the new constants.
Build its term model. The domain consists of closed terms modulo iff . Equality axioms make this an equivalence relation and a congruence. Interpret functions by forming their corresponding terms, and interpret a relation by iff . Congruence makes this independent of representatives.
The truth lemma for a Henkin term model is proved by induction on formulas after substituting closed terms for their free variables. Atomic formulas are the definition. Completeness and consistency of give the Boolean steps. For existence, if , a witness axiom yields a constant with , and induction supplies a model witness. Conversely every domain element is a term class, so a model witness gives an instance in , and existential introduction gives the existential sentence. Universality follows by negation and existence. The model therefore satisfies , hence .
Finally, if , then is consistent by the deduction theorem and classical logic. Its constructed model is a countermodel to . This proves completeness, with an actual witness model rather than merely a finite-satisfiability assertion.
For each , let assert the existence of distinct elements. If a theory has arbitrarily large finite models, every finite subset of has a model. By the compactness theorem, this extended theory has a model, necessarily infinite. Since fields of size are arbitrarily large, no first-order theory can have exactly the finite fields of characteristic two as its models.
Suppose instead a finite conjunction axiomatized exactly the infinite fields of characteristic two. Let be the field axioms with . Then would have exactly the finite characteristic-two fields as models, contradicting the preceding conclusion. Equivalently, compactness of would force some finite size threshold, but arbitrarily large finite fields still fail . The infinite characteristic-two fields are not finitely axiomatizable.
Here is the existential common-substructure test for quantifier elimination. Use a first-order language with a constant symbol, as in the applications below, or the usual conventions for empty generated substructures and truth constants. Let be a first-order theory. Suppose that whenever have a common substructure , then, for every quantifier-free formula and every finite tuple ,
The condition is symmetric because it applies also with and exchanged. The conclusion is quantifier elimination for : for every first-order formula there is a quantifier-free formula such that
The common substructure need not itself satisfy , and witnesses are sought in the whole models, not necessarily in . This test is the QET1 version of the common-substructure test for quantifier elimination.
A first-order theory is model-complete if every structure embedding between models of is an elementary embedding. Equivalently, whenever and both satisfy , one has :
for every first-order formula and every finite tuple . This is preservation of all formulas with parameters, rather than merely all first-order sentences.
A model companion of a first-order theory , in the same first-order language, is a model-complete theory with the same universal consequences of a theory as :
Equivalently, every model of embeds into a model of , and every model of embeds into a model of . The equivalence follows from the diagram embedding criterion for universal theories, which is an application of the compactness theorem. A model companion need not be a syntactic extension of , and uniqueness is understood up to logical equivalence of theories.
A precise countable-language form of the omitting types theorem is the following. Let be a consistent first-order theory in a countable first-order language, and let be a countable family of nonprincipal partial types, each in finitely many variables. Then there is a finite or countably infinite model of omitting all the .
A partial type is a set of formulas jointly consistent with . It is principal if there is a formula such that is consistent and
For a complete type, this is exactly being an isolated type. Nonprincipal means that no such formula exists. A model omits if no tuple in that model satisfies every formula in ; different tuples may fail different members of the type. The model in the theorem need not omit each individual formula everywhere.
For parameter types, use the expanded language naming the parameters. Countability then applies to that expanded language, and hence requires a countable parameter set as well. There is no countability restriction in the finite-satisfiability argument of part (a).
The countable form of the omitting types theorem is as follows. Let be a countable first-order language and a consistent first-order theory in . For any countable family of nonprincipal partial types in finite tuples of variables, there is an at most countable first-order model of omitting all of them. Nonprincipality means that no -consistent first-order formula entails every member of the type modulo . A complete first-order theory with nonisolated complete types is the usual special case; neither an uncountable language nor an arbitrary uncountable family is covered by this statement.
Use the Godel completeness theorem to pass between consistency and the existence of a first-order model. Adjoin a countable stock of new constants. Construct finite conditions with consistent, interleaving three countable lists of requirements: decide each -sentence; provide a fresh constant witness for each existential sentence; and, for each and each tuple of closed terms of its arity, add for some . Sentence decisions preserve consistency by choosing a consistent sign. For an existential sentence , add with fresh for that condition and first-order formula. This is consistent: any first-order model of the old condition can interpret as a witness if one exists, and otherwise arbitrarily in the nonempty domain.
The omission step is the key Henkin omission extension lemma. Let be the logical conjunction of the current finite condition, listing every new constant occurring either there or in . If adding were inconsistent for every , then would entail for each such . Replace the new constants by fresh variables and form
It is consistent with and entails every , contradicting nonprincipality. Hence some omission extension is consistent. The construction need not be computable; countability merely permits all these requirements to be scheduled.
Let be the deductive closure of . It is consistent by the finite character of formal proofs, complete by sentence decisions, and has the Henkin witness property. Its term model consists of closed terms modulo provable logical equality and has at most countably many elements. The truth lemma for a Henkin term model proves that it is a first-order model of . Every tuple in it is represented by closed terms, whose scheduled omission requirement supplies a negated member of each corresponding type. Thus
A universal sentence has the form with quantifier-free , including an empty quantifier block. Embeddings preserve and reflect quantifier-free truth, so universal sentences pass to substructures of a first-order structure. For the converse Łoś-Tarski preservation theorem, let be all universal consequences of an arbitrary first-order theory , and take . We claim is consistent, where the diagram of a structure contains both atomic and negated atomic sentences in constants naming the elements of .
If inconsistent, the compactness theorem gives a finite logical conjunction of diagram sentences for which . The added constants do not occur in , so
This universal sentence belongs to but is false in at the named tuple, a contradiction. The compactness theorem therefore produces containing an isomorphic embedded copy of . The signed diagram ensures a genuine substructure of a first-order structure: functions are preserved, constants are included and relations are preserved and reflected. If the first-order model class of is closed under substructures of a first-order structure, this copy, and hence , is a first-order model of . We have proved
No countability assumption is needed for this second argument. An inconsistent first-order theory is covered as well, with a universally false axiom and an empty first-order model class.
For a first-order theory in a first-order language , a complete -type is a maximal -consistent set of formulas whose free variables lie among . Equivalently, it chooses exactly one of and for every such formula while remaining consistent with .
An isolated type is isolated by a formula when is consistent and
for every . The type is an omitted type in an -structure when no tuple satisfies every formula in .
The omitting types theorem states that if is a consistent theory in a countable language and is a countable family of nonisolated finite-arity types, then has a countable model omitting every .
This class is axiomatisable in the original language. For every positive integer , let say
Both clauses are first-order. If one of the two sets is infinite, every holds. Conversely, if both sets were finite, choosing larger than both cardinalities would make false. Hence the first-order theory consisting of the poset axioms and all the has exactly the required models.
For a first-order theory extending ZFC, let be its set of formal consequences and let denote the class of formal consistency statements for recursively axiomatized extensions of ZFC. Using Gödel numbering to code proofs and theories, these objects and the following comparison are definable in the base theory ZFC.
The consistency-strength preorder is
Thus every consistency assertion provable in is also provable in . Its strict part is
Let be the sentence asserting that a strongly inaccessible cardinal exists, and begin with
Define the iterated consistency progression
The construction is effective, so every and is a recursively axiomatized first-order theory extending ZFC.
Because extends , every theorem of , including every formal consistency statement it proves, is a theorem of ; hence . The theory proves by construction, whereas a consistent cannot prove its own consistency by Gödel second incompleteness theorem. Therefore
Likewise extends every and contains as an axiom already at stage , while does not prove it. Consequently
assuming the stated consistency hypotheses.
One-consistency says that no bounded arithmetic formula has a provable existential closure while each of its standard numeral instances is refutable. It implies first-order consistency, since an inconsistent classical first-order theory proves every logical formula.
If is one-consistent, (i) gives , so . Numeralwise enumeration in arithmetic therefore gives
If , classical logic gives . The matrix is bounded, and the preceding displayed derivations refute every standard instance. This violates one-consistency. Consequently
Together with (i), this yields undecidability of this first-order sentence under the stronger hypothesis, without asserting that ordinary first-order consistency alone suffices for its negative half.
Use the numeralwise enumeration in arithmetic convention in the first-order theory: membership supplies a standard stage with a provable enumerating instance, while nonmembership makes every standard-stage instance refutable. Put . By the definition of , the diagonal instance is exactly .
If , then . Numeralwise enumeration in arithmetic supplies a natural number such that . But universal instantiation of gives . This contradicts first-order consistency. Therefore
This uses the formal proof obligations in numeralwise enumeration in arithmetic in , rather than merely the external assertion that a logical formula has a particular complexity.
Omega-consistency forbids a logical formula of any complexity for which and for every standard . The difference from one-consistency is that the matrix is unrestricted. It implies first-order consistency.
For a complete first-order consistent classical first-order theory, theorem membership obeys the ordinary Boolean truth tables. For example, it proves a conjunction exactly when it proves both conjuncts; completeness and first-order consistency also make theoremhood of a negation the complement of theoremhood of the first-order sentence. Omega-consistency additionally gives the witness property
The reverse implication is existential introduction. For the forward implication, if no standard instance were provable, completeness would give a formal proof of each negated instance, violating omega-consistency. This works also after replacing additional free variables by numerals.
Now induct on logical formulas with their remaining free variables replaced by standard numerals. At the atomic level, the equivalence between theoremhood and standard truth follows from bounded completeness of an arithmetic theory and bounded soundness of an arithmetic theory from (b). The Boolean steps use the truth-table facts just proved. The existential step uses the witness property and the induction hypothesis on its matrix; universal quantification follows by negation. Hence
for every first-order sentence . Completeness ensures it decides each first-order sentence, and this equivalence ensures every decision is correct.