Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2002/iii/paper-23/6/b/solution

An exact-count form of the Hanf locality lemma is as follows. For every quantifier rank , put . If finite relational structures admit a bijection such that
then and agree on every first-order sentence of quantifier rank at most . Equivalently, they have the same number of occurrences of every marked radius- one-point neighbourhood type. The individual local isomorphisms need not be restrictions of .
A bounded-degree threshold version permits the type counts to be different when both exceed a sufficiently large bound depending on the degree bound and . We need only the exact-count form. Its locality content is that sufficiently large matching neighbourhoods and their multiplicities determine all sentences up to the prescribed quantifier rank.

New to topics? Read the docs here!