arXiv:2608.24601cs.FLAug 2026

Manuscript Offprint

arXiv:2608.24601

Pushdown Model Checking Above the Cubic Bottleneck

A. R. Balasubramanian, Dmitry Chistikov, Rupak Majumdar

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

Abstract

Many problems in program analysis and the verification of recursive programs can be reduced to pushdown model checking. In this problem, we are given as input a pushdown automaton (PDA) over a constant-sized stack alphabet, representing the program, and a description of undesirable behaviors given by an intersection of NFAs, and the problem is to decide if there is a behavior of the PDA that belongs to the set of undesirable behaviors. It is well-known that there is an algorithm for this problem that runs in time O(n2k∣Σ∣+n3k)O(n^{2k}|\Sigma| + n^{3k}), where nn is the maximum number of states of the PDA and the NFAs, Σ\Sigma is the common alphabet of these machines, and k−1k - 1 is the number of NFAs used to specify the violations. Despite the importance of this problem, no better algorithm is known for it.

In this paper, we provide an explanation for this lack of progress using the lens of fine-grained complexity theory. More precisely, we prove that if the 3k-Clique hypothesis is true, then for any ε>0\varepsilon > 0, there is no algorithm that solves pushdown model checking in time O((n(ω−1)k∣Σ∣+nωk)1−ε)O((n^{(\omega-1)k}|\Sigma| + n^{\omega k})^{1-\varepsilon}) where ω\omega is the matrix multiplication exponent. Similarly, under the combinatorial 3k-Clique hypothesis, we show that no combinatorial algorithm can solve pushdown model checking in time O((n2k∣Σ∣+n3k)1−ε)O((n^{2k}|\Sigma| + n^{3k})^{1-\varepsilon}) for any ε>0\varepsilon > 0. Hence, our result implies that any significantly faster algorithm for pushdown model checking than the existing ones would lead to a breakthrough for the 3k-Clique problem. Our lower bound applies even in the case when all the machines are deterministic, and even when the PDA is simply a deterministic one-counter machine. Furthermore, using the same combinatorial 3k-clique hypothesis, we also show that pushdown model checking over constant-sized input alphabets cannot be solved by combinatorial algorithms in time O(n3(k−1)−ε)O(n^{3(k-1)-\varepsilon}) for any ε>0\varepsilon > 0.

Finally, we investigate the possibility of an O(N3k−ε)O(N^{3k-\varepsilon}) time algorithm for pushdown model checking where NN is the total bit size of the given input. We formulate a new hypothesis, the 2NPDA( kk) hypothesis, that helps explain the lack of O(N3k−ε)O(N^{3k-\varepsilon}) time algorithms for pushdown model checking. To corroborate this hypothesis, we show a web of linear-time reductions between the 2NPDA( kk) hypothesis, pushdown model checking, and other problems in formal language and automata theory.

∗^{*}A part of the work was done when the author was at TUM, Germany

1 Introduction

Many problems in program analysis, formal language theory and verification of recursive programs are reducible to pushdown model-checking: given as input a PDA (over a constant-sized stack alphabet) and a specification of bad behaviors given as a set of NFAs, the goal is to check if there is a behavior in the language of the PDA that lies in the intersection of the languages of the NFAs. It is well-known that the model complexity of the problem, which treats the PDA as the input and the NFAs as constant-sized, is O(n3)O(n^{3}) time, where n is the number of states of the given PDA [19, 45, 35, 7, 20, 33]. This cubic algorithm simply does a product construction of the given NFAs with the PDA to get another PDA and then performs reachability analysis on this latter PDA.

When we consider the combined complexity of the problem, where both the PDA and the set of NFAs are considered part of the input, the best algorithm runs in time O(n2k∣Σ∣+n3k)O(n^{2k}|\Sigma| + n^{3k}) where nn is the maximum number of states in any of the given NFAs and the PDA, Σ\Sigma is the common input alphabet of all of the machines and k−1k - 1 is the number of NFAs used to encode the specification. This algorithm uses the algorithm from the previous paragraph. Intuitively, it takes time O(n2k∣Σ∣)O(n^{2k}|\Sigma|) to do the product construction of the NFAs with the given PDA to get another PDA with O(nk)O(n^{k}) states, and then it takes O(n3k)O(n^{3k}) time to perform reachability analysis on this new PDA. Going beyond constant-sized specifications is important in several program analysis applications, such as checking set constraints with regular annotations [29], pointer analysis [36], and model checking for certain security properties [15].

Despite decades of research, no substantially better algorithm is known for either problem. For model complexity, the best current bound is O(n3/log⁡n)O(n^{3}/\log n) time [13]. No truly subcubic algorithms are known; this is usually referred to as the “cubic bottleneck” for program analysis [25]. Similarly, for combined complexity, the trivial algorithm above is the best known.

In this paper, we explain this lack of progress through the lens of fine-grained complexity theory. This subfield of complexity theory is one of its recent successes: it aims to explain the absence of faster algorithms (than existing ones) for various polynomial-time solvable problems. More precisely, it attempts to explain why a problem can be solved in time O(nc)O(n^{c}) but not O(nc−ε)O(n^{c-\varepsilon}) for any ε>0\varepsilon > 0. By identifying a small number of relevant hypotheses and linking many such questions of the above kind with them, fine-grained complexity has provided tight conditional lower bounds for problems in a variety of domains: graph theory, stringology, formal language theory, databases, data structures, and dynamic algorithms [43, 8].

Within this context, our contributions in this paper are the following:

  1. We prove that significantly faster algorithms for pushdown model checking would lead to breakthrough algorithms for the k-Clique problem (and thus would refute a well-established hypothesis).

  2. We show that the hypothesis that pushdown model checking requires time n3kn^{3k} is closely related (by linear-time inter-reductions) to another natural hypothesis, on the time complexity of languages recognized by two-way nondeterministic pushdown automata with k heads (2NPDA(k), for short).

  3. We give a language-theoretic consequence of our reductions: a new construction of hardest languages for the class of languages recognized by 2NPDA(k), for each k.

We now expand upon each of these contributions in more detail.

  1. Conditional lower bounds from k-Clique. One of the most important hypotheses used in fine-grained complexity theory is the so-called k-Clique hypothesis ( k≥3k \geq 3): For each ε>0\varepsilon > 0, there is no algorithm that detects the existence of cliques of size k in graphs on n vertices in time O(nωk/3−ε)O(n^{\omega k/3-\varepsilon}). (Here ω\omega is the matrix multiplication exponent: the infimum of all c such that there is an O(nc)O(n^c) algorithm to multiply two n×nn \times n matrices.) Closely related to this hypothesis is the combinatorial k-Clique hypothesis which asserts that, for each ε>0\varepsilon > 0, there is no combinatorial 1^1 algorithm that solves k-Clique in time O(nk−ε)O(n^{k-\varepsilon}). These two hypotheses have been used to show conditional lower bounds for a variety of problems such as context-free language recognition and RNA folding [2], parsing tree adjoining grammars [10], Klee's measure problem [11], maximum-weight box problem in computational geometry [5], etc. In fact, the best conditional lower bounds for the model complexity of pushdown model checking are based on the 3-Clique hypothesis [12, 2, 30, 16]; see also [34]. However, these lower bounds do not imply anything for the combined complexity of pushdown model checking.

Our first main result is to provide a tight conditional lower bound on the combined complexity of pushdown model checking based on the Clique hypotheses. We show that, unless the 3k-Clique hypothesis (resp. combinatorial 3k-Clique hypothesis) is false, there is no (combinatorial) algorithm that solves pushdown model checking in time O((n(ω−1)k∣Σ∣+nωk)1−ε)O((n^{(\omega-1)k}|\Sigma| + n^{\omega k})^{1-\varepsilon}) (resp. in time O((n2k∣Σ∣+n3k)1−ε)O((n^{2k}|\Sigma| + n^{3k})^{1-\varepsilon})) for any ε>0\varepsilon > 0. Hence, our result proves that, unless the combinatorial 3k-Clique hypothesis is false, no algorithm can be better than the known algorithm for this problem. In fact, our lower bound applies even to the special case of the problem in which all the k−1k - 1 NFAs are DFAs, and the PDA is a deterministic one-counter machine.

Our proof (of Theorem 2 in Section 3) generalizes the well-known encoding of triangle finding using PDAs (cf. [34]), but requires several new ideas, in order to go beyond triangles. First, a large input alphabet (with up to nkn^k letters) enables us to “name” k-cliques. With the help of a counter (counting up to nkn^k), we can uniquely store and retrieve a k-clique. We use the counter along with the NFAs to find three k-cliques whose nodes are all neighbors to each other. Our key trick here is to use small automata (n states each) to increment and decrement the counter all the way to these large numbers, as well as check the neighborhood relation between nodes of different k-cliques.

We then turn our attention to the case of pushdown model checking when the input alphabet of all the machines is constant-sized, i.e., when ∣Σ∣|\Sigma| is a constant. This is an important special case: the complexity of language-theoretic problems is often studied under this assumption. Because ∣Σ∣|\Sigma| is a constant, we have that O(n2k∣Σ∣+n3k)=O(n3k)O(n^{2k}|\Sigma| + n^{3k}) = O(n^{3k}), which is the best known running time in this setting. For this case (handled in Theorem 15 in Section 4), based on the 3k-Clique hypothesis, we rule out the existence of O(nω(k−1)−ε)O(n^{\omega(k-1)-\varepsilon}) time algorithms. Similarly, using the combinatorial 3k-Clique hypothesis, we also prove that O(n3(k−1)−ε)O(n^{3(k-1)-\varepsilon}) time combinatorial algorithms cannot exist for this problem. Since the alphabet size is fixed, we can no longer use the trick of naming k-cliques. To go beyond this, our construction initially uses linear-sized input and stack alphabets in order to find three k-cliques whose nodes are all neighbors to each other. For this purpose, various specialized gadgets are constructed to store and keep track of (multiple) k-cliques in the stack as well as to check that nodes in different k-cliques are neighbors. We then carefully encode the linear-sized alphabet in binary and convert the original construction into one over constant-sized alphabets, with only a logarithmic blowup in the state space. Note that our results in this regime have a gap of O(n3+(3−ω)k)O(n^{3+(3-\omega)k}) between the upper and lower bounds in the general case and O(n3)O(n^{3}) in the combinatorial case.

We also note that, for the special case of k=2k = 2, that is, the intersection non-emptiness problem for the language of 1 PDA and 1 NFA, a conditional lower bound follows from a result in [1]. They consider the special case of the problem in which the PDA is replaced by a straight-line program (a context-free grammar that generates a single word only). The problem is to decide whether a given NFA accepts this compressed word. They prove that, unless the combinatorial kk-Clique hypothesis is false, there is no ε>0\varepsilon > 0 for which there exists an algorithm for this problem running in time O(min⁡{pq3,Nq2}1−ε)O(\min\{pq^3, Nq^2\}^{1-\varepsilon}), where pp is the size of the compressed representation of the word (think the number of states in the PDA), qq is the number of states in the NFA, and

1^{1}While the notion of combinatorial algorithms is not rigorous, these are algorithms that do not use fast matrix multiplication techniques.

N≤2nN \leq 2^n. The Nq2Nq^2 term matches a decompress-and-solve algorithm which is not available for general PDA. In the regime p=q=np = q = n, this lower bound is of order n4n^4.

  1. New hypotheses. It is not known whether fast matrix multiplication algorithms can be used for faster pushdown model checking. Standard existing hypotheses appear to be insufficient for explaining the hardness even for k=1k = 1 (language non-emptiness of pushdown automata). The best (non-combinatorial) lower bound is Ω(nω)\Omega(n^\omega) from kk-Clique [2], and it has been shown that the strong exponential-time hypothesis (SETH), perhaps the most well-known hypothesis in fine-grained complexity, cannot be used to beat this bound, unless breakthrough results in circuit complexity appear [16]. Note that the 3k3k-Clique hypothesis only asserts the non-existence of algorithms with runtime as a function of the number of nodes and not of the whole input. Intuitively, this cannot help explain whether pushdown model checking admits an algorithm with runtime O(N3k−ε)O(N^{3k-\varepsilon}) where NN is the overall bit size of the input: the input includes all transitions in the machines, and their number could be quadratic in the number of states.

Thus, new hypotheses may be required to explain the absence of faster algorithms. Indeed, for k=1k = 1 the recent NFA acceptance hypothesis [9] gives an n3n^3 lower bound for pushdown model checking for dense PDAs.

For k>1k > 1, we introduce (in Section 5) a new 2NPDA(kk) hypothesis. It asserts that there is no ε>0\varepsilon > 0 for which some algorithm running in time O(∣w∣3k−ε)O(|w|^{3k-\varepsilon}) can decide if a given word ww is accepted by a (fixed) two-way non-deterministic pushdown automaton with kk heads (2NPDA(kk)). Intuitively, a 2NPDA(kk) is a machine (see [24, 28]) which has access to a stack and its input is written on a read-only input tape. This machine has kk heads on the input tape using which it can query the letters of kk positions on the input tape. Based on this query, it can update its state, the positions of these kk heads and also its stack content. It is a folklore result that there is an algorithm for the 2NPDA(kk) acceptance problem that runs in time O(∣w∣3k)O(|w|^{3k}) for any fixed 2NPDA(kk). (For example, Rytter [39] refers to Aho, Hopcroft, and Ullman [3], even though only 2NPDA(1) are considered there.) However, no faster algorithm is known for this problem. Based on this lack of progress, we introduce this new hypothesis as a generalization of the 2NPDA hypothesis (i.e., 2NPDA(kk) with k=1k = 1), introduced by Neal [32] and Heintze and McAllester [25]. Furthermore, if k≥2k \geq 2, 2NPDA(kk) language recognition is not known to admit even O(∣w∣3k/log⁡∣w∣)O(|w|^{3k}/\log|w|) algorithms, unlike for k=1k = 1 [13, 41]. To the best of our knowledge, algorithms with this complexity are only known for the special case of loop-free automata [41]; see also related results in [39, 40].

As a way to strengthen the believability of this hypothesis, we provide a web of linear-time reductions between the 2NPDA(k) language recognition problem and a variety of other problems in language theory and program analysis, one of which is the pushdown model checking problem. (For k = 1, similar reductions appear in [13] and later in [16].) So, under the 2NPDA(k) hypothesis, we show that there is no algorithm running in time O(N3k−ε)O(N^{3k-\varepsilon}) for pushdown model checking. Hence, this gives rise to a hierarchy of program analysis problems, one for each k > 1, that go beyond the famous cubic bottleneck that is established in the literature.

  1. Consequences and applications. The lens of fine-grained complexity provides some purely language-theoretic consequences. Using our chain of linear-time reductions between 2NPDA(k) recognition and pushdown model checking, we get that, for each k≥1k \geq 1, there is a hardest 2NPDA(k) language, i.e., there is a fixed language L0(k)L_0^{(k)} recognized by a 2NPDA with k heads with the following property: For every 2NPDA(k) language LL, there is a homomorphism hh such that, for all non-empty words ww, w∈Lw \in L if and only if h(w)∈L0(k)h(w) \in L_0^{(k)}. Previous constructions of hardest languages used language-theoretic constructions [31], [38].

This paper is an extended version of the conference paper [6] published at LICS 2025. In comparison to that paper, this version contains full proofs of the results as well as diagrams illustrating the main gadgets used in the reductions.

References (45)