Hostname: page-component-cd9895bd7-dk4vv Total loading time: 0 Render date: 2024-12-25T18:12:20.998Z Has data issue: false hasContentIssue false

Unavoidable patterns in locally balanced colourings

Published online by Cambridge University Press:  01 June 2023

Nina Kamčev*
Affiliation:
Department of Mathematics, Faculty of Science, University of Zagreb, Zagreb, Croatia
Alp Müyesser
Affiliation:
University College London, London, UK
*
Corresponding author: Nina Kamčev; Email: [email protected]
Rights & Permissions [Opens in a new window]

Abstract

Which patterns must a two-colouring of $K_n$ contain if each vertex has at least $\varepsilon n$ red and $\varepsilon n$ blue neighbours? We show that when $\varepsilon \gt 1/4$, $K_n$ must contain a complete subgraph on $\Omega (\log n)$ vertices where one of the colours forms a balanced complete bipartite graph.

When $\varepsilon \leq 1/4$, this statement is no longer true, as evidenced by the following colouring $\chi$ of $K_n$. Divide the vertex set into $4$ parts nearly equal in size as $V_1,V_2,V_3, V_4$, and let the blue colour class consist of the edges between $(V_1,V_2)$, $(V_2,V_3)$, $(V_3,V_4)$, and the edges contained inside $V_2$ and inside $V_3$. Surprisingly, we find that this obstruction is unique in the following sense. Any two-colouring of $K_n$ in which each vertex has at least $\varepsilon n$ red and $\varepsilon n$ blue neighbours (with $\varepsilon \gt 0$) contains a vertex set $S$ of order $\Omega _{\varepsilon }(\log n)$ on which one colour class forms a balanced complete bipartite graph, or which has the same colouring as $\chi$.

Type
Paper
Copyright
© The Author(s), 2023. Published by Cambridge University Press

1. Introduction

Ramsey’s theorem guarantees that any $r$ -edge-colouring of a large complete graph yields a large monochromatic complete subgraph. In general, we cannot guarantee the existence of anything but monochromatic subgraphs. Indeed, nothing prevents the host graph from being monochromatic itself. However, in recent years, there have been many results stating that in colourings where each colour is well-represented, a richer family of patterns can be guaranteed. The following, initially suggested by Bollobás [Reference Cutler and Montágh4], is a prototypical result of this form. Here, $\mathcal{F}_t$ denotes the family of $2$ -edge-coloured complete graphs on $2t$ vertices in which one colour forms either a complete bipartite graph with $t$ vertices on each side $(K_{t,t})$ or a clique of order $t$ $(K_t)$ . See Figure 1 for a depiction of the four colourings in $\mathcal{F}_t$ (up to isomorphism).

Theorem 1.1 (Fox-Sudakov, Cutler-Montágh [Reference Cutler and Montágh4, Reference Fox and Sudakov9]). Let $G$ be a $2$ -edge-coloured $K_n$ where each colour class has at least $\varepsilon n^2$ edges, and suppose $n\geq (1/\varepsilon )^{16 t}$ . Then, $G$ contains a member of $\mathcal{F}_t$ .

A probabilistic construction shows that the above is asymptotically tight up to the constant factor in the exponent. The theorem is also optimal from a structural standpoint. Namely, $2$ -edge-colourings of $K_n$ where one colour class forms two disjoint cliques of size $\lfloor n/2 \rfloor$ and $\lceil n/2 \rceil$ or one colour class forms a $K_{cn}$ (with $c \sim \sqrt{2}/2$ ) satisfy the hypothesis of Theorem 1.1 with $\varepsilon \sim 1/2$ , and thus certify that one cannot hope to find patterns which are more complex than those in Figure 1. Similarly, Theorem 1.1 becomes false if we delete any of the four patterns contained in $\mathcal{F}_t$ .

There are numerous extensions of Theorem 1.1, including multicolour and infinite variants [Reference Bowen, Lamaison and Müyesser1], variants where $K_n$ is replaced by another dense host subgraph [Reference Müyesser and Tait15], and variants where $\varepsilon$ is allowed to depend on $n$ [Reference Caro, Hansberg and Montejano2, Reference Girão and Hancock11, Reference Girão and Narayanan13]. In this paper, we are concerned with the following question, initially raised by Wesley Pegden (personal communication).

Figure 1. The four types of colourings in $\mathcal{F}_t$ . The circles denote cliques of size $t$ , whereas the lines connecting the circles denote complete bipartite graphs. In the first row, one colour class forms a $K_{t,t}$ , whereas on the second row, one colour class forms a $K_t$ .

Question 1.2. Let $\varepsilon \gt 0$ . Suppose that $K_n$ is $2$ -edge-coloured so that each vertex is incident to at least $\varepsilon n$ edges in each colour. Which subgraphs must $K_n$ necessarily contain?

We call $2$ -coloured $K_n$ as in Question 1.2 locally $\varepsilon$ -balanced. Of course, this is a stronger hypothesis on the colouring compared to Theorem 1.1. Hence, any locally $\varepsilon$ -balanced $K_n$ must contain a complete subgraph on $2t$ vertices where one colour forms a $K_{t,t}$ or a $K_t$ , where $t = \Omega _{\varepsilon }(\log n)$ . However, this is not necessarily a complete answer to Question 1.2 as it cannot be the case that in a locally $\varepsilon$ -balanced $K_n$ one colour class consists entirely of a clique. This motivates the following question: does any locally $\varepsilon$ -balanced $K_n$ contain a complete $2t$ -vertex subgraph in which one colour class forms a $K_{t,t}$ ?

The answer turns out to be negative for any value of $\varepsilon \leq 1/4$ and $t\geq 2$ . To see this, consider the following $2$ -colouring of $K_{4k}$ , where each vertex is adjacent to at least $k$ red and blue edges, illustrated in Figure 2 (labelled $P_3$ ). Partition $V(K_{4k})$ into four equal-sized sets as $V_1,V_2,V_3$ and $V_4$ . Colour all edges with both endpoints in $V_1\cup V_4$ red, colour all edges with both endpoints in $V_2\cup V_3$ blue, and colour edges between $V_1$ , $V_3$ , and between $V_2$ , $V_4$ red, and colour the remaining edges (between $V_1$ , $V_2$ and between $V_3$ , $V_4$ ) blue. Denote by $\mathcal{P}_k$ the resulting $2$ -coloured $K_{4k}$ (so the number of vertices is $n=4k$ ). It is easy to see that $\mathcal{P}_k$ contains no complete subgraph with $4$ vertices in which one colour class forms two disjoint cliques of size $2$ each. One can also check that $\mathcal{P}_k$ is locally $1/4$ -balanced.

Figure 2. An illustration of the relevant two-coloured and totally two-coloured graphs.

Perhaps surprisingly, $\mathcal{P}_k$ is an optimal construction in the following sense. For any $\gamma \gt 0$ , a locally $(1/4+\gamma )$ -balanced $K_n$ must contain large complete subgraphs where one colour class forms a complete bipartite graph. Our first result makes this precise, thereby answering Question 1.2 when $\varepsilon \gt 1/4$ .

Theorem 1.3. Let $G$ be a $2$ -coloured locally $(1/4+\varepsilon )$ -balanced $K_n$ for $\varepsilon \gt 0$ , and suppose $n\geq 2^{t \cdot 2^{-C\log (1/\varepsilon )^8}}$ for some absolute constant $C$ . Then, $G$ contains a complete subgraph on $2t$ vertices where one colour class forms a $K_{t,t}$ .

The earlier construction ( $\mathcal{P}_k$ ) shows that Theorem 1.3 does not hold when $1/4+\varepsilon$ is replaced by $1/4$ . Moreover, $n$ has to be exponentially large in $t$ for the conclusion to hold (e.g. by considering a random colouring), but we believe that the dependence of $n$ on $\varepsilon$ should be far from optimal. We discuss this further in Section 5.

We now turn our attention to answering Question 1.2 when $\varepsilon \leq 1/4$ . In light of the earlier construction ( $\mathcal{P}_k$ ), it is not clear at all if anything interesting can be said about this case. One might guess there exists a $2$ -colouring of $K_n$ , say $\mathcal{P}'_k$ , that is locally $1/8$ -balanced, but $\mathcal{P}'_k$ does not contain a complete subgraph isomorphic to $\mathcal{P}_2$ , or a complete graph on $4$ vertices where one colour class forms two disjoint cliques of size $2$ . And perhaps, there exists another colouring which is locally $1/16$ -balanced, which does not contain $\mathcal{P}_2'$ or any of the former patterns. Hence, maybe, the answer to Question 1.2 is a family of patterns $\mathcal{F}_\varepsilon$ which increases with $\varepsilon ^{-1}$ . Indeed, Theorem 1.3 could feasibly be interpreted as evidence towards such a phenomenon. Our next result rules out any such possibility in a strong sense, demonstrating that the answer to Question 1.2 depends only on whether $\varepsilon \leq 1/4$ or not.

Theorem 1.4. Let $G$ be a $2$ -coloured locally $\varepsilon$ -balanced $K_n$ for some $\varepsilon \gt 0$ , and suppose $n \geq 2^{C t/\varepsilon ^{16}}$ for some absolute constant $C$ . Then, $G$ contains a complete subgraph on $2t$ vertices where one colour class forms a $K_{t,t}$ , or a complete subgraph isomorphic to $\mathcal{P}_{t}$ .

In [Reference Bowen, Lamaison and Müyesser1], Theorem 1.1 was generalised to $r$ -edge-colourings of $K_n$ , and we refer the reader to that paper to see what kind of patterns can be guaranteed in the multicolour version of the problem. It is also natural to investigate a locally balanced version of the multicolour problem. The situation here is unexpectedly more difficult, as already for locally $\varepsilon$ -balanced $3$ -colourings there is no straightforward analogue of Theorem 1.4. We formalise this negative statement in Section 4, and obtain some complementary positive results.

Organisation of the paper. In Section 3.2, we introduce a general tool to find patterns (such as those depicted in Figure 3) efficiently in edge-coloured complete graphs. Our main tool is a technique of Nikiforov which uses subgraph count estimates to find large blow-ups of small subgraphs. This is in contrast to many of the related results in this area for which the main tool is the dependent random choice method. In Section 2.2, we compare these two approaches and give an overview of the proofs of Theorem 1.3 and Theorem 1.4. Section 3 contains formal proofs of both of these results. In Section 4, we treat the multicolour version of the problem.

Figure 3. A three-colouring of $K_n$ in which any locally balanced subgraph has at least $6$ vertices, where $6$ is the number of parts. This colouring is locally $(1/6)$ -balanced. Colourings of this type (where two colour classes form a blow-up of an alternating cycle) show that there is no analogue of Theorem 1.4 for more than two colours.

Remark. After the submission of this paper, Theorem 1.3 and Theorem 1.4 have been strengthened by Gir ao and Munhá Correia [Reference Girão and Correia12] to give a dependence between $n$ and $\varepsilon$ which is optimal up to constant factors in the exponent.

2. Preliminaries and proof outline

2.1 Notation

In this subsection, in preparation to give an overview of the proofs, we introduce and recall some notation. An $r$ -edge-coloured (or just an $r$ -coloured) graph is a graph together with a labelled partition of its edge-set into $r$ parts. We view the parts of this partition as being labelled by different colours. We say that one coloured graph $G$ contains another coloured graph $H$ if there exists an injection $\phi \colon V(H)\to V(G)$ such that $(a,b)\in E(H)$ implies that $(\phi (a),\phi (b))\in E(G)$ and $(\phi (a),\phi (b))$ has the same colour as $(a,b)$ .

We say that a coloured graph $G$ is a homogeneous $t$ -blow-up of another coloured graph $H$ if $V(G)$ can be partitioned into $t$ -sized sets $V_1,\cdots, V_{|V(H)|}$ , each $G[V_i]$ is a monochromatic clique (in some colour), and for each $(i,j)\in E(H)$ of colour $c$ , $G[V_i,V_j]$ is a complete bipartite graph where each edge gets colour $c$ .

An $r$ -totally coloured graph is a graph whose vertices as well as its edges are given an $r$ -colouring. A coloured graph $G$ is a $t$ -blow-up of a totally coloured graph $H$ if $G$ is a $t$ -blow-up of $H$ with respect to the edge-colouring of $H$ , and $G[V_i]$ is a monochromatic clique in the same colour as the vertex $i\in H$ .

If $G$ is $2$ -coloured, $\overline{G}$ is used to denote the coloured graph with the two colours interchanged.

We say that an $r$ -coloured $G$ is locally $\varepsilon$ -balanced if each vertex of $G$ is incident to at least $\varepsilon |V(G)|$ edges in each of the $r$ colours. We say that an $r$ -coloured graph $G$ is globally $\varepsilon$ -balanced if each colour class has size at least $\varepsilon \binom{n}{2}$ . Throughout the paper, $\epsilon$ is assumed to be a positive real number.

For the convenience of the reader, in the following paragraph we collect every coloured and totally coloured graph we make reference to throughout the paper. For further clarity, in Figure 2, we provide an illustration of each of these graphs.

Let $P_1$ be the totally coloured $K_2$ with vertices receiving colour red, and the unique edge receiving colour blue. Note that the $t$ -blow-up of $P_1$ is a blue induced $K_{t,t}$ . Let $P_2$ be the totally coloured $K_2$ with one vertex receiving colour red, the other receiving colour blue, and the edge receiving colour red. Let $P_3$ be the totally coloured $K_4$ with edges $(1,2),(2,3), (3,4)$ and vertices $2$ and $3$ coloured blue, and all other edges and vertices coloured red. Note that a $t$ -blow-up of $P_3$ is locally $1/4$ -balanced. Moreover, let $P_{3}^{\circ }$ be the (not totally) coloured graph obtained from $P_3$ by discarding the vertex colours. Let $C_4$ be a $2$ -edge-coloured $K_4$ with the red edges forming a $4$ -cycle. Let $M_1$ be the properly $2$ -edge-coloured $K_{2,2}$ .

With our notation, the aforementioned theorems can be stated as follows.

Theorem 1.1. (Fox-Sudakov, Cutler-Montágh) Suppose $n\geq (1/\varepsilon )^{16t}$ . Then, any globally $\varepsilon$ -balanced $2$ -coloured $K_n$ contains a $t$ -blow-up of one of $P_1$ , $P_2$ , $\overline{P_1}$ , $\overline{P_2}$ .

Theorem 1.2. Suppose $n\geq 2^{t\cdot 2^{-C\log (1/\varepsilon )^8}}$ for a sufficiently large absolute constant $C$ . Then, any locally $(1/4+\varepsilon )$ -balanced $2$ -coloured $K_n$ contains a $t$ -blow-up of $P_1$ or $\overline{P_1}$ .

Theorem 1.3. Suppose $n\geq 2^{C t/\varepsilon ^{16}}$ for a sufficiently large absolute constant $C$ . Then, any locally $\varepsilon$ -balanced $2$ -coloured $K_n$ contains a $t$ -blow-up of $P_1$ , $\overline{P_1}$ or $P_3$ .

Note that $\overline{P_3}$ is not included in the above list as $\overline{P_3}=P_3$ .

2.2 Proof overview

Although our proofs are short, the method is quite different from the other papers in the area. In this section, we aim to motivate our approach and give heuristic explanations for why Theorems 3 and 4 are true, at least qualitatively (i.e. with some finite $n=n(t,\varepsilon )$ ). We begin with a brief discussion of Theorem 1.1 in order to compare the different approaches. It is rather straightforward to obtain a proof of Theorem 1.1 if one is only concerned with obtaining $t$ -blow-ups where $t$ tends to infinity with $n$ . Indeed, applying the well-known Kővari-Sós-Turán Theorem to both red and blue colour classes, we can obtain one red and one blue $K_{s,s}$ , say $T_1$ and $T_2$ , respectively, where $s\sim \log n$ (we can ensure that $T_1$ and $T_2$ are vertex-disjoint). Apply Ramsey’s theorem to the four parts coming from $T_1$ and $T_2$ , and delete all vertices outside of the monochromatic cliques guaranteed by this application. Similarly, for each pair of the $4$ parts, in turn, apply the Kővari-Sós-Turán theorem to the majority colour class in the bipartite graph between the pair of parts to guarantee a monochromatic complete bipartite subgraph, at each iteration reducing the size of the parts logarithmically. This produces a $t$ -blow-up of a totally coloured $K_4$ (where $t\to \infty$ as $n\to \infty$ ) where we do not have precise control over the colouring; however, we know that the colouring is not monochromatic (there exists at least one blue and one red edge). It is easy to see that this implies that the totally coloured $K_4$ must contain one of $P_1$ , $P_2$ , $\overline{P_1}$ , $\overline{P_2}$ , as desired.

In [Reference Fox and Sudakov9], the dependent random choice method (see, e.g. [Reference Fox and Sudakov10]) is employed to obtain optimal bounds for Theorem 1.1, eliminating the need for nested applications of the Theorems of Ramsey and Kővari-Sós-Turán. However, the argument still boils down to finding a blow-up of a totally coloured graph which is not monochromatic, thereby producing a structure which necessarily contains one of the desired patterns. To prove Theorems 1.3 and 1.4, we find blow-ups of totally coloured graphs where each vertex is adjacent to edges of both colours. The argument given in the previous paragraph is too weak to achieve this, since it does not make use of the assumption that our colouring is locally balanced. The dependent random choice is quantitatively much stronger, but does not give any additional structural information.

Hence, we need an argument which will make use of the global structure of the colouring. Specifically, our main tool (Lemma 2.4), a strengthening of a theorem due to Nikiforov [Reference Nikiforov17], reduces the problem to finding certain small subgraphs appearing in $G$ with a positive density. Using Lemma 2.4, the statements of Theorem 1.3 and 1.4 reduce to the following two statements, respectively.

Proposition 2.1. There exists a constant $C_1$ such that the following holds. Any locally $(1/4 + \varepsilon )$ -balanced 2-coloured $K_n$ contains $2^{-C_1\log (1/\varepsilon )^8} n^4$ copies of $C_4$ or $\overline{C_4}$ .

Proposition 2.2. Let $n\geq \varepsilon ^{-100}$ . Any locally $\varepsilon$ -balanced $2$ -coloured $K_n$ contains $\varepsilon ^4n^4/10^5$ copies of $P_{3}^{\circ }, C_4$ or $\overline{C_4}$ .

A natural tool for proving statements such as Proposition 2.1 and 2.2 is the Szemerédi Regularity Lemma and closely related removal lemmas (see, e.g. [Reference Conlon and Fox3]). For the sake of obtaining better bounds and more cogent proofs, we do not use the regularity method. However, the regularity method does provide a shorter proof of a quantitatively weaker version of Proposition 2.1, and thus Theorem 1.3. Indeed, using the Regularity Lemma, it is not hard to show that the vertex set of a $2$ -coloured $K_n$ with a vanishing density of both $C_4$ and $\overline{C}_4$ can essentially (i.e. after recolouring $o(n^2)$ edges), be partitioned into a red and a blue clique. Such a $2$ -coloured $K_n$ can at best be locally $(1/4+o(1))$ -balanced, by an easy optimisation argument (see Proposition 3.5), implying Proposition 2.1.

Proposition 2.2 is, however, more subtle, since even finding a single copy of the desired small subgraphs is a non-obvious extremal problem. To give some intuition on why the statement holds, let us prove an idealised version of it.

Proposition 2.3. Let $(A,B)$ be a $2$ -coloured complete bipartite graph with $|A|,|B|\gt 2$ so that each vertex of $A$ has at least one blue neighbour, and each vertex of $B$ has at least one red neighbour. Then, $(A,B)$ contains a cycle of length $4$ whose edges are alternating red and blue.

Proof. Suppose without loss of generality that $|A|\gt |B|$ . Let $v,w\in A$ . Suppose there exists no alternating red and blue $4$ -cycle. Observe that the blue neighbourhood of $v$ must be contained in that of $w$ , or vice versa, otherwise we immediately obtain an alternating $4$ -cycle. Hence, the collection of blue neighbourhoods of vertices in $A$ forms a chain where the smallest subset has at least one element, say $q\in B$ , by assumption. Hence, $q$ is in the blue neighbourhood of every vertex of $A$ , meaning $q$ has no red neighbours, a contradiction.

To clarify the connection between Proposition 2.3 and Proposition 2.2, notice that completing a colouring of an alternating red-blue 4-cycle to an edge-colouring of $K_4$ yields a $C_4, \overline{C_4}$ or a $P_{3}^{\circ }$ .

Finally, we state our main technical tool, which allows us to deduce Theorems 1.3 and 1.4 from the aforementioned Propositions. Nikiforov [Reference Nikiforov17] showed that any graph with a positive density of $K_\ell$ -copies contains a large complete $\ell$ -partite subgraph. We strengthen this statement to find homogeneous blow-ups in $r$ -coloured graphs. Recall that our definition of a homogeneous blow-up in a coloured graph requires that the parts of the blow-up induce monochromatic cliques, but the colours of the cliques are not specified.

Lemma 2.4. Let $H$ be an $\ell$ -vertex $r$ -coloured graph. Let $G$ be an $n$ -vertex $r$ -coloured graph containing at least $c n^\ell$ copies of $H$ . Then $G$ contains a homogeneous $t$ -blow-up of $H$ with $ t \geq \min \left \{ \frac{c}{2\ell }, \frac{1}{2 r \log r} \right \} ^\ell \log n$ .

Lemma 2.4 is proved in Section 3.2. We remark that the Lemma also gives a short proof of Theorem 1.1 with the stronger hypothesis that $n\geq 2^{100t/\varepsilon }$ . Indeed, an easy counting argument implies that any globally $\varepsilon$ -balanced 2-colouring of $K_n$ contains $\Omega (\varepsilon n^3)$ properly coloured two-edge paths (i.e. $K_{1, 2}$ -copies), so Lemma 2.4 yields a homogeneous $t$ -blow-up of the non-monochromatic edge-colouring of $K_{1,2}$ . A simple case distinction then gives a blow-up of $P_1$ , $P_2$ or one of their complements. A similar argument gives a concise proof (with a weaker dependence between $n$ and $\varepsilon$ ) of Theorem 1.4 from [Reference Bowen, Lamaison and Müyesser1], which is a generalisation of Theorem 1.1 to an arbitrary number of colours, originally proved via nested applications of the dependent random choice method.

3. Proofs for patterns in two-colourings

3.1 Proofs of the main theorems

We now show how the main theorems follow easily from the two propositions on subgraph counts and Lemma 2.4.

Proof of Theorem 1.3. By Proposition 2.1, we may assume (without loss of generality) that $G$ contains at least $2^{-C_1\log (1/\varepsilon )^8} n^4$ copies of $C_4$ . By Lemma 2.4 applied with $c = 2^{-C_1\log (1/\varepsilon )^8}$ , $G$ contains a homogeneous $(2^{-C\log (1/\varepsilon )^8} \log n)$ -blow-up of $C_4$ for some absolute constant $C$ . Note that by assumption on $n$ , $2^{-C\log (1/\varepsilon )^8} \log n \geq t$ . Let $V_1, \ldots, V_4$ be the parts of this blow-up, and recall that $G[V_i]$ are monochromatic cliques.

We claim that $G[V_1 \cup V_2 \cup V_3 \cup V_4]$ contains a $t$ -blow-up of $P_1$ or $\overline{P_1}$ . Assume the opposite. At least one vertex part has to be blue, so assume that $G[V_1]$ is blue. Then $G[V_2]$ and $G[V_4]$ are red, so they form a blow-up of $P_1$ , which is a contradiction.

Proof of Theorem 1.4. Proposition 2.2 implies that $G$ contains $\varepsilon ^4 n^4/10^5$ copies of $C_4$ , $\overline{C_4}$ or $P_{3}^{\circ }$ in $G$ . Let $t = \left (\varepsilon ^4 \cdot 10^{-6} \right )^4 \log n$ , noting that this satisfies the claimed bound on $n(t, \varepsilon )$ . In the cases with many copies of $C_4$ or $\overline{C_4}$ , the above argument from the proof of Theorem 1.3 yields a $t$ -blow-up of $P_1$ or $\overline{P_1}$ . In the latter case, applying Lemma 2.4, we obtain that $G$ contains a homogeneous $(\varepsilon ^{16}10^{-7}\log n)$ -blow-up of $P_{3}^{\circ }$ on the vertex parts $V_1, V_2, V_3$ and $V_4$ . Suppose that this structure does not contain the $t$ -blow-up of a $P_1$ or $\overline{P}_1$ , otherwise we are done. Suppose that $G[V_1]$ is blue. Then $G[V_3]$ and $G[V_4]$ are red, and hence they form a blow-up of $P_1$ , contradiction. Hence $G[V_1]$ is red, and consequently, $G[V_2]$ is blue, so $G[V_4]$ is red, and finally, $G[V_3]$ is blue. This yields a $t$ -blow-up of $P_3$ , as required.

3.2 Finding homogeneous blow-ups of small patterns

In this subsection, we prove Lemma 2.4, a variant of a result due to Nikiforov [Reference Nikiforov17]. The main ingredient is Lemma 3.1, which is about dense $\ell$ -uniform hypergraphs. Before stating and proving Lemma 3.1, we give the following definitions which are central due to the inductive nature of the proof.

Let $\mathcal{H}$ be an $\ell$ -partite $\ell$ -uniform hypergraph $\mathcal{H}$ on parts $V_1, \ldots, V_\ell$ . We usually specify the members of $E({\mathcal{H}})$ as $\ell$ -tuples $(v_1, \ldots v_\ell )$ (where $v_i\in V_i$ ), but we also abuse notation by saying that $(v_1, \ldots, v_\ell )$ contains $v_1$ , or by writing $(v_1, \ldots v_\ell ) = (v_1, \ldots, v_{\ell -1})+v_\ell$ . Let $K_2({\mathcal{H}})$ be the vertex pairs contained in edges of $\mathcal{H}$ . Moreover, we write $\partial{\mathcal{H}}$ for the collection of $(\ell -1)$ -tuples $(v_1, \ldots, v_{\ell -1})$ which are contained in some edge $(v_1, \ldots, v_\ell )$ of $\mathcal{H}$ , with $v_i \in V_i$ for $i \in [\ell ]$ . We emphasise that this notation is not standard since $\partial{\mathcal{H}}$ only contains $(\ell -1)$ -tuples from $V_1 \times \dots \times V_{\ell -1}$ . Given a graph $G$ isomorphic to a $K_{\ell }(m)$ (the complete $\ell$ -partite graph with vertex parts of size $m$ ), we say that $\mathcal{H}$ covers $G$ if $E(G) \subset K_2({\mathcal{H}})$ and there are $m$ disjoint $S \in E({\mathcal{H}})$ with $S \subset V(G)$ (in other words, $\mathcal{H}$ contains a matching of size $m$ on $V(G)$ ).

Lemma 3.1. Let $\mathcal{H}$ be an $\ell$ -partite $\ell$ -uniform hypergraph on parts $V_1, \ldots, V_\ell$ of size $n$ with least $\ell c n^\ell$ edges. Let $\varphi$ be an $r$ -colouring of the complete ( $2$ -uniform) graphs on $V_1, \ldots, V_\ell$ . Then, there are vertex sets $S_1, \ldots, S_\ell$ with $|S_i| \geq \left ( \min \{\frac c2, \frac{1}{2r \log r}\} \right )^\ell \log n$ such that $\varphi$ is constant on each $S_i$ , and $\mathcal{H}$ covers the complete $\ell$ -partite graph on $S_1, \ldots, S_\ell$ .

To prove Lemma 3.1, we need the following lemma for finding unbalanced complete bipartite graphs, which can be proved using the classical double counting argument of Kővari, Sós and Turán [Reference Kővari, Sós and Turán14].

Lemma 3.2. (Lemma 2 from [Reference Nikiforov17]). Let $F$ be a bipartite graph with parts $A$ and $B$ . Let $|A| = m$ , $|B| = n$ and $c, \alpha \in (0, 1/2)$ . If $\alpha \log n \leq \frac{cm}{2} + 1$ and $e(F) \geq cmn$ , then $F$ contains a complete bipartite graph with parts $S \subset A$ and $T \subset B$ of size $|S| = \alpha \log n$ and $|T| \gt n^{1-\alpha/c}$ .

We also need a standard upper bound on the $r$ -colour Ramsey number due to Erdős and Szekeres [Reference Erdős and Szekeres6]. Namely, any $r$ -colouring of $K_n$ contains a monochromatic clique on $\frac{\log n}{r \log r}$ vertices. We emphasise that we are mostly concerned with the case $r =2$ . We can now proceed with the proof.

Proof of Lemma 3.1. Assume that $c \leq (r \log r)^{-1}$ , since the statement for larger values of $c$ then follows. We prove the statement by induction on $\ell$ . The case $\ell =1$ follows from Ramsey’s Theorem – a colouring of $K_{cn}$ contains a monochromatic clique of size $ (r \log r)^{-1} \log (cn) \geq (2 r \log r)^{-1} \log (n) \geq \frac c2 \log n$ . Assume that the statement holds for $\ell -1$ , and let $\mathcal{H}$ be as in the statement.

For a hypergraph $\mathcal{L}$ and $R= (v_1, \ldots, v_{\ell -1})$ , we write $d_{\mathcal{L}}(R)$ for the number of edges of $\mathcal{L}$ containing $R$ . A standard deletion argument shows that there is $\mathcal{L} \subset{\mathcal{H}}$ with $|\mathcal{L}| \geq (\ell -1)cn^\ell$ such that

(1) \begin{equation} \text{for any } R \in V_1 \times \dots \times V_{\ell -1}, \quad d_{\mathcal{L}}(R) \geq cn \,\,\text{or}\,\, d_{\mathcal{L}}(R)=0; \end{equation}

indeed, one can iteratively remove all edges containing $R$ for any $R$ violating (1), removing at most $cn \cdot n^{\ell -1}$ edges in total.

We have $|\partial \mathcal{L}| \geq |\mathcal{L}|/ n \geq (\ell -1) cn^{\ell -1}$ , since each $R \in \partial \mathcal{L}$ is contained in at most $n$ edges of $\mathcal{L}$ . Applying the induction hypothesis to $\partial \mathcal{L}$ , we obtain sets $U_1, \ldots U_{\ell -1}\subseteq V_1,\ldots, V_{\ell -1}$ with $|U_i| = m = \left (\frac c2 \right )^{\ell -1} \log n$ such that $\partial \mathcal{L}$ covers the complete $(\ell -1)$ -partite graph on $U_1 \cup \ldots \cup U_{\ell -1}$ , and $\varphi [U_i]$ is constant for each $i\in [\ell -1]$ .

Let $\mathcal{A}$ be a set of $m$ disjoint $(\ell -1)$ -tuples in $\partial \mathcal{L}$ , which exists by the definition of a covering. The graph structure of $K_2(\mathcal{L})$ will now be used by noticing that it suffices to find a large subset of vertices $T \subset V_\ell$ such that $R+v_\ell \in \mathcal{L}$ for all $R \in \mathcal{A}$ and $v_\ell \in T$ . To this end, consider the bipartite graph $F$ with parts $\mathcal{A}$ and $V_\ell$ such that $(R, v_\ell ) \in F$ whenever $R+ v_\ell$ lies in $\mathcal{L}$ . Since $d_{\mathcal{L}}(R) \gt cn$ for all $R \in \mathcal{A} \subset \partial \mathcal{L}$ , we have that $e(F) \geq cmn$ .

We can apply Lemma 3.2 to $F$ with $\alpha =(c/2)^\ell$ . We also set $s\;:\!=\; \left (\frac c2 \right )^\ell \log n =\alpha \log n \leq \frac c2 m + 1$ and $t\;:\!=\; n^{1-2^{-\ell }c^{\ell -1}} = n^{1-\alpha/ c}$ . It follows that $F$ contains a complete bipartite graph with parts $\mathcal{A}'$ and $T$ such that $|\mathcal{A}'| = s$ and $|T| = t$ . Let $G = K_2(\mathcal{L})$ . Let $S_1, \ldots, S_{\ell -1}$ be the vertex sets of the edges of $\mathcal{A}'$ , and recall that they induce a $K_{\ell -1}(s)$ in $ G$ since $S_i \subset U_i$ . Moreover, we claim that $w v_\ell$ is in $G$ for any $v_\ell \in T$ and $w \in S_i$ with $i \in [\ell -1]$ . This follows from the fact that there is an $R \in \mathcal{A}'$ containing $w$ , and $R+v_\ell \in \mathcal{L}$ .

Finally, by Ramsey’s theorem, there is a subset $S_\ell \subset T$ with $|S_\ell | = s = \left (\frac c2 \right )^\ell \log n \leq \frac{1}{r\log r} \log |T|$ on which $\varphi$ is constant. Recalling that $\varphi [S_i]$ is constant for $i \in [\ell -1]$ by induction hypothesis, we obtain our desired sets $S_1, \ldots, S_\ell$ . To verify that $\mathcal{L}$ covers $S_1, \ldots, S_\ell$ , note that the edges of $\mathcal{A}'$ with the vertices of $S_\ell$ (in an arbitrary order) form a matching of size $s$ in $\mathcal{L}$ .

We now give the proof of Lemma 2.4.

Proof that Lemma 2.4 follows from Lemma 3.1. Let $V_1, \ldots, V_\ell$ be a uniformly random partition of the vertex set of $G$ with parts of size at least $n' = \lfloor \frac{n}{\ell } \rfloor$ , and associate $V_1, \ldots, V_{\ell }$ to the vertices of $v_1,v_2,\ldots, v_\ell$ of $H$ . We say that a copy of $H$ in $G$ is canonical with respect to this partition if $v_i$ is embedded to $V_i$ for each $i\in [\ell ]$ . We claim that a copy of $H$ in $G$ is canonical with probability at least $(n'/ n)^{\ell }$ . Indeed, each vertex $v_i$ of this $H$ -copy is placed into $V_i$ with probability at least $\frac{n'}{n}$ . Moreover, the events that the vertices of this $H$ -copy are placed into the corresponding parts are positively correlated, which implies the lower bound $(n'/ n)^{\ell }$ .

Hence, using linearity of expectation, we may assume that the number of $H$ -copies respecting our partition is at least $\left (\frac{n'}{n} \right )^\ell cn^{\ell }= cn'^\ell$ . Let $\mathcal{H}$ be the hypergraph corresponding to those copies. We may apply Lemma 3.1 with $c' = \frac c\ell$ , to obtain the desired sets $S_1, \ldots S_\ell$ with $|S_i| =\min \left \{ \frac{c}{2\ell }, \frac{1}{2 r \log r} \right \} ^\ell \log n$ .

3.3 Small subgraphs in locally balanced colourings

We now prove Proposition 2.1, which follows immediately from Lemma 3.4 and Proposition 3.5. As discussed above, in Lemma 3.4 we actually describe the structure of colourings with a vanishing density of $C_4$ and $\overline{C_4}$ . We call a $2$ -coloured $K_n$ split if its vertex set can be partitioned into a red clique and a blue clique. We call two $2$ -coloured $K_n$ $\delta$ -close if the first can be made isomorphic to the second after flipping the colours of at most $\delta n^2$ many edges. The following result can be thought of as a substitute for the regularity method which is sufficient for our purposes.

Lemma 3.3. (Fox-Sudakov [Reference Fox and Sudakov8] (Theorem 4.4)). There exists an absolute constant $c$ such that for each $\varepsilon \in (0,1)$ and graph $H$ on $k$ vertices, there are constants $\kappa \;:\!=\;(\varepsilon/4)^k2^{-c(k\log (1/\varepsilon ))^2}$ and $C=4/(\varepsilon 2^{-ck(\log (1/\varepsilon ))^2})$ such the following holds. For any $n$ -vertex graph $G$ with fewer than $\kappa n^k$ induced copies of $H$ , there is an equitable partition of $V(G)$ into at most $C$ parts such that each part induces a subgraph of density at most $\varepsilon$ or at least $1-\varepsilon$ .

We now use the above lemma to show that a $2$ -coloured graph with a vanishing density of $C_4$ and $\overline{C_4}$ is $o(1)$ -close to being split.

Lemma 3.4. There exists an absolute constant $C_2$ so that the following holds for any $n$ and $\delta$ . Let $G$ be a $2$ -coloured $K_n$ . Then, at least one of the following is true.

  1. 1. $G$ contains at least $2^{-C_2\log (1/\delta )^8} n^4$ many distinct copies of $C_4$ or $\overline{C_4}$

  2. 2. $G$ is $\delta$ -close to being split.

Proof. Suppose that $(1)$ does not hold. Then, by Lemma 3.3 applied with $\delta ^{5}$ in place of $\varepsilon$ , we have that there is an equitable partition of $G$ into at most

\begin{equation*}C=4/(\delta ^5 2^{-4c(\log (1/\delta ^5))^2})\end{equation*}

parts, each of which has either red or blue density above $1-\delta ^5$ . Let us refer to the parts with high red density as red parts, and label them by $V_1,\ldots, V_\ell$ .

Proof. We claim that $G[V_1 \cup \dots \cup V_\ell ]$ contains at most $\delta n^2/2$ blue edges. If $\ell = 1$ , this is trivial, and otherwise it follows from the following claim.

Claim 1. Let $V_i$ and $V_j$ be two parts with density $\geq 1-\delta ^5$ in red. Then the bipartite graph $G[V_i, V_j]$ has red density at least $1-\delta$ .

Suppose that the blue density between $V_i$ and $V_j$ is at least $\delta$ . It follows that the blue subgraph of $G[V_i\cup V_j]$ must contain at least $2^{-10} \delta ^4 (n/C)^4$ copies of a cycle on $4$ vertices (see, for example, Theorem 1.9(iv) from [Reference Nagy16]). At most $2\delta ^5 (n/C)^4$ such $4$ -cycles can contain a blue edge from $G[V_i]$ or $G[V_j]$ , by the density assumption. The remaining $4$ -cycles must correspond to a copy of $\overline{C_4}$ in $G[V_i\cup V_j]$ . Note that for some absolute constant $C_2$ , we have that $\delta ^4 (n/C)^4\geq 2^{-C_2\log (1/\delta )^8} n^4$ , so as we assumed that $(1)$ does not hold, we conclude that $G[V_i, V_j]$ has red density at least $1-\delta$ .

The same argument implies that the union of blue parts contains at most $\delta n^2/ 2$ blue edges. Hence, combining the red parts as well as the blue parts gives a partition certifying that $G$ is $\delta$ -close to a split graph, as required.

We now show that graphs which are $\delta$ -close to being split cannot be $(1/4+2\delta )$ -balanced. When combined with Lemma 3.4, this immediately implies Proposition 2.1.

Proposition 3.5. If a $2$ -coloured $K_n$ is $\delta$ -close to being split, then it has a vertex with at most $(1/4+3\delta )n$ red or at most $(1/4+3\delta )n$ blue neighbours.

Proof. Assume for the sake of a contradiction that $G$ is a $2$ -coloured $K_n$ in which all vertices have more than $(1/4+3\delta )n$ red and more than $(1/4+3\delta )n$ blue neighbours. Consider a split graph $G'$ which is $\delta$ -close to $G$ . The vertex set of $G'$ is the union of a red clique $X$ and a blue clique $Y$ . In $G$ , the sum of the blue degrees of the vertices in $X$ is $\gt (1/4+3\delta )n|X|$ . Since $X$ contains at most $\delta n^2$ blue edges by the $\delta$ -closeness assumption between $G$ and $G'$ , the edges inside $X$ contribute at most $2\delta n^2$ to the previous sum. This implies that in $G$ , between $X$ and $Y$ , there are at least $(1/4+\delta )n|X|$ blue edges. Similarly, we can derive that between $X$ and $Y$ , there are at least $(1/4+\delta )n|Y|$ red edges, giving in total $(1/4+\delta )n^2\gt n^2/4$ edges between two disjoint subsets of $G$ . This is a contradiction.

Now we move on to Proposition 2.2. Recall that $M_1$ denotes a properly $2$ -edge-coloured $K_{2,2}$ . The following lemma is a robust version of Proposition 2.3. For a graph $G$ , let $\delta _G(S)$ denote the minimum degree (in $G$ ) of a vertex in $S \subset V(G)$ .

Lemma 3.6. Let $\varepsilon \gt 0$ , and consider a two-colouring $R \cup B$ of $K_{n,n}$ with vertex parts $X, Y$ of order $n$ such that $\delta _R(X), \delta _B(Y)\geq \varepsilon n$ . Then, this two-colouring of $K_{n,n}$ contains at least $\varepsilon ^4 n^4/2000$ many distinct copies of $M_1$ .

Proof. Let $A$ be the set of vertices in $X$ contained in at least $\varepsilon ^3 n^3/500$ copies of $M_1$ . We will show that $| A | \geq \frac{\varepsilon n }{2}$ . This implies the lemma, since the number of copies of $M_1$ is at least $|A|\varepsilon ^3 n^3/ 1000$ .

Assume that $|A | \lt \frac{\varepsilon n }{2}$ , and let $A' = X \setminus A$ . Note that $\delta _R(A'), \delta _B(Y)\geq \varepsilon n/2$ by the assumption on the size of $A'$ . Let $v$ be a vertex of $A'$ with minimum red degree, and let $S\subseteq Y$ be the red neighbourhood of $v$ . In $A'\setminus \{v\}\times S$ , there are at least $\varepsilon n^2/3$ blue edges. It is well-known that every graph with average degree $\mu$ contains a subgraph with minimum degree $\mu/2$ (see [Reference Diestel5], Proposition 1.2.2). So, $A'\setminus \{v\}\times S$ has a subgraph $(C,D)$ with minimum blue degree at least $\varepsilon n/6$ (in particular, $|C|, |D|\geq \varepsilon n/6$ ). Observe now that for each element $d$ of $D$ , each blue neighbour of $d$ in $C$ , say $c$ , and each red neighbour of $c$ in $Y\setminus S$ , say $b$ , $\{v,d,c,b\}$ induce a copy of $M_1$ . This is because $(v,b)$ must be blue by the assumption that $b\notin S$ . There are at least $|D|\varepsilon n/ 6$ choices for such $d$ and $c$ , and we claim that any $c \in C$ has at least $\varepsilon n/ 6$ red neighbours in $Y \setminus S$ , all of which can play the role of $b$ . To see this, note that by minimality of $v$ , $c$ must have at least $|S|$ red neighbours in $Y$ , and that at most $|S|-\varepsilon n/6$ of these neighbours are contained in $S$ (since $c$ has at least $\varepsilon n/6$ blue neighbours in $D \subset S$ ). Hence, we can find at least $(\varepsilon/6)^3n^3 \gt \varepsilon ^3 n^3/500$ distinct triples $(d,c,b)$ giving rise to distinct $M_1$ containing $v$ . This contradicts the definition of $A$ , so we conclude that $|A| \geq \varepsilon n/2$ .

Proposition 2.2 follows easily from the previous result.

Proof of Proposition 2.2. Let $G$ be locally $\varepsilon$ -balanced 2-coloured $K_n$ . By assigning each vertex to a set $X$ or $Y$ uniformly at random, we can find a bipartite subgraph $G' = (X, Y)$ of $G$ which satisfies the hypotheses of Lemma 3.6 with $n_{(3.6)}\;:\!=\;0.49n$ and $\varepsilon _{(3.6)}\;:\!=\;0.99 \varepsilon$ (Chernoff’s bound is sufficient here, using the assumption $n\geq (1/\varepsilon )^{100}$ ). It follows by Lemma 3.6 that $G$ contains $\varepsilon ^4 n^4/10^5$ many distinct copies of $M_1$ . Note that each copy of $M_1$ yields a copy of $P_{3}^{\circ }$ , $C_4$ or $\overline{C_4}$ , depending on the colour of the remaining two edges spanned by $V(M_1)$ . This implies the proposition.

4. Multiple colours

In this section, we investigate the $r$ -colour variant of Question 1.2. To allow for a more precise discussion, we give the following two definitions. Given a totally coloured graph $H$ , the $t$ -blow-up of $H$ is denoted by $H[t]$ . A totally $r$ -coloured graph $H$ is called unibalanced if each vertex of $H[2]$ is incident to an edge in each of the $r$ colours.Footnote 1 For instance, the patterns $P_1$ and $P_3$ are unibalanced, but $P_2$ is not. Observe that for a totally coloured graph $H$ , $H[t]$ is locally $\varepsilon$ -balanced for some value of $\varepsilon \gt 0$ if and only if $H$ is unibalanced. We call a family $\mathcal{F}$ of $r$ -colourings of $K_n$ locally $(r,\varepsilon )$ -unavoidable if every locally $\varepsilon$ -balanced colouring of $K_n$ where $n$ is sufficiently large contains a copy of some $F\in \mathcal{F}$ .

Question 4.1. Suppose $K_n$ is given a locally $\varepsilon$ -balanced $r$ -edge-colouring. Which subgraphs must $K_n$ necessarily contain?

Obviously, colourings as in Question 4.1 are globally $\varepsilon$ -balanced as well. In [Reference Bowen, Lamaison and Müyesser1], a multicolour version of Theorem 1.1 is provided (see Theorem 4). This result guarantees, just using a global balancedness assumption, the existence of a rich family of patterns, say $\mathcal{F}^{(r)}$ , where each pattern in the family uses all $r$ colours (see Figure 1 in [Reference Bowen, Lamaison and Müyesser1] for a depiction of patterns guaranteed when $r=3$ ). In particular, $\mathcal{F}^{(r)}$ is locally $(r,\varepsilon )$ -unavoidable for every $\varepsilon \gt 0$ . Yet, $\mathcal{F}^{(r)}$ does not give a satisfying answer to Question 1.2, for the same reason the family $\mathcal{F}_t$ (see Figure 1) does not give a satisfying answer to Question 1.2. That is, elements of $\mathcal{F}^{(r)}$ are not locally balanced, leaving open the possibility that there exists either a smaller (as in Theorem 1.3) or more complex (as in Theorem 1.4) family of unavoidable patterns. On the other hand, as in the two-colour case, any $(r,\varepsilon )$ -unavoidable family $\mathcal{F}$ consisting of blow-ups of a finite family of unibalanced totally coloured graphs $\mathcal{F}'$ (assuming that no member of $\mathcal{F}'$ contains another member) would give a structurally optimal answer to Question 1.2. Indeed, members of such $\mathcal{F}$ would be themselves locally $\varepsilon$ -balanced for some $\varepsilon \gt 0$ , making it impossible for a smaller, or more complex family of $(r,\varepsilon )$ -unavoidable graphs to exist (for $\varepsilon$ sufficiently small).

We can now explain why already for $r\geq 3$ , the problem is rather different. A consequence of Theorem 1.4 is that for any $\varepsilon \gt 0$ and $t\geq 1$ , the family $\{P_1[t],\bar{P_1}[t], P_3[t]\}$ is $(2,\varepsilon )$ -unavoidable. For $r= 3$ , if $\mathcal{F}$ is a finite family consisting of unibalanced totally coloured graphs whose blow-ups are $(3,\varepsilon )$ -unavoidable, then the following proposition shows that $|\mathcal{F}|$ has to have size at least $1/\varepsilon$ .

Proposition 4.2. There exists a locally $\varepsilon$ -balanced $3$ -colouring of $K_n$ in which any unibalanced subgraph has at least $\lfloor \varepsilon ^{-1} \rfloor -1$ vertices.

Proof. Partition the vertex set into parts $V_1, \ldots, V_\ell$ of order at least $\varepsilon n$ , where $\ell \geq \lfloor \varepsilon ^{-1} \rfloor -1$ is an even number. Colour the bipartite graphs between $V_i$ and $V_{i+1}$ red and blue alternatingly (with indices modulo $\ell$ ). Colour the remaining edges green. For an illustration of the case when $\ell =6$ , see Figure 3. This colouring is locally $\varepsilon$ -balanced and any non-empty unibalanced subgraph of this colouring must contain a vertex from each of $V_1, \ldots, V_\ell$ , as required.

Proposition 4.2 implies that there can be no straightforward generalisation of Theorem 1.4 for more than two colours. That is, there is no single finite family of unibalanced totally coloured (with $r$ colours) graphs whose blow-ups are $(r,\varepsilon )$ -unavoidable for every $\varepsilon \gt 0$ . However, we can still prove a version of Theorem 1.4, with the caveat that the size of the family of unavoidable patterns depends on $\varepsilon$ .

Theorem 4.3. Given $\varepsilon \gt 0$ , an integer $r\geq 2$ , and $C = \frac{80}{\varepsilon } \log \frac 1 \varepsilon$ , there is a constant $\alpha$ such that the following holds for sufficiently large $n$ . Any locally $\varepsilon$ -balanced $r$ -colouring of an $n$ -vertex complete graph contains a homogeneous $\alpha \log n$ -blow-up of some unibalanced graph on at most $C$ vertices.

Proof. Let $\varepsilon \gg \eta \gg \alpha \gg 1/n$ . We have the following claim.

Claim 2. There exists $k \leq C$ such that there are at least $\frac 14 \binom nk$ vertex subsets $S$ of order $k$ inducing a unibalanced $r$ -coloured subgraph.

Proof. Denote the family of subsets $S \subset [n]$ which induce a unibalanced subgraph by $\mathcal{U}$ . Let $S$ be a random set of vertices where each vertex is sampled independently with probability $\frac{\zeta }{n}$ , with $\zeta = \frac{20}{\varepsilon } \left (\log r+ \log \frac{1}{\varepsilon } \right ) \leq \frac C2$ . We will show that the probability that $S \notin \mathcal{U}$ is at most $\frac 12$ .

For $v \in V(G)$ , let $A_i(v)$ be the event that there is a vertex $u \in S$ such that $uv$ has colour $i$ (note that this event does not depend on whether $v$ is in $S$ ), and let $A(v) = \bigcap _{i \in [r]} A_i(v)$ .

Since $A_i(v)$ are mutually independent for $i \in [r]$ , we have

\begin{equation*}\mathbb {P} \left [ A(v) \right ] = \prod _{i \in [r]} \mathbb {P} \left [ A_i(v) \right ].\end{equation*}

Moreover, by the locally $\varepsilon$ -balancedness assumption, we have that $\mathbb{P} \left [ A_i(v) \right ] \geq 1- \left ( 1- \frac{\zeta }{n}\right )^{\varepsilon n} \geq 1- e^{-\zeta \varepsilon/2}$ for $n$ sufficiently large, so

\begin{equation*}\mathbb {P} \left [ A(v) \right ] \geq 1- re^{-\zeta \varepsilon/2}.\end{equation*}

Since $A(v)$ and $v \in S$ are independent events, we have, for any $v \in [n]$ ,

\begin{equation*}\mathbb {P} \left [ \overline {A(v)} \land v \in S \right ] \leq \frac {\zeta }{n}\cdot re^{-\zeta \varepsilon/2}\end{equation*}

Denoting the random variable counting the vertices $v \in S$ for which $A(v)$ does not occur by $X$ and substituting for $\zeta$ , we have

\begin{align*}{\mathbb{E} \left [{X} \right ]} &\leq \zeta r e^{-\zeta \varepsilon/2} \leq \frac{20}{\varepsilon }\left ( \log r + \log \frac{1}{\varepsilon } \right ) r e^{-10 \log r - 10\log \frac{1}{\varepsilon }} \\[5pt] &\leq 40r^2 \varepsilon ^{-2}\cdot r^{-10}\varepsilon ^{10} \lt 40\left (\varepsilon r^{-1} \right )^{8} \lt 40\cdot 4^{-8} \lt \frac 12. \end{align*}

Note that in the fifth inequality, we used that $\varepsilon \leq 1/2$ and $r\geq 2$ . Clearly, $S\notin \mathcal{U}$ only if $X\geq 1$ . By Markov’s inequality, the probability that $X \geq 1$ is at most $1/2$ , so $\mathbb{P} \left [ S \notin \mathcal{U} \right ] \leq \frac 12$ , as claimed.

To complete the proof of the claim, assume that

(2) \begin{equation} \left | \mathcal{U} \cap \binom{[n]}{k} \right | \leq \frac 14 \binom nk \quad\text{for all}\quad k \leq C. \end{equation}

It follows that

\begin{equation*} \mathbb {P} \left [ S \in \mathcal {U} \right ] \leq \sum _{k=0}^{C} \mathbb {P} \left [ S \in \mathcal U \;\middle |\; |S| = k \right ] + \mathbb {P} \left [ |S| \gt C \right ] \leq \sum _{k=0}^{C} \frac 14 \cdot \mathbb {P} \left [ |S| = k \right ] + \frac 18 \leq \frac 38, \end{equation*}

where the second inequality follows from (2) and the Chernoff bound. We reached a contradiction, completing the proof of the Claim.

Hence, for some $k$ -vertex unibalanced graph $H$ , $G$ contains at least $\frac 14 r^{-C^2} \binom nk$ copies of $H$ ; to see this, note that there are at most $r^{C^2}$ options for $H$ . Applying Lemma 2.4, we obtain a homogeneous $\alpha \log n$ -blow-up of $H$ , as required.

5. Concluding remarks

Asymptotics. It remains an interesting open problem to improve the quantitative estimates from Theorems 1.3 and 1.4. There is more room for improvement in Theorem 1.3 compared to Theorem 1.4, but we believe both estimates should be quite far away from the truth. In particular, we don’t see an inherent reason why the asymptotics of the locally balanced Ramsey problem should be different from the globally balanced Ramsey problem. That is, we believe that there should be an absolute constant $C$ so that when $n\geq (1/\varepsilon )^{Ct}$ , the conclusions of Theorems 1.3 and 1.4 hold. Such a bound would be of the same order of magnitude as the bound from Theorem 1.1. This bound would also be tight up to the value of $C$ , as can be justified with a simple probabilistic construction.

The main obstacle to proving a bound of this form comes from our reliance on Lemma 2.4. Fox, Luo, and Wigderson [Reference Fox, Luo and Wigderson7] have recently combined the method of Nikiforov with ideas from graph regularity to obtain better estimates for a version of Lemma 2.4 where the blow-up guaranteed is not necessarily homogeneous. Their ideas could quite possibly be modified to guarantee homogeneous blow-ups, but the resulting bound would still be rather far from being able to prove optimal bounds for Theorems 1.3 and 1.4.

Remark. While this paper was under revision, Girão and Munhá Correia [Reference Girão and Correia12] have addressed the above problem.

The extremal aspect. A fruitful direction of research in the globally balanced version of the problem has been finding patterns in globally $\varepsilon$ -balanced $K_n$ where $\varepsilon$ is a function of $n$ . This seems to be an intriguing direction in the locally balanced setting as well, especially in the setting of Theorem 1.4. Namely, we raise the following problem. Let $t\geq 1$ be some integer. What is the smallest function $\varepsilon \;:\!=\;\varepsilon (n,t)$ as $n\to \infty$ such that any locally $\varepsilon$ -balanced $2$ -coloured $K_n$ contains a $t$ -blow-up of $P_1$ , $\overline{P_1}$ or $P_3$ ? It already seems like an interesting challenge to prove $\varepsilon \leq n^{C/t^2}$ for some absolute constant $C$ .

Acknowledgements

We are grateful to Kyriakos Katsamaktsis for stimulating discussions at the early stages of this project, especially for the formulation of Lemma 3.6, and to Shoham Letzter for helpful comments on the manuscript. We would also like to thank the anonymous referee for their careful reading and helpful comments.

Footnotes

Research supported by the European Union’s Horizon 2020 research and innovation programme [MSCA GA No 101038085].

1 In other words, $H$ is unibalanced if every vertex $v$ of $H$ is incident to each of the available $r$ colours (the value of $r$ will be clear from context), where a vertex $v$ is also considered incident to $c$ if it is coloured $c$ .

References

Bowen, M., Lamaison, A. and Müyesser, A. (2020) Finding unavoidable colorful patterns in multicolored graphs. Electron. J. Comb. 27(4) P4.4.Google Scholar
Caro, Y., Hansberg, A. and Montejano, A. (2021) Unavoidable chromatic patterns in 2-colorings of the complete graph. J. Graph Theory 97(1) 123147.10.1002/jgt.22645CrossRefGoogle Scholar
Conlon, D. and Fox, J. (2013) Graph removal lemmas. In Surveys in Combinatorics 2013, Vol. 409 of London Mathematical Society Lecture Note Series, Cambridge University Press, pp. 149.Google Scholar
Cutler, J. and Montágh, B. (2008) Unavoidable subgraphs of colored graphs. Discrete Math. 308(19) 43964413.10.1016/j.disc.2007.08.102CrossRefGoogle Scholar
Diestel, R. (2012) Graph Theory: Springer Graduate Text, Vol. 173, Reinhard Diestel.Google Scholar
Erdős, P. and Szekeres, G. (1935) A combinatorial problem in geometry. Compositio Math. 2 463470.Google Scholar
Fox, J., Luo, S. and Wigderson, Y. (2021) Extremal and Ramsey results on graph blowups. J. Comb. 12(1) 115.Google Scholar
Fox, J. and Sudakov, B. (2008) Induced Ramsey-type theorems. Adv. Math. 219(6) 17711800.10.1016/j.aim.2008.07.009CrossRefGoogle Scholar
Fox, J. and Sudakov, B. (2008) Unavoidable patterns. J. Combin. Theory Ser. A 115(8) 15611569.10.1016/j.jcta.2008.04.003CrossRefGoogle Scholar
Fox, J. and Sudakov, B. (2011) Dependent random choice. Random Struct. Algorithms 38(1-2) 6899.10.1002/rsa.20344CrossRefGoogle Scholar
Girão, A. and Hancock, R. (2022) Two Ramsey problems in blowups of graphs. arXiv preprint arXiv: 2205.12826 .Google Scholar
Girão, A. and Correia, D. M. (2022) A note on unavoidable patterns in locally dense colourings. arXiv preprint arXiv: 2211.01862 .Google Scholar
Girão, A. and Narayanan, B. (2022) Turán theorems for unavoidable patterns. Math. Proc. Cambridge Philos. Soc. 172(2) 423442.10.1017/S030500412100027XCrossRefGoogle Scholar
Kővari, T., Sós, V. and Turán, P. (1954) On a problem of K. Zarankiewicz. Colloq. Math. 3(1) 5057.10.4064/cm-3-1-50-57CrossRefGoogle Scholar
Müyesser, A. and Tait, M. (2022) Turán-and Ramsey-type results for unavoidable subgraphs. J. Graph Theory 101(4) 597622.10.1002/jgt.22842CrossRefGoogle Scholar
Nagy, Z. L. (2019) Supersaturation of $C_4$ : from Zarankiewicz towards Erdős-Simonovits-Sidorenko. Eur. J. Comb. 75 1931.10.1016/j.ejc.2018.07.015CrossRefGoogle Scholar
Nikiforov, V. (2008) Graphs with many $r$ -cliques have large complete $r$ -partite subgraphs. Bull. Lond. Math. Soc. 40(1) 2325.10.1112/blms/bdm093CrossRefGoogle Scholar
Figure 0

Figure 1. The four types of colourings in $\mathcal{F}_t$. The circles denote cliques of size $t$, whereas the lines connecting the circles denote complete bipartite graphs. In the first row, one colour class forms a $K_{t,t}$, whereas on the second row, one colour class forms a $K_t$.

Figure 1

Figure 2. An illustration of the relevant two-coloured and totally two-coloured graphs.

Figure 2

Figure 3. A three-colouring of $K_n$ in which any locally balanced subgraph has at least $6$ vertices, where $6$ is the number of parts. This colouring is locally $(1/6)$-balanced. Colourings of this type (where two colour classes form a blow-up of an alternating cycle) show that there is no analogue of Theorem 1.4 for more than two colours.