arXiv:2608.24520math.COAug 2026

Manuscript Offprint

arXiv:2608.24520

Homomorphic-core phase transition threshold in Erdős--Rényi random graphs

Jiaheng Wang

JIAHENG WANG

ABSTRACT. It is shown in this manuscript that a random graph G drawn from the Erdős–Rényi model G(n,p)\mathcal{G}(n,p) with

p=p(n)≤1/2,lim⁡n→+∞(np−log⁡n−log⁡log⁡n)=+∞,p=p(n)\leq1/2,\qquad\lim_{n\to+\infty}(np-\log n-\log\log n)=+\infty,

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 1^{1} 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 V(G)V(G) to V(H)V(H) that preserves adjacency. We denote by #hom(G→H)\# \text{hom}(G \to H) 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 #HOM(G)\# \text{HOM}(G) 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, #P-hard\# \text{P-hard}, modPp\text{modP}_p-hard); see for example [HN90, DG00, CC17, GGJ17, GLS21, BK22, Bul17, Zhu20].

On nn-vertex input graphs, #HOM(G)\# \text{HOM}(G) can always be solved in time nΘ(∣V(G)∣)n^{\Theta(|V(G)|)} by brute-force enumeration. For certain graphs, this running time is optimal. If GG is a kk-clique, then HOM(G)\text{HOM}(G) (respectively, its counting variant) is equivalent to the subgraph isomorphism problem SUB(G)\text{SUB}(G), which asks whether the input graph contains a subgraph isomorphic to GG (not necessarily an induced

(Jiaheng Wang) UNIVERSITY OF HELSINKI, FINLAND. Financially supported by HELSINKI INSTITUTE OF INFORMATION TECHNOLOGY (HIIT).

1^{1}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 nΩ(k)n^{\Omega(k)}-time lower bound for SUB(G)\text{SUB}(G) when GG is a kk-clique [CCF+05,CHKX06][CCF^{+}05, CHKX06].

Now consider the case in which GG is the kk-by-kk biclique Kk,kK_{k,k} (the complete bipartite graph). Although the counting problem #HOM(Kk,k)\# \text{HOM}(K_{k,k}) is intractable under standard complexity assumptions [FG04, DJ04], its decision counterpart behaves very differently. In fact, the decision problem HOM(Kk,k)\text{HOM}(K_{k,k}) is trivial. Indeed, if HH contains at least one edge uvuv, then there is a homomorphism from Kk,kK_{k,k} to HH: map every vertex in its left part to uu and every vertex in its right part to vv. Otherwise, HH has no edges, and no homomorphism from Kk,kK_{k,k} to HH exists.

This argument extends to broader graph families. Suppose that a pattern graph G has a proper subgraph G′G' and that there exists a homomorphism f from G to G′G'. If the host graph H contains a homomorphic copy of G, then restricting this copy to G′G' yields a homomorphic copy of G′G'. Conversely, if H contains a homomorphic copy of G′G' through a mapping g, then the composition g∘fg \circ f is a homomorphism from G to H, giving a homomorphic copy of G. Therefore, HOM(G)\text{HOM}(G) and HOM(G′)\text{HOM}(G') are essentially equivalent. In other words, whereas the complexity of #HOM(G)\# \text{HOM}(G) is governed by the treewidth of G [FG04, DJ04], the complexity of HOM(G)\text{HOM}(G) 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 2^{2} 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, V(H)=⊎i∈[k]ViV(H) = \uplus_{i \in [k]} V_i. The problem asks whether there exist vertices v1,…,vkv_1, \ldots, v_k with vi∈Viv_i \in V_i such that vivj∈E(H)v_i v_j \in E(H) for every ij∈E(G)ij \in E(G). 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 xix_i for i∈[k]i \in [k], relations ReR_e for e∈E(G)e \in E(G), and domains D(xi)=Vi\mathcal{D}(x_i) = V_i.

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 tw(G)=t\text{tw}(G) = t, dynamic programming over a tree decomposition solves COLSUB(G) in time O(nΘ(t))O(n^{\Theta(t)}); conversely, assuming ETH, there exists a universal constant C>0C > 0 such that, for every fixed graph G of treewidth tt, COLSUB(G) admits no O(nC⋅(t/log⁡t))O(n^{C \cdot (t/\log t)})-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

2^{2}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 W[1]\mathbf{W}[1]-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, SUB(G)\text{SUB}(G) is a challenging problem to study for every GG. Nevertheless, we may study its complexity for a typical pattern drawn from the Erdős–Rényi random graph model G(k,p)\mathcal{G}(k,p).

For COLSUB(G)\text{COLSUB}(G), this setting is well understood when the edge probability lies slightly above the phase-transition threshold for connectivity; that is, when p≥(1+ε)log⁡k/kp \geq (1 + \varepsilon) \log k/k for any fixed ε>0\varepsilon > 0. In this regime, let ρ=log⁡(k)/log⁡(kp)\rho = \log(k)/\log(kp) denote the typical diameter. Then, with high probability over a random graph G∼G(k,p)G \sim \mathcal{G}(k, p), one obtains an Ω(nC⋅k/ρ)\Omega(n^{C \cdot k/\rho}) lower bound for COLSUB(G)\text{COLSUB}(G) [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 G(n,1/2)\mathcal{G}(n, 1/2) is a homomorphic core with high probability. For simplicity, we assume p≤1/2p \leq 1/2 throughout the remainder of the discussion. Bonato and Prałat [BP09] extended this result to the regime p>n−1/3log⁡2np > n^{-1/3} \log^2 n. (See also the work of Parsa and Kayll [PK21] on the directed version.)

On the other hand, observe that any nn-vertex graph (n≥2n \geq 2) 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 nn-vertex graph (n≥3n \geq 3) with a degree-1 vertex vv is not a homomorphic core. Indeed, if the vertex adjacent to vv has degree at least 2, then vv 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 p=(log⁡n+log⁡log⁡n±ω(1))/np = (\log n + \log \log n \pm \omega(1))/n [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 p=p(n)≤1/2p = p(n) \leq 1/2. If

lim⁡n→+∞(np−log⁡n−log⁡log⁡n)=+∞,\lim_{n\to+\infty}(np-\log n-\log\log n)=+\infty,

then with high probability G∼G(n,p)G \sim \mathcal{G}(n, p) is a homomorphic core. Conversely, if

lim⁡n→+∞(np−log⁡n−log⁡log⁡n)=−∞,\lim_{n\to+\infty}(np-\log n-\log\log n)=-\infty,

then with high probability G∼G(n,p)G \sim \mathcal{G}(n, p) is not a homomorphic core.

By the discussion in the previous subsection, our result yields a lower bound for the subgraph isomorphism problem SUB(G)\text{SUB}(G) when the pattern G∼G(k,p)G \sim \mathcal{G}(k, p) is random and p≥(1+ε)log⁡k/kp \geq (1 + \varepsilon) \log k/k.

Corollary 2. Assuming ETH, there exists an absolute constant c>0c > 0 such that, for every constant ε>0\varepsilon > 0 and every p≥(1+ε)log⁡k/kp \geq (1 + \varepsilon) \log k/k, the following holds: with high probability over an Erdős–Rényi random graph H∼G(k,p)H \sim \mathcal{G}(k, p), the problem SUB(H)\text{SUB}(H) admits no O(nc⋅k/ρ)O(n^{c \cdot k/\rho})-time algorithm on nn-vertex input graphs. Here, ρ=log⁡(k)/log⁡(kp)\rho = \log(k)/\log(kp) denotes the typical distance in G(k,p)\mathcal{G}(k, p) [CL01].

In particular, if p=k−αp = k^{-\alpha} is an inverse polynomial in kk with a fixed α>0\alpha > 0 and lies within the regime of the corollary, then the typical distance ρ\rho is bounded by a constant. In this case, the corollary implies that, under ETH and with high probability, no O(nc′⋅k)O(n^{c' \cdot k})-time algorithm exists, for some constant c′>0c' > 0 depending only on α\alpha and cc. In other words, almost every pattern with polynomial average degree is maximally hard: unless ETH fails, no algorithm can fundamentally beat the nO(k)n^{O(k)}-time brute-force algorithm.

1.4. Proof overview. An equivalent definition of homomorphic core is through the retraction. A homomorphism rr from a graph GG to its induced subgraph G[Sr]G[S_r] with image SrS_r is a retraction if every element in SrS_r is a fixed point, i.e., r(V(G))=Srr(V(G)) = S_r and r(s)=sr(s) = s for every s∈Srs \in S_r. It is proper if Sr≠V(G)S_r \neq V(G). 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 log⁡n\log n. 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 SrS_r 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.

References (38)