Creative Commons Attribution 4.0 International license
The Hamiltonian Cycle polynomial, denoted as HC_n, is defined to be the sum of the weighted Hamiltonian Cycles in an n-vertex complete digraph, with vertices labeled 1 to n and edges weighted by formal variables x_{i,j}. The Permanent and HC, defined as the family {HC_n | n ≥ 1}, were studied by Valiant (STOC 1979), with the former shown to be VNP-complete over all fields of characteristic other than 2, and the latter to be VNP-complete over every field. Since its introduction, HC has been studied from the perspective of circuit lower bounds by Jerrum-Snir (JACM 1982), determinantal complexity by Huttenhain-Ikenmeyer (LAA 2016), and its connection with the Permanent and the Determinant polynomials by Goulden-Jackson (EJC 1981) and Grochow (ToC 2017). It has been the most prominent choice for generalising results to all fields, such as in Malod (CCC 2007) and Grochow-Mulmuley-Qiao (ICALP 2016), owing to its VNP-completeness over every field. Hrubes (ToCT, 2016) showed the VNP-completeness of many graph-based polynomial families over every field by using HC.
In Kayal (STOC 2012), a randomised polynomial time algorithm was given for the following problem: Given an n²-variate degree-n polynomial f(𝐱) ∈ 𝔽[𝐱] as a black box, decide if there exists A ∈ GL_{n²}(𝔽) such that f(𝐱) = Perm_n(A𝐱). Here, the Permanent polynomial Perm_n computes the permanent of the n × n symbolic matrix (x_{i,j}). This problem is known as testing equivalence to the Permanent, or alternatively, ET for Permanent.
In this work, we study ET for HC. While both families are VNP-complete, the efficient ET algorithm for Permanent does not imply the same for HC. Besides, there are crucial differences between the two polynomials that make studying the complexity of ET for HC interesting: The underlying decision problem corresponding to the Permanent is in P (detecting perfect matchings in a bipartite graph), but that for HC (detecting Hamiltonian cycles in a digraph) is NP-complete. The Permanent polynomial is known to be characterised by its symmetries as shown by Mulmuley-Sohoni (SIAM J. Computing, 2001). This property yields an efficient algorithm for the circuit-testing problem for the Permanent, a special case of ET for the Permanent, in which we check whether a given circuit computes the Permanent. In contrast, we show HC_n is not characterised by its symmetries.
In this work, we give a randomised polynomial time ET algorithm for HC with mild constraints on the underlying field. The algorithm is obtained by studying and completely characterising the Lie algebra and the symmetries of HC_n. We show that, like the Permanent polynomial, the symmetries of HC_n are generated by permutation and scaling matrices over large enough fields. However, we also show that, unlike the Permanent polynomial, HC_n is not characterised by its symmetries. Nevertheless, like the Permanent polynomial, HC_n is downward self-reducible, as shown in Zhang-Bai (TCS 2011), which implies HC_n is characterised by circuit identities and that we can efficiently test whether a given circuit C computes HC_n. We also get a Flip theorem for HC_n as a result of its circuit identities.
@InProceedings{dewan:LIPIcs.MFCS.2026.90,
author = {Dewan, Agrim},
title = {{Testing Equivalence to the Hamiltonian Cycle Polynomial}},
booktitle = {51st International Symposium on Mathematical Foundations of Computer Science (MFCS 2026)},
pages = {90:1--90:17},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-442-0},
ISSN = {1868-8969},
year = {2026},
volume = {386},
editor = {Kouck\'{y}, Michal and Petrișan, Daniela},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.MFCS.2026.90},
URN = {urn:nbn:de:0030-drops-274729},
doi = {10.4230/LIPIcs.MFCS.2026.90},
annote = {Keywords: Equivalence Testing, Hamiltonian Cycle Polynomial, Symmetries, Lie Algebra, Circuit identities}
}