Manuscript Offprint
arXiv:2608.24520Homomorphic-core phase transition threshold in Erdős--Rényi random graphs
JIAHENG WANG
ABSTRACT. It is shown in this manuscript that a random graph G drawn from the Erdős–Rényi model with
is a homomorphic core, i.e., every homomorphism from G to itself is an automorphism. This implies tight ETH-based lower bounds of the subgraph isomorphism problem for almost all k-vertex patterns with polynomial average degree.
DISCLOSURE OF AI TOOL USAGE. The core idea of the proof was found by ChatGPT 5.6 Sol, while the manuscript is written by the homo sapiens author in a traditional manner. The author shall forgo claiming intellectual property of the key technical contribution in this manuscript. The author, however, takes full responsibility of endorsing the correctness and proper citations.
The total number of hours that the model worked on this task was approximately 7 hours, summing up the cost all interactions. The model ran at xHigh and Max levels. This information is disclosed on the basis of potential concern with fair and eco-friendly usage of AI tools.
The disclosure is intentionally put before the main text of this manuscript for visibility.
1. INTRODUCTION
1.1. Motivation: the complexity of homomorphisms. Graph homomorphisms [Lov12, HN04] play a fundamental role in theoretical computer science because they provide a uniform language for expressing structure-preserving assignments. Many seemingly unrelated problems, including graph colouring, database-query evaluation, and constraint satisfaction problems, can be formulated as asking whether a graph homomorphism exists and how many such homomorphisms there are [CM77, Sch78, FV98, KV00, FGRZ25]. This motivates the study of the complexity of deciding whether graph homomorphisms exist and of counting them. Recall that a graph homomorphism from G to H is a map from to that preserves adjacency. We denote by the number of homomorphisms from G to H.
We focus on homomorphism problems from the left, in which the host graph H is the input. The task HOM(G) asks whether such a homomorphism exists, and asks how many exist. These problems are naturally parameterised by G. By contrast, when H is fixed and G is the input, complexity dichotomies are typically achievable: depending on whether the host graph H satisfies certain criteria, the problems are either solvable in polynomial time or hard with respect to their complexity classes (NP-hard, , -hard); see for example [HN90, DG00, CC17, GGJ17, GLS21, BK22, Bul17, Zhu20].
On -vertex input graphs, can always be solved in time by brute-force enumeration. For certain graphs, this running time is optimal. If is a -clique, then (respectively, its counting variant) is equivalent to the subgraph isomorphism problem , which asks whether the input graph contains a subgraph isomorphic to (not necessarily an induced
(Jiaheng Wang) UNIVERSITY OF HELSINKI, FINLAND. Financially supported by HELSINKI INSTITUTE OF INFORMATION TECHNOLOGY (HIIT).
This is a pun. The author is aware that explaining a joke is the best way to ruin the joke, however.
one). The Exponential-Time Hypothesis (ETH) [IP01, IPZ01] implies an -time lower bound for when is a -clique .
Now consider the case in which is the -by- biclique (the complete bipartite graph). Although the counting problem is intractable under standard complexity assumptions [FG04, DJ04], its decision counterpart behaves very differently. In fact, the decision problem is trivial. Indeed, if contains at least one edge , then there is a homomorphism from to : map every vertex in its left part to and every vertex in its right part to . Otherwise, has no edges, and no homomorphism from to exists.
This argument extends to broader graph families. Suppose that a pattern graph G has a proper subgraph and that there exists a homomorphism f from G to . If the host graph H contains a homomorphic copy of G, then restricting this copy to yields a homomorphic copy of . Conversely, if H contains a homomorphic copy of through a mapping g, then the composition is a homomorphism from G to H, giving a homomorphic copy of G. Therefore, and are essentially equivalent. In other words, whereas the complexity of is governed by the treewidth of G [FG04, DJ04], the complexity of depends on the treewidth of the homomorphic core of G rather than on that of G itself (see the references [CR00, Fre90, DKV02] for algorithms and the work by Grohe [Gro07] for the lower bound).
Recall that a homomorphic core is a graph that admits no homomorphism to any proper subgraph. The homomorphic core of a graph G is the smallest subgraph of G that is itself a core and to which G admits a homomorphism. Every graph has a unique homomorphic core up to isomorphism [HN92], providing an alternative characterisation of the useful, intensively studied notion of homomorphic equivalence.
1.2. Motivation: the complexity of subgraph isomorphism. Thus far, we have seen how homomorphic cores help us understand the complexity of homomorphism problems. They also turn out to be useful in the context of subgraph isomorphism and counting. See [CDM17] for a framework that connects subgraph counts and homomorphism counts.
The computational task SUB(G) asks whether an input graph contains G as a subgraph. A well-studied variant is the colourful problem COLSUB(G), defined as follows. Let G have k vertices labelled by 1, ..., k. The input consists of a graph H together with a partition of its vertex set, . The problem asks whether there exist vertices with such that for every . Intuitively, in the colourful setting, the vertices of the pattern graph G receive distinct colours, the input graph H is coloured using the same colours, and the embedding must preserve these colours. Equivalently, COLSUB(G) can be viewed as a 2-CSP (a constraint satisfaction problem of arity 2), with variables for , relations for , and domains .
The complexity of COLSUB(G) is much better understood than that of its uncoloured counterpart SUB(G). For COLSUB(G), the treewidth of G fully governs the complexity in a nearly fine-grained sense: if , dynamic programming over a tree decomposition solves COLSUB(G) in time ; conversely, assuming ETH, there exists a universal constant such that, for every fixed graph G of treewidth , COLSUB(G) admits no -time algorithm [Mar10, KMPS24, CDNW26].
The above lower bound for COLSUB(G) can be transferred to the uncoloured problem SUB(G) whenever G is a homomorphic core. When G is not a homomorphic core, however, the picture becomes far less clear [MP14]. This difficulty arises, in particular, for non-trivial bipartite graphs. Even for highly specific pattern families, determining the complexity has been a major challenge, let alone obtaining a complete complexity dichotomy for SUB(G). For instance, the parameterised
We refrain from abbreviating this term as merely core, because a core may also refer to a k-core in the sense of graph degeneracy. Graph degeneracy will be used later in the proof.
complexity of the k-biclique problem was resolved only relatively recently [Lin18], even though, as a standard textbook on parameterised complexity puts it, “almost everyone considers that this problem should obviously be -hard” [DF13]. The same was true for grid graphs [CGL17]. It is worth noting that both papers received best-paper awards at their respective conferences.
Thus, is a challenging problem to study for every . Nevertheless, we may study its complexity for a typical pattern drawn from the Erdős–Rényi random graph model .
For , this setting is well understood when the edge probability lies slightly above the phase-transition threshold for connectivity; that is, when for any fixed . In this regime, let denote the typical diameter. Then, with high probability over a random graph , one obtains an lower bound for [CDNW26]. To transfer this lower bound to the uncoloured setting, it would therefore suffice to show that a random pattern is a homomorphic core with high probability in the desired regime.
1.3. Main results. The first result in this direction was established by Hell and Nešetril [HN04], who showed that a random graph drawn from is a homomorphic core with high probability. For simplicity, we assume throughout the remainder of the discussion. Bonato and Prałat [BP09] extended this result to the regime . (See also the work of Parsa and Kayll [PK21] on the directed version.)
On the other hand, observe that any -vertex graph () with at least one isolated vertex is not a homomorphic core: the isolated vertex can be mapped to any other vertex of the graph. Furthermore, any -vertex graph () with a degree-1 vertex is not a homomorphic core. Indeed, if the vertex adjacent to has degree at least 2, then can be mapped to another neighbour of that vertex. Consequently, in any regime in which the typical minimum degree is 0 or 1, a random graph is not a core with high probability.
The phase-transition threshold for minimum degree at least 2 is [ER61], so the phase-transition threshold for being a homomorphic core cannot be lower. It was conjectured that the phase-transition threshold for being a homomorphic core coincides with that for minimum degree at least 2 [BP09]. Our main result confirms this conjecture.
Theorem 1. Let . If
then with high probability is a homomorphic core. Conversely, if
then with high probability is not a homomorphic core.
By the discussion in the previous subsection, our result yields a lower bound for the subgraph isomorphism problem when the pattern is random and .
Corollary 2. Assuming ETH, there exists an absolute constant such that, for every constant and every , the following holds: with high probability over an Erdős–Rényi random graph , the problem admits no -time algorithm on -vertex input graphs. Here, denotes the typical distance in [CL01].
In particular, if is an inverse polynomial in with a fixed and lies within the regime of the corollary, then the typical distance is bounded by a constant. In this case, the corollary implies that, under ETH and with high probability, no -time algorithm exists, for some constant depending only on and . In other words, almost every pattern with polynomial average degree is maximally hard: unless ETH fails, no algorithm can fundamentally beat the -time brute-force algorithm.
1.4. Proof overview. An equivalent definition of homomorphic core is through the retraction. A homomorphism from a graph to its induced subgraph with image is a retraction if every element in is a fixed point, i.e., and for every . It is proper if . It can be shown that a graph is a homomorphic core if and only if it has no proper retraction. We therefore prove the upper-threshold direction by showing that, with high probability, no map onto a proper induced subgraph can be a retraction.
The above-critical regime. (Section 3) We first consider the simpler regime in which the expected degree np is much larger than . For a fixed candidate retraction r, one can view the drawing procedure of a randomly graph G in two stages: we reveal the graph induced by its image before revealing the remaining edges. Conditional on the revealed subgraph, all other edges remain independent. Any pair that the candidate maps to a non-edge must itself be absent, so the probability that the candidate is a retraction is controlled by the number of edges it forces to be absent.
We condition on typical bounds for the maximum degree and clique number of the random graph. If the image of the candidate is large, the maximum-degree bound implies that every vertex outside the image forces many edges across the boundary to be absent. This probability penalty dominates the number of possible maps. If the image is small, the clique-number bound, together with the Motzkin–Straus inequality, shows that many pairs outside the image must be absent. The resulting penalty is strong enough to take a union bound over all candidate maps, even if we just apply a super trivial upper bound on the number of candidate maps with a fixed image.
The near-critical regime. (Section 4) Near the threshold, the preceding union bound becomes too crude, especially for retractions whose images contain almost every vertex. We therefore condition on a more detailed description of the typical random graph. These typical properties first imply that the boundary of a retraction image must be small. If a vertex outside the image has two neighbours inside it, then those vertices, together with its image under the retraction, form a 4-cycle. Since few vertices lie on such cycles, only a small number of outside vertices can have several neighbours in the image.
The main difficulty is to rule out retractions with very large images; the other cases can be ruled out due to the typical properties. Unlike the proof strategy for the above-critical regime, a trivial bound on the number of candidate maps does not suffice. The property that the minimum degree is at least 2 with high probability, however, allows us to design witnesses that narrows down the count. Suppose we have a fixed image S. For every vertex outside the image S, once the random graph is fully revealed, choose two incident edges in a canonical way, whose existence is guaranteed by the minimum-degree condition. The resulting sparse witness substantially restricts the candidate map: after the graph on S has been revealed, the map must send the part of the witness outside S homomorphically into the revealed graph. A spanning-forest argument then gives a much sharper count of the possible maps than the trivial bound. Combining this count with the probabilities that the witness edges are present and that all edges forbidden by the retraction are absent yields a desired bound.
Unless stated otherwise, every graph in this manuscript is finite, simple, loopless and undirected. Additionally, every -vertex graph is vertex-labelled with . Denote by the set of neighbours of in . The degree of a vertex in a graph is , the number of neighbours of in . The subscripts for and shall be dropped when it is clear from the context. The (maximum) degree of a graph is the maximum degree of any vertex in . The minimum degree of a graph is the minimum degree of any vertex in . Specially, if contains any isolated vertex. The clique number of a graph is the number of vertices of its largest clique.
Suppose a random variable follows the binomial distribution with expectation . The (absolute form of) Chernoff bound states
2.2. Graph morphisms. Here we collect basic definitions of graph morphisms.
An isomorphism is a bijection map such that
An automorphism of a graph G is an isomorphism from G to itself.
A homomorphism from G to H is a map such that
An endomorphism of a graph G is a homomorphism from G to itself.
A retraction r from a graph G to its induced subgraph is an endomorphism such that
It is proper if .
A standard fact is the following; see [HN04, Proposition 1.31].
Proposition 3 (homomorphic core). The two statements are equivalent for any graph G.
(1) Every endomorphism of G is an automorphism.
(2) G has no proper retraction.
A graph G is called a homomorphic core if it satisfies (any of) the above two statements.
Proof. The direction (1) (2) is trivial: any retraction by definition is an endomorphism.
To show (2)⇒(1), assume has an endomorphism to a proper induced subgraph. Let be the induced subgraph with the minimum number of vertices that is homomorphic to. Thus by the choice of , any endomorphism of must be an automorphism. Now let be a homomorphism from to , and be the restriction of on , i.e., for any . Trivially, is an endomorphism, and hence an automorphism, and thus it has an inverse automorphism . Then is a retraction of to .
2.3. Random graphs. The Erdős–Rényi random graph model [ER60] is a distribution over n-vertex graphs with each pair of distinct vertices joined by an edge with probability p independently. Erdős and Rényi [ER61] located the phase transition threshold for minimum degree 2:
Theorem 4 (minimum degree phase transition). Let . If
then w.h.p. . Conversely, if
then w.h.p. .
Be aware of the notation overload of . However, it is clear from the context whether it means the clique number or the asymptotic notation.
Proof. Set , and let X be the number of vertices of degree at most 1. For every vertex v,
By linearity of expectation, . Suppose first that
If , then
If , then, since is decreasing for ,
Since both right-hand-sides of the above two inequalities are , we have . Thus, by Markov's inequality, with high probability, and hence .
Conversely, we apply a second-moment analysis. Suppose that
We may assume ; this stochastically dominates the case when is smaller than this. Because , we have and . Therefore,
For the second-moment bound, fix two distinct vertices u and v. Conditioning on whether uv is an edge gives
Moreover,
Consequently,
where the last equality follows from .
It follows that
Since , the second-moment inequality yields
Therefore with high probability.
6
☐
3. THE ABOVE-CRITICAL REGIME
With a multiplicative gap away from the phase transition threshold in Theorem 1, a (comparably) simpler proof can be obtained.
Theorem 5. Let with
Then is a homomorphic core w.h.p.
3.1. Typical structures. Recall the following crude estimations on the degree and the clique number of a random graph in this regime.
Lemma 6. In the same regime of as in Theorem 5, the following holds simultaneously w.h.p. for a randomly drawn :
(a) (maximum degree) ;
(b) (clique number) .
Proof. It suffices to show that each event fails with probability , and then apply union bound.
For (a), note that every vertex degree is dominated by the binomial distribution , and then apply Hoeffding's inequality.
To show (b), for any , by union bound,
Now let , so we have . The above is further upper bounded by
3.2. Conditioned on a typical structure. Over a randomly drawn , define a “global” random event
By Lemma 6, .
For any map (candidate proper retraction) that is identity on , define the random event
By the definition of homomorphic cores (Proposition 3), we need to show . But since and
it suffices to prove that, summing over all proper r,
We first bound each term . Fix the map and let be the random induced subgraph of on . By the law of total probability,
(4) where the summation goes over all graphs on the vertex set . Then observe that, assuming the global event happens, the induced subgraph must also satisfy
and therefore, only terms with graphs H satisfying the above condition survives in the summation of (4). Let H be the collection of all such H's. (4) can be rewritten as
Dropping A yields an upper bound:
3.3. Probability of a candidate retraction. It is left for us to characterise the quantity
Fix the map . A random graph can be viewed as drawn in two independent stages: reveal all the edges among , and then reveal the remaining edges. The candidate is invalidated if and only if any remaining edge is mapped to a non-edge in under . Let
be the set of edges forced to be absent. Then and hence
The quantity has an explicit formula.
Lemma 7. For every , define
the number of vertices mapped by to a vertex except itself. Then where
Intuitively speaking, and together count all edges forced to be absent to make r a retraction. includes edges with exactly one endpoint in the image , and includes edges outside .
Proof of Lemma 7. We first count . Consider with , and another vertex . Under , the edge would map to , and therefore, if , then the edge must be absent, or otherwise is no longer a homomorphism. For a fixed vertex , there are vertices in for which is not an edge, including . There are vertices outside that get mapped to , so counts all edges between and forced to be absent. All the other edges between and are free.
For , consider a pair of vertices with and . The edge is permitted if and only if . There are pairs outside . For each edge , exactly pairs have one endpoint mapped to and the other endpoint mapped to under .
These are the only pairs outside allowed to be edges, and hence counts all edges outside forced to be absent.
In the next two subsections, we bound in two cases based on the image size of . This partitions the summation (3) into two parts.
Lemma 8 (large image). We have
Lemma 9 (small image). We have
Theorem 5 follows once the above two lemmata are proved.
3.4. Large image. This subsection proves Lemma 8. For any , plugging the condition and the upper bound of into (8) in Lemma 7, we have
where the last equation is by the definition of . Trivially, we have and hence
Consider the summation in Lemma 8. For a fixed size , the number of choices of a set with is . Once is fixed, the number of maps that fixes and maps into is . Therefore, the number of retractions is at most . Summing (10) over all in this range gives
Here, (a) is the substitution , (b) is due to the inequality , and (c) is because of the condition . This concludes the proof of Lemma 8.
3.5. Small image. This subsection proves Lemma 9. The following Motzkin–Straus inequality [MS65] from combinatorial optimisation is later used. A proof is provided here for completeness.
Lemma 10 (Motzkin–Straus inequality). Let be a graph with clique number , together with non-negative weights on vertices satisfying . Then
Proof. It suffices to prove for k = 1 by normalising all weights.
Repeat the following step, until there does not exist any pair of vertices x, y of positive weights that are non-adjacent. We may write
where does not depend on or . If , we update and ; otherwise, update and . This procedure strictly increases the total count .
The above procedure eventually halts because it strictly decreases the size of the positive support. And when it halts, the support is a clique of some size . Let be the final weights. On this clique, the Cauchy–Schwarz inequality gives
□
Write so for any . We have
for all sufficiently large since . Here, (d) is due to Lemma 10. Again, we trivially have and hence
Consider the summation in Lemma 9. Trivially, the number of maps from to is . Using (11), we have
We claim that , which immediately implies that the above quantity is and therefore finishes the proof of Lemma 9. Indeed, for all such that , we have , and so . For all such that , since , we have , and so . This gives
Both terms are in the regime of p as Theorem 5.
4. THE NEAR-CRITICAL REGIME
For the rest of this manuscript, assume
as otherwise Theorem 5 applies.
4.1. Typical structure near the critical threshold. We need some more standard facts about certain graph parameters in the above regime.
Recall the following basic definitions. The independence number of a graph G is the number of vertices of its largest independent set, or alternatively, the clique number of its complement graph. The chromatic number of a graph G is the minimum number q that G has a proper q-vertex-colouring.
Lemma 11. Under the condition (12), the following holds simultaneously w.h.p. for a randomly drawn :
(a) (minimum degree) ;
(b) (maximum degree) ;
(c) (4-cycle count) at most vertices lie on a 4-cycle;
(d) (chromatic number) ;
(e) (subgraph edge density) with , every with satisfies .
Proof. By a union bound, it suffices to prove that the failure probability of each item is .
(a) Exactly the same as Theorem 4.
(b) This is derived from the union bound and Chernoff bound (1):
(c) By the linearity of expectation, the expected number of 4-cycles is . By Markov's inequality, the probability , where at most vertices lie on a 4-cycle.
(d) The expected number of independent sets of size k is
For any , the above quantity tends to 0, meaning w.h.p. the independence number , and therefore the chromatic number .
(e) Let . The number of edges is subject to the binomial distribution . By a union bound over all of size , the probability that (e) is violated by a fixed is at most
By (1), this quantity is bounded above by
Here, the last inequality due to and . The function is increasing since . At , its value is bounded by
for sufficiently large . As , we upper bound (13) by
Summing all possible yields a bound on the probability that (e) is violated.
An interesting consequence of the above typical graph parameters, especially Item (a)(b)(c), is the boundary size of the image of a retraction r.
Lemma 12. Let be a retraction to . If events in Lemma 11 happen, then the number of edges between and is upper bounded by .
Proof. By Lemma 11(a), every vertex has at least two distinct neighbours. Suppose has two distinct neighbours . By the definition of retraction, the edges and exist, and . Therefore, the 4-cycle exist, so lies on a 4-cycle. Consequently, any vertex in that does not lie on any 4-cycle must have at most one neighbours in . Trivially, by Lemma 11(b), any vertex in that lies on a 4-cycle has at most 4d neighbours in . The lemma then follows by Lemma 11(c).
4.2. Conditioned on a typical structure. In a similar manner as the proof of Theorem 5, with define the “global” event
By Lemma 11, we have .
Like in Section 3.3, we subdivide the event that a proper retraction exists into three cases depending on the size of the retraction's image. For any map (candidate proper retraction) that is identity on , we call the map is of Type I, II or III, based on the following criteria.
(Type I)
(Type II)
(Type III)
We assume large enough so the above inequalities are well-defined. Define to be the random event that is a retraction. For , define the events
Similar to (3), we only need to bound
Lemma 13. We have
Lemma 14. We have .
Lemma 15. We have .
The first half of Theorem 1 follows after the above three lemmata. The second half of Theorem 1 is implied by Theorem 4.
4.3. Case I. This subsection proves Lemma 13 where the image of the candidate retraction is very large.
We begin with changing the order of summation in (15). For any , if If happens, then for any induced subgraph of . Let be the collection of all graphs on the vertex set such that . Analogously to (5), we have
(16)
with the definition
for .
Fix and . From this point onward, is fixed rather than random. Conditional on , all edges that are not fully in remain mutually independent.
Suppose that occurs for some candidate map with . Since under , choose two distinct edges incident with each vertex , and let be the simple graph formed by the union of all these chosen edges. For definiteness, one may choose the two edges whose other endpoints have the smallest labels. Formally, the edge set of is
Thus F is determined by G, although in the estimate below we simply take a union bound over all possible F. The graph F is served as a witness.
As in the notation above, partition
Set
So is an induced subgraph of that collects edges in , and is a bipartite subgraph collecting edges between and . Let be the number of connected components of , including isolated vertices.
Lemma 16. Any witness F constructed above satisfies
Proof. The first inequality follows because two edges were selected at each vertex of , and repeated selections produce only one edge in the simple graph .
Consider a component of . Suppose that has vertices and edges, and that witness edges join to . Every vertex of is incident with at least two edges of , so
If is a tree, then , and hence . It follows that . If is not a tree, then ; moreover , because the graph is simple. Therefore . Summing these inequalities over all components gives the desired bound.
If the subgraph has been revealed to be , then a retraction restricted on is a homomorphism from to , since for any . This significantly reduces the number of candidate maps if the part of the witness is fixed.
To rewrite the summation for in (17), we enumerate the possible witnesses and candidate maps. It is important that H has already been fixed before this enumeration.
First choose . If it has edges, the number of choices is at most
Next, for a fixed , we claim that the number of maps from to that are homomorphisms from to is at most
To see this, fix one rooted spanning tree in each component of . Choosing the image of one root in each component gives so many options. Each of the remaining vertex in must map to a neighbour of its parent's image. This gives at most options, and because happens.
Now fix one of these compatible maps . We next choose . A pair where and can belong to only if . Otherwise the present edge would be mapped to a non-edge. The number of such allowed pairs is at most
Thus, if has edges, there are at most
choices for it.
It remains to charge the probabilities of the required present and absent edges. By (8), the map r forces at least
edges between and to be absent. These forced-absent edges are disjoint from the witness edges in : indeed, the edges of have both endpoints outside , and every edge of was chosen only when , meaning the edge is not forced to be absent. Therefore, conditional on , the independence of the remaining edges gives
as an upper bound on the probability that all witness edges are present and all these edges are absent. We discard any additional conditions required for r to be a retraction, which only enlarges the probability.
Combining the preceding enumeration steps and applying a union bound over all witnesses gives
Here, the summation over is truncated by Lemma 16.
We finish by summing (18). In (16), with . Since and ,
and hence
For every term in (18),
where the last inequality uses from Lemma 16. Furthermore,
There are at most triples in the summation. Using , , and (19), the total contribution in (16) from all with is at most
for an absolute constant . Since , this is uniformly for . Summing over proves (15).
4.4. Case II. This subsection proves Lemma 14. Recall the condition on the image size of a candidate retraction . We assume large enough, so . This is possible in the regime of in (12).
Suppose that occurs; that is, happens and there is a proper retraction in Case II. By Lemma 12, the number of edges between and is at most for large enough . Here, . Since , the sum of the degrees of the vertices in is at least , and so the number of edges of inside is at least . Therefore, the occurrence of a Case-II retraction implies the existence of a set of size such that
where denotes the set of edges having one endpoint in and the other endpoint in . We show that this is unlikely to happen, and hence prove Lemma 14.
First fix a set of size . Note that the random edges in and are mutually independent, and so the two counts and are independent binomial distributions. To bound the probabilities of the two events in (20), we apply the Chernoff bound (1).
For , because , we have
by the upper tail bound when . If this condition does not hold, then the right hand side is greater than 1, so the probability is trivially bounded by 1. For , because for all sufficiently large , we can always apply the lower tail bound and have
As and are independent, the probability that the event in (20) happens for a fixed U is at most the product of the above two bounds.
By union bound, the probability of (20) happening for any U is at most
The above summation is well-defined for large enough ; that is, for large enough.
To show (22) is , perform a straightforward calculation to see that the summand is where
Here we use the condition . This gives that (22) is upper bounded by for sufficiently large . The second term (23) can be bounded by following almost the same lines.
For the third term, note that the function is decreasing for , and the condition on gives . Therefore, the summand in (24) is with
and the summation in (24) is therefore as n grows.
4.5. Case III. This subsection proves Lemma 15
A graph has degeneracy k if every non-empty subgraph has at least one vertex of degree at most k. As a standard fact, a k-degenerate graph has chromatic number at most by an induction on the number of vertices: by removing a vertex of degree at most k and colouring the rest of the graph recursively, the removed vertex will always have at most k neighbors already coloured, leaving at least one colour free out of total colours.
Suppose one such retraction exists under . Recall the condition on the size of retraction , i.e., it is extremely small. By Lemma 11(d), the chromatic number of the random graph satisfies is at most for all sufficiently large under .
On the other hand, Lemma 11(e) applies to every subset . It shows that every non-empty induced subgraph of has average degree strictly less than , and therefore has a vertex of degree at most . Consequently, the degeneracy of is at most , meaning the graph is -colourable. Since
for all sufficiently large n, we obtain
This contradicts the existence of the retraction: the retraction implies , while the fact that is an induced subgraph trivially implies the reverse inequality. Hence a retraction would force . This proves Lemma 15.
REFERENCES
[BK22] Andrei A. Bulatov and Amirhossein Kazeminia. Complexity classification of counting graph homomorphisms modulo a prime number. In Stefano Leonardi and Anupam Gupta, editors, STOC '22: 54th Annual ACM SIGACT Symposium on Theory of Computing, Rome, Italy, June 20 - 24, 2022, pages 1024–1037. ACM, 2022. doi:10.1145/3519935.3520075.1
[BP09] Anthony Bonato and Paweł Prałat. The good, the bad, and the great: homomorphisms and cores of random graphs. Discrete Math., 309(18):5535–5539, 2009. doi:10.1016/j.disc.2008.03.026. 3
[Bul17] Andrei A. Bulatov. A dichotomy theorem for nonuniform csps. In Chris Umans, editor, 58th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2017, Berkeley, CA, USA, October 15-17, 2017, pages 319–330. IEEE Computer Society, 2017. doi:10.1109/FOCS.2017.37.1
[CC17] Jin-Yi Cai and Xi Chen. Complexity of counting CSP with complex weights. J. ACM, 64(3):19:1–19:39, 2017. doi:10.1145/2822891.1
[CCF 05] Jianer Chen, Benny Chor, Mike Fellows, Xiuzhen Huang, David W. Juedes, Iyad A. Kanj, and Ge Xia. Tight lower bounds for certain parameterized np-hard problems. Inf. Comput., 201(2):216–231, 2005. URL: https://doi.org/10.1016/j.ic.2005.05.001, doi:10.1016/J.IC.2005.05.001. 2
[CDM17] Radu Curticapean, Holger Dell, and Dániel Marx. Homomorphisms are a good basis for counting small subgraphs. In Hamed Hatami, Pierre McKenzie, and Valerie King, editors, Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2017, Montreal, QC, Canada, June 19-23, 2017, pages 210–223. ACM, 2017. doi:10.1145/3055399.3055502. 2
[CDNW26] Radu Curticapean, Simon Döring, Daniel Neuen, and Jiaheng Wang. Can you link up with treewidth? J. Comput. Syst. Sci., 162:103835, 2026. URL: https://doi.org/10.1016/j.jcss.2026.103835, doi:10.1016/J.JCSS.2026.103835. 2, 3
[CGL17] Yijia Chen, Martin Grohe, and Bingkai Lin. The hardness of embedding grids and walls. In Hans L. Bodlaender and Gerhard J. Woeginger, editors, Graph-Theoretic Concepts in Computer Science - 43rd International Workshop, WG 2017, Eindhoven, The Netherlands, June 21-23, 2017, Revised Selected Papers, volume 10520 of Lecture Notes in Computer Science, pages 180–192. Springer, 2017. doi:10.1007/978-3-319-68705-6_14. 3
[CHKX06] Jianer Chen, Xiuzhen Huang, Iyad A. Kanj, and Ge Xia. Strong computational lower bounds via parameterized complexity. J. Comput. Syst. Sci., 72(8):1346–1367, 2006. URL: https://doi.org/10.1016/j.jcss.2006.04.007, doi:10.1016/J.JCSS.2006.04.007. 2
[CL01] Fan Chung and Linyuan Lu. The diameter of sparse random graphs. Adv. in Appl. Math., 26(4):257–279, 2001. doi:10.1006/aama.2001.0720. 3
[CM77] Ashok K. Chandra and Philip M. Merlin. Optimal implementation of conjunctive queries in relational data bases. In John E. Hopcroft, Emily P. Friedman, and Michael A. Harrison, editors, Proceedings of the 9th Annual ACM Symposium on Theory of Computing, May 4-6, 1977, Boulder, Colorado, USA, pages 77–90. ACM, 1977. doi:10.1145/800105.803397. 1
[CR00] Chandra Chekuri and Anand Rajaraman. Conjunctive query containment revisited. Theor. Comput. Sci., 239(2):211–229, 2000. doi:10.1016/S0304-3975(99)00220-0. 2
[DF13] Rodney G. Downey and Michael R. Fellows. Fundamentals of parameterized complexity. Texts in Computer Science. Springer, London, 2013. doi:10.1007/978-1-4471-5559-1. 3
[DG00] Martin E. Dyer and Catherine S. Greenhill. The complexity of counting graph homomorphisms. Random Struct. Algorithms, 17(3-4):260–289, 2000. doi:10.1002/1098-2418(200010/12)17:3/4<260::AID-RSA5>3.0.CO;2-W. 1
[DJ04] Víctor Dalmau and Peter Jonsson. The complexity of counting homomorphisms seen from the other side. Theor. Comput. Sci., 329(1-3):315–323, 2004. URL: https://doi.org/10.1016/j.tcs.2004.08.008, doi:10.1016/J.TCS.2004.08.008. 2
[DKV02] Víctor Dalmau, Phokion G. Kolaitis, and Moshe Y. Vardi. Constraint satisfaction, bounded treewidth, and finite-variable logics. In Pascal Van Hentenryck, editor, Principles and Practice of Constraint Programming - CP 2002, 8th International Conference, CP 2002, Ithaca, NY, USA, September 9-13, 2002, Proceedings, volume 2470 of Lecture Notes in Computer Science, pages 310–326. Springer, 2002. doi:10.1007/3-540-46135-3_21. 2
[ER60] P. Erdős and A. Rényi. On the evolution of random graphs. Magyar Tud. Akad. Mat. Kutató Int. Közl., 5:17–61, 1960. 5
[ER61] P. Erdős and A. Rényi. On the strength of connectedness of a random graph. Acta Math. Acad. Sci. Hungar., 12:261–267, 1961. doi:10.1007/BF02066689. 3, 5
[FG04] Jörg Flum and Martin Grohe. The parameterized complexity of counting problems. SIAM J. Comput., 33(4):892–922, 2004. doi:10.1137/S0097539703427203. 2
[FGRZ25] Jacob Focke, Leslie Ann Goldberg, Marc Roth, and Stanislav Zivný. Approximately counting answers to conjunctive queries with disequalities and negations. ACM Trans. Algorithms, 21(1):8:1–8:29, 2025. doi:10.1145/3689634.1
[Fre90] Eugene C. Freuder. Complexity of k-tree structured constraint satisfaction problems. In Howard E. Shrobe, Thomas G. Dietterich, and William R. Swartout, editors, Proceedings of the 8th National Conference on Artificial Intelligence. Boston, Massachusetts, USA, July 29 - August 3, 1990, 2 Volumes, pages 4–9. AAAI Press / The MIT Press, 1990. URL: http://www.aaai.org/Library/AAAI/1990/aaai90-001.php. 2
[FV98] Tomás Feder and Moshe Y. Vardi. The computational structure of monotone monadic SNP and constraint satisfaction: A study through datalog and group theory. SIAM J. Comput., 28(1):57–104, 1998. doi:10.1137/S0097539794266766.1
[GGJ17] Andreas Galanis, Leslie Ann Goldberg, and Mark Jerrum. A complexity trichotomy for approximately counting list H-colorings. ACM Trans. Comput. Theory, 9(2):9:1–9:22, 2017. doi:10.1145/3037381.1
[GLS21] Andreas Göbel, J. A. Gregor Lagodzinski, and Karen Seidel. Counting homomorphisms to trees modulo a prime. ACM Trans. Comput. Theory, 13(3):19:1–19:33, 2021. doi:10.1145/3460958.1
[Gro07] Martin Grohe. The complexity of homomorphism and constraint satisfaction problems seen from the other side. J. ACM, 54(1):1:1–1:24, 2007. doi:10.1145/1206035.1206036.2
[HN90] Pavol Hell and Jaroslav Nešetril. On the complexity of H-coloring. J. Combin. Theory Ser. B, 48(1):92–110, 1990. doi:10.1016/0095-8956(90)90132-J.1
[HN92] Pavol Hell and Jaroslav Nešetril. The core of a graph. Discrete Mathematics, 109(1):117–126, 1992. URL: https://www.sciencedirect.com/science/article/pii/0012365X9290282K, doi:10.1016/0012-365X(92)90282-K. 2
[HN04] Pavol Hell and Jaroslav Nešetril. Graphs and homomorphisms, volume 28 of Oxford Lecture Series in Mathematics and its Applications. Oxford University Press, Oxford, 2004. doi:10.1093/acprof:oso/9780198528173.001.0001.1, 3, 5
[IP01] Russell Impagliazzo and Ramamohan Paturi. On the complexity of k-sat. J. Comput. Syst. Sci., 62(2):367–375, 2001. URL: https://doi.org/10.1006/jcss.2000.1727, doi:10.1006/JCSS.2000.1727.2
[IPZ01] Russell Impagliazzo, Ramamohan Paturi, and Francis Zane. Which problems have strongly exponential complexity? J. Comput. Syst. Sci., 63(4):512–530, 2001. URL: https://doi.org/10.1006/jcss.2001.1774, doi:10.1006/JCSS.2001.1774.2
[KMPS24] Karthik C. S., Dániel Marx, Marcin Pilipczuk, and Uéverton S. Souza. Conditional lower bounds for sparse parameterized 2-csp: A streamlined proof. In Merav Parter and Seth Pettie, editors, 2024 Symposium on Simplicity in Algorithms, SOSA 2024, Alexandria, VA, USA, January 8-10, 2024, pages 383–395. SIAM, 2024. doi:10.1137/1.9781611977936.35.2
[KV00] Phokion G. Kolaitis and Moshe Y. Vardi. Conjunctive-query containment and constraint satisfaction. J. Comput. Syst. Sci., 61(2):302–332, 2000. URL: https://doi.org/10.1006/jcss.2000.1713, doi:10.1006/JCSS.2000.1713.1
[Lin18] Bingkai Lin. The parameterized complexity of the k-biclique problem. J. ACM, 65(5):34:1–34:23, 2018. doi:10.1145/3212622.3
[Lov12] László Lovász. Large networks and graph limits, volume 60 of American Mathematical Society Colloquium Publications. American Mathematical Society, Providence, RI, 2012. doi:10.1090/coll/060.1
[Mar10] Dániel Marx. Can you beat treewidth? Theory Comput., 6(1):85–112, 2010. URL: https://doi.org/10.4086/toc.2010.v006a005, doi:10.4086/TOC.2010.V006A005.2
[MP14] Dániel Marx and Michał Pilipczuk. Everything you always wanted to know about the parameterized complexity of subgraph isomorphism (but were afraid to ask). In Ernst W. Mayr and Natacha Portier, editors, 31st International Symposium on Theoretical Aspects of Computer Science, STACS 2014, Lyon, France, March 5-8, 2014, volume 25 of LIPIcs, pages 542–553. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2014. URL: https://doi.org/10.4230/LIPIcs.STACS.2014.542, doi:10.4230/LIPICS.STACS.2014.542.2
[MS65] T. S. Motzkin and E. G. Straus. Maxima for graphs and a new proof of a theorem of Turán. Canadian J. Math., 17:533–540, 1965. doi:10.4153/CJM-1965-053-6.10
[PK21] Esmaeil Parsa and P. Mark Kayll. On random digraphs and cores. Australas. J. Combin., 79:371–379, 2021. 3
[Sch78] Thomas J. Schaefer. The complexity of satisfiability problems. In Richard J. Lipton, Walter A. Burkhard, Walter J. Savitch, Emily P. Friedman, and Alfred V. Aho, editors, Proceedings of the 10th Annual ACM Symposium on Theory of Computing, May 1-3, 1978, San Diego, California, USA, pages 216–226. ACM, 1978. doi:10.1145/800133.804350.1
[Zhu20] Dmitriy Zhuk. A proof of the CSP dichotomy conjecture. J. ACM, 67(5):30:1–30:78, 2020. doi:10.1145/3402029.1