Skip to content

Two Primes Suffice for Definable Graph Canonisation

Vaani Goenka, Aalok Thakkar

cs.LO

Abstract

We study inflationary fixed-point logic on finite simple graphs with unordered vertices and an ordered number sort. For a prime rr, the quantifier MrM_r tests whether the number of relations satisfying a formula is nonzero modulo rr. For any distinct primes pp and qq, the logic with MpM_p and MqM_q defines the adjacency matrix of a canonical copy on the number sort. On labelled inputs this matrix is computable in deterministic polynomial time with an oracle that tests whether the number of satisfying assignments of a Boolean circuit is nonzero modulo pp. For each prime pp, the logic with MpM_p alone cannot define a canonical copy on all graphs. The primes also differ on Boolean queries. There is a single first-order formula β(S)β(S) on vertex sets such that MqSβ(S)M_q S β(S) is undefinable with MpM_p alone whenever p≠qp \ne q. For a positive integer-valued function gg, consider the class of all graphs GG with at most g(∣V(G)∣)g(|V(G)|) automorphisms. For each fixed prime pp, the logic with MpM_p canonises this class exactly when gg is bounded.

Create a lesson