Lune

SODA2021Top-tier venue

Approximate Evaluation of First-Order Counting Queries

Jan Dreier, Peter Rossmanith

Abstract

Kuske and Schweikardt introduced the very expressive first-order counting logic FOC(P) to model database queries with counting operations. They showed that there is an efficient model-checking algorithm on graphs with bounded degree, while Grohe and Schweikardt showed that probably no such algorithm exists for trees of bounded depth.

We analyze the fragment FO(> 0) of this logic. While we remove for example subtraction and comparison between two non-atomic counting terms, this logic remains quite expressive: We allow nested counting and comparison between counting terms and arbitrarily large numbers. Our main result is an approximation scheme of the model-checking problem for FO(> 0) that runs in linear fpt time on structures with bounded expansion. This scheme either gives the correct answer or says "I do not know." The latter answer may only be given if small perturbations in the number-symbols of the formula could make it both satisfied and unsatisfied. This is complemented by showing that exactly solving the model-checking problem for FO(> 0) is already hard on trees of bounded depth and just slightly increasing the expressiveness of FO(> 0) makes even approximation hard on trees.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Model Checking Disjoint-Paths Logic on Topological-Minor-Free Graph Classes cites Model-Checking for First-Order Logic with Disjoint Paths Predicates in Proper Minor-Closed Graph Classes
  • Model Checking Disjoint-Paths Logic on Topological-Minor-Free Graph Classes cites Model Checking for Low Monodimensionality Fragments of CMSO on Topological-Minor-Free Graph Classes
  • Model Checking for Low Monodimensionality Fragments of CMSO on Topological-Minor-Free Graph Classes cites Model Checking Disjoint-Paths Logic on Topological-Minor-Free Graph Classes
  • Model Checking for Low Monodimensionality Fragments of CMSO on Topological-Minor-Free Graph Classes cites Model-Checking for First-Order Logic with Disjoint Paths Predicates in Proper Minor-Closed Graph Classes
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Model Checking Disjoint-Paths Logic on Topological-Minor-Free Graph ClassesNicole Schirrmacher, Sebastian Siebertz, Giannos Stamoulis, Dimitrios M. Thilikos et al.LICS 2024 · 3 citations
  2. Model-Checking for First-Order Logic with Disjoint Paths Predicates in Proper Minor-Closed Graph ClassesPetr A. Golovach, Giannos Stamoulis, Dimitrios M. ThilikosSODA 2023 · 3 citations
  3. Approximate Evaluation of Quantitative Second Order QueriesJan Dreier, Robert Ganian, Thekla HammLICS 2025 · 1 citation
  4. Model Checking for Low Monodimensionality Fragments of CMSO on Topological-Minor-Free Graph ClassesIgnasi Sau, Nicole Schirrmacher, Sebastian Siebertz, Giannos Stamoulis et al.LICS 2026

Related papers

  1. Simulating Logspace-Recursion with Logarithmic Quantifier DepthSteffen van Bergerem, Martin Grohe, Sandra Kiefer, Luca OeljeklausLICS 2023 · 1 citation
  2. Efficiently Finding and Counting Patterns with Distance Constraints in Sparse GraphsDaniel Lokshtanov, Fahad Panolan, Saket Saurabh, Jie Xue et al.STOC 2025 · 2 citations
  3. A Logic-based Algorithmic Meta-Theorem for Treedepth: Single Exponential FPT Time and Polynomial SpaceBenjamin Bergougnoux, Vera Chekan, Giannos StamoulisSODA 2026
  4. Spectra of Cardinality Queries over Description Logic Knowledge BasesQuentin Manière, Marcin PrzybylkoAAAI 2025 · 1 citation
  5. On Testability of First-Order Properties in Bounded-Degree GraphsIsolde Adler, Noleen Köhler, Pan PengSODA 2021 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines