Minimum Degree Threshold for $H$-factors with High Discrepancy
Domagoj Brada\v{c}, Micha Christoph, Lior Gishboliner

TL;DR
This paper determines the minimum degree threshold needed to guarantee the existence of an $H$-factor with high discrepancy in any 2-edge-colored graph, extending previous results from cliques to all graphs.
Contribution
It fully resolves the problem of finding degree thresholds for high discrepancy $H$-factors for all graphs $H$, generalizing prior work on cliques.
Findings
Established the exact minimum degree threshold for high discrepancy $H$-factors for all graphs.
Extended the understanding of $H$-factor existence conditions in 2-edge-colored graphs.
Provided a complete solution to a problem posed by Balogh et al. regarding high discrepancy factors.
Abstract
Given a graph , a perfect -factor in a graph is a collection of vertex-disjoint copies of spanning . K\"uhn and Osthus showed that the minimum degree threshold for a graph to contain a perfect -factor is either given by or by depending on certain natural divisibility considerations. Given a graph of order , a -edge-coloring of and a subgraph of , we say that has high discrepancy if it contains significantly (linear in ) more edges of one color than the other. Balogh, Csaba, Pluh\'ar and Treglown asked for the minimum degree threshold guaranteeing that every 2-edge-coloring of has an -factor with high discrepancy and they settled the case where is a clique. Here we completely resolve this question by determining the minimum degree threshold for high discrepancy of -factors for every graph…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMathematical Approximation and Integration · Limits and Structures in Graph Theory · Digital Image Processing Techniques
Minimum Degree Threshold for -factors with High Discrepancy
Domagoj Bradač
Micha Christoph
Lior Gishboliner
(February 2023)
Abstract
Given a graph , a perfect -factor in a graph is a collection of vertex-disjoint copies of spanning . Kühn and Osthus showed that the minimum degree threshold for a graph to contain a perfect -factor is either given by or by depending on certain natural divisibility considerations. Given a graph of order , a -edge-coloring of and a subgraph of , we say that has high discrepancy if it contains significantly (linear in ) more edges of one color than the other. Balogh, Csaba, Pluhár and Treglown asked for the minimum degree threshold guaranteeing that every 2-edge-coloring of has an -factor with high discrepancy and they settled the case where is a clique. Here we completely resolve this question by determining the minimum degree threshold for high discrepancy of -factors for every graph .
1 Introduction
Combinatorial discrepancy concerns itself with problems of the following form: Given a ground set and a family of subsets of , does there exist a -coloring (or -coloring) of such that each set in contains roughly the same number of elements from each of the colors? The theory studies conditions guaranteeing that such a coloring does or does not exist. We refer the reader to [19, Chapter 4] for an overview. In recent years there has been considerable interest in discrepancy-type problems on graphs. Here, is the set of edges of a graph , and is a family of subgraphs of (e.g. Hamilton cycles, perfect matching, clique-factors). Thus, the goal is to find conditions on which guarantee that in every 2-coloring of the edges of , there exists a subgraph of a certain type whose coloring is unbalanced, namely one color appears significantly more than the other. One of the first investigations of this type is by Erdős, Füredi, Loebl and Sós [8], who studied the discrepancy of bounded-degree spanning trees in -colorings of the complete graph. In recent years the subject was revived and there are many new works: subgraph discrepancy problems have been studied for Hamilton cycles [3, 10, 11, 9], spanning trees [11], clique-factors [4] and powers of Hamilton cycles [5], among others. In this paper we settle the problem of minimum degree thresholds for the discrepancy of -factors, resolving a question of Balogh, Csaba, Pluhár and Treglown [4]. Let us give the precise definitions.
Definition 1.1**.**
For a graph , a -edge-coloring (or just -coloring) of is a function . For a -coloring and a subgraph of , the discrepancy of is defined as
[TABLE]
Given a graph , an -factor is a graph consisting of vertex-disjoint copies of . A perfect -factor of a graph is an -factor which is a spanning (i.e. covering all vertices) subgraph of . Clearly, this is only possible if , the number of vertices in , is divisible by . Our main result determines the minimum degree threshold guaranteeing that in every -edge-coloring of , there is a perfect -factor with discrepancy linear in . Before stating this result, we give some background.
The study of perfect -factors of graphs has a long and rich history. Tutte’s famous theorem gives a necessary and sufficient condition for a graph to have a perfect -factor, namely a perfect matching. On the computational side, Kirkpatrick and Hell [13] showed that for a fixed graph , finding a perfect -factor in an input graph is NP-complete whenever has a connected component of size at least three. It is therefore desirable to find sufficient conditions ensuring that a graph has a perfect -factor. One such direction of research is the study of minimum degree conditions. The fundamental Hajnal-Szemerédi[12] theorem states that for every , every graph with order divisible by and with minimum has a perfect -factor. This bound is tight, as can be seen by taking a balanced complete -partite graph and moving one vertex from one part to another. Indeed, the resulting graph has minimum degree but no perfect -factor. Alon and Yuster [2] proved an asymptotic generalization of the Hajnal-Szemerédi theorem to all graphs, by showing that for every graph , if is an -vertex graph with divisible by and with , then has a perfect factor (where is arbitrary and is large enough in terms of ). Later, using their celebrated blow-up lemma, Komlós, Sárközy and Szemerédi [15] improved the error term to a constant depending on . It turns out, however, that is not always the correct threshold for forcing a perfect -factor. Komlós [14] (see also [1, 20]) introduced the so-called critical chromatic number and showed that having minimum degree already suffices for guaranteeing an -factor that covers almost all vertices of (we give the precise definition of shortly). Finally, the ultimate result in this direction was obtained by Kühn and Osthus [18], who determined the minimum degree threshold for the existence of a perfect -factor for every graph , showing that this threshold is either or , depending on certain divisibility conditions. To state this result, we need to introduce the following definitions.
Given a graph , let be the chromatic number of . Let be the class of all -vertex-colorings of . For , let denote the size of the smallest color class in . Let . The following is the definition of the critical chromatic number:
[TABLE]
For each with color classes of size , let
[TABLE]
Let be the union of over all and let be the greatest common divisor of the elements in . Let denote the largest common divisor of the orders of the connected components of . Define a parameter as follows: If , then set if , and if , then set if and . In all other cases, . Now define
[TABLE]
Note that for every with . Also, if has only balanced -colorings (i.e. if in every -coloring of , all color-classes have the same size), then hence .
The aforementioned result of Kühn and Osthus [18] states that is the minimum degree threshold for the existence of a perfect -factor. More precisely, they prove the following:
Theorem 1.2** ([18]).**
For every graph there exists a constant such that every graph whose order is divisible by with
[TABLE]
contains a perfect -factor. Moreover, for every there exists a graph of order such that is divisible by with
[TABLE]
such that does not contain a perfect -factor.
We now move on to discrepancy of -factors. For a graph , the -factor discrepancy threshold for , denoted by , is defined as the infimum which satisfies the following: for every there exists and , such that for every graph of order and , with dividing and for every -edge-coloring of there exists a perfect -factor in with . In other words, is the (normalized) minimum degree threshold guaranteeing an -factor with linear discrepancy. Trivially, , because is the minimum degree threshold for the existence of a perfect -factor.
The study of minimum degree discrepancy thresholds for -factors was initiated by Balogh, Csaba, Pluhár and Treglown [4], who determined .
Theorem 1.3** ([4]).**
**
Balogh et al. [4] further asked for the discrepancy threshold of other graphs . Our main result completely settles this problem, determining the value of for every graph . We split the statement into three cases: , and . First, for bipartite , we have the following:
Theorem 1.4**.**
For every graph with , it holds that
[TABLE]
To state our results for -chromatic graphs, , we first need to introduce some definitions. Given a graph , a blowup of is any graph obtained from by replacing each vertex with a vertex-set and replacing edges with complete bipartite graphs . The -blowup of is the blowup where for every . Given a -edge-coloring of , a blowup of is a blowup of whose edges are colored according to , namely, where for , all the edges in the complete bipartite graph have color . We denote the coloring of this blowup also by . A central strategy of our argument is to find so-called templates, defined as follows:
Definition 1.5** (Template).**
Given graphs and a -edge-coloring of , we say that is a template for if there exists a blowup of and two perfect -factors of with different discrepancies.
The size of the template is simply . Next, we introduce the following important parameters of a graph .
Definition 1.6** (, ).**
Let be an -chromatic graph. The set of non-template colorings of , denoted , is the set of all -edge-colorings of such that is not a template for .
Let be the maximum over all such that there exists a coloring and a blowup of , such that and has a perfect -factor with (by the definition of , this implies that for every perfect -factor in ). If there exists no such then let .
Note that because every -partite graph has minimum degree at most . In Section 5 we show that the maximum in Definition 1.6 is attained and also provide an algorithm which computes Note that if then , because every blowup of is monochromatic so all its perfect -factors have non-zero discrepancy.
Observe that . Indeed, by the definition of , there exist and a blowup of with such that every perfect -factor of (and there exists one) has discrepancy zero. Then, for every , the -blowup of has a perfect -factor with discrepancy zero. Note that is also a blowup of and since , every perfect -factor of must have zero discrepancy. As we can choose arbitrarily large, we get that .
Next we state our result for -chromatic graphs. Here the following graphs, called butterflies, play an important role. A butterfly is a 2-edge-colored graph , where consists of two triangles and intersecting in a single vertex , and the coloring is “antisymmetric” in the sense that , and (see Figure 1).
Theorem 1.7**.**
For every graph with , it holds that
[TABLE]
For , the following definition, which we call the -wise -condition, plays an essential role in determining the value of .
Definition 1.8** (-Condition).**
For an integer , we say that a graph fulfills the -wise -condition if for every (proper) -vertex-coloring of with parts , we have that
[TABLE]
Note that if satisfies the -wise -condition for some , then also satisfies the -wise -condition, as each proper -coloring of is also a proper -coloring (by taking the last color-class to be empty). Observe also that if satisfies the -wise -condition then so does every -factor. To state our result for -chromatic graphs with , it is convenient to state the following two conditions. In the entire paper, we write for
Condition 1.9**.**
* fulfills the -wise -condition and additionally, or is regular.*
Condition 1.10**.**
* fulfills the -wise -condition and is regular.*
The following result determines for with .
Theorem 1.11**.**
For every graph with , it holds that
[TABLE]
In the next section, we explain the notation that we use throughout the paper. Then, in Section 3, we give a short overview of the proof and explain the main ideas. In Section 4 we prove two general lemmas that will play an important role in our proofs. In Section 5, we establish properties of the parameter , and describe a construction of a graph (depending on ) that is important in some of our arguments. Section 6 is split into two subsections. First, we recall the notions related to Szemerédi’s regularity lemma and the blowup lemma. And second, we introduce the general setup of how we use the regularity lemma in our proofs. This setup is used throughout the rest of the paper. Section 7 deals with templates, giving conditions on that guarantee that various colored graphs are templates for . In Section 8 we prove the lower bounds on in Theorems 1.4, 1.7 and 1.11. Sections 9, 10 and 11 contain key lemmas that are used in the proofs of the main result. More specifically, in Section 9 we show how to find perfect -factors of high discrepancy if the coloring of is unbalanced in a specific way. Section 10 covers graphs which violate the -condition, and Section 11 covers graphs which are non-regular. Using the tools from Sections 9-11, we then easily derive the main results (Theorems 1.4, 1.7 and 1.11) in Section 12. To end the paper, in Section 13 we give examples of graphs which fall into different cases of the three main theorems. The purpose of these examples is to show that all cases in Theorems 1.4, 1.7 and 1.11 are necessary.
2 Notation
Given a graph , let denote the set of vertices of , the set of edges and . Let denote the number of vertices in . Given two sets , we write for the graph induced by on and for the graph with edges with one endpoint in and the other in . Also, let , and let denote the number of edges in . For , let denote the number of edges incident to in .
For a 2-edge-coloring of a graph , we write for the subgraph of consisting of the edges of color and , respectively. Note that . For a color , we use for if and for if .
Given a blowup of and a set of vertices , we write for and given a vertex , we refer to the vertex in corresponding to the cluster of by .
Throughout the paper, is a fixed graph and is the chromatic number of . An -coloring of always means a proper -vertex-coloring. We identify an -coloring with its set of color classes, usually denoted . We think of the parts as ordered, namely permuting them gives a different -coloring. An -coloring is called balanced if , and unbalaned otherwise.
3 Proof Overview
In this section we give a high level overview of our proofs. Some of our arguments apply to any graph while some require to have certain properties. We start by explaining the general setup.
We employ a similar strategy to that used by Balogh, Csaba, Pluhár and Treglown [4] to determine Given a -edge-coloring of the graph , we apply a colored version of Szemerédi’s regularity lemma and consider the corresponding reduced graph which, by standard techniques, naturally inherits a -edge coloring from and has essentially the same minimum degree relative to its number of vertices. A crucial ingredient of our proof is the notion of a template (Definition 1.5) which has been introduced in a slightly different form in [4]. The importance of this notion is that if there is a subgraph of size independent of such that is a template for , then, by definition, there is a blowup of such that there are two -factors of with different discrepancies. A standard application of the blowup lemma then implies that we can tile a set of vertices of in the clusters of the regular partition corresponding to with two different -factors whose discrepancies differ by Taking to be of small linear size, the graph still has high enough minimum degree to force a perfect -factor by Theorem 1.2. It is then easy to see that by adding the two -factors of to this perfect -factor of we obtain two perfect -factors of whose discrepancies differ by , hence one of them must have absolute discrepancy , as needed. This shows that finding small templates for in the reduced graph suffices for finding an -factor of high discrepancy.
Let us explain another important aspect of the notion of a template. If a certain coloured graph is not a template for then by definition, for every blowup of all perfect -factors of have the same discrepancy. If this discrepancy equals [math] (e.g. this happens if is symmetric with respect to the two colours), then this provides us with a lower bound construction for The most important special case is when (where ) which leads us to the definition of . Indeed, is the best lower bound on that one can obtain by considering blowups of a coloured (apart from the potential divisibility constraints which are encapsulated by the parameter .)
By the above discussion, we may assume that the reduced graph has no subgraph on vertices which is a template for . This can be exploited from two angles. Taking a fixed colored graph which is a template for we obtain structural information about as it must be -free. On the other hand, the fact that a certain coloured graph is not a template gives us structural information about . More precisely, we obtain that for every -coloring of , the sizes of the color classes and the number of edges between the pairs of them must satisfy certain linear equations. A typical example is Lemma 7.18. (We sometimes also have constraints in terms of -colorings of for or . An example is the -condition, see Definition 1.8.)
It is possible that there is no small subgraph of forming a template for , e.g. if all edges in have color . However, if the coloring of is so unbalanced, we can find a perfect -factor in with high discrepancy. So, roughly speaking, our strategy is to show that either has a small template for , or the coloring of must be in some sense unbalanced, allowing us to find a perfect -factor with high discrepancy by other means. A concrete example is Lemma 9.1, which shows that if all -cliques in have positive discrepancy, then we can indeed find a perfect -factor of high discrepancy, provided we assume additionally that is not regular. So to illustrate our strategy in more detail, let us consider the case when is not regular, so that Lemma 9.1 applies and we may assume that not all -cliques in have positive discrepancy, and by symmetry not all -cliques have negative discrepancy. Then, since has minimum degree larger than it is not difficult to show that there are two -cliques and sharing vertices, where one of them has positive discrepancy, while the other has negative discrepancy. If the coloring on is a template for we are done, and otherwise must have a certain structure. Now, by the minimum degree condition on for there are many vertices such that forms an -clique. We show that, essentially, the edges from to must be colored in the same way as those from to (or else contains a template for ). Such arguments eventually lead to showing that one of the colors is represented significantly more in than the other color. For example, in one of the cases in the proof of Lemma 11.4, we show that there is a set of size more than which is entirely monochromatic. This allows us to find a perfect -factor with high discrepancy.
Another ingredient in our proof is the idea of using certain complete -partite graphs (where ). More precisely, in order to find a perfect -factor, we sometimes instead find a perfect -factor for a certain complete -partite graph , and then tile each copy of with copies of . The advantage of working with complete -partite graphs (rather than with general -partite graphs) is that they consist of -cliques, and our templates for also consist of -cliques. Thus, assuming that there are no small templates for allows us to deduce things about the colors of the edges of copies of . Typically, we show that is colored as a blowup of , namely, that all bipartite graphs between color classes are monochromatic. In order to use this approach, must satisfy certain properties. First, it must contain a perfect -factor. And second, the minimum degree threshold for the existence of an -factor must be only slightly larger than that of , so that our minimum degree assumptions guarantee the existence of an -factor. Such a graph is constructed in Lemma 5.4.
4 General Lemmas
In this section we give two general lemmas which are essential to the proofs of our main results. The following simple lemma allows us to find a “chain” of -cliques connecting two given -cliques in a graph of sufficiently high minimum degree. Such a lemma has already appeared in previous works, see e.g. [5]. For completeness, we include a proof.
Lemma 4.1**.**
Let , let be an -vertex graph, and let be two copies of .
If , then there is a sequence of -cliques with , and for each . 2. 2.
If , then there is a sequence of -cliques with , and for each .
Proof.
We start with the first item. Here we assume that , which implies that every vertices have a common neighbour. It is enough to find a sequence with (i.e. we can repeat cliques). We prove the claim by reverse induction on . If then there is nothing to prove. Suppose then that . Write , , . We define vertices inductively as follows. Let be a common neighbour of . For , let be a common neighbour of . Write for . Then are -cliques, , and for . Also, is a -clique, and . By the induction hypothesis, there is a chain with for . Now is the required chain.
Next, we prove Item 2 by reducing to Item 1. Here we assume that , which implies that every vertices have a common neighbour, and hence every -clique is contained in a -clique. Take of size each. By Item 1 with parameter , there are -cliques with for each . Let be a -clique containing , where and . Then is the required sequence. ∎
The next lemma is a key reason why the -condition is one of the determining factors for the value of . The lemma allows us to control the discrepancy of subgraphs fulfilling the -condition in blowups of regular colorings of (i.e., 2-edge-colorings in which the color-classes form regular graphs). We will later apply this lemma to -factors (using that an -factor satisfies the -condition if does), to deduce that a regular coloring of is not a template for .
Lemma 4.2**.**
Let be a -edge-coloring of , , and suppose that is -regular for some . Let be a blowup of and an arbitrary subgraph of . If fulfills the -wise -condition, then
[TABLE]
Proof.
First, we estimate the number of edges of contained in the blowup of a given -factor of . Here, by “-factor” we mean a disjoint union of cycles covering .
Claim 4.3**.**
Let be a -factor in and the corresponding graph in (i.e., the blowup of ). Then
[TABLE]
Proof.
Let be an arbitrary cycle in of length . Consider any pair such that the vertices are not adjacent on . Note that for each there are such . Since satisfies the -wise -condition, we have
[TABLE]
where indices are taken modulo . Summing over all such pairs we obtain
[TABLE]
If is the only cycle in , then , and by (1),
[TABLE]
as required. Therefore, let us assume that there is a second cycle in . By the -condition,
[TABLE]
Reordering the terms in the above equality, we get
[TABLE]
Now, we take the sum of (1) over all cycles in and the sum of (2) over all pairs of cycles in . For each cycle in , each edge of is counted times when summing (2) over pairs with , and is counted times in (1). Therefore, each edge of is counted exactly times. Also, each edge is counted twice (with a negative sign) when summing (1) and (2); indeed, if goes between vertices of the same cycle , then is counted twice in (1), and if goes between vertices of two different cycles , then is counted twice in (2). All in all, we get that
[TABLE]
It follows that
[TABLE]
∎
We now complete the proof of Lemma 4.2 using Claim 4.3. Note that either or is even because and cannot both be odd. Without loss of generality, let us assume that is even (else apply the same argument to the complement coloring). By Petersen’s theorem (see e.g. [6, Corollary 2.1.5]), the edges of can be decomposed into -factors. By applying Claim 4.3 to each of these -factors, we get that
[TABLE]
The result follows since
[TABLE]
∎
5 The parameters and
The goal of this section is twofold. First, we consider the parameter ; we show that it is well-defined, i.e. that the maximum in Definition 1.6 is attained, prove some useful properties of and give an algorithm that computes in finite time. And second, we describe a construction of a certain complete -partite graph that will play an important role in our proofs.
Proposition 5.1**.**
Let be a graph. The maximum in the definition of (see Definition 1.6) is attained and . Moreover, there is an algorithm which, given a graph computes
Proof.
We present an algorithm for computing From the algorithm, it will be clear that the maximum in Definition 1.6 is attained.
The algorithm is as follows. We iterate over all possible -edge-colorings of For each coloring we need to check whether it is a template with respect to and if it is not, to find the maximum value of such that there is a blowup of with and has a perfect -factor with
Fix a -edge-coloring of . Let denote the set of all proper -vertex-colorings of Consider a blowup of with parts of sizes For we define for and where we denote each vertex in by a color of . We think of as an embedding of into Then, counts the number of vertices embedded into while denotes the discrepancy of the embedding.
Now, checking whether is a template for can be done using the following linear program.
[TABLE]
We claim that if the maximum in the above linear program is then is not a template, otherwise it is. Indeed, there exists an optimal feasible solution for which the vectors are fractional -factors of a blowup of with parts of relative sizes whereas the objective function corresponds to the difference in the discrepancies of the two fractional -factors. Hence, if the maximum is no two -factors can have different discrepancies. On the other hand, if the maximum is nonzero, since the optimum is attained by some solution vector with rational entries, we may multiply it by a large number to get a solution with integer entries. It is not difficult to see that this corresponds to a blowup of and two -factors of it with different discrepancies.
Now, suppose we are given a coloring such that is not a template for We wish to find a maximum such that there is a blowup of with for which there is an -factor with discrepancy [math].
This can be found with the following linear program:
[TABLE]
Again, there exists an optimal feasible solution to the above linear program corresponding to a blowup of with relative part sizes and a fractional -factor of with discrepancy [math]. Multiplying this optimal vector with an appropriate integer, we obtain an integral vector which corresponds to a blowup of and an -factor with discrepancy [math] with respect to By the ordering of the ’s it follows that as needed. Finally, since the above linear program has integer coefficients, it has a rational solution, giving that . ∎
Next, we prove some useful facts related to . We begin with the following simple claim, stating that the -blowup of with can be tiled by copies of in a uniform manner.
Lemma 5.2**.**
Let be the -blowup of with parts . Then, there exists a perfect -factor in such that for every pair . Therefore, if is colored such that is the blowup of for a coloring of , then .
Proof.
Let be the parts of an -vertex-coloring of . Then, there exists a perfect -factor of that contains for every permutation a copy of with the vertices of in cluster for every . Note that for every , by the symmetry of we have that
[TABLE]
Using that , the statement follows. ∎
Lemma 5.2 implies that if contains a coloring of with , then . Indeed, by taking to be the -blowup of , we get by Lemma 5.2 that has a perfect -factor with . This implies that by the definition of .
The next lemma gives an important property of .
Lemma 5.3**.**
For every -edge-coloring with the following holds. Let be a blowup of with . Then for every -factor of , .
Proof.
Fix with . Let us assume towards a contradiction that there exists a blowup of with and a perfect -factor of such that . Note that if then which is a contradiction. Therefore, let us assume that . We use an intermediate-value argument: we will take a “union” of with a balanced blowup of , which has positive discrepancy, choosing the parameters in such a way that this union will have a perfect -factor with discrepancy [math]. However, will also have normalized minimum degree as large as that of , and this would contradict the definition of . The details follow. Let be an -blowup of . By Lemma 5.2, there exists a perfect -factor in such that
[TABLE]
Let be the sizes of the parts of . Let be a blowup of with parts of sizes where . Note that , and . It follows that . Indeed, this inequality is equivalent to , which clearly holds. Let be a perfect -factor in consisting of copies of and copies of . It follows that
[TABLE]
By the definition of and since , we get that
[TABLE]
As this is a contradiction, the statement must hold. ∎
We now move to define, for every -chromatic , a certain -partite graph having several useful properties. Later on, when trying to find an -factor with high discrepancy, we often do this by finding an -factor and tiling each copy of with copies of . For we simply set . The key case is , handled by the following lemma. Note that if , then is complete -partite.
Lemma 5.4**.**
Let and . For convenience, put . There exists a graph such that:
- •
* is a complete -partite graph;*
- •
* has a perfect -factor;*
- •
.
- •
If , then .
- •
If then .
Definition 5.5** (The graph ).**
Let be an -chromatic graph and let . If then define , and else define to be the graph given by Lemma 5.4.
Proof of Lemma 5.4.
Let be an -coloring of with . Let be a blowup of with parts , where the first parts have size , and has size . Let be an -factor containing, for each , a copy of in which the vertices of are mapped into for , and the vertices of are mapped into . Note that the sizes of are precisely chosen to accommodate these (vertex-disjoint) copies of . So is a perfect -factor of .
Let be the -blowup of and let be the parts of . Similarly as before, let be a perfect -factor of containing, for every , a copy of in which is mapped into for every . Again, the sizes of are precisely chosen to fit these copies of , as .
Note that if , then we can take , trivially fulfilling all the necessary conditions. Indeed, the first two items in Lemma 5.4 are immediate, the third item holds because and , the fourth item holds vacuously, and the fifth item holds because . Let us therefore assume that . Hence,
[TABLE]
In particular, , which implies that and by the definition of . Fix a rational number in the range , and note that
[TABLE]
We now define a complete -partite graph with equal parts and an th smaller part, such that . Indeed, let be a blowup of with parts of size each, and one (smaller) part of size , where are determined later. Note that is essentially a “linear combination” of and , namely, can be partitioned into copies of and copies of . Since and each have a perfect -factor, so does . Note that
[TABLE]
We now show that there exist such that . For this, we need the right-hand side in (3) to equal . Reordering this equation, we get
[TABLE]
Note that the term above is of the form for some suitable . Therefore, there exists such that . From now on, fix such and . Using , we get
[TABLE]
and
[TABLE]
Therefore, .
Our final graph will be obtained by blowing up by a large integer, and then changing the sizes of the parts by a small amount to make sure that . We now define this small perturbation. Recall the set defined in the introduction. For each , let be the parts of an -vertex-coloring of with . Since , it follows by Bézout’s Identity (see e.g. Theorem 2.3. in [7]) that there exist integers for each such that
[TABLE]
Let be a blowup of with parts of size respectively, where
[TABLE]
Note that . Additionally, there exists a perfect -factor of containing for each with , copies of with on for ; and for each with , copies of with on , on and on for if . Let . Fix a large integer , to be chosen later. Let be a blowup of with parts of size , where for ,
[TABLE]
This immediately implies that , since, using , (recall that ). Note that the vertices of can be partitioned into a copy of and copies of . As both and have a perfect -factor, so does . As , we have . This implies that for all , and hence . Also, . Now we get that
[TABLE]
where the second equality above is a simple calculation. Recall that . Choose large enough so that the second term above is at most in absolute value. Then we have
[TABLE]
Recalling that and using , we get
[TABLE]
This proves the third item in the lemma. It remains to prove the last item. Note that the largest part of has size
[TABLE]
where the two equalities use that and that . The minimum degree of is . Hence,
[TABLE]
where the strict inequality holds for large enough . We see that fulfills all necessary conditions. ∎
We end this section with the following important property of , allowing us to control the discrepancy of -factors of under certain assumptions.
Lemma 5.6**.**
Let with . Let be a colored copy of and suppose that is a blowup of . Then for every perfect -factor of it holds that .
Proof.
The statement holds trivially if as then, must be monochromatic. Therefore, let us assume that . Recall that is a complete -partite graph. By Lemma 5.3, we may assume that . Then, by the definition of in Lemma 5.4, we have . So is a balanced -partite graph. Now, let and a colored copy of such that is an -blowup of for some with . Let be a perfect -factor of and let us assume towards a contradiction that .
Let be the -blowup of . By Lemma 5.2, there exists a perfect -factor in with
[TABLE]
Note that since , we get that every perfect -factor of must have discrepancy and every perfect -factor of must have discrepancy .
Next, consider an -blowup of . Clearly, has a perfect -factor containing copies of and a perfect -factor containing copies of . Let be a perfect -factor of obtained by taking the union of a perfect -factor of each copy of in and similarly by taking the union of a perfect -factor of each copy of in . As we showed above, we get and . It follows that and therefore, is a template for . This contradicts the assumption . ∎
6 Regularity and its application
The goal of this section is twofold. First, we recall the well-known Szemerédi’s regularity lemma and the blowup lemma, which play a key role in our proofs. And second, we introduce the general setup in which we shall apply these tools. This setup will be used throughout the rest of the paper.
6.1 Background on regularity
Let us recall the basic definitions and notation related to the regularity lemma. Given a bipartite graph with vertex-classes , the density of is defined as
[TABLE]
Given , we say that is -regular if
[TABLE]
and for every with and with , we have that
[TABLE]
Additionally, we say that is -superregular if for every , for every , and for every and with and we have
[TABLE]
We shall use the following two color version of the regularity lemma.
Lemma 6.1** ([17]).**
For every and there exists so that the following holds. Let and let be a graph on vertices with -edge-coloring . Then there exists a partition of and a spanning subgraph of , such that the following conditions hold:
; 2. 2.
* for every ;* 3. 3.
the subgraph is empty for all ; 4. 4.
; 5. 5.
; 6. 6.
for all , is either an -regular pair or empty. 7. 7.
for all , is either an -regular pair or empty.
We call the pure graph of (for the parameters ). Given a graph with -edge-coloring and a pure graph of , the reduced graph is defined as the graph on vertices , where and are connected if at least one of or is non-empty. Additionally, we associate with a -edge-coloring , where for , if is non-empty and otherwise. The following is a useful, well-known fact about the reduced graph.
Lemma 6.2**.**
Given , let be a graph on vertices with and let be the reduced graph obtained by applying Lemma 6.1 to it with some parameters . Then, .
We will also use the well-known Blow-up lemma of Komlós, Sárközy and Szemerédi [16].
Lemma 6.3** (Blow-up lemma[16]).**
Given a graph on vertices and , there exists such that the following holds. Given and , let be the graph obtained from by replacing each vertex with a set of new vertices and joining all vertices in to all vertices in whenever is an edge in . Let be a spanning subgraph of such that for every edge the pair is -superregular. Then, for every spanning subgraph of with , contains a copy of in which the vertices playing the role of are mapped to .
To apply the Blow-up lemma, we will need the following simple lemma.
Lemma 6.4**.**
Let be integers. Let be a graph and let be a -edge-coloring of . Let be pairwise-disjoint with . Let , and suppose that . Then there are subsets , , such that:
* for each , where .* 2. 2.
For every and color , if is -regular then is -superregular.
The second item of Lemma 6.4 uses the standard fact that regular pairs can be made superregular by deleting a small number of vertices. The goal of the first item is to make it possible to tile with a graph having a -coloring with color-classes of size .
Proof of Lemma 6.4.
First, for each , take an arbitrary of size . Now fix any , and let be the set of pairs such that is -regular (where and ). For , let be the set of vertices which have less than neighbours in color in . The -regularity of and the fact that imply that . Therefore, satisfies . Hence, So take of size (for ). Note that , using that . Also, .
Now let and such that is -regular. As , all vertices in have at least color- neighbours in , and hence at least
[TABLE]
neighbours in , where the last inequality uses that and .
Also, for with , , we have , and therefore, by the -regularity of , the color- density between is at least . This shows that is -superregular, as required. ∎
6.2 Applying the regularity lemma: the general setup
Here we explain the general setup which we use throughout the rest of the paper. Let be fixed and let be small enough (depending on ). To prove Theorems 1.4, 1.7 and 1.11, we shall consider a graph with vertices, divisible by , and minimum degree , for corresponding to the particular case of the above theorems that we are proving, and show that in every -edge-coloring of , there must exist a perfect -factor with discrepancy at least in absolute value. We say that such an -factor has high discrepancy. Proving this statement (for all ) would establish that . Note that we may always assume that is small enough with respect to . From now on, fix such that
[TABLE]
where is the constant obtained by applying Lemma 6.1 with .
Recall that and are (natural) lower-bounds for for every graph . Therefore, throughout this paper, we shall always assume that our target parameter satisfies
[TABLE]
So let be a graph with vertices, where is divisible by , and with . Our strategy for finding a perfect -factor of high discrepancy sometimes requires us to first find a perfect -factor (and then tile each -copy with copies of ). To this end, we need that is divisible by . Therefore, we shall put aside a small number of vertices to make the number of remaining vertices divisible by . Indeed, let be a collection of vertex-disjoint copies of in , such that and is divisible by . Such a collection exists because even has a perfect -factor, by Theorem 1.2 and by (4). Set . Recall that depends only on and , so . Therefore, it will suffice to find a perfect -factor of with high discrepancy (as this will give a perfect -factor of with absolute value discrepancy at least , say). Hence, we concentrate on from now. With a slight abuse of notation, we shall use to denote . Note that
[TABLE]
Fix an arbitrary -edge-coloring of . Let be the pure graph obtained by applying Lemma 6.1 with parameters to and . Let be the corresponding reduced graph with -edge-coloring . Using and Lemma 6.2, we get that
[TABLE]
and by (4), we get that
[TABLE]
We shall assume throughout the paper that (5) holds. For a vertex , we denote by the vertex of corresponding to the part of the regular partition containing .
We now show that contains a perfect -factor.
Lemma 6.5**.**
* has a perfect -factor, and hence a perfect -factor.*
Proof.
For convenience, set . In this notation, we have
[TABLE]
We claim that
[TABLE]
If then , which suffices as . And if , then Lemma 5.4 guarantees that and hence
[TABLE]
as claimed. Now, Theorem 1.2 guarantees that has a perfect -factor. This also implies that has a perfect -factor, because has a perfect -factor by Lemma 5.4. ∎
The next lemma allows us to assume that for each pair of clusters in the regular partition, all edges in have the same color (namely the color ). Equivalently, for every edge with , it holds that
[TABLE]
We shall assume this throughout the rest of the paper.
Lemma 6.6**.**
If there exist such that both and are -regular, then there exists a perfect -factor in with high discrepancy.
Proof.
For convenience, put , and assume that and are both -regular. Then and by the definition of . By (5),
[TABLE]
and therefore, there exists a copy of containing the edge . Let be the clusters of with and and let denote the size of each cluster . By definition, all pairs are -regular. By Lemma 6.4 with , there are , , with and divisible by , such that is -superregular for each , and is also -superregular. Let be the graph on with edges . Let be the same graph but with in place of . Note that and (for each ). Therefore,
[TABLE]
Let be the -blowup of with clusters . By Lemma 5.2, has a perfect -factor such that for every pair . As and each is divisible by , we can apply Lemma 6.3 to deduce that there exist perfect -factors of and respectively. Taking the -factor of every copy of in gives us perfect -factors of , respectively. Moreover, for every , we have
[TABLE]
It follows that
[TABLE]
Let , and note that
[TABLE]
using (5) and that and . Also, is divisible by because and are. Thus, contains a perfect -factor by Theorem 1.2. Let , . Then are perfect -factors of , and
[TABLE]
where the last inequality uses that , and . Therefore, at least one of has absolute discrepancy at least , as required. ∎
From now on, we shall work under the above setup and repeatedly use (5) and (6). Recall that our ultimate goal is to find a perfect -factor of with high discrepancy. Very roughly, our argument works by showing that either contains a template for , or else is colored by in such an imbalanced way that we can directly find an -factor in with high discrepancy. The next lemma handles the case that contains a template for , showing that in that case indeed contains a perfect -factor with high discrepancy. The proof of this lemma is similar to that of [4, Claim 6.2] (and also uses some ideas from the proof of Lemma 6.6).
Lemma 6.7**.**
Let depending only on , and let be a subgraph of of order . If is a template for , then there exists a perfect -factor in with high discrepancy.
Proof.
Since is a template for , there exists a blowup of and two perfect -factors of with . Write , let be the part of corresponding to , and put . Suppose that . Also, let be the cluster of corresponding to , and recall that for . Also, recall that if for some , , then is -regular. By Lemma 6.4, there is an integer and subsets () such that , and such that for every pair , if then is -superregular.
Let be a blowup of with parts , where is the cluster corresponding to , and . So is the -blowup of . Note that we may apply Lemma 6.3 with in the role of and with in the role of .
Clearly, has a perfect -factor consisting of copies of (where each copy of places the part of inside the part of ). Let be the perfect -factors of , obtained by taking the perfect -factor or respectively of each copy of in . By Lemma 6.3, there exist copies of (respectively) in , with all the vertices on the same corresponding parts (i.e., with embedded to for ). Now, using that , we get that
[TABLE]
Now let , and note that using (5) and
[TABLE]
as , and depends only on . Also, is divisible by because and are. Now, by Theorem 1.2, has a perfect -factor . Thus, both and are perfect -factors of , and
[TABLE]
using that , and that , as depends only on . Now we see that or has discrepancy at least , as required. ∎
7 Templates
Lemma 6.7 states that in order to find an -factor with high discrepancy, it suffices to show that the reduced graph contains a template for . The present section is thus dedicated to various constructions of such templates. These constructions form a substantial and crucial part of our proofs. In most cases, the templates consist of either a single or two copies of sharing or vertices. Our results typically state that either a certain colored graph is a template for , or else has a certain “uniformity property”, e.g. is regular, only has balanced -colorings, or has the same number of edges between any two parts in any -coloring. Each of the following subsections deals with one such uniformity property and gives a suitable template for graphs violating the property. The basic idea for proving that a certain configuration is a template for is usually the same: we define a (carefully chosen) perfect -factor of a (carefully chosen) blowup of , and then modify by moving some vertices to different blowup-clusters, thus obtaining a second perfect -factor . We then observe that if this modification did not change the discrepancy (i.e. if have the same discrepancy), then must have the relevant uniformity property. The implementation of this rough idea for the various uniformity properties can be quite involved.
7.1 Disconnected bipartite graphs
In this section, we consider disconnected bipartite graphs . We show that if has two connected components with different average degrees then the colored graph consisting of two disjoint edges of different color is a template for .
Lemma 7.1**.**
Suppose that is bipartite and there exist two connected components of such that . Let be two disjoint edges and be a -coloring of with . Then is a template for .
Proof.
Write . without loss of generality, suppose that , . Fix a -coloring of , and let , , . Let be a blowup of with
[TABLE]
Our goal is to find two perfect -factors of with different discrepancies. The idea is simple: will contain copies of in which is mapped onto and is mapped onto , while will contain copies of in which is mapped onto and is mapped onto . The fact that and have different average degrees will imply that and have a different number of edges of color (since all edges between have color , and all edges between have color ). This will imply that . To make this scheme work, we need two additional ideas. First, will have -copies mapping to and to , as well as -copies mapping to and to ; there will be the same number of copies of the two types. This “symmetrization” allows us to take to be of the same size, as each -copy adds vertices on average to and . When describing this construction, we will say that we take copies of with each permutation of on . (This language is also used later on in this section.) We will do the same for the -copies in with respect to .
The above scheme tiles with copies of in , and with copies of in . A problem that might occur is that use a different number of vertices in . This must be avoided because need to be perfect -factors of . To remedy this, we add additional -copies to which only use vertices from . By appropriately choosing the number of these copies, as well as the size of , we can make sure that tile . The details follow.
Define two perfect -factors of , each containing copies of , as follows:
- •
contains copies of for each permutation of on and each permutation of on . Additionally, contains copies of for each permutation of on .
- •
contains copies of for each permutation of on and each permutation of on . Additionally, contains copies of for each permutation of on .
Note that the choice of exactly corresponds to the definition of . For example, the number of vertices of in is exactly , and similarly for and the other three clusters .
Next, observe that
[TABLE]
and
[TABLE]
As , we have that . Also, because are both perfect -factors of . Hence,
[TABLE]
This implies that is a template for , as required. ∎
7.2 Non-regular graphs
In this section we consider non-regular graphs . As always, denotes the chromatic number of .
Lemma 7.2**.**
Let be two copies of sharing vertices with -edge-coloring such that . If is non-regular then is a template for .
Proof.
Let be two vertices with . Fix an -vertex-coloring of with parts . Let be the part containing and the one containing (possibly ). Write , and . Let be a blowup of with
- •
,
- •
and
- •
for .
We now define certain -copies in . For each permutation , let be a copy of in which is embedded into and is embedded into for all . Let be the copy of obtained from by moving from to . Similarly, for each permutation , let be a copy of in which is embedded into and is embedded into for all . Let be the copy of obtained from by moving from to . We define all these -copies such that the copies in each of the sets and are pairwise-disjoint and partition ; note that the sizes of are precisely chosen to allow this. In other words, are perfect -factors of . We now calculate . By definition,
[TABLE]
For each and , there are exactly permutations with . Hence, summing over all , we get
[TABLE]
Similarly,
[TABLE]
We get that
[TABLE]
using that by assumption and . The fact that means that is a template with respect to . ∎
We now use Lemma 7.2 to show that certain colorings of are templates for .
Corollary 7.3**.**
Let be a copy of with -edge-coloring such that is non-regular. If is non-regular then is a template for .
Proof.
Since is non-regular, there exist such that . Let and . It is not hard to see that and
[TABLE]
The statement follows by Lemma 7.2. ∎
7.3 Different degrees to different parts
In this section we consider another “uniformity property” defined in terms of vertex-degrees. Here, we assume that there is an -coloring of such that some vertex has different degrees to two color-classes. We show that in this case, a certain configuration is a template for .
Lemma 7.4**.**
Let be two copies of sharing vertices with and . Let be a -edge-coloring of with such that there exists a vertex with . If has an -coloring and a vertex such that , then is a template for .
Proof.
We have
[TABLE]
Since satisfies , there must exist such that . Note that this implies that . Write . Let be an -vertex-coloring of such that there exists a vertex with . Let be a blowup of with
[TABLE]
We now define certain -copies in . For a permutation , let be a copy of in which is embedded into , is embedded into , is embedded into and is embedded into for every . Let be the -copy obtained from by swapping and , i.e. embedding into and into . Let (resp. ) be the -copy obtained from (resp. ) by moving from to . We define all these -copies such that the copies in each of the sets and are pairwise-disjoint and partition ; note that the sizes of are precisely chosen to allow this. In other words, are perfect -factors of . We now calculate . By definition,
[TABLE]
For every two indices , there are exactly permutations with . Hence, . We get that
[TABLE]
By the same argument,
[TABLE]
Hence,
[TABLE]
using that by assumption and that and . As , it follows that is a template for . ∎
7.4 Unbalanced -colorings
In this section we consider graphs having an unbalanced -coloring (recall that an -coloring is called balanced if ). We shall prove the following.
Lemma 7.5**.**
Suppose that . Let be two copies of sharing vertices, and let be a -edge-coloring of such that is -regular and is -regular for some . If fulfills the -wise -condition and has an unbalanced -coloring, then is a template for .
Let us give an overview of the proof of Lemma 7.5. Assuming that satisfies the -wise -condition allows us to control the discrepancy of -factors via Lemma 4.2. Indeed, this lemma implies that the discrepancy of an -factor in any blowup of with a -edge-coloring for which is -regular, is simply determined by and the number of copies of in the factor. We will make use of this observation by considering two different -factors of a carefully chosen blowup of . Each -copy in both -factors will be contained in the blowup of or , and the two -factors will differ on the number of -copies of each type (here we will use that has an unbalanced -coloring). This will guarantee that the two -factors have different discrepancies. The detailed proof follows.
Proof of Lemma 7.5.
Let be the parts of an unbalanced -coloring of with and . Write and for . Let be the blowup of with
- •
and
- •
for each , |V_{v_{i}}|=2\big{(}|A_{1}|+|A_{2}|\big{)}|A_{i+2}|+2\big{(}|A_{r-1}|+|A_{r}|\big{)}|A_{i}|.
Let be the following two perfect -factors of .
- •
contains copies of with each permutation of on and for each , on . Additionally, contains copies of with each permutation of on and for each , on .
- •
contains copies of with each permutation of on and for each , on . Additionally, contains copies of with each permutation of on and for each , on .
By definition, each copy of in is contained either in the blowup of or in the blowup of . Let denote the copies of in which are contained in the blowup of , respectively, and define similarly. Since satisfies the -wise -condition, we can apply Lemma 4.2 to the blowup of the -clique . As is -regular, Lemma 4.2 gives
[TABLE]
Similarly, we get
[TABLE]
Additionally, by the definition of we have that and . We get that
[TABLE]
using that and that . so we see that , implying that is a template for . ∎
7.5 Non-uniform -colorings
An -coloring of is called uniform if the number of edges between any two color-classes is the same. We will say that is uniform if it only has uniform colorings:
Definition 7.6**.**
A graph is called uniform if for every -coloring of with parts , it holds that for all .
The following lemma gives a template for non-uniform graphs under some additional conditions.
Lemma 7.7**.**
Let be two copies of sharing or vertices, let of size and let . Let be a -edge-coloring of such that
[TABLE]
If fulfills the -wise -condition and is non-uniform, then is a template for .
Before proving Lemma 7.7, let us note some simple facts. Clearly, a non-uniform coloring must have at least three parts, so . We also need the following easy claim.
Claim 7.8**.**
if is non-uniform, then there exists an -coloring of with parts such that .
Proof.
Fix any non-uniform -coloring of , and let and such that . Then or or , and by renaming the parts we get the desired -coloring with . ∎
Proof of Lemma 7.7.
Write , . Note that may intersect (namely, if ). Without loss of generality, let us assume that if these sets intersect then , so that always holds. Let be the bipartite graph between and (so ), and let be the bipartite graph between and (so ). Observe that
[TABLE]
so
[TABLE]
by assumption. Also, as and contain edges each, we have . Thus, (7) implies that is not a multiple of . For , define . We claim that there are with . Indeed, suppose otherwise. Then there exists such that each vertex has . Then
[TABLE]
Note also that is even since is an even number for every . But now we see that is a multiple of , a contradiction. We conclude that there exist vertices with . Note that this also implies that . Write . By Claim 7.8, there is an -coloring of with . Let be a blowup of with
- •
,
- •
,
- •
,
- •
for every .
Here, are distinct parts even if . Note that is a blowup of also in the case , as then is the part corresponding to the vertex .
We now define four -copies in , denoted . All four copies embed into for every . Also, and embed into and into , while and embed into and into . Finally, and embed into and into , while and embed into and into . We define these copies such that forms a perfect -factor of for every ; this is possible due to our choice of the cluster sizes of .
We now show that . First observe that for an edge , if then . Indeed, if then this is immediate. If and then and , so the assertion holds. If and then and , so again the assertion holds. The case is also immediate. We see that the bipartite graph does not contribute to unless . By definition, we have
[TABLE]
and similarly,
[TABLE]
It follows that
[TABLE]
By the -condition, we also have that
[TABLE]
Adding this multiplied by to the previous equation, we get
[TABLE]
using that and that by assumption. So and hence is a template for . ∎
7.6 Graphs violating the -condition
Here we show that if violates the -wise -condition and is a coloring of , then is a template for unless has some very specific structure. This is given by the following definition and lemma.
Definition 7.9**.**
For some , is a copy of where is a -edge-coloring of with all edges of color . The -star is the copy of where is a -edge-coloring of such that the edges of color induce a star with leaves. We call the root of this star the head of the -star. Define and the -star analogously.
Lemma 7.10**.**
Let and let be a -edge-coloring of such that is neither monochromatic nor a star. If does not fulfill the -wise -condition, then is a template for .
Proof.
We need the following claim, which appears implicitly in [4, proof of Claim 6.4]. For completeness, we give a proof.
Claim 7.11**.**
There exist vertices such that
[TABLE]
Proof.
Let us assume towards a contradiction that for every it holds that
[TABLE]
Fix an arbitrary vertex . If , let be three arbitrary vertices. By (8), it follows that . As this holds for arbitrary , we get that either all the edges in have color or they all have color . Therefore, is not empty as otherwise, colored by is monochromatic or a star. By symmetry, if then is non-empty.
We have . Without loss of generality, let us assume that . Let and . By (8), we get that and . Since this holds for arbitrary and , we get that all the edges in have color and all the edges in have color . Thus, if then colored by is a copy of a -star (whose head is the unique vertex in ). So . Now, by a symmetrical argument to the above, we get that all the edges in have color , which is a contradiction. ∎
Let with as in the statement of the above claim. As violates the -wise -condition, there exists a -coloring of with
[TABLE]
Let be a blowup of with
- •
,
- •
, and
- •
for .
We now define two perfect -factors and of , each consisting of two copies of . Each -copy in and embeds into for every .
- •
contains a copy of with on , on , on and on and a second copy of with on , on , on and on .
- •
contains a copy of with on , on , on and on and a second copy of with on , on , on and on .
We now calculate . Note that for each , we have that
[TABLE]
For and , we get
[TABLE]
and for
[TABLE]
Additionally, we have
[TABLE]
[TABLE]
[TABLE]
and
[TABLE]
Combining all of the above, we get that
[TABLE]
Therefore, is a template for . ∎
7.7 Balanced -tilings with non-uniform edge distribution
In the previous section, we saw that if violates the -wise -condition, then is a template for for every coloring of except for some very special cases. In this section we continue investigating when a given coloring of is a template for , this time assuming that does satisfy the -wise -condition. We shall see that if is a coloring of such that is not regular, then is a template for unless every -factor, i.e. disjoint union of copies of , has a certain uniformity property. The precise statement is given by the following definition and lemma. Recall that by “-factor” we simply mean a graph consisting of vertex-disjoint copies of .
Definition 7.12**.**
We say that an -chromatic graph is balanced-uniform if every balanced -coloring of with parts satisfies that for all .
Lemma 7.13**.**
Suppose that and , and assume that satisfies the -wise -condition. Let be a -edge-coloring of such that is non-regular. If there exists a non-balanced-uniform -factor, then is a template for .
The condition that is non-regular is necessary; indeed, it follows from Lemma 4.2 that is not a template for if is regular and fulfills the -wise -condition. Also, the assumption that there exists a non-balanced-uniform -factor is necessary for the proof method. Indeed, in the proof of Lemma 7.13 we show that the balanced blowup of has two -factors with different discrepancies, (this showing that is a template). However, if -factor were balanced-regular, then every perfect -factor of would have exactly edges between any two parts of (as is balanced), and so , meaning that every perfect -factor of would have the same discrepancy.
For the proof of Lemma 7.13 we need the following simple claim.
Claim 7.14**.**
Suppose that and satisfies the -wise -condition. Let be a non-balanced-uniform -factor. Then there exists a balanced -coloring of such that .
Proof.
By definition, there is a balanced -coloring of such that are not all equal. By renaming the parts, we may assume that . Then there are such that . Now, if then we are done. Else, suppose without loss of generality that . Let . We may assume that and , as otherwise we are done. Now we get that
[TABLE]
contradicting the assumption that fulfills the -wise -condition. ∎
Proof of Lemma 7.13.
Let be as in the statement. For a vertex , denote
[TABLE]
Let be the two vertices maximizing and the vertices minimizing . In other words, are the two vertices with highest degree in , and are the two vertices with lowest degree. As , we may assume that are distinct. Since is non-regular,
[TABLE]
Let be a non-balanced-uniform -factor. By Claim 7.14, there is a balanced -coloring of such that . Let be a -blowup of . Let and be the following two perfect -factors of .
- •
contains each copy of with each permutation of on , each permutation of on , and each permutation of on the remaining clusters of .
- •
contains each copy of with each permutation of on , each permutation of on , and each permutation of on the remaining clusters of .
Note that each have copies of . As , the size of exactly matches these -factors. Clearly, every -factor is also an -factor, as is a union of disjoint copies of . Hence are perfect -factors of . We now show that . Put By symmetry, we have for all :
- •
- •
If then is empty, and we set . We also have
[TABLE]
for all and all . Finally, observe that
[TABLE]
Therefore, holds by our choice of . For convenience, let us denote
[TABLE]
for . From the above, we see that is non-zero only if or . Also, in the latter case we have if and if . Finally, Using these equations, we get
[TABLE]
Observe that
[TABLE]
Plugging this into (10) and rearranging, we get
[TABLE]
Suppose first that . Then . Also, , because otherwise we would have , contradicting (9). Now, using (11), we have
[TABLE]
as required.
As , we may assume from now on that . Since satisfies the -wise -condition, so do (as are -factors). Fix arbitrary . By the -condition, we have
[TABLE]
and
[TABLE]
Recall that and . Adding the two above equations, we get
[TABLE]
As , we have . Finally, plugging this into (11), we get
[TABLE]
using (9). Therefore, is a template for . ∎
We end this section with the following lemma, showing that if all -factors are balanced-uniform, then no coloring of is a template for .
Lemma 7.15**.**
If every -factor is balanced-uniform, then for every -edge-coloring of it holds that .
Proof.
Assume towards a contradiction that there exists a -edge-coloring of such that is a template for . Then, by definition, there exists a blowup of and two perfect -factors of such that . Let be the vertices of and let be the part of corresponding to . Take a balanced blowup of with parts of size each. For , let be a copy of in in which is mapped to for each . Choose to be vertex-disjoint and to partition ; this is possible as each part of has size .
For each , let be the -factors playing the roles of , respectively, in the copy of . Note that in , is mapped to for every . This means that is colored the same way as (i.e., is a blowup of ). Therefore, for (with a slight abuse of notation, we denote by both the coloring of and that of ). Let , and let be obtained from by replacing with , i.e. . Both are perfect -factors of . Also,
[TABLE]
Note, however, that are both -factors with a balanced -coloring . As are balanced-uniform by assumption, it follows that for all . However, this implies that
[TABLE]
a contradiction. ∎
Remark 7.16**.**
*Given it is possible to computationally check whether there exists a non-balanced-uniform -factor. Like in the proof of Proposition 5.1, for every -coloring of one defines vectors and corresponding to the sizes of the color classes and the number of edges between color classes, respectively. Then, the task reduces to a certain linear-algebraic statement regarding these vectors. *
7.8 -structured graphs
The templates considered in this section consist of two -cliques sharing vertices. We will describe the structure of graphs for which a particular coloring of is not a template. This structure is more involved than in previous sections. The precise definition is as follows.
Definition 7.17**.**
For , we say that is -structured with parameter if for every -vertex-coloring of with parts and for all , it holds that
[TABLE]
We say that -structured to mean that it is -structured with some parameter . Note that if is -structured then it is also -structured for every . Another important fact is that if is -structured with parameter , then so is every -factor.
The following lemma is the main result of this subsection.
Lemma 7.18**.**
Let be two copies of sharing vertices, and let and . Let be a -edge-coloring of . Then, either is a template for or is -structued for and .
Let us give an overview of the proof of Lemma 7.18. We shall take a blowup of with and consider a (carefully chosen) perfect -factor of such that each copy of in is either on the clusters of or the clusters of . Since we have chosen the clusters of to have the same size, we can then find a second -factor by swapping the vertices in with the vertices in in each of the copies of in . We will show that the only case in which the discrepancy does not change under this operation is that is -structured (with as in the statement of the lemma). We now proceed with the detailed proof.
Proof of Lemma 7.18.
For convenience, set
[TABLE]
Let be an -coloring of . To ease the notation, put and
[TABLE]
Our goal is to show that if is not a template for , then is the same for every -coloring of ; we then take this common value to be (see Definition 7.17). So let and be two arbitrary -vertex-colorings of . We will show that . Write . Consider the following blowup of :
- •
,
- •
for , .
To calculate , first observe that for every pair ,
[TABLE]
Therefore, . Next, we claim that for each , it holds that
[TABLE]
and
[TABLE]
Let us prove this for ; all other cases are similar. For every , there are permutations that embed into and (resp. ) into , and each such permutation contributes (resp. ) to . Also, each such permutation gives rise to copies of in . Summing over all and all permutations, we get
[TABLE]
as required.
Lastly, from the definition of it follows that
[TABLE]
We now combine all of the above to calculate . First, we can write
[TABLE]
By (15), the second term in (7.8) equals
[TABLE]
By (13) and (14), the first term in (7.8) equals
[TABLE]
If then is a template for and we are done. so suppose that . Then, by plugging (17) and (7.8) into (7.8), dividing by and rearranging, we get , as required. This completes the proof. ∎
We end this subsection with several properties of -structured graphs. The following simple lemma expresses in terms of .
Lemma 7.19**.**
If is -structured with parameter , then
[TABLE]
Proof.
Fix an arbitrary -coloring of . By summing (12) over all pairs , we get
[TABLE]
∎
In what follows, we will need the following trivial claim.
Claim 7.20**.**
Let and let . If there is such that for all , then .
In the next lemma, we show that if is -structured for two different choices of , in the sense that the ratio is different, then every -vertex-coloring of is balanced, i.e. satisfies . By normalizing, we may and will assume that one of the ’s equals .
Lemma 7.21**.**
Let and with . If is - and -structured, then every -coloring of is balanced.
Proof.
Fix any -coloring of with parts . By definition (see Definition 7.17), there exist such that
[TABLE]
and
[TABLE]
Combining these two equations, we get
[TABLE]
and
[TABLE]
Note that by assumption. Setting and , we have
[TABLE]
Note that because , as . By permuting the parts , we obtain the analogous equations for every pair of parts . In particular, for all ,
[TABLE]
We now get
[TABLE]
Combining this with (19), we get
[TABLE]
Applying this argument for in place of , we see that for every . Using that , we get by Claim 7.20. ∎
Next, we show that if is -structured with parameter , then for every -coloring of , one can express as a function of . For this is trivial (recall Definition 7.17), so we assume . As it turns out, the cases and need to be handled separately, and in the latter case we need to additionally assume that satisfies the -wise -condition. To avoid repetitions, we handle both cases together. For convenience, we assume that .
Lemma 7.22**.**
Let and suppose that is -structured with parameter . Assume that , or and satisfies the -wise -condition. Then for every -coloring of it holds that
[TABLE]
Proof.
Let be the parts of a -coloring of . By definition, for all ,
[TABLE]
Summing over all pairs , we get
[TABLE]
Let . Summing (20) over , we get
[TABLE]
Now multiply (20) (for ) by and add to (7.8), obtaining:
[TABLE]
where the second equality uses . Next, we cancel the term in (7.8). To this end, multiply (7.8) by and subtract this from (7.8) multiplied by , to get:
[TABLE]
Note that . If , then dividing through by completes the proof. Suppose from now on that . We then need another relation coming from the -condition. For every pair , . Summing this over all (ordered) pairs , we get
[TABLE]
Adding the above equation to (7.8), we get
[TABLE]
We now continue as before: multiply (20) by and add this to (24) to get
[TABLE]
In the second equality we used . Finally, multiply (7.8) by and subtract this from (7.8) multiplied by , to get
[TABLE]
Dividing through by completes the proof. ∎
8 Lower bounds
In this section, we describe some constructions that are used to prove the lower bounds in Theorems 1.4, 1.7 and 1.11. We start with an observation about regular graphs.
Lemma 8.1**.**
If is regular then .
Proof.
Let be a -edge-coloring of such that is isomorphic to . Let be the vertex whose incident edges all have color . Let be divisible by and . Let be an -blowup of . If has no perfect -factor then . Let us assume that this is not the case and let be a perfect -factor of . Let be such that is -regular and note that every -factor is also -regular. Therefore, has edges. Also, the number of edges of color is exactly . Thus, exactly half of the edges have color , meaning that has zero discrepancy. Hence, . ∎
Lemma 8.2**.**
If there exists such that for every connected component of it holds that
[TABLE]
then .
Proof.
If , then this holds trivially, because , as is the threshold for the existence of a perfect -factor by Theorem 1.2. So let us assume that . Let be divisible by and , and let be an -vertex graph which is the disjoint union of two-cliques of size each (there are no edges between and ). Note that . Let be a -edge-coloring of with for and for . Let be a perfect -factor of ; if no such exists then immediately holds. For each copy of and for each connected component of , we have by assumption
[TABLE]
Also, or , because there are no edges between and . So if and if . Summing over all and all components of , we get . As this holds for any perfect -factor of , we get . ∎
Recall the definition of butterfly graphs in the paragraph above Theorem 1.7. In the next Lemma we use the symmetry of butterflies with respect to the coloring to show that if a certain butterfly is not a template for a given graph , then all -factors of an appropriate blowup of this butterfly have discrepancy [math], giving a lower bound on . The construction is depicted on Figure 2.
Lemma 8.3**.**
If there exists a butterfly which is not a template for , then .
Proof.
Let be a butterfly with triangles and , and suppose that is not a template for . By definition, we have
[TABLE]
Let be a blowup of of size , divisible by and , with
- •
and
- •
for .
We claim that every perfect -factor of satisfies . Indeed, consider the automorphism of which swaps between and between , and let be the image of under this automorphism. Then by (26), we have . On the other hand, as is not a template for , we must have . It follows that . This proves that . ∎
Next, we prove the lower bound on in the first two cases of Theorem 1.11. The constructions use Lemma 4.2 and are depicted in Figure 3.
Lemma 8.4**.**
If fulfills the -wise -condition for some , then . Additionally, if then .
Proof.
Let be a -edge-coloring of such that is -regular; such a coloring exists because . Since satisfies the -wise -condition, so does every -factor. Hence, Lemma 4.2 with implies that for every blowup of and for every perfect -factor of , it holds that
[TABLE]
This implies that . Also, taking to be the -blowup of , we get that . Finally, if and we take to be divisible by , then has a perfect -factor by Lemma 5.2, and we get that by the definition of . ∎
Lemma 8.5**.**
If is regular and fulfills the -wise -condition for some , then .
Proof.
We give three different constructions depending on the residue of modulo , but the general idea is the same for all three. Let with and . Let be any 2-edge-coloring of such that is -regular, where is an even integer to be determined later; such a coloring exists because is even. Let be an -blowup of for some with divisible by . Let be such that is -regular and let be an arbitrary perfect -factor of . Note that is also -regular and satisfies the -wise -condition. So and is incident to edges in . Hence, . Additionally, satisfies the -wise -condition. To see this, observe that every -coloring of can be extended to a -coloring of by adding as an additional color-class. Thus, by applying Lemma 4.2 with (and with in place of ), we get
[TABLE]
We now define a -edge-coloring of as follows. First, if is contained in , then set . Second, to color the edges incident to , split into two sets and (whose sizes will be determined later), and set for all edges incident to and for all edges incident to . Then,
[TABLE]
where the last equality uses that is -regular. We now consider the different cases of modulo and choose , and so that .
- •
If , take , and .
- •
If , take and .
- •
If , take , and .
It is easy to check that is even and we have by (27) in all three cases. ∎
The final two lemmas of this section provides us with a lower bound on (and therefore also on ) for -structured graphs (recall Definition 7.17).
Lemma 8.6**.**
Suppose that and is -structured. Then
Proof.
By the definition of structuredness (see Definition 7.17), there is such that
[TABLE]
for every -coloring of and all . By summing the above equation over all , we get
[TABLE]
So . Subtracting from this the equation , we get
[TABLE]
Now consider a triangle with vertices and let be the -edge-coloring of where , . We first show that . So let be an arbitrary blowup of , and let be the clusters of (where corresponds to ). We need to show that all perfect -factors of have the same discrepancy. So let be a perfect -factor of . First note that
[TABLE]
For each -copy , consider the -coloring of given by . The number of edges of color 1 in is precisely . By (29), this number is . Summing over all -copies , we see that the number of edges of color in is precisely Therefore,
[TABLE]
which is independent of . This shows that indeed .
Let us now consider the specific case where and , for an arbitrary integer . Then and . If has no perfect -factor for any choice of , then . And otherwise, fix an for which has perfect -factors. Every perfect -factor of satisfies
[TABLE]
By the definition of , this implies that , as required. ∎
Lemma 8.7**.**
Suppose that and . Assume that is -structured, or that is -structured for some and satisfies the -wise -condition. Then
[TABLE]
The bound of in Lemma 8.7 is particularly interesting because a blowup on vertices of two copies of sharing vertices has minimum degree at most . The lower bound given by Lemma 8.7 will allow us to assume later on that (when proving upper bounds on ). We will then (implicitly) use the fact that is not a blowup of two -cliques sharing vertices. See Lemma 11.4.
Proof of Lemma 8.7.
We assume that is -structured, where or and . In particular, and . First we show that there exist such that for every -coloring of ,
[TABLE]
It is enough to show this for . Let be such that is -structured with parameter (recall Definition 7.17). If then (30) is trivially satisfied for and . Otherwise, we have that . Then, by Lemma 7.22, we get that
[TABLE]
Observe that in all possible choices of , we have , and equality holds only if , and . We consider this case first. Then (31) becomes
[TABLE]
We claim that . To see this, we use that is -structured, summing (12) over all pairs . This gives:
[TABLE]
Now divide both sides of (32) by to get Since this holds for every -coloring of , we get that every -coloring of must be balanced by Claim 7.20. This implies that by the definition of . Now, .
Suppose from now on that . Then . Thus, dividing both sides of (31) by , we get that (30) is satisfied for and This proves (30). Note also that either and , or and Since , we get in either case that
[TABLE]
Next, we use (30) to complete the proof of the lemma. First, we claim that for every -coloring of it holds that . Indeed, let be an arbitrary blowup of , and let be any perfect -factor of . Let be the parts of . By summing (30) over all copies of in , we get that
[TABLE]
for all . This implies that
[TABLE]
which is independent of , since . This means that all perfect -factors of have the same discrepancy. It now follows, by the definition of , that .
Next, we define a certain -edge-coloring of , as follows. Write . We claim that there exists a coloring such that for every incident to , and . Indeed, there are edges incident to , and for . Hence, there is a coloring such that for all , and colors exactly edges with color . Here we use that is odd because . So the number of edges of color is , and hence , as required. We fix such a coloring from now on.
Fix such that , where is the constant from (30). Fix an integer divisible by , and let be the blowup of with and with parts (where corresponds to ), such that and for all , where
[TABLE]
By our choice of both and are integers. Next, we show that
[TABLE]
As , to prove the lower bound in (35) it suffices to check that which holds for . For the upper bound, we use that and therefore . Hence, it suffices to verify that which holds for .
The bounds in (35) imply that
[TABLE]
In particular, is the smallest part in the blowup , by (35) and (36). Therefore, . If for all , the blowup has no perfect -factor, then, using Theorem 1.2, we see that as needed. Else, fix such that has perfect -factors, and let be an arbitrary -factor of . For convenience, we use the notation . By (34), we have
[TABLE]
using that . Recall that and . Hence, and . It follows that
[TABLE]
by our choice of . As , this implies as needed. ∎
9 When all -cliques have the same discrepancy
In this section we consider the situation when all -cliques in the reduced graph have the same discrepancy sign (i.e. all have positive discrepancy or all have negative discrepancy). By symmetry, we may assume that all have positive discrepancy (else swap the colors). As usual, we work under the setup described in Section 6.2. The main result of this section is the following:
Lemma 9.1**.**
Assume the setup of Section 6.2. If is non-regular and all copies of in have positive discrepancy, then there exists a perfect -factor in with high discrepancy.
The proof of Lemma 9.1 is broken into two cases depending on whether or not is uniform (recall Definition 7.6). These two cases are handled in the following two subsections. Recall the definition of the -partite graph (see Definition 5.5). Namely, recall that if then , and otherwise is a complete -partite graph satisfying the properties in Lemma 5.4. Recall also that is the exceptional class in the regular partition of , and that for a vertex , we use to denote the part of the partition containing (so is a vertex of the reduced graph ).
9.1 Proof of Lemma 9.1: is non-uniform
Here we prove Lemma 9.1 in the case that is non-uniform.
By Lemma 6.5, has a perfect -factor . Suppose first that there exists a copy of disjoint from with parts , and vertices , , such that . Fix arbitrary for . Since is non-uniform, there exists an -coloring of such that , by Claim 7.8. This implies that there exists a vertex with . Consider the -cliques and in . If have different discrepancies (with respect to ), then is a template for by Lemma 7.2 (as is non-regular), and then has a perfect -factor with high discrepancy by Lemma 6.7, completing the proof. We may therefore assume that . Then we can apply Lemma 7.4 with , to conclude that is a template for . Now we are again done by Lemma 6.7.
So from now on, let us assume that as above does not exists. This means that for every copy of disjoint from , if denote the parts of , then all bipartite graphs are monochromatic with respect to . In other words, is a blowup of for some -edge-coloring of . Fix arbitrary , and consider the -clique in . By (6), is colored by in the same way as by . Hence, , using our assumption that every -clique in has positive discrepancy. If is a template for then we are done by Lemma 6.7 as before, and else we have by definition. Now, by Lemma 5.6, we see that every perfect -factor of has positive discrepancy.
For each , let be a perfect -factor in . Then is a perfect -factor of . We saw that if then , and so . Using that , we obtain
[TABLE]
This completes the proof in the case that is non-uniform.
9.2 Proof of Lemma 9.1: is uniform
Here we prove Lemma 9.1 in the case that is uniform. First, by Lemma 6.5, has a perfect -factor . The key part of the proof is the following lemma:
Lemma 9.2**.**
Let be a copy of disjoint from . Then every perfect -factor of satisfies
[TABLE]
or there exists a template for in of size .
Proof.
For , the statement follows trivially as each edge in has positive discrepancy and therefore, (and hence also ) are monochromatic. Therefore, let us assume that . By Lemma 7.2, we may assume that there do not exist two copies of in sharing vertices with different discrepancies, as otherwise there is a template for (since is non-regular). Let be a copy of disjoint from . Let be the clusters of and fix arbitrary vertices . Let be an arbitrary -factor in .
Claim 9.3**.**
For each , it holds that either for all vertices and , , or for all vertices and , .
Proof.
Without loss of generality, . Observe that if the assertion of the claim does not hold, then there exist and such that . Without loss of generality, and . Since is disjoint from , we get that and are -cliques in . We have because, by assumption, every two -cliques in sharing vertices have the same discrepancy. It follows that
[TABLE]
Note that , as is a complete -partite graph. By the same argument with in place of , we get
[TABLE]
By subtracting the second from the first equation, we get
[TABLE]
But this is a contradiction since and . ∎
We continue with the proof of Lemma 9.2. Let us say that is split for if there exist vertices and a vertex such that . Note that if for some and , is split for , then all the vertices in have only monochromatic edges to by the above claim. Therefore, each pair can be split at most for one of the two. Recall that by assumption, all -cliques in have positive discrepancy. Let
[TABLE]
First, let us assume that does not have a split pair. It follows that for all , is monochromatic with color . As is uniform, we get that for every -copy
[TABLE]
This implies that
[TABLE]
Next, let us assume without loss of generality that is split for . Then, there exist and such that and . As the -cliques and have the same discrepancy and , we may assume by Lemma 7.4 that for every -vertex-coloring of with parts it holds for all that
[TABLE]
as otherwise is a template for and we are done. For every , let be the set of indices such that is split for .
Claim 9.4**.**
For every and it holds that
[TABLE]
or there exists a template for in of size .
Proof.
Without loss of generality, suppose that there are such that
[TABLE]
Consider the -cliques and in . Observe that
[TABLE]
Here we used that for all . By Lemma 7.2, is a template for . ∎
We now conclude the proof of Lemma 9.2. Fix an -copy , and let , . By (37), each vertex has the same number of neighbours in for each . So this number is . Furthermore, if then for each we have , as all edges between and have the same color. Hence, for each ,
[TABLE]
where the second equality uses Claim 9.4 with , and the last equality uses , which holds by the assumption that for all ( is uniform). Now, we get
[TABLE]
Indeed, using that can not be split for both and , we see that each pair appears exactly once in the above two sums. Hence,
[TABLE]
As this holds for every -copy in , we get that
[TABLE]
So , as required. This proves Lemma 9.2. ∎
Using Lemma 9.2, we can now conclude the proof of Lemma 9.1 (for uniform ). If has a template for of size then we are done by Lemma 6.7. Else, by Lemma 9.2, for every -copy with , every -factor of has (strictly) positive discrepancy. Let be a perfect -factor in , obtained by taking a perfect -factor of each . Note that at most many -copies contain a vertex of , and each -factor in contains at most edges. Hence,
[TABLE]
as required.
10 Violating the -condition
In this section we handle graphs that violate the -wise -condition for a certain . This forms an important part in the proofs of our main results. As always, denotes the chromatic number of . The main result is as follows.
Lemma 10.1**.**
Suppose that violates the -wise -condition, where or . Then
[TABLE]
Before proving Lemma 10.1, let us prove the following important corollary.
Corollary 10.2**.**
Let be an -chromatic graph. If then , and if then .
Proof.
The key is to observe that an -chromatic graph fails the -wise -condition. Indeed, take any -coloring of . Then, considering the -coloring with , we see that (as is -chromatic). So indeed violates the -wise -condition. For (resp. ), the corollary now follows by Lemma 10.1 applied with (resp. ). ∎
We now proceed with the proof of Lemma 10.1. As always, we work under the setup introduced in Section 6.2. In particular, we always assume that
[TABLE]
Recall the definition of a - and -star, and the head of such a star (see Definition 7.9). Evidently, every 2-edge-colored triangle is either monochromatic or a star. The proof of Lemma 10.1 is split into two cases: and . The difference between these cases stems from the fact that the -star has zero discrepancy (while the -star has non-zero discrepancy for ).
10.1 Proof of Lemma 10.1:
Here we prove Lemma 10.1 in the case . If there exists a copy of in which is neither monochromatic nor a star with respect to , then, by Lemma 7.10, this copy of is a template for , and then by Lemma 6.7, there exists a perfect -factor in with high discrepancy. Therefore, let us assume that all the copies of in are either monochromatic or a star. In the following argument, we make repeated use of the following three facts:
- F.1
Every four vertices in have at least one common neighbor. 2. F.2
For all , each copy of is contained in some copy of . 3. F.3
For all , every copy of which contains a non-monochromatic triangle must be a star with the head of the triangle being the head of the star.
F.1 and F.2 follow from , by (38). And F.3 follows from F.2, since otherwise there is a copy of in which is neither a star nor monochromatic. The following claim is an important step in this proof.
Claim 10.3**.**
If is the head of some non-monochromatic triangle . Then, for every triangle with , it holds that (i.e. is colored the same way as ) and is the head of .
Proof.
Let be as in the statement and let us assume without loss of generality that , meaning that and . Let be an arbitrary triangle with , and write . By F.1, the vertices have a common neighbor . Note that is a copy of in containing and thus, by F.3, we have . Therefore, is a non-monochromatic triangle with as its head. By F.1, there exists such that is a common neighbor of . By applying F.3 to the -clique we get that , and by applying F.3 to the -clique we get that . Finally, let be a common neighbor of . Using F.3 as before, we find that by considering the -clique , and that by considering the -clique . So is indeed a non-monochromatic triangle with as its head and . ∎
Claim 10.3 implies that if is the head of a non-monochromatic triangle, then is not contained in any monochromatic triangle and must be the head of any (non-monochromatic) triangle containing it. Also, all edges inside (the neighborhood of in ) have the same color.
Now, we can make a further statement about the coloring of the copies of in . Recall that (resp. ) denotes the monochromatic -clique where all edges have color (resp. ).
Claim 10.4**.**
Either every copy of in is a copy of or the -star, or every copy of in is a copy of or the -star.
Proof.
Observe that and a -star both contain a monochromatic triangle in color , and similarly, and a -star both contain a monochromatic triangle in color . Therefore, if the claim does not hold, then contains monochromatic triangles in color and in color . By Claim 10.3, none of the vertices in and are the heads of any stars of size , because they belong to a monochromatic triangle. Let and and by F.1, let be a common neighbor of . Note that cannot be the head of any non-monochromatic triangle, since this would imply (by Claim 10.3) that all edges in have the same color, while It follows that the triangles , are monochromatic, because none of the vertices can be the head of a non-monochromatic triangle. So we have . Let be a common neighbor of (using F.1). Without loss of generality, suppose that . Then the triangle is not monochromatic, and its head must be . Now, by Claim 10.3, the triangle must also be non-monochromatic with head . This implies that , a contradiction. ∎
By Claim 10.4 and without loss of generality, let us assume that every copy of in is either a copy of or a -star. Note that both and a -star have positive discrepancy, because . We now consider two sub-cases based on whether is regular.
Case 1:
is non-regular. If , then every copy of in has positive discrepancy. We then get a perfect -factor in with high discrepancy by Lemma 9.1. So let us assume that . Suppose first that there is a -star in . Clearly, contains a -star . By Corollary 7.3, is a template for (as is non-regular). Now, by Lemma 6.7, has a perfect -factor with high discrepancy, completing the proof in this case. Therefore, we may assume that every copy of in is monochromatic in color 1. Then, by F.2 with , all edges in have color . By Lemma 9.1 again, has a perfect -factor with high discrepancy.
Case 2:
is -regular for some . Let be the set of vertices which are the heads of a -star in . Observe that if has color then or . Indeed, by F.2, is contained in some triangle in , and this triangle must be a -star (as every triangle in is either a or a -star). The head of this star must be or , so one of them is in . We see that only has edges colored . Additionally, is an independent set in . To see this, let and assume towards a contradiction that . By F.2, is contained in some triangle in . By Claim 10.3 and the definition of , both and must be the head of this triangle, a contradiction.
By (38) and as , we have . Since is an independent set in , we must have Therefore, satisfies
[TABLE]
Note that all the edges of color in are incident to either or , because all edges in outside have color . By Lemma 6.5, has a perfect -factor . Since is -regular, so is . Hence, the number of edges of color in is at most . It follows that
[TABLE]
This concludes the proof.
10.2 Proof of Lemma 10.1:
Here we prove Lemma 10.1 in the case . If contains a template for of size , then by Lemma 6.7, there exists a perfect -factor in with high discrepancy, as required. So let us assume that contains no such template.
We consider two cases. Suppose first that the -star is not a template for We claim that in this case, . For the upper bound, recall that if violates the -wise -condition, then it also violates the -wise -condition. Hence, violates the -wise -condition, and by the case of Lemma 10.1, we have . For the lower bound, let be the -edge-coloring of corresponding to the -star. Note that . Let be the -blowup of . By Lemma 5.2, there is a perfect -factor of with discrepancy [math], as . As we assumed that the -star is not a template for , we get that , and hence
[TABLE]
as required.
From now on, let us assume that the -star is a template for , and by symmetry so is the -star. As we assumed that has no template for , we get that contains no -star and no -star. It now follows, by Lemma 7.10, that all copies of in are monochromatic. By (38), we have . This implies that each triangle in is contained in a , and hence all triangles in are monochromatic. We claim that all edges of have the same color. Suppose not. Then, as is connected (by ), there exist vertices such that and . Again using , there exists a common neighbor of . It follows that either or form a non-monochromatic triangle in , depending on the color of with respect to . This gives a contradiction. So we see that is monochromatic, which means that all edges of not touching have the same color. By Lemma 6.5, has an -factor . Now we get
[TABLE]
11 Non-regular
In this section we deal with the case that is non-regular. This comprises the main part of the proofs of Theorems 1.7 and 1.11. We shall prove three key lemmas (Lemmas 11.1, 11.3 and 11.4) that are used in the proofs of these theorems. The basic idea in the proof of these lemmas is as follows. First, in all cases, the minimum degree assumption implies that the reduced graph contains -cliques. Then, by Lemma 9.1, we may assume that there exists an -clique with positive discrepancy, as well as an -clique with negative discrepancy. Using Lemma 4.1, we can then connect with a sequence of -cliques with each pair of consecutive cliques intersecting in at least or at least vertices, depending on the assumed minimum degree of . We therefore have two -cliques sharing or vertices, one having positive discrepancy and the other negative. With a slight abuse of notation, we assume that are such -cliques. Then, either is a template for (in which case we are done by Lemma 6.7), or the coloring of has some specific structure, by the lemmas from Section 7. In more involved cases (mainly Lemma 11.4), we determine properties of the coloring on a large portion of , under the assumption that has no small template for .
In each of the three lemmas we shall make certain assumptions on the residue of modulo , which correspond to different cases in the proof of Theorem 1.11. We also often assume that satisfies the -wise -condition. (If violates the -wise -condition, then Lemma 10.1 immediately gives the required bounds for Theorem 1.11, as we shall see in Section 12.3.) The first lemma is as follows.
Lemma 11.1**.**
If and is non-regular, then
In the proof of Lemma 11.1, we may assume that . This assumption has two important consequences: First, it guarantees that , and second, it implies that every -clique is contained in an -clique. This allows us to use Lemma 7.2 and Corollary 7.3 to conclude the proof. The details follow.
Proof of Lemma 11.1.
As always, we work under the setup described in Section 6.2. In particular, as we are aiming for the bound , we assume that
[TABLE]
Our goal is to show that contains a perfect -factor with high discrepancy. If has a template for of size , then we are done by Lemma 6.7. We therefore assume that has no such template. This implies that for every -clique in , is regular (with respect to ), because otherwise is a template for by Corollary 7.3 (as is non-regular). Next, we need the following very simple claim.
Claim 11.2**.**
Let be an -clique with an edge-coloring , let be such that is -regular, and let , . Then .
Proof.
. Hence,
[TABLE]
∎
We now continue with the proof of the lemma. Suppose first that there exist two copies of such that is -regular and is -regular for some . Let and of size each. Since , it follows by Claim 11.2 that . By Lemma 4.1 there exists a sequence of copies of with and and such that and share vertices for each . But then, there must exist some such that . Now is a template for by Lemma 7.2, in contradiction to our assumption.
So from now on, we assume that there exists such that for every -clique , is -regular. Trivially, Note that , because if is even then is odd and so , and if is odd then must be even, so as Without loss of generality, let us assume that (otherwise consider in place of , replacing with ). We claim that every copy of in has positive discrepancy. Indeed, as , there exists an -clique containing . Now, Claim 11.2, . Finally, by Lemma 9.1, has a perfect -factor with high discrepancy, as required. ∎
The following is the second of the three lemmas.
Lemma 11.3**.**
Suppose that . Assume that is non-regular, fulfills the -wise -condition, and violates the -wise -condition. Then
[TABLE]
The proof of Lemma 11.3 proceeds by distinguishing between two cases. The first case is that there exists an -factor which is not balanced-uniform (recall Definition 7.12). In this case we will show that and hence , and this will match the upper bound on we get from Lemma 10.1. Here the assumption will play a crucial role. The second case is that there exists a non-balanced-uniform -factor. Here we will proceed by finding two -cliques with and such that has positive discrepancy and has negative discrepancy, as explained above. We will eventually conclude that is a template for by Lemma 7.5, finishing the proof. The details follow.
Proof of Lemma 11.3.
As always, we work under the setup of Section 6.2. In particular, we assume that
[TABLE]
As for every -chromatic graph, we have
[TABLE]
Our goal is to show that contains a perfect -factor with high discrepancy. Since violates the -wise -condition, we may apply Lemma 10.1 with to get
[TABLE]
Hence, if then we are done. So from now on we assume that
[TABLE]
In particular, , which implies that has an unbalanced -coloring. We now consider two cases. For what follows, recall Definition 7.12.
Case 1:
Every -factor is balanced-uniform. We will show that then , which would contradict our assumption (40) and hence conclude the proof in this case. Fix a -edge-coloring of such that ; such a coloring exists because has an even number of edges, as . By Lemma 7.15, we have . Let be an -blowup of , where is divisible by . By Lemma 5.2, has a perfect -factor. We claim that for every perfect -factor of it holds that . Indeed, let be the parts of . By assumption, is balanced-uniform. Hence, for all . Therefore, , as required. It follows that , as claimed.
Case 2:
There exists a non-balanced-uniform union of disjoint copies of .111It is worth noting that the argument in Case 2 only requires that (instead of the stronger assumption ). By Claim 7.14, there exists a balanced -coloring of such that . We may assume that contains no template for on at most vertices, as otherwise, by Lemma 6.7, contains a perfect -factor of high discrepancy and we are done.
If contains an -clique such that is non-regular (with respect to ), then by Lemma 7.13, is a template for , contradicting our assumption. So suppose from now on that every -clique in is such that is regular.
Assume first that there exist two -cliques such that is -regular and is -regular for some . Using (39) and Item 2 of Lemma 4.1, we obtain a sequence of -cliques with and , such that each pair of subsequent -cliques share at least vertices. So there exist two -cliques in sharing at least vertices, such that is -regular and is -regular for some . Without loss of generality, let us assume that were such -cliques to begin with. If then is a template for by Lemma 7.2, and if then is a template for by Lemma 7.5. In either case, we get a contradiction to our assumption.
Now assume that -cliques in are -regular with the same (in the sense that is -regular). Without loss of generality, let us assume that , as otherwise we may swap the colors, replacing with . Note that because . As , all copies of in have positive discrepancy. Now, by Lemma 9.1, has a perfect -factor with high discrepancy, completing the proof. ∎
Finally, we arrive at the last of the three main lemmas, Lemma 11.4. This lemma deals with the case . Its proof is by far the most involved part of this section. Recall the definition of a butterfly from the introduction.
Lemma 11.4**.**
Suppose that and . Assume that satisfies the -wise -condition and is non-regular. Then
[TABLE]
Let us comment on the proof of Lemma 11.4. Similarly to previous proofs, the proof of Lemma 11.4 begins by finding two -cliques with such that has positive discrepancy and has negative discrepancy. As always, we may assume that contains no small template for , as otherwise we are done by Lemma 6.7. In particular, is not a template for . Then, by Lemma 7.18, is -structured (for given by that lemma). In the case (namely ), we can use Lemma 8.7 to deduce that , which allows us to assume that . This minimum degree assumption is crucial for the proof, allowing us to establish various structural properties of and . Eventually we show that is strongly tilted towards one of the colors, which allows us to find a perfect -factor of high disrepancy.
The case is somewhat different. Note that for . Big parts of the proof for carry over to the case , provided we assume that . However, we may not make this assumption in all cases, because for some -chromatic graphs , the value of is smaller than . It turns out that making the assumption is justified exactly when some butterfly is not a template for (cf. Lemma 8.3). The proof of Lemma 11.4 is given in the next subsection.
11.1 Proof of Lemma 11.4
By Lemma 11.1, we have
[TABLE]
Therefore, if then the assertion of Lemma 11.4 holds. So from now on, we assume that . In particular, . By the definition of , this implies that
[TABLE]
As always, we work under the setup of Section 6.2, therefore assuming that
[TABLE]
and
[TABLE]
Since for every -chromatic , (43) implies that
[TABLE]
We shall show that has a perfect -factor with high discrepancy. Throughout the proof, we assume that contains no template for on at most vertices, as otherwise we are done by Lemma 6.7. The following claim is used multiple times throughout the proof.
Claim 11.5**.**
There is no sequence of copies of , such that for every and .
Proof.
As , there exists such that . Using that is non-regular, we get that is a template for by Lemma 7.2. However, we assumed that has no such template for , a contradiction. ∎
By (45), contains a copy of . Since , has an odd number of edges and thus, without loss of generality, let us assume that contains a copy of with . If all copies of in have positive discrepancy, then we are done by Lemma 9.1. Suppose therefore that also contains a copy of with . By Lemma 4.1 and (45), there exists a sequence of copies of with and such that every pair of subsequent copies share at least vertices. Therefore, there exist two copies of sharing at least vertices with discrepancies of different signs. Without loss of generality, let us assume that and are such copies. If then this is a contradiction to Claim 11.5. Suppose then that . Put , and .
We proceed with the proof of Lemma 11.4. By assumption, is not a template for . Hence, by Lemma 7.18, is -structured with
[TABLE]
and
[TABLE]
Crucially, note that . Indeed, if then because .
By the definition of being -structured (see Definition 7.17), there exists such that for every -coloring of and for all , it holds that
[TABLE]
First we handle the case that is uniform (recall Definition 7.6). Then for every -coloring of and for all , it holds that
[TABLE]
where the second equality uses the uniformity of . It follows that because . We get that is the same for all . By Claim 7.20, . This means that only has balanced -colorings, contradicting (42).
For the rest of the proof, we assume that is non-uniform. By Lemma 7.7 and as is not a template for (by assumption), we have that
[TABLE]
In the next claim, for the case , we classify the possible colorings of the triangles . Also, for each case, we specify the corresponding values of .
Claim 11.6**.**
Suppose that . Then one of the following holds:
* are monochromatic. In this case .* 2. 2.
. In this case . 3. 3.
* is a butterfly and are not monochromatic. In this case .* 4. 4.
Exactly one of and is monochromatic and . In this case .
Proof.
Clearly, if is monochromatic then it has color (as ), and similarly, if is monochromatic then it has color . If then we are in Case 2, and by (47). So let us assume that . If is monochromatic then , so this is covered by Case 1 or Case 4. In both cases, it is immediate to compute from (46) and (47).
Suppose then that is not monochromatic. By symmetry (with respect to switching the colors), we can also assume that is not monochromatic.
Write . Suppose first that . Then , and we also must have , (because , ). So is a butterfly (Case 3), and by (46) and (47). Suppose now that that . Then, , and without loss of generality (up to switching or ), we have , , , . So again is a butterfly, and . ∎
Next, we address some subcases of the case , namely, Cases 1-2 in Claim 11.6. These cases need to be handled separately.
11.1.1 Cases 1-2 of Claim 11.6
Throughout this section we assume that . Our goal is to complete the proof of Lemma 11.4 in Cases 1-2 of Claim 11.6. Case 1 is simple, while Case 2 requires considerable work.
Case 1:
By (42), has an unbalanced -coloring. Fix such a coloring , and suppose without loss of generality that . By Claim 11.6, . By (48), we have
[TABLE]
for every pair . In particular, . So for all . But this implies that in contradiction to . This completes Case 1.
Case 2:
. By Claim 11.6, we have . Then , because . By normalizing, we get that is -structured (recall that if is structured then it is also -structured). With a slight abuse of notation, we will set for the rest of Case 2. By (48),
[TABLE]
holds for every -coloring of and for all . Summing this over all , we get
[TABLE]
Hence,
[TABLE]
This implies that . Combining (51) with (50), we get
[TABLE]
Next, we show that a pair of intersecting triangles in cannot have opposite edges of different color.
Claim 11.7**.**
Let be two distinct triangles in with . Let be edges with and . Then .
Proof.
Suppose first , so that . Assume, for the sake of contradiction, that . By assumption, is not a template for . Then, by Lemma 7.18, is -structured with (the value of will not be important). By normalizing, is -structured for some . In addition, we saw above that is -structured. So by Lemma 7.21, every -coloring of is balanced, a contradiction.
Suppose now , and write , , , . Recall that by (45). This implies that for each , there exists a common neighbour of , . By the previous case for the triangles and , it holds that . Similarly, . Finally, by considering the triangles and , we get that , so . ∎
Claim 11.7 means that for every vertex , all edges opposite in triangles containing have the same color. Let be the vertices for which these edges have color , and let be the vertices for which these edges have color . We now consider two cases according to the size of the sets .
Case 2(a):
or . Without loss of generality, assume that . Recall the definition of the graph (see Definition 5.5). In particular, is a complete -partite graph and has a perfect -factor. Recall the definition of (i.e., is the exceptional set in the regular partition of ). Finally, recall that for a vertex-set , denotes the union of clusters corresponding to the vertices of . Put and . In the following key claim, we show that if is an -copy in disjoint from , then for every perfect -factor of , the discrepancy of can be expressed in terms of the intersection of with and . We will then use this claim to conclude the proof in Case 2(a).
Claim 11.8**.**
Let be an -copy in with . Then for every perfect -factor of ,
[TABLE]
Proof.
Recall that for a vertex , we use to denote the cluster of the regular partition containing . The assumption means that is well-defined for every .
Let be the parts of . We claim that all bipartite graphs , , are monochromatic. Indeed, assume by contradiction (and without loss of generality) that there exist and with . Fix an arbitrary . Consider the clusters corresponding to the vertices , respectively. Then and are triangles in , and the edges and opposite in these triangles have different colors (as ). This is a contradiction, proving our claim that all bipartite graphs are monochromatic. This means that is a blowup of for some coloring of .
Next, we claim that or for each . Let us prove this for . Fix arbitrary vertices and . As is a complete tripartite graph, every vertex forms a triangle with . Now, by definition, if then and hence for all , and if then and hence for all . This proves our claim.
Let be a copy of in , and let , so that is a -coloring of . Observe that if (resp. ) then all edges between have color (resp. ). Moreover, by (52). By using this and the analogous statement for the pairs and , we get the following:
[TABLE]
Summing the above over all -copies in gives (53). ∎
We now conclude Case 2(a). By Lemma 6.5, has a perfect -factor . Recall that (by (51)) and therefore, any perfect -factor of has exactly edges. Let be a perfect -factor of , obtained by taking a perfect -factor of each -copy in . Our assumption means that and hence . There are at most copies of in which intersect , and for each such copy , has edges. For all other -copies , we use (53) with . Combining all of this, we get:
[TABLE]
The quantity in the second line of (54) is a lower bound in over all with . The penultimate inequality in (54) holds because , , and depends only on and . Finally, the last inequality in (54) holds because , and depends only on . By (54), has high discrepancy. This concludes Case 2(a).
Case 2(b)
. We will show that this case is impossible. First, we prove some structural properties of and .
Claim 11.9**.**
* and are triangle-free.*
Proof.
We only prove the assertion for ; the proof for is analogous. Let be the largest clique in . We need to show that . Suppose by contradiction that . Then, all the edges in must have color , because each such edge is contained in a triangle in , hence it is the edge opposite to a vertex from in a triangle. By (45),
[TABLE]
Note that no two vertices in share a neighbor in , because else we get a triangle containing a vertex from whose opposite edge has color , contradicting the definition of . Also, each vertex in can only be connected to at most vertices in , as otherwise we add this vertex to and get a larger complete graph inside , contradicting the maximality of . It follows that
[TABLE]
using . This contradicts (55). ∎
Claim 11.10**.**
Every vertex in has an edge of color to some vertex in , and every vertex in has an edge of color to some vertex of .
Proof.
We only prove the assertion for vertices ; the other case is symmetrical. So let . Since by (45), must have a neighbour in . Since , there is a common neighbour of . Then because is triangle-free by Claim 11.9. The edge has color because it is the edge opposite in the triangle . So indeed has an edge of color to . ∎
Claim 11.10 implies that there exists a cycle in the bipartite graph with edges of alternating color. To see this, consider an orientation of the edges of where all edges of color are oriented from to and all edges of color are oriented from to . In this orientation, every vertex has outdegree at least (by Claim 11.10), and therefore there exists a directed cycle, which corresponds to a cycle whose edges alternate in color.
By averaging, there is a vertex which is connected to at least vertices of . Note that the edges of of color as well as the edges of color form a perfect matching of . Therefore, there exists an edge of color in such that is connected to both of its endpoints and similarly, an edge of color in such that is connected to both of its endpoints. But then is contained in a triangle with opposite edge of color and in a triangle with opposite edge of color , a contradiction. This completes Case 2(b) and hence Case 2 altogether.
11.1.2 Minimum degree at least and the structure of
We continue with the proof of Lemma 11.4. From now on, we will assume that if then Cases 1-2 of Claim 11.6 do not hold. The following key claim provides a lower bound on .
Claim 11.11**.**
It holds that
[TABLE]
Proof.
By (46) and (49), we have . Note also that by (47), and recall that . We now normalize the parameters in order to apply Lemma 8.7. Recall that if is -structured then it is also -structured for every . If then by normalizing, we may assume that . And if , then by dividing by , we may assume that and . In any case, the normalized parameters fit the assumption of Lemma 8.7. Hence, if , then Lemma 8.7 gives
[TABLE]
It remains to prove (56) when . Note that for . By assumption, we are in Case 3 or 4 of Claim 11.6. Suppose first that we are in Case 3, so is a butterfly. By assumption, is not a template for . Hence, there exists a butterfly which is not a template for . Now (56) holds by (44). Finally, suppose that we are in Case 4 of Claim 11.6. Then is -structured. Now, by Lemma 8.6, , so again (56) holds by (43). ∎
The proof proceeds with a sequence of claims that slowly uncovers the structure of , deducing the color of various edges from the assumption that does not have templates for . For example, in the case , we will eventually show that is strongly tilted towards one of the colors, which will allow us to find a perfect -factor with high discrepancy. The bound (56) will be crucial.
Recall that and . Let be the common neighborhood of and , the common neighborhood of and , the common neighborhood of and , and the common neighborhood of and . Note that for . Using (56), we get
[TABLE]
We now establish some properties of the sets .
Claim 11.12**.**
For every edge it holds that , and for every edge it holds that .
Proof.
We only prove the claim for ; the proof for is analogous. Let us assume by contradiction that there exist vertices such that and . By definition, are adjacent to all vertices in , hence is an -clique in . Without loss of generality, let us assume that . Then is adjacent to , so is also an -clique. Now, is a sequence of -cliques with , so by Claim 11.5,
[TABLE]
Now, consider the two -cliques . We have , so . Also, because . By Claim 11.5 we know that , so . As is not a template for , we have by Lemma 7.18 that is -structured with
[TABLE]
and
[TABLE]
As before, because . As , exactly one of is zero. Also, for the pair among where the second coordinate is not zero, we can normalize this coordinate to be . Now satisfies the conditions of Lemma 7.21. Hence, by Lemma 7.21, all -colorings of are balanced, contradicting (42). ∎
Claim 11.13**.**
The sets and are disjoint, and has no edges between and .
Proof.
We first prove the second part of the claim. So assume that there exist and such that . Without loss of generality, let us assume that and (the other three cases are similar). Then, by definition, are adjacent to all vertices of , is adjacent to , and is adjacent to . So is a sequence of copies of with every two consecutive copies sharing at least vertices. This contradicts Claim 11.5 as .
Now assume by contradiction that there is . Without loss of generality, suppose that . In particular, is adjacent to . As , the edge goes between and . This is a contradiction, as we already showed that there are no edges between and . ∎
Claim 11.14**.**
Either both and are not independent sets, or both and are not independent sets.
Proof.
Let us assume that one of is independent, and show that then are not independent. So suppose without loss of generality that is independent. Then and are disjoint, because is connected to all of . By Claim 11.13, there are no edges between and . Hence, if were also independent, then every vertex in would have degree at most
[TABLE]
using (57). This contradicts (56). By the same argument, is also not independent. ∎
Without loss of generality, let us assume that neither nor is an independent set in . For the rest of the proof, fix an edge . By definition, are adjacent to and all vertices of . Hence, is a clique of size in . We now show that is monochromatic.
Claim 11.15**.**
* is monochromatic with respect to .*
Proof.
For convenience, put . By Claim 11.12 and as , , we have
[TABLE]
By assumption, is not a template for . By Corollary 7.3, this means that is -regular for some . If then is monochromatic, so let us assume, by contradiction, that .
Suppose first that . By (58), is a monochromatic triangle of color . A regular graph on vertices containing a triangle must be a complete graph, so is monochromatic, as required.
From now on, assume that . Since , has an edge of color to some vertex . By (58), . Now consider the two -cliques and . Then , so by Claim 11.5. We will now apply Lemma 7.7 to with and (and with in the role of ). Note that
[TABLE]
using that . As , it follows that
[TABLE]
Now Lemma 7.7 implies that is a template for , contradicting our assumption that has no such template. ∎
By Claim 11.15, is monochromatic. As intersects the -clique in vertices, we must have by Claim 11.5. Since , it follows that is monochromatic222It is worth noting that from this point on, we must have ; namely, the proof is already complete for all . Indeed, since all edges in have color , and has exactly edges not contained in , we have which only holds if . So the remaining cases are . in color , and in particular .
Recall that is -structured. Using that is monochromatic in color , we now show that only few options for and are possible.
Claim 11.16**.**
The following holds:
Suppose that . Then is -structured or -structured. 2. 2.
Suppose that . Then and is -structured.
Proof.
We begin with the case , namely . If then by definition, recall (47). As , we can normalize to get that is -structured.
Suppose now that . Then . Also, using that and , we get
[TABLE]
where the last inequality holds for . Contrasting this with (49), we see that the LHS of (59) equals , which implies that by (46). So is -structured and hence -structured.
Now suppose that . By assumption, we are in Case 3 or 4 of Claim 11.6. Case 3 is impossible because is monochromatic, hence we are in Case 4. So is -structured and (as is not monochromatic and ). ∎
Claim 11.17**.**
.
Proof.
We will show that is an independent set (the same is true for ). This will imply the claim because is adjacent to all vertices in (by the definition of ), so if there existed , then would be an edge inside , a contradiction.
So let us assume, by contradiction, that has an edge with . By the definition of , are adjacent to .
Suppose first that . By Claim 11.12, the triangle is monochromatic (with color ). Write (recall that ). So is a triangle. Now, is a sequence of triangles with . Also, is monochromatic, while is not monochromatic because by Claim 11.16. This contradicts Claim 11.5.
Suppose now that , namely . Note that is a copy of in . By assumption, is not a template for . Hence, by Corollary 7.3, there is such that is -regular. All edges inside have color , so all edges of of color must touch . Considering the edges of color touching , we get . As , we get that , i.e. is monochromatic in color . In particular, and all edges between and have color . By Claim 11.12, . Hence, the only edges of that can have color are edges between and . The number of these edges is the same as the number of edges between and , which all have color . So , a contradiction. This completes the proof of the claim ∎
We can now complete the proof in the case . By Claim 11.16, is -structured. By Lemma 8.6, we have . Thus, by (56),
[TABLE]
This allows us to improve on (57) as follows:
[TABLE]
By Claim 11.17, and are disjoint and therefore, . Now recall that and by Claim 11.13, is not adjacent to any vertex in . This contradicts with (60), completing the proof of Lemma 11.4 for . For the rest of the proof, we assume that , namely . This case is handled in the following subsection.
11.1.3 Concluding the proof: The case
Recall that is an edge of with , so that are adjacent to all vertices in . Let be the common neighborhood of and , and note that . By Claim 11.13, and are not adjacent to any vertex in . Using that and are disjoint (by Claim 11.17),
[TABLE]
where the last inequality uses (56) and (57). As , each vertex in is adjacent to all but at most of the vertices, and hence
[TABLE]
The minimum degree of implies the following:
[TABLE]
Claim 11.18**.**
Every edge inside has color .
Proof.
Assume by contradiction that there is an edge of color inside . By (63), there is an -clique which contains . Using that are adjacent to all vertices in , we see that is an -clique containing and . As , we have .
Now consider and , which are both cliques of size contained in . By Item 1 of Lemma 4.1 with and , using (62), there is a sequence of -cliques inside , such that , , and share at least vertices for all . Let . Then is an -clique in , and share at least vertices for all . Also, as is monochromatic in color , we have
[TABLE]
This contradicts Claim 11.5. ∎
Let . By Claim 11.18, all edges of color in are incident to . Also, by (61), we have
[TABLE]
using . In the following claim we derive some properties of -cliques which intersect in only one or two vertices.
Claim 11.19**.**
The following holds:
Let be a copy of in which has exactly one vertex in . Then is monochromatic in color . 2. 2.
Suppose that is -structured. Let be a copy of in which has exactly two vertices in . Then .
Proof.
We begin with the first item. Let be the unique vertex in . We claim that there is an -clique in with and . If then is such an -clique (here we use the fact that is adjacent to all vertices in , and hence to all vertices of ). So assume that . By the same argument, we may assume that . Then is a clique of size contained in . By (63), there is a clique of size with and . Now satisfies our requirements. As , we have by Claim 11.5. By Claim 11.18, is monochromatic in color , as . So is also monochromatic in color .
We now prove the second item. Put ; so is a clique of size and . By (63), there is an -clique with . Now, is an -clique with , and . In particular, the edge has color . Suppose by contradiction that . By assumption, is not a template for . By Lemma 7.18, is -structured with (the value of will not be important). By normalizing, is -structured. Additionally, is -structured by assumption. Now, by Lemma 7.21, has only balanced -colorings, a contradiction to (42). ∎
Recall the definition of the graph (see Definition 5.5). In particular, is a complete -partite graph and has a perfect -factor. Recall the definition of in Section 6.2 (namely, is the exceptional set given by the regularity lemma). The following key claim shows that if an -copy in does not intersect , then every perfect -factor of has only few edges of color . Using this claim, we then easily complete the proof of the lemma. Recall that is - or -structured by Item 1 of Claim 11.16. Let be the corresponding parameter (as in Definition 7.17), and note that . Recall that denotes the union of clusters which correspond to the vertices in .
Claim 11.20**.**
Let be an -copy in with , and let be the parts of . Let be the set of indices such that . Then for every perfect -factor of ,
[TABLE]
Proof.
The right inequality in (65) is immediate from the definitions. We prove the left inequality. For each , choose such that if , and else is arbitrary. Set , so is an -clique in . Let be the corresponding -clique in , namely . The assumption means that the cluster is well-defined for every .
First, suppose that there exist and and so that . Without loss of generality, let us assume that . Recall that we assume that is non-uniform. Hence, by Claim 7.8, there exists an -coloring of such that and thus, there exists such that . Now consider the two -cliques and in . We have , so by Claim 11.5. Also, . Hence, by Lemma 7.4, is a template for , contradicting our assumption that contains no such template.
So from now on, we assume that for all and , it holds that . This means that all bipartite graphs are monochromatic. In other words, is a blowup of . As all the edges in of color are incident to , all the edges of color in must be incident to . Indeed, if then , so there must be an edge of color between . But as is monochromatic, all edges between have color .
By Claim 11.19, if then and the claim holds trivially. Hence, we assume that . Let us now distinguish two cases. Suppose first that is -structured (with parameter ). Then is also -structured (with parameter ), as is an -factor. Hence (recall Definition 7.17), we have
[TABLE]
for all . Now, summing (66) over all pairs with , we get
[TABLE]
where the last inequality holds because every edge of color in is incident to . Dividing through by , we get the left inequality in (65), as required.
Now suppose that , and hence also , are -structured. This means that
[TABLE]
for all . Summing (67) over all pairs with , we get
[TABLE]
If then , so (11.1.3) counts at least times for every with . Hence, (11.1.3) is an upper bound for , and the assertion of the claim follows by dividing (11.1.3) through by . Now suppose that , say without loss of generality. Then, by Item 2 of Claim 11.19, all edges between and have color . Therefore,
[TABLE]
using (11.1.3). So again the left inequality in (65) holds. ∎
We now complete the proof of Lemma 11.4. By Lemma 6.5, has a perfect -factor . For each -copy , let be a perfect -factor of . Let be the resulting perfect -factor of . We now use Lemma 7.19 to estimate the number of edges of , using that is -structured for and . By Lemma 7.19, so
[TABLE]
It follows that . There are at most copies of in intersecting , and the -factors of these copies of contain therefore at most edges. Also, if an -copy does not intersect , then contains at most edges of color , by Claim 11.20. It follows that
[TABLE]
Here, inequality (a) uses that and that by (64). Inequality (b) uses that depends only on and . And inequality (c) uses that depends only on and . So we got that , namely has high discrepancy. This completes the proof.
12 Proof of the main results
12.1 Proof of Theorem 1.4
Proof.
Let be a bipartite graph. By Corollary 10.2, we have By Lemma 8.1, this is tight if is regular. Therefore, let us assume from now on that is non-regular.
First, suppose that there exists such that for every connected component of it holds that , which corresponds to the second case of Theorem 1.4. By Lemma 8.2, we get that
[TABLE]
Now, let us show that . We work in the setup described in Section 6.2. In particular, we assume that . We need to show that has a perfect -factor with high discrepancy.
If is monochromatic, then there exists a perfect -factor in with high discrepancy by Lemma 9.1. Therefore, let us assume that is not monochromatic. This implies that there exist vertices such that . Indeed, is not monochromatic so there are edges of different colors. By Lemma 4.1 applied with there is a path in whose first and last edges are and On this path, there must be two consecutive edges of different colors, giving the vertices as above.
Note that are two copies of with different discrepancies and is non-regular. By Lemma 7.2, is a template for , and then by Lemma 6.7 (with ), has a perfect -factor with high discrepancy, as required.
Now suppose that we are in the last case of Theorem 1.4, meaning that there are two connected components of and such that and . In other words, . Recall that trivially holds for every , so we only need to show that . Again, we show that has a perfect -factor of high discrepancy under the setting of Section 6.2. As in the previous case, we may assume that is non-monochromatic as otherwise we are done by Lemma 9.1. Thus, there exist edges with . If are not disjoint then is a template for by Lemma 7.2, and if they are disjoint then it is a template by Lemma 7.1. Either way, we can apply Lemma 6.7 to conclude that has a perfect -factor with high discrepancy. Thus, we get . ∎
12.2 Proof of Theorem 1.7
Let be a graph with . By Corollary 10.2, . If is regular, then by Lemma 8.1. So suppose from now on that is non-regular. Recall that every graph satisfies . If some butterfly is not a template for , then by Lemma 8.3 and by Lemma 11.4. And if every butterfly is a template for , then by Lemma 11.4. This concludes the proof.
12.3 Proof of Theorem 1.11
Let be an -chromatic graph, . Throughout the proof, we use the fact that
[TABLE]
where the first inequality holds because . We begin with the first case of Theorem 1.11, where we assume that satisfies Condition 1.9. By Corollary 10.2, . We now use Condition 1.9 to show that Indeed, if then this follows from Lemma 8.4 with , and if then this follows from Lemma 8.5 with (using that is regular).
We now move on to the second case of Theorem 1.11. First, we show that if violates Condition 1.9 then . Indeed, if violates the -wise -condition, then by Lemma 10.1 with . And if is non-regular and , then by Lemma 11.1. Next, observe that if satisfies Condition 1.10, then by Lemmas 8.4-8.5.
Finally, we handle the last case of Theorem 1.11. Here we show that if violates Conditions 1.9 and 1.10, then . This is tight because for every graph . If violates the -wise -condition, then by Lemma 10.1 with , using that by (70). So suppose that satisfies the -wise -condition. Then, as violates Condition 1.10, it must be that is non-regular. Now, if , then by Lemma 11.4. If then by Lemma 8.4 and by Lemma 11.1, so holds. Suppose now that . Then, as violates Condition 1.9, must violate the -wise -condition. Now holds by Lemma 11.3. This completes the proof.
13 Examples
The purpose of this section is to demonstrate that the cases in our theorems are necessary. For the bipartite case, Theorem 1.4, this is fairly easy to see so we only discuss Theorems 1.7 and 1.11. Towards this, we give graphs as examples for what we consider to be the more interesting cases. The task of finding examples of -partite graphs becomes much simpler when they have exactly one proper -coloring (up to permutations of the color-labels). To achieve this, we use the following construction in most of the examples:
- C
Let be a graph on vertex-set with -partition and vertices . For , is connected to every vertex in .
Then, given an -coloring of , we get that for every , all the vertices in must have the same color as and therefore, the coloring is unique up to permutation of the labels. Note that for , we can add any edges to and this property does not change. Additionally such a graph , is never regular, unless and is the complete -partite graph. One constraint that such graphs have is that for , , given by the edges incident to and .
- •
First, we give a tripartite graph for which
[TABLE]
Towards this, consider as described in C with . Note that , as . Besides the edges given by , let there be arbitrary additional edges such that . Note that this means that is complete and has no extra edges besides the ones touching or . It is not hard to see that and . Additionally, can use any butterfly as a template, as otherwise by Lemma 7.18 is either -, - or -structured, which it is clearly not.
- •
Next, we give an example for a tripartite graph with
[TABLE]
Let be a tripartite graph as described in C with and and . It is not hard to check that such is indeed -structured for . Additionally, since , we have and thus
[TABLE]
By Lemma 8.6, it follows that . As is non-regular and since , we get by Theorem 1.7 that indeed
[TABLE]
- •
Next, we give an example corresponding to the second case of Theorem 1.7 such that . Towards this, some butterfly should not be a template for . Let and and . We get that is non-regular and -structured for . Consider the butterfly given by (see the third graph in Figure 1), where consists of the two triangles and with
[TABLE]
We will show that is not a template for . Note that by Lemma 7.18, it is necessary that then, is -structured (or by normalizing -structured). Let be an arbitrary blowup of . Note that given some constructed as described in C, any copy of in is either included in or in . To see this, consider the placement of the three vertices . As they form a triangle, they must be either on or . Say they are on . But each vertex of forms a triangle with two of and must therefore also be on . Then, it is not hard to see that since is -structured, is not a template for . We have that , as is -structured with nonzero and also as in the previous example. We then get by the second case in Theorem 1.7 that .
- •
Let us now give an example of an -partite, regular graph for some which fulfills the -wise -condition for some and has . Note that Theorem 1.11 shows that in that case. To find such a graph, the construction given in (C) is not very helpful, as the only regular graph constructed in such a way is the complete, balanced -partite graph. Thus, let us consider a different construction. For some integer , let be the graph obtained from the complete -partite graph with parts with sizes and , by removing a matching of size between every pair with such that for any vertex not in exactly one of its incident edges is removed.
Counting the edges per vertex, it is not hard to see that for , we have that and for for we have that is connected to everything but the vertices in and one other vertex. It follows that these vertices are incident to edges. Therefore, is regular. Additionally, we have for ,
[TABLE]
and for all ,
[TABLE]
Then, it is not hard to see that since , has only one -coloring (up to permutation of the labelling) and the -wise -condition holds for this coloring, but the -wise condition does not. To see the latter, consider the natural -coloring of and add an additional empty color class . Then the -cycle shows that violates the -wise -condition. The coloring shows that . Let us also prove that . To see this, consider a -blowup of for some and -edge-coloring of . As , . It is not hard to see that there is at most one way (up to permutations of ) to find a perfect -factor in . Note that this -factor uses the same amount of edges in every bipartite graph , where . Therefore, has the same sign as and is non-zero. It follows that .
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] N. Alon and E. Fischer. Refining the graph density condition for the existence of almost k 𝑘 k -factors. Ars Combinatoria , 52:296–308, 1999.
- 2[2] N. Alon and R. Yuster. h ℎ h -factors in dense graphs. Journal of Combinatorial Theory, Series B , 66(2):269–282, 1996.
- 3[3] J. Balogh, B. Csaba, Y. Jing, and A. Pluhár. On the discrepancies of graphs. ar Xiv preprint ar Xiv:2002.11793 , 2020.
- 4[4] J. Balogh, B. Csaba, A. Pluhár, and A. Treglown. A discrepancy version of the Hajnal–Szemerédi theorem. Combinatorics, Probability and Computing , 30(3):444–459, 2021.
- 5[5] D. Bradač. Powers of hamilton cycles of high discrepancy are unavoidable. In Extended Abstracts Euro Comb 2021 , pages 459–464. Springer, 2021.
- 6[6] R. Diestel. Graph Theory . Springer Publishing Company, Incorporated, 5th edition, 2017.
- 7[7] A. Dujella. Number theory . Školska knjiga Zagreb, 2021.
- 8[8] P. Erdős, Z. Füredi, M. Loebl, and V. T Sós. Discrepancy of trees. Studia Scientiarum Mathematicarum Hungarica , 30(1-2):47–57, 1995.
