English

An Algorithmic Meta Theorem for Homomorphism Indistinguishability

Logic in Computer Science 2024-02-15 v1 Computational Complexity Discrete Mathematics Combinatorics

Abstract

Two graphs GG and HH are homomorphism indistinguishable over a family of graphs F\mathcal{F} if for all graphs FFF \in \mathcal{F} the number of homomorphisms from FF to GG is equal to the number of homomorphism from FF to HH. Many natural equivalence relations comparing graphs such as (quantum) isomorphism, cospectrality, and logical equivalences can be characterised as homomorphism indistinguishability relations over various graph classes. For a fixed graph class F\mathcal{F}, the decision problem HomInd(F\mathcal{F}) asks to determine whether two input graphs GG and HH are homomorphism indistinguishable over F\mathcal{F}. The problem HomInd(F\mathcal{F}) is known to be decidable only for few graph classes F\mathcal{F}. We show that HomInd(F\mathcal{F}) admits a randomised polynomial-time algorithm for every graph class F\mathcal{F} of bounded treewidth which is definable in counting monadic second-order logic CMSO2. Thereby, we give the first general algorithm for deciding homomorphism indistinguishability. This result extends to a version of HomInd where the graph class F\mathcal{F} is specified by a CMSO2-sentence and a bound kk on the treewidth, which are given as input. For fixed kk, this problem is randomised fixed-parameter tractable. If kk is part of the input then it is coNP- and coW[1]-hard. Addressing a problem posed by Berkholz (2012), we show coNP-hardness by establishing that deciding indistinguishability under the kk-dimensional Weisfeiler--Leman algorithm is coNP-hard when kk is part of the input.

Keywords

Cite

@article{arxiv.2402.08989,
  title  = {An Algorithmic Meta Theorem for Homomorphism Indistinguishability},
  author = {Tim Seppelt},
  journal= {arXiv preprint arXiv:2402.08989},
  year   = {2024}
}
R2 v1 2026-06-28T14:48:09.635Z