We use the hypothesis for the two target structures when they are models of ; the common source is their generated substructure and need not itself be a model of . If the hypothesis is read as applying to all target structures, it is stronger and the same proof applies.
Suppose tuples and , with , have the same complete quantifier-free type. The substructures they generate are isomorphic by the map
for every term . Equality of the quantifier-free types makes this map well defined and injective and makes it preserve and reflect all relations. Identify these generated substructures with one common structure. The assumption then implies that and have the same truth value. Thus the truth of is determined by the tuple's quantifier-free type.
For any realization of in a model of , let be its complete quantifier-free type. The preceding paragraph makes inconsistent. By compactness theorem, a finite conjunction of members of satisfies
Choose such a conjunction for every quantifier-free type realized by a -tuple. These conjunctions cover every realization of . Another application of compactness theorem, to together with and the negations of all the chosen conjunctions, gives a finite subcover . Therefore
The right side is a quantifier-free formula. If there are no realizations of , use the always-false quantifier-free formula. This proves the common-substructure test for quantifier elimination for the given formula; it does not assume that the source structures are models of the theory.
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.
Let tuples and have the same quantifier-free type. The map extends to an isomorphism between the substructures they generate. Identify these substructures with one structure . Both expanded models satisfy , which is complete by hypothesis, so they satisfy the same formulas with parameters from . Thus and have the same complete type.
Therefore every isomorphism between substructures of models of is partial elementary. By compactness, this implies that every formula is equivalent modulo to a quantifier-free formula: otherwise two tuples with the same quantifier-free type but different truth values could be constructed. This is the common-substructure test for quantifier elimination, so admits quantifier elimination.