arXiv:2611.02971cs.LONov 2026

Manuscript Offprint

arXiv:2611.02971

Propositional Dynamic Logic with Program Costs

Krishna Manoorkar, Wolfgang Poiger

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

KRISHNA MANOORKAR AND WOLFGANG POIGER

ABSTRACT. We introduce NPDL, a resource-aware variant of Propositional Dynamic Logic (PDL) capable of accounting for program costs measured by natural numbers (such as time or space in the sense of computability theory). In this framework, programs correspond to transition systems weighted by extended natural numbers, and the syntax of our logic includes formulas expressing which properties are reachable by program executions within specific cost constraints. First, we explain how the standard program constructs of non-deterministic choice, sequential composition, iteration, and tests are interpreted in this weighted setting and establish the validity of their corresponding reduction axioms. Using an appropriate adaptation of the (Fischer-Ladner) filtration technique, we proceed to prove decidability and completeness for NPDL as our main results. We furthermore provide upper and lower complexity bounds for this logic using translations between standard PDL and NPDL.

1. INTRODUCTION

In the landscape of formal methods in computer science, Propositional Dynamic Logic (PDL) is a well-known logical calculus for reasoning about programs to formally verify their correctness [6, 10]. Combining modal logic and regular expressions, PDL specifies operational program constructs such as non-deterministic choice, sequential composition, iteration, and tests in a decidable logical framework. More broadly, PDL can be conceived as a prototypical logic of 'action and consequence'. For instance, this has been a primary inspiration for the 'dynamic turn' in epistemic logic [23], where PDL and extensions thereof have been used to model concepts such as belief revision [24] or communicative updates [22].

While standard PDL describes the qualitative reachability of states, in practice one may require additional quantitative assessments. In the computational context, systems have critical constraints on resources such as time, memory, or energy. Therefore, it is reasonable to consider formal frameworks capable of reasoning about program efficiency. Similar motivations arise in other areas, for instance due to the fact that actions of real-world agents are driven by considerations of cost and utility.

In this article we introduce NPDL, a logic which includes discrete program costs (e.g. time or space in the sense of computability theory) into the PDL framework. Here, programs π\pi correspond to weighted accessibility relations Rπ:X2→N∞R_{\pi}: X^2 \to \mathbb{N}^{\infty}, where the weight Rπ(x,y)R_{\pi}(x, y) is an extended natural number modeling the (least) cost of reaching yy via executing π\pi at xx. In particular, the addition of natural numbers is seen as cost combination and the weights 0 and ∞\infty correspond to the usual accessibility and inaccessibility of PDL. From this perspective, the weighted program constructs such as composition and iteration we define for NPDL are chosen to naturally generalize those of standard PDL (Subsection 2.1).

The syntax of NPDL includes formulas ⟨π⟩mφ\langle \pi \rangle^m \varphi for every (non-extended) natural number m∈Nm \in \mathbb{N}, intuitively stating that 'executing π\pi to reach φ\varphi is possible for a cost of no more than m′m'. That is, the 'base logic' underlying NPDL is similar to weighted/chain-graded modal logic [12, 5, 15]. In the language of NPDL, various

Key words and phrases. PDL, Weighted Graphs, Program Cost, Decidability, Completeness.

K. MANOORKAR AND W. POIGER

cost-sensitive properties of programs are easily expressible, for instance φ→[π∗]mφ\varphi \to [\pi^*]^m \varphi can be read as ‘φ\varphi is preserved while looping π\pi without exceeding cost mm’. Validities, for example of reduction axioms for weighted program constructs, can express program equivalences up to a cost (Subsection 2.2).

As the main results of this article, we prove decidability (Section 3) and completeness (Section 4) for NPDL. Based on the above-mentioned reduction axioms, we define an adequate notion of Fischer-Ladner closure FL(φ)FL(\varphi) for every formula φ\varphi. The size ∣FL(φ)∣|FL(\varphi)| remains finite with upper bound ∥φ∥N∈N\|\varphi\|_{\mathbb{N}} \in \mathbb{N} parametric in φ\varphi, however this bound can be strictly larger than the length of φ\varphi (Subsection 3.1). We then define appropriate (weighted) filtrations and prove the corresponding Filtration Theorem, showing that NPDL has the bounded finite model property 1^1 (Subsection 3.2). To obtain decidability we also show that verifying satisfiability of φ\varphi it suffices to restrict to models with bounded weights at most N(φ)+1∈NN(\varphi) + 1 \in \mathbb{N}, again parametric in φ\varphi (Subsection 3.3). Using Fischer-Ladner filtrations of quasi-canonical models, we prove that the reduction axioms of NPDL together with weighted generalizations of the induction rule yield a sound and (weakly) complete axiomatization (Section 4). While our proofs are based on standard techniques (e.g. see [10]), the addition of costs presents additional technical challenges, which for instance becomes apparent in the proof of the Filtration Theorem (Theorems 3.7 & 4.6), the novel use of ‘cut-off models’ (Subsection 3.3), or the proof that the quasi-canonical model is standard with respect to sequential composition (Proposition 4.4(2)).

To obtain a 2EXPTIME-upper bound on the complexity of NPDL, we use a translation of NPDL into standard PDL over an extended set of atomic programs (Subsection 5.1). This translation is interesting in its own right, as it illustrates that NPDL is more succinct than standard PDL. This is also apparent in the complexity of the model checking problem (Subsection 5.2). The question whether NPDL remains EXPTIME-complete is left as the main open problem. More details and further questions for future research (e.g. interpolation, generalizations to other logics) are found in the concluding Section 6.

Related Work. Other cost-sensitive versions of PDL have been proposed in the literature [3, 20, 21], however all of these are fuzzy or many-valued (i.e. formulas can receive non-classical truth-values). While we retain the representation of costs via weighted accessibility relations used therein, note that in NPDL formulas remain Boolean-valued. In this sense, our setting more closely resembles that of graded-belief based programs in [13, 14], though these works are otherwise dissimilar in their motivation, set-up, and results. As mentioned above, the (non-dynamic) modal logic underlying NPDL is similar to weighted modal logic [12, 5] (which often uses real weights) and finite-chain graded modal logic [15] (note that this differs from the ‘graded modal logic’ which counts successors). For instance, it is straightforward to adapt our filtration method to obtain decidability for the latter. Lastly, let us mention [9], which proves strong completeness of iteration-free chain-graded PDL as an instance of a coalgebraic dynamic logic [8] (cf. Remark 2.5).