WorksComputer Science
Counting Eulerian circuits in subexponential time, assuming the new #SAT algorithms
Abstract · v1
Counting the Eulerian circuits of an undirected graph is #P-complete, even for planar 4-regular graphs, while for directed graphs the BEST theorem counts them in polynomial time. However, we are unaware of any exact algorithm for undirected graphs of bounded degree that runs in time , where is the number of edges. We show that such an algorithm follows from the exact counting of Hamiltonian cycles that we proved earlier on top of Anthropic's claimed #SAT algorithm. The reduction is classical: by Kotzig's description, the Eulerian circuits of are in bijection with the Hamiltonian cycles of the line graph of the double subdivision of , which has vertices and at most edges. We prove in Lean 4 (theoremEuler, theoremEuler_noIso, theoremEuler_rate; axioms propext, Classical.choice, Quot.sound) that for every and a finite-alphabet Mathlib Turing machine outputs the number of Eulerian circuits of every graph of maximum degree at most within steps, and within steps when there is no isolated vertex; and that one machine does so for all graphs within steps. The factor pays for reading the -bit adjacency matrix and cannot be dropped. The bijection is checked by brute force on twelve small graphs, for example 132 circuits for . The formal object is Kotzig's transition-system definition; its agreement with Mathlib's Eulerian walks is not formalised. The constants are astronomical, and the proof rests on Anthropic's Lean development of its claimed refutation of the Exponential Time Hypothesis, which is under review.
Review conversation
Reviews are not available for this work yet.