arXiv:2610.41974cs.LOOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.41974

Model Checking for Metric Extensions of Monadic Second-Order Logic

Dibyayan Chakraborty, Sebastian Ordyniak, Sebastian Siebertz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Monadic second-order logic yields powerful algorithmic meta-theorems, but it cannot express that a vertex set induces a shortest path. We study metric extensions of (counting) monadic second-order logic and identify structural parameters supporting efficient model checking, optimization, and counting.

We show that a shortest-path predicate SP and a predicate EqGC comparing distances on a geodesic cycle are expressible in plain MSO₁ on graph classes of bounded cycle-basis length. Consequently, CMSO₂[SP, EqGC] admits fixed-parameter tractable model checking parameterized by formula length plus bag-connected treewidth. For CMSO₁[SP, EqGC], we obtain the analogous result for formula length plus geodesic cliquewidth, the sum of cliquewidth and cycle-basis length. The translations preserve free variables, yielding additive optimization and counting. Applications include FPT algorithms for MINIMUM GEODETIC SET, STRONG METRIC DIMENSION, and geodesic convexity and visibility problems parameterized by geodesic cliquewidth, and for MINIMUM ISOMETRIC PATH PARTITION parameterized by bag-connected treewidth.

To handle numerical distance thresholds outside the parameter, we introduce restricted packing-covering templates combining a CMSO₂[SP, EqGC] formula with positive separation and covering requirements. For every fixed template Φ, feasibility, additive vertex-weight optimization, and counting take time fΦ(ctw(G))NOΦ(1)f_{\Phi}(\text{ctw}(G))N^{O_{\Phi}(1)}, where NN is the total binary input length. This gives FPT algorithms for DISTANCE-r DOMINATING SET, d-SCATTERED SET, and MINIMUM ECCENTRICITY SHORTEST PATH parameterized by bag-connected treewidth, and for MINIMUM CONSISTENT SUBSET when the number of colors is also a parameter.

We characterize bounded bag-connected treewidth by monadic MSO₂[EqGC]-dependence and bounded geodesic cliquewidth by monadic CMSO₁[EqGC]-dependence. For unguarded distance comparisons, the corresponding characterizations instead require bounded component diameter together with bounded treewidth or cliquewidth. Our encodings yield fixed-sentence NP-hardness under suitable efficiency hypotheses. For either unguarded predicate R∈{EqDist,Close}R \in \{\text{EqDist}, \text{Close}\}, FO[R] model checking is AW[*]-complete already on uncolored caterpillars, and a fixed existential monadic sentence has NP-complete model checking on this class.

Keywords: monadic second-order logic, shortest paths, distance profiles, bag-connected treewidth, geodesic cycles, monadic dependence, model checking, parameterized algorithms.

Contents

1 Introduction 1
2 Preliminaries 12
2.1 Graphs, paths, and distances ..... 12
2.2 The binary cycle space ..... 13
2.3 Treewidth and bag-connected treewidth ..... 13
2.4 Nice bag-connected tree decompositions ..... 14
2.5 Cliquewidth and geodesic cliquewidth ..... 15
2.6 Geodesic cliquewidth and geodesic cycles ..... 15
2.7 Counting monadic second-order logic ..... 16
2.8 Extensions of monadic second-order logic ..... 18
3 Expressing shortest paths in MSO 19
3.1 Shortest paths as integer potentials ..... 19
3.2 Finite cyclic certificates ..... 20
3.3 Expressing the finite certificate in plain MSO ..... 23
4 Expressing guarded equidistance in MSO 24
4.1 Equal arc lengths as integer potentials ..... 25
4.2 Finite cyclic certificates ..... 26
4.3 Expressing the finite certificate in plain MSO ..... 27
5 Model checking with shortest paths and guarded equidistance 29
6 Dynamic programming on classes of bounded bag-connected treewidth 29
6.1 Distance profiles and local certificates ..... 31
6.2 The dynamic program ..... 32
6.3 Nearest-set objectives ..... 41
7 Logical boundaries and computational hardness 43
7.1 Monadic interpretations ..... 43
7.2 Encodings in geodesics and geodesic cycles ..... 44
7.3 Dependence for unguarded comparisons ..... 45
7.4 Dependence for guarded comparisons ..... 46
7.5 From efficient encodings to hardness ..... 48
7.6 Unguarded hardness on paths and caterpillars ..... 49
7.7 Effective guarded hardness ..... 50
7.8 Hardness for distance thresholds ..... 51
7.9 W[1]-hardness of packing-covering ..... 53
8 More algorithmic applications 56

References (100)

Couldn't load all references. Reload the page to try again.