English

Constant time testability of first-order logic with modulo counting on finitary graphs

Logic in Computer Science 2026-05-12 v1 Logic

Abstract

This paper studies algorithmic meta theorems for property testing with \emph{constant running time} in the bounded degree model. In (Adler, Harwath 2018) it was shown that on graph classes Cdw\mathcal C^{w}_d consisting of all graphs with both degree at most dd and treewidth at most ww, every problem expressible in monadic second-order logic with counting (CMSO) is testable with \emph{polylogarithmic} running time (where d,wNd,w\in \mathbb N are fixed). It was left open whether this can be improved to \emph{constant} running time. In this paper we give a positive answer for testing CMSO on classes Cdc\mathcal C^{c}_d, where dd bounds the degree and cc bounds the component size. Our main result shows constant time testability of first-order logic with modulo counting (FOMOD) on Cdc\mathcal C^{c}_d. For our proof we tailor Hanf normal form of FOMOD to our setting, and we exhibit a number-theoretic `patchability' condition that allows to infer global information on the input graph from a local sample of constant size. We believe that our `patchability' might be of independent interest. The step from FOMOD to CMSO then follows from a result by (Eickmeyer, Elberfeld, Harwath, 2017) on the expressive power of order invariant monadic second-order logic on classes of bounded treedepth.

Keywords

Cite

@article{arxiv.2605.10841,
  title  = {Constant time testability of first-order logic with modulo counting on finitary graphs},
  author = {Isolde Adler and Jenny Stimpson},
  journal= {arXiv preprint arXiv:2605.10841},
  year   = {2026}
}
R2 v1 2026-07-22T07:05:00.304Z