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.