Adapted from jtraverso/turan-stability (Palomar-registered source).
The embedding lemma #
Let L be a finite graph on k vertices with a proper colouring c by r colours, and let
s : Fin r → Finset α be parts of a graph G that are pairwise dense in a robust sense (or
pairwise ε-uniform and dense). Then L embeds into G with every vertex x of L mapped into
the part s (c x). This is the "key lemma" of the regularity method, proved by greedy embedding.
Embedding.exists_embedding: embedding lemma, robust-density form.Embedding.exists_embedding_of_isUniform: embedding lemma, uniform form.Embedding.isContained_of_isUniform: in the uniform setting,L ⊑ G.
Embedding lemma, robust-density form. Let L be a graph on a finite type β with
k = card β vertices and a proper colouring c : β → Fin r. Suppose that for all colours
i ≠ j, all subsets A ⊆ s i, B ⊆ s j with #A ≥ η #(s i) and #B ≥ η #(s j) have edge
density at least d, where 0 < η ≤ 1, 0 < d ≤ 1, 2 k η ≤ d ^ k, and every part has at least
2 k / d ^ k vertices. Then there is an injective map f : β → α sending each x into s (c x)
and edges of L to edges of G.
Embedding lemma, uniform form. Under the hypotheses of exists_embedding, with the
robust density condition replaced by: every pair of distinct parts is ε-uniform with edge
density at least d + ε, and 2 k ε ≤ d ^ k.
Embedding lemma, containment form. Under the hypotheses of
exists_embedding_of_isUniform, L is contained in G (L ⊑ G, Mathlib's
SimpleGraph.IsContained).