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 π correspond to weighted accessibility relations Rπ:X2→N∞, where the weight Rπ(x,y) is an extended natural number modeling the (least) cost of reaching y via executing π at x. In particular, the addition of natural numbers is seen as cost combination and the weights 0 and ∞ 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φ for every (non-extended) natural number m∈N, intuitively stating that 'executing π to reach φ is possible for a cost of no more than 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φ can be read as ‘φ is preserved while looping π without exceeding cost m’. 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(φ) for every formula φ. The size ∣FL(φ)∣ remains finite with upper bound ∥φ∥N∈N parametric in φ, however this bound can be strictly larger than the length of φ (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 (Subsection 3.2). To obtain decidability we also show that verifying satisfiability of φ it suffices to restrict to models with bounded weights at most N(φ)+1∈N, again parametric in φ (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).
2. PROPOSITIONAL DYNAMIC LOGIC WITH PROGRAM COSTS
In this section, we explain how to interpret costs on frames weighted by extended natural numbers (Subsection 2.1) and introduce PDL with program costs (Subsection 2.2). Throughout the paper, we assume that the reader is familiar with basic modal logic and standard propositional dynamic logic (e.g. see [1, 10]).
2.1. Extended Natural Numbers and Cost Frames. We exclusively deal with discrete costs modeled by extended natural numbers N∞:=N∪{∞}, where the
1Sometimes also called strong finite model property [1] or small model property [10].
value ∞ is intuitively interpreted as an 'unattainable' cost corresponding to inaccessibility. We often think of the extended natural numbers as endowed with the tropical semiring (respectively quantale) structure ⟨N∞,⋀,+,∞,0⟩ where ⋀ is the minimum (which defines a complete lattice order, in particular ⋀∅=∞) and + is addition of natural numbers with ∞ absorbing (i.e. x+∞=∞+x=∞). We intuitively think of addition as cost combination (other notions of cost combination can also be accommodated, see Remark 2.4).
While semantics of standard modal logic (and PDL) is based on Kripke frames (i.e. directed graphs), we use weighted directed graphs for our underlying semantics.
Definition 2.1 (Cost frames). A cost frame⟨X,R⟩ consists of a set of states X together with a weighted accessibility relationR:X2→N∞.
The value R(x,y)∈N∞ models the (least) cost of the R-transition from x to y. In particular, every Kripke frame R⊆X2 can be naturally seen as a cost frame via R(x,y)=0⇔xRy and R(x,y)=∞⇔¬xRy. That is, cost 0 represents standard accessibility (i.e. 'for free') and cost ∞ represents standard inaccessibility (i.e. 'never affordable'). This idea, albeit simple, guides many of our considerations in this article. For instance, the following generalizes the usual composition of binary relations in this sense.
Definition 2.2 (Sequential composition). Let ⟨X,R1⟩ and ⟨X,R2⟩ be cost frames. The sequential composition of R1 and R2 is the weighted relation R1∘R2:X2→N∞ defined by
(R1∘R2)(x,y)=v∈X⋀R1(x,v)+R2(v,y).
That is, R1∘R2(x,y) represents the least cost to get from x to y by an R1-transition followed by an R2-transition (where + corresponds to cost combination). Similarly, we generalize reflexive transitive closures. For any subset S⊆X, define the diagonalΔS:X2→N∞ by
ΔS(x,y)={0∞if x=y&x∈S,otherwise.
Definition 2.3 (Iteration). For ⟨X,R⟩ a cost frame, inductively define R[k]:X2→N∞ for all k≥0 by R[0]=ΔX and R[k+1]=R∘R[k]. The iteration R∗:X2→N∞ is defined by
R∗(x,y)=k≥0⋀R[k](x,y).
Remark 2.4 (Other cost combinations). Our definitions are based on the tropical semiring structure on N∞, however one can develop similar frameworks for other quantales. For instance, one may consider ⟨N∞,⋀,∨,∞,0⟩, instead treating the maximum∨ as cost combination (e.g., while + as combination is reasonable for interpreting cost as time, using ∨ as combination appears more reasonable for interpreting cost as space). In this article, we focus on the (technically more challenging) case of +, however let us note that most of our results have analogues (oftentimes simpler) in the case of ∨.
Remark 2.5 (Coalgebraic perspective [8, 9]). Besides their cost interpretation, the above operations on cost frames arise naturally from a coalgebraic perspective. That is, weighted cost frames can be identified with PN∞-coalgebras where PN∞:X↦(N∞)X is an appropriate generalization of the covariant powerset functorP (whose coalgebras are standard Kripke frames). It can be checked (cf. [9, Example 10(2)]) that this functor is a monad, the composition ∘ defined above is the corresponding
K. MANOORKAR AND W. POIGER
Kleisli composition, and (⋅)∗ can be seen as Kleisli iteration (in particular noting that Δ relates to the unit of the monad PN∞).
2.2. Syntax and Semantics. We now introduce NPDL, our cost-sensitive variant of PDL, in the following language.
Definition 2.6 (Formulas & Programs). We define the collections of formulas φ∈Φ and programs π∈Π by simultaneous induction as follows.
Here, p∈Φ0 and a∈Π0 range over countable collections of propositional variables and atomic programs, respectively, and m∈N ranges over the (non-extended) natural numbers.
We define additional propositional connectives such as ∨,→,⊤,⊥ as usual and we use [π]mφ:=¬⟨π⟩m¬φ. As in standard PDL we refer to the program constructs ∪ as non-deterministic choice, ; as sequential composition, and (⋅)∗ as iteration. Programs of the form ψ? are called tests. For our semantics we assign cost frames (Definition 2.1) to programs.
Definition 2.7 (Models). A model is a structure M=⟨X,{Ra}a∈Π0,Val⟩ such that ⟨X,Ra⟩ is a cost frame for every atomic program a∈Π0 and Val:Φ0→P(X) is a propositional valuation.
Definition 2.8 (Satisfaction). For a model M=⟨X,{Ra}a∈Π0,Val⟩ and x∈X, inductively define M,x⊩φ for all φ∈Φ and Rπ:X2→N∞ for all π∈Π:
Formulas:
• M,x⊩p iff x∈Val(p)
• M,x⊩φ∧ψ iff M,x⊩φ & M,x⊩ψ
• M,x⊩¬φ iff M,x⊩φ
• M,x⊩⟨π⟩mφ iff ∃y:Rπ(x,y)≤m & M,y⊩φ
Programs:
• Rπ1∪π2=Rπ1∧Rπ2
• Rπ1;π2=Rπ1∘Rπ2
• Rπ∗=(Rπ)∗
• Rψ?=Δ[ψ]([ψ]={x∣M,x⊩ψ})
(R1∧R2 is the point-wise minimum. For ∘, Δ, and R∗ recall Definitions 2.2 & 2.3.)
As usual, we say that φ is satisfiable if M,x⊩φ holds at some state of some model and valid if M,x⊩φ holds at all states of all models.
By definition, the clause for the dual modalities is M,x⊩[π]mφ iff ∀y:Rπ(x,y)≤m⇒M,y⊩φ. The formula ⟨π⟩mφ intuitively states that ‘executing π to reach a state where φ holds is possible for a cost of no more than m’ and [π]mφ expresses that ‘every execution of π on a resource-budget at most m results in property φ’. With this, further cost-sensitive properties about programs can be expressed, for instance ⟨π⟩m⊤ can be read as ‘program π terminates without costing more than m’ and φ→[π∗]mφ can be read as ‘φ is preserved when looping π as long as cost m is not exceeded’.
As mentioned before, the weights on the accessibility relation Rπ correspond to the (least) costs of executing program π. This interpretation also pertains to more complex programs, for instance the program if φ then π1 else π2:=φ?;π1∪¬φ?;π2 corresponds to
Note that we implicitly assume (by definition of Δ) that testing itself does not have a cost. However, such costs can also be accommodated, e.g. using 'indexed tests' Rψn=Δ[ψ]∨n.
In the following two examples, we consider some sample applications of NPDL.
Example 2.9 (Resource-bounded verification of a countdown loop). Consider a simple program that repeatedly decrements a non-negative integer counter until it reaches zero. We use a cost model in which each decrement operation has cost 1, while evaluating a test has cost 0. This allows us to interpret the cost of an execution as the number of decrement operations performed.
We model the program configurations by the set of states X=N, where each state n represents a configuration in which the counter has value n. Let positive and zero be propositional variables with valuations
Val(positive)=N\{0},Val(zero)={0}.
Furthermore, let dec be an atomic program representing the decrement operation. Its cost relation is defined by
Rdec(n,m)={1∞if n>0 and m=n−1,otherwise.
Thus, decrementing a positive counter incurs cost 1, whereas no decrement transition is available from the state 0. The body of the loop and the entire loop can now be represented by the program
πdec:=(positive?;dec)∗.
The test ensures that the counter is positive before each decrement. Consequently, every iteration of δ is executable at cost 1, and the loop terminates when the counter reaches zero.
Let us first consider the cost relation induced by the loop. Starting in state n, executing exactly k iterations, where 0≤k≤n, reaches state n−k at cost k. No execution can perform more than n iterations. It follows that
Rπdec(n,m)={n−m∞if 0≤m≤n,otherwise.
In particular, the least cost of reaching the zero state is Rπdec(n,0)=n. This observation can be expressed directly in NPDL. For every initial counter value n∈N and every cost bound B∈N, we have
M,n⊩⟨πdec⟩Bzero⟺n≤B.
Hence, the formula ⟨πdec⟩Bzero expresses that the countdown loop can reach a configuration in which the counter is zero within the available cost budget B. In this example, the formula holds precisely when the budget is sufficient to complete the loop.
For instance, if the initial counter value is 3, the execution is
3121110,
where each transition is labelled by its cost. The formula ⟨πdec⟩2zero is false at state 3, whereas ⟨πdec⟩3zero is true there. The former budget is insufficient to reach the zero state, while the latter is sufficient.
The example also illustrates the role of the dual modality. Suppose that safe is a propositional variable describing the configurations that satisfy a given safety requirement. Then [πdec]Bsafe expresses that every state reachable from the initial configuration with least execution cost at most B satisfies the safety requirement.
K. MANOORKAR AND W. POIGER
Since the program uses iteration, this includes states reached after any number of loop iterations, including the initial state itself.
Finally, the cost assignment can be modified to model other resource measures. For example, if every decrement operation has cost c>0 instead of cost 1, the least cost of reaching zero from state n becomes cn, and the termination formula holds precisely when cn≤B. More generally, assigning different costs to different decrement operations allows the logic to express termination requirements under non-uniform resource consumption.
Example 2.10 (Budgeted network routing). Consider a communication network whose nodes are states of a model M. Let forward be an atomic program representing the forwarding of a packet between adjacent nodes, where the cost Rforward(x,y) represents the latency or energy required to forward a packet from x to y. A cost of ∞ indicates that no direct transition is available.
Suppose the network contains four nodes s,u,v,t and the following transitions:
Transition
Cost
s→u
1
u→t
4
s→v
2
v→t
1
All other transitions have cost ∞. Let delivered be a propositional variable that holds precisely at the destination node t.
There are two routes from s to t: the route through u has total cost 1+4=5, whereas the route through v has total cost 2+1=3. Consequently,
Rforward∗(s,t)=min{1+4,2+1}=3.
The formula
⟨forward∗⟩Bdelivered
therefore holds at s if and only if B≥3. In particular, ⟨forward∗⟩2delivered is false at s, whereas ⟨forward∗⟩3delivered is true.
Thus, NPDL can express whether a destination is reachable within a prescribed resource budget, while the semantics of sequential composition and iteration computes the least cost over all possible routes. Depending on the interpretation of transition costs, the same model can represent latency-constrained routing, energy-aware communication, or other budget-constrained reachability problems.
We end this section with some validities of NPDL. Note that (4) & (7) for choice and test below are the same as in PDL, while (5) & (6) for composition and iteration are more involved.
Proposition 2.11. The following are valid NPDL-formulas.
(1) ⟨π⟩m⊥↔⊥
(2) ⟨π⟩m(φ∨ψ)↔⟨π⟩mφ∨⟨π⟩mψ
(3) ⟨π⟩nφ→⟨π⟩mφ for all n≤m
(4) ⟨π1∪π1⟩mφ↔⟨π1⟩mφ∨⟨π2⟩mφ
(5) ⟨π1;π2⟩mφ↔⋁i=0m⟨π1⟩m−i⟨π2⟩iφ
(6) ⟨π∗⟩mφ↔φ∨⋁i=0m⟨π⟩m−i⟨π∗⟩iφ
(7) ⟨ψ?⟩mφ↔ψ∧φ
Proof. Let M=⟨X,{Ra}a∈Π0,∀a⟩ be a model. The proofs of (1)–(3) are completely straightforward using the satisfiability clause for M,x⊩⟨π⟩mφ of Definition 2.8.
(4): Follows from Rπ1(x,y)∧Rπ2(x,y)≤m if and only if Rπ1(x,y)≤m or Rπ2(x,y)≤m.
(5): M,x⊩⟨π1;π2⟩mφ iff there exist v,y∈X such that Rπ1(x,v)+Rπ2(v,y)≤m and M,y⊩φ. The equivalence to the right-hand side of the formula is clear with i:=Rπ2(v,y).
(6): M,x⊩⟨π∗⟩φ iff there is y∈X and k≥0 such that (Rπ)[k](x,y)≤m and M,y⊩φ. The case (Rπ)[0](x,y)≤m is equivalent to x=y and M,x⊩φ. The case of (Rπ)[k+1](x,y) with k≥0 holds if and only if there is v∈X such that Rπ(x,v)+(Rπ)[k](v,y)≤m. Setting i:=(Rπ)[k](v,y) this is equivalent to M,x⊩⟨π⟩m−i⟨π∗⟩iφ.
(7): M,x⊩⟨ψ?⟩mφ iff there is y∈X with Rψ?(x,y)≤m and M,y⊩φ, and the former is equivalent to x=y and M,x⊩ψ.
These validities motivate our definition of Fischer-Ladner closure (Definition 3.1) and are used in the proof of the corresponding Filtration Theorem (Theorem 3.7) in the next section.
3. DECIDABILITY
In this section, we prove that NPDL is decidable, which we do in two steps. First, we show the bounded finite model property using filtrations through the Fischer-Ladner closure adequately defined for our framework (Subsections 3.1 & 3.2). Second, we show that there is a bound on weights of atomic programs sufficient to check satisfiability of a formula (Subsection 3.3).
3.1. The Fischer-Ladner Closure. We aim to prove the bounded finite model property using filtrations through an appropriately defined Fischer-Ladner closure [6, Theorem 3.2], a finite set of formulas closed under reduction instances for program constructs. Our presentation here is similar to [10, Section 6].
Definition 3.1 (Fischer-Ladner closure). For all formulas φ and programs π we define the sets of formulas FL(φ) and FL⋄(⟨π⟩mφ) for all m∈N as follows.
We refer to the collection of formulas FL(φ) as the Fischer-Ladner closure of φ.
Our first goal is to show that FL(φ) is always finite with an upper bound ∥φ∥N parametric in φ. Note that, due to the closure conditions for sequential composition and iteration above, this upper bound can not simply be the length of φ (as is the case in standard PDL).
Definition 3.2. For all formulas φ and programs π we define the natural numbers ∥φ∥N and ∥⟨π⟩m∥N for every m∈N as follows.
(Since only finite sums are involved, all of these are well-defined natural numbers.)
Lemma 3.3. For all formulas φ it holds that ∣FL(φ)∣≤∥φ∥N.
Proof. By simultaneous induction show for all formulas φ and programs π that
∣FL(φ)∣≤∥φ∥Nand∣FL⋄(⟨π⟩mφ)∣≤∥⟨π⟩m∥N.
The formula induction is straightforward using the inductive definition of FL(φ) in Definition 3.1 and the corresponding inductive hypotheses. For sequential composition, we compute
where the second inequality uses the inductive hypotheses on π1 and π2.
For iteration, first we note that as a direct consequence of Definition 3.1, it holds that FL⋄(⟨π∗⟩mφ)⊆{⟨π∗⟩iφ∣0≤i≤m}∪⋃{FL⋄(⟨π⟩n⟨π∗⟩n′φ)∣n+n′≤m}, and therefore
as desired, where the second inequality uses the inductive hypothesis on π.
To prove the Filtration Theorem (Theorem 3.7), we use various closure properties of FL(φ) (Corollary 3.5), all of which follow from the next lemma (similar to [10, Lemma 6.1]).
Lemma 3.4. For all formulas φ and programs π the following hold.
(i) If ψ∈FL(φ) then FL(ψ)⊆FL(φ),
(ii) If ψ∈FL⋄(⟨π⟩mφ) then FL(ψ)⊆FL(⟨π⟩mφ).
Proof. By simultaneous induction we show (i) for all formulas φ and (ii) for all programs π.
Formula induction. The case p∈Φ0 is due to FL(p)={p} and the cases ¬φ and φ1∧φ2 are clear by inductive hypotheses and definitions of FL(¬φ) and FL(φ1∧φ2).
Case ⟨π⟩mφ: If ψ∈FL(⟨π⟩mφ), then by definition ψ∈FL(φ) or ψ∈FL⋄(⟨π⟩mφ). In the former case use the inductive hypothesis (i) to find FL(ψ)⊆FL(φ)⊆FL(⟨π⟩mφ) and in the latter case use the inductive hypothesis (ii) to find FL(ψ)⊆FL(⟨π⟩mφ).
Program induction. The atomic case a∈Π0 is clear by FL⋄(⟨a⟩mφ)={⟨a⟩mφ}.
Case π1∪π2: If ψ∈FL⋄(⟨π1∪π2⟩mφ), then ψ=⟨π1∪π2⟩mφ or ψ∈FL⋄(⟨π1⟩mφ) or ψ∈FL⋄(⟨π2⟩mφ). In the first case the statement is clear and in the other two cases the inductive hypothesis on πj∈{π1,π2} yields FL(ψ)⊆FL(⟨πj⟩mφ)⊆FL(⟨π1∪π2⟩mφ).
Case π1;π2: Suppose ψ∈FL⋄(⟨π1;π2⟩mφ) and ψ=⟨π1;π2⟩mφ (otherwise the statement is clear). Then there is some i∈{0,…,m} such that ψ∈FL⋄(⟨π1⟩m−i⟨π2⟩iφ) or ψ∈FL⋄(⟨π2⟩iφ). In the former case use the inductive hypothesis on π1 to obtain FL(ψ)⊆FL(⟨π1⟩m−i⟨π2⟩iφ)⊆FL(⟨π1;π2⟩mφ) and in the latter case use the inductive hypothesis on π2 to find FL(ψ)⊆FL(⟨π2⟩iφ)⊆FL(⟨π1;π2⟩mφ).
Case π∗: First note that by definition n′≤m implies FL⋄(⟨π∗⟩n′φ)⊆FL⋄(⟨π∗⟩mφ). If ψ∈FL⋄(⟨π∗⟩mφ), then there are n+n′≤m with ψ=⟨π∗⟩n′φ or ψ∈FL⋄(⟨π⟩n⟨π∗⟩n′φ). In the former case FL(ψ)⊆FL(⟨π∗⟩mφ) follows from the above observation and in the latter case use the inductive hypothesis on π to find FL(ψ)⊆FL(⟨π⟩n⟨π∗⟩n′φ)⊆FL(⟨π∗⟩mφ), where the last inclusion again uses the above observation.
Case ρ?: If ψ∈FL⋄(⟨ρ?⟩mφ), then ψ=⟨ρ⟩mφ or ψ∈FL(ρ). The former case is clear, in the latter case inductive hypothesis (i) on ρ yields FL(ψ)⊆FL(ρ)⊆FL(⟨ρ?⟩mφ). □
With this, we get the following crucial closure rules of the Fischer-Ladner closure with respect to the program constructs of NPDL.
Corollary 3.5. For every formula φ, the set of formulas FL(φ) contains φ, is closed under subformulas and has the following additional closure properties.
(2) ⟨π1;π2⟩mψ∈FL(φ)⇒⟨π1⟩m−i⟨π2⟩iψ∈FL(φ) for all i∈{0,…,m},
(3) ⟨π∗⟩mψ∈FL(φ)⇒⟨π⟩n⟨π∗⟩n′ψ∈FL(φ) for all n+n′≤m,
(4) ⟨ρ?⟩mψ∈FL(φ)⇒ρ∈FL(φ).
Proof. It is straightforward by Definition 3.1 to show (by mutual induction) that φ′∈FL(φ) for all subformulas φ′ of φ and ⟨π⟩mφ∈FL⋄(⟨π⟩mφ) always hold. With this, closure under subformulas easily follows from Lemma 3.4(i): If ψ∈FL(φ) and ψ′ is a subformula of ψ, then ψ′∈FL(ψ)⊆FL(φ). Conditions (1)–(4) also directly follow from the above fact together with Lemma 3.4(i), we prove (3) for the sake of illustration. If ⟨π∗⟩mψ∈FL(φ) then by Lemma 3.4(i) we find FL⋄(⟨π∗⟩mψ)⊆FL(φ). Therefore, we have ⟨π⟩n⟨π∗⟩n′ψ∈FL⋄(⟨π⟩n⟨π∗⟩n′ψ)⊆FL⋄(⟨π∗⟩mψ)⊆FL(φ) as desired. □
In the next subsection, we show that NPDL has the bounded finite model property, by defining appropriate filtrations of models through the Fischer-Ladner closure.
3.2. Filtration and the Bounded Finite Model Property. In order to prove the bounded FMP (Corollary 3.8), we use filtrations similarly to standard PDL (e.g., see [10, Subsection 6.2]). However, to accommodate for costs we need to define the appropriate weighted accessibility relations (also see many-valued PDL [20, Definition 4.3]).
Definition 3.6 (Filtrations). Let M=⟨X,{Ra}a∈Π0,Val⟩ be a model and φ be a formula. The filtration of M through FL(φ) is the model Mφf=⟨Xf,{Raf},Valf⟩
K. MANOORKAR AND W. POIGER
defined as follows.
The set Xf:=X/↔FL(φ) is the quotient of X by the equivalence relation
x↭FL(φ)x′ifandonlyif∀ψ∈FL(φ):M,x⊩ψ⇔M,x′⊩ψ.
The weighted relations Raf:(Xf)2→N∞ for a∈Π0 are defined via
Raf([x],[y])=⋀{Ra(x′,y′)∣x′∈[x]&y′∈[y]}.
The valuation is given by Valf(p)={[x]∣M,x⊩p} for p∈FL(φ), otherwise Valf(q)=∅.
We proceed with the central result of this subsection. The key ‘ingredients’ in the proof are the FL-closure properties of Corollary 3.5 together with the validities of Proposition 2.11.
Theorem 3.7 (Filtration Theorem). Let Mφf be the filtration of the model M as in Definition 3.6.
(i) For all formulas ψ with ψ∈FL(φ) it holds that M,x⊩ψ⇔Mφf,[x]⊩ψ.
(ii) For all programs π with ⟨π⟩mψ∈FL(φ) the following hold:
(a) Rπf([x],[y])≤Rπ(x,y),
(b) If Rπf([x],[y])≤m and M,y⊩ψ, then M,x⊩⟨π⟩mψ.
Proof. Simultaneous induction on the formula ψ and program π (we abbreviate Mf:=Mφf).
Formula induction. The base case p∈Φ0 is covered by the definition of Valf and the cases ¬ψ and ψ1∧ψ2 are standard induction arguments (note ¬ψ∈FL(φ)⇒ψ∈FL(φ) and ψ1∧ψ2∈FL(φ)⇒ψ1,ψ2∈FL(φ) due to Corollary 3.5).
Case ⟨π⟩mψ: If M,x⊩⟨π⟩mψ, then there is y∈X with Rπ(x,y)≤m and M,y⊩ψ. The inductive hypothesis (a) on π (note that we assume ⟨π⟩mψ∈FL(φ)) gives Rπf([x],[y])≤Rπ(x,y)≤m and the inductive hypothesis (i) on ψ (note that ψ∈FL(φ) by Corollary 3.5) gives Mf,[y]⊩ψ. We thus showed Mf,[x]⊩⟨π⟩mψ as desired.
Conversely, if Mf,[x]⊩⟨π⟩mψ, then there is [y]∈Xf such that Rπf([x],[y])≤m and Mf,[y]⊩ψ. From the inductive hypothesis (i) on ψ we get M,y⊩ψ and subsequently the inductive hypothesis (b) on π yields M,x⊩⟨π⟩mψ as desired.
Program induction. ∙ Case a∈Π0: Let ⟨a⟩mψ∈FL(φ). Condition (a) holds by Definition 3.6 since Raf([x],[y])=⋀{Ra(x′,y′)∣x′∈[x]&y′∈[y]}≤Ra(x,y). For (b), suppose Raf([x],[y])≤m and M,y⊩ψ. The former means that there are x′∈[x],y′∈[y] such that Ra(x′,y′)≤m and the latter yields M,y′⊩ψ. Therefore, M,x′⊩⟨a⟩mψ and since we assume ⟨a⟩mψ∈FL(φ) we lastly obtain M,x⊩⟨a⟩mψ as needed.
• Case π1∪π2: Let ⟨π1∪π2⟩mψ∈FL(φ). Condition (a) holds because
by inductive hypothesis (a) on π1 and π2 (note that by Corollary 3.5(1) we have ⟨πi⟩mψ∈FL(φ)).
For (b), suppose Rπ1∪π2f([x],[y])≤m and M,y⊩ψ. If Rπ1f([x],[y])≤m then the inductive hypothesis (b) on π1 yields M,x⊩⟨π1⟩mψ and thus also M,x⊩⟨π1∪π2⟩mψ by Proposition 2.11(4). If instead Rπ2f([x],[y])≤m, the argument is completely analogous.
• Case π1;π2: Let ⟨π1;π2⟩mψ∈FL(φ). For (a) we simply observe that
due to the inductive hypothesis (a) on π1 and π2 (note that by Corollary 3.5(2) we have ⟨π1⟩m⟨π2⟩0ψ∈FL(φ) and by subformula closure ⟨π2⟩0ψ∈FL(φ)).
For (b), suppose Rπ1;π2f([x],[y])≤m and M,y⊩ψ. Due to the former, there exists [v]∈Xf such that Rπ1f([x],[v])+Rπ2f([v],[y])≤m. Let i:=Rπ2f([v],[y]). Since Rπ2f([v],[y])≤i and M,y⊩ψ, we can use the inductive hypothesis (b) on π2 (note that by Corollary 3.5(2) we have ⟨π1⟩m−i⟨π2⟩iψ∈FL(φ) and ⟨π2⟩iψ∈FL(φ)) to obtain M,v⊩⟨π2⟩iψ. With Rπ1f([x],[v])≤m−i and the inductive hypothesis (b) on π1, this yields M,x⊩⟨π1⟩m−i⟨π2⟩iψ and therefore M,x⊩⟨π1;π2⟩mψ by Proposition 2.11(5).
Case π∗: Let ⟨π∗⟩mψ∈FL(φ). For (a) it suffices to show (Rπf)[k]([x],[y])≤(Rπ)[k](x,y) for all k≥0, which is done by induction. The case k=0 is straightforward and for the inductive step k↦k+1 similarly to the case of composition above, one uses
which follows from the inductive hypothesis on k and inductive hypothesis (a) on π (note that by Corollary 3.5(3) we have ⟨π⟩m⟨π∗⟩0∈FL(φ)).
For (b), suppose Rπ∗f([x],[y])≤m and M,y⊩ψ. By the former, (Rπf)[k]≤m for some k≥0. If (Rπf)[0]([x],[y])≤m then [x]=[y] implies M,x⊩ψ implies M,x⊩⟨π∗⟩mψ. If (Rπf)[1]([x],[y])≤m note that M,y⊩ψ implies M,y⊩⟨π∗⟩0ψ and we use the inductive hypothesis (b) on π (note that by Corollary 3.5(3) we have ⟨π⟩m⟨π∗⟩0ψ∈FL(φ)) to obtain M,x⊩⟨π⟩m⟨π∗⟩0ψ which implies M,x⊩⟨π∗⟩mψ by Proposition 2.11(6). If k≥2 then there are states v1,…,vk−1∈X such that
We again have M,y⊩⟨π∗⟩0ψ and since Rπf([vk−1],[y])≤mk together with the inductive hypothesis (b) on π (note that by Corollary 3.5(3) we have ⟨π⟩mk⟨π∗⟩0ψ∈FL(φ)) we get M,vk−1⊩⟨π⟩mk⟨π∗⟩0ψ, which implies M,vk−1⊩⟨π∗⟩mkψ. Using Rπf([vk−2],[vk−1])≤mk−1 and the inductive hypothesis (b) on π (note that ⟨π⟩mk−1⟨π∗⟩mkψ∈FL(φ)) we get M,vk−2⊩⟨π⟩mk−1⟨π∗⟩mkψ, which implies that M,vk−2⊩⟨π∗⟩mk−1+mkψ. Proceeding like this (note ⟨π⟩mj⟨π∗⟩mj+1+⋯+mkψ∈FL(φ) for all 1≤j≤k), we eventually arrive at M,x⊩⟨π∗⟩m1+⋯+mkψ, which by Proposition 2.11(3) implies M,x⊩⟨π∗⟩mψ as desired.
Case ρ?: To see (a) recall that Rρ?(x,y)=0 if and only if x=y and M,x⊩ρ (otherwise (a) is trivial as Rρ?(x,y)=∞). By the inductive hypothesis (i) on ρ (note that by Corollary 3.5(4) we have ρ∈FL(φ)) this implies Mf,[x]⊩ρ and thus Rρ?f([x],[y])=0.
For (b), let Rρ?f([x],[y])≤m and M,y⊩ψ. The former yields Rρ?f([x],[y])=0, which holds if and only if [x]=[y] and Mf,[y]⊩ρ. By inductive hypothesis (i) on ρ this implies M,y⊩ρ. Thus M,y⊩ρ∧ψ, which is equivalent to M,y⊩⟨ρ?⟩mψ by Proposition 2.11(7). □
The bounded finite model property now easily follows.
Corollary 3.8 (Bounded FMP). The NPDL-formula φ is satisfiable if and only if it is satisfiable in some finite model of size at most 2∥φ∥N.
Proof. If φ is satisfied in a model M, then as a consequence of Theorem 3.7 it is also satisfied in the filtration Mφf. By Lemma 3.3 we know ∣FL(φ)∣≤∥φ∥N and it is easy to see that ∣Xf∣≤2∣FL(φ)∣ by Definition 3.6 (since [x]↦{ψ∈FL(φ)∣M,x⊩ψ} is injective). □
K. MANOORKAR AND W. POIGER
However, unlike in standard PDL, this does not immediately yield decidability. Indeed, since we interpret formulas on N∞-weighted graphs, there are still infinitely many ‘candidates’ for weights of atomic programs Ra, even on a finite set. Therefore, we need to show that there also exists a bound on weights sufficient to check the satisfiability of a formula.
3.3. Bounding Weights. In this subsection, for every formula φ we aim to find a natural number N(φ) such that satisfiability of φ can be checked by only considering models with Ra:X2→{0,1,…,N(φ)+1} for all atomic programs. Note that together with the bounded finite model property proved in the previous subsection (Corollary 3.8), this will establish decidability.
Intuitively, the bound N(φ) is the largest m for which some expression of the form ‘⟨π⟩m’ appears (anywhere) in the formula φ. We make this precise in the following.
Definition 3.9. By mutual induction on the formula φ∈Φ and the program π∈Π, we define the natural numbers N(φ) and N(π) as follows.
Formulas:
∙N(p)=0 for p∈Φ0,∙N(¬φ)=N(φ),∙N(φ1∧φ2)=max{N(φ1),N(φ2)},∙N(⟨π⟩mφ)=max{m,N(φ),N(π)}.
Programs:
∙N(a)=0 for a∈Π0,∙N(π1∪π2)=max{N(π1),N(π2)},∙N(π1;π2)=max{N(π1),N(π2)},∙N(π∗)=N(π),∙N(φ?)=N(φ).
(Since all maxima range over finite sets, these are well-defined natural numbers.)
The idea now is to turn a model into a model where only finitely many weights appear by ‘cutting off’ all weights which go beyond a certain ‘threshold’.
Definition 3.10 (Cut-off models). Let M=⟨X,{Ra}a∈Π0,Val⟩ be a model and n∈N. The corresponding n-cut-off model Mn=⟨X,{Ran}a∈Π0,Val⟩ is defined by Ran(x,y)=Ra(x,y)∧n.
The main technical result of this subsection shows that satisfiability of φ stays preserved as long as the cut-off happens (strictly) above N(φ).
Proposition 3.11. Let M be a model and {Mn}n∈N be the cut-off models as in Definition 3.10.
(i) For all formulas φ∈Φ: (M,x⊩φ⇔Mn,x⊩φ) for all n>N(φ).
(ii) For all programs π∈Π: (Rπ(x,y)∧n=Rπn(x,y)∧n) for all n>N(π).
Proof. Simultaneous induction on the formula φ and the program π.
Formula induction. The base case p∈Φ0 is immediate from Valn=Val and the cases ¬φ and φ1∧φ2 are easily obtained from the corresponding inductive hypotheses (i) on φ and φ1,φ2, respectively (recall N(¬φ)=N(φ) and N(φ1∧φ2)≥N(φi)).
Case ⟨π⟩mφ: Let n>N(⟨π⟩mφ). Then M,x⊩⟨π⟩mφ if and only if there is y∈X with M,y⊩φ and Rπ(x,y)≤m. By inductive hypothesis (i) on φ (note n>N(φ)) we have
M,y⊩φ if and only if Mn,y⊩φ
and by the inductive hypothesis (ii) on π (note n>N(π)) and the fact that n>m we have
Rπ(x,y)≤mifandonlyifRπn(x,y)≤m.
Thus M,x⊩⟨π⟩mφ if and only if there exists some y∈X with Mn,y⊩φ and Rπn(x,y)≤m, which by definition is equivalent to Mn,x⊩⟨π⟩mφ.
Program induction. For the base case a∈Π0, by Definition 3.10 we have Ran(x,y)=Ra(x,y)∧n and thus Ran(x,y)∧n=Ra(x,y)∧n.
• Case π1∪π2: Let n>N(π1∪π2)=max{N(π1),N(π2)}. We compute
the third ‘=’ uses inductive hypothesis (ii) on π1,π2 (note n>N(πi)), the second and fourth ones use the laws (∧bi)∧n=∧(bi∧n) and (c+d)∧n=((c∧n)+(d∧n))∧n in N∞.
• Case π∗:Letn>N(π∗)=N(π). It suffices to show that (Rπ)[k](x,y)∧n=(Rπn)[k]∧n holds for all k≥0, which is done by induction. The base case k=0 is obvious since (Rπ)[0]=(Rπn)[0] and the inductive step k↦k+1 is similar to the case of sequential composition ; above, using the inductive hypotheses on k and on π (note n>N(π)).
• Case ψ: Let n>N(ψ?)=N(ψ). By definitions we have
Rψ?(x,y)={0∞ifx=y&M,x⊩ψ,otherwise.
and
Rψ?n(x,y)={0∞ifx=y&Mn,x⊩ψ,otherwise.
By the inductive hypothesis (i) on ψ (note n>N(ψ)) we have M,x⊩ψ if and only if Mn,x⊩ψ, showing Rψ?=Rψ?n which trivially implies Rψ?∧n=Rψ?n∧n. □
Combining the bounded finite model property (Corollary 3.8) and the previous result about the bound on weights yields the following.
Theorem 3.12 (Decidability). Satisfiability and validity of NPDL are decidable.
Proof. Let φ be a formula. By the bounded finite model property (Corollary 3.8) φ and Proposition 3.11, φ is satisfiable if and only if it is satisfiable in a finite model of size at most 2∥φ∥N where the weights of atomic programs only take values in {0,1,…,N(φ)+1}. Lastly, note that only the finitely many propositional variables
K. MANOORKAR AND W. POIGER
and atomic programs (plus finitely many complex programs computed from these) occurring in φ are ‘relevant’ to check satisfiability. The fact that validity of φ is decidable follows as usual from the fact that it is equivalent to checking satisfiability of ¬φ.
Remark 3.13 (Adding converse). The above decidability proof can be easily extended to NPDL with converse programs π¬ interpreted as Rπ¬(x,y)=Rπ(y,x), as it is straightforward to verify the validities φ→[π]m⟨π¬⟩mφ and φ→[π¬]m⟨π⟩mφ and program equivalences (π1∪π2)¬≅π1¬∪π2¬,(π1;π2)¬≅π2¬;π1¬, and (ψ?)¬≅ψ? analogous to standard PDL.
4. COMPLETENESS
In this section, we use the filtration technique developed in the previous section to obtain (weak) completeness via finite canonical models. The axioms of NPDL are as follows.
Definition 4.1 ( ⊢NPDL). A formula φ is provable, denoted by ⊢NPDLφ, if it can be obtained from the following axioms together with propositional reasoning, modus ponens and the monotonicity rule φ→ψ▶⟨π⟩mφ→⟨π⟩mψ for every m∈N:
(1) ⟨π⟩m⊥↔⊥
(2) ⟨π⟩m(φ∨ψ)↔⟨π⟩mφ∨⟨π⟩mψ
(3) ⟨π⟩nφ→⟨π⟩mφ for all n≤m
(4) ⟨π1∪π1⟩mφ↔⟨π1⟩mφ∨⟨π2⟩mφ
(5) ⟨π1;π2⟩mφ↔mi=0m⟨π1⟩m−i⟨π2⟩iφ
(6) ⟨π∗⟩mφ↔φ∨mi=0m⟨π⟩m−i⟨π∗⟩iφ
(7) ⟨ψ?⟩mφ↔ψ∧φ
(8) (φ∧⋀i=0m[π∗]i(φ→[π]m−iφ))→[π∗]mφ
Soundness of (1)–(7) was shown in Proposition 2.11, we proceed to verify soundness of the induction rules (8). Let M=⟨X,{Ra}a∈Π0,Val⟩ be a model and x∈X such that M,x⊩φ∧⋀i=0m[π∗]i(φ→[π]m−iφ). To show M,x⊩[π∗]mφ we inductively show
Rπ[k](x,y)≤m⇒M,y⊩φ
for all k. The case k=0 follows from M,x⊩φ. For the inductive step k↦k+1 suppose Rπ[k+1](x,y)≤m. Then there exist v∈X such that Rπ[k+1](x,y)=Rπ[k](x,v)+Rπ(v,y). Set i:=Rπ[k](x,v). Now we have M,v⊩φ by inductive hypothesis (note i≤m) and M,v⊩φ→[π]m−iφ by the initial assumption. Thus we have M,v⊩[π]m−iφ and since Rπ(v,y)≤m−i we obtain M,y⊩φ as desired.
We now define the canonical pseudo-model based on the maximally consistent sets ('pseudo' indicates that it is not a model in the sense of Definition 2.7). As usual we say that a set of formulas Γ is consistent if there are no formulas φ1,…,φℓ∈Γ such that ⊢NPDL⋀i=1ℓφi→⊥ and maximally consistent if Γ⊆Γ′ implies Γ=Γ′ for every other consistent set Γ′.
Definition 4.2 (Canonical pseudo-model). We define the NPDL-canonical pseudo-model Mc=⟨Xc,{Rπc}π∈Π,Valc⟩ as follows (note: we define Rπc for all programs).
• Xc is the collection of all maximally NPDL-consistent sets,
Similarly to the non-dynamic case [15, Lemma 4.2], first we observe that ‘truth is membership’ in the canonical pseudo-model.
Lemma 4.3 (Truth Lemma). For all formulas φ, it holds that Mc,Γ⊩φ⇔φ∈Γ.
Proof. Induction on the formula, the case of propositional variables is immediate by definition and the cases for propositional connectives are straightforward, so we consider the remaining case ⟨π⟩mφ below.
If Mc,Γ⊩⟨π⟩mφ then there exists Γ′∈Xc with Mc,Γ′⊩φ and Rπc(Γ,Γ′)≤m. The former together with the inductive hypothesis yields φ∈Γ′, which together with the latter implies ⟨π⟩mφ as desired (note that here we use the axiom ⟨π⟩nφ→⟨π⟩mφ with n=Rπc(Γ,Γ′)).
Conversely, assume that ⟨π⟩mφ∈Γ, we want to construct a maximally consistent theory Γ′ with φ∈Γ′ and Rπc(Γ,Γ′)≤m. For this, it suffices to show that the set
{φ}∪{ψ∣[π]mψ∈Γ}
is consistent. Suppose towards contradiction that it is not consistent, then there are [π]mψ1,…,[π]mψℓ∈Γ such that ⊢NPDLψ1∧⋯∧ψℓ→¬φ. The monotonicity rule yields
⊢NPDL[π]mψ1∧[π]mψℓ→¬⟨π⟩mφ.
By construction we have that all [π]mψj∈Γ, therefore by the above ¬⟨π⟩mφ, a contradiction to our assumption that ⟨π⟩mφ∈Γ and Γ is consistent. □
The following shows that the canonical pseudo-model is ‘well-behaved’ with respect to all program constructs except iteration.
Proposition 4.4. The following hold in the canonical pseudo-model:
(1) Rπ1∪π2c=Rπ1c∧Rπ2c,
(2) Rπ1;π2c=Rπ1c∘Rπ2c,
(3) Rψ?c=Δ[ψ].
Proof. (1): Rπ1c(Γ,Γ′)∧Rπ2c(Γ,Γ′)≥Rπ1∪π2c(Γ,Γ′) is clear by definition (and the reduction axiom for ∪). For the converse, suppose towards contradiction that Rπ1c(Γ,Γ′)∧Rπ2c(Γ,Γ′)>Rπ1∪π2c(Γ,Γ′)=:m. Then there are [π1]mφ,[π2]mψ∈Γ such that φ,ψ∈/Γ′. However, we have [π1∪π2]m(φ∨ψ)∈Γ and thus φ∨ψ∈Γ′, contradicting maximality of Γ′.
(2): We want to show that Rπ1;π2c(Γ,Γ′)=⋀Δ∈XcRπ1c(Γ,Δ)+Rπ2c(Δ,Γ′).
To see ‘≤’ suppose the right hand side is given by m:=Rπ1c(Γ,Δ)+Rπ2c(Δ,Γ′). Let i:=Rπ1c(Γ,Δ). Now Rπ1;π2c(Γ,Γ′)≤m holds since for all formulas φ we have
φ∈Γ′⇒⟨π2⟩m−iφ∈Δ⇒⟨π1⟩i⟨π2⟩m−iφ∈Γ⇒⟨π1;π2⟩mφ∈Γ.
For the opposite inequality ‘≥’, now let Rπ1;π2c(Γ,Γ′)=m. Note that it suffices to show that there exists some i∈{0,…,m} such that the following set of formulas is consistent:
Δi={φ∣[π1]iφ∈Γ}∪{⟨π2⟩m−iψ∣ψ∈Γ′}.
Suppose towards contradiction that all Δi are inconsistent. Then for each i we there are [π1]iφ1i,…,[π1]iφkii∈Γ and ψ1i,…,ψℓii∈Γ′ such that
Set Φi=⋀{φji∣1≤j≤ki} and Ψi=⋀{ψji∣1≤j≤ℓi}. With this and the fact that ⊢NPDL⟨π2⟩m−i(p∧q)→⟨π2⟩m−ip∧⟨π2⟩m−iq the above implies ⊢NPDLΦi→¬⟨π2⟩m−iΨi, thus by monotonicity of [π1]i we find
⊢NPDL[π1]iΦi→¬⟨π1⟩i⟨π2⟩m−iΨi.
Now let Ψ:=⋀{Ψi∣0≤i≤m}. Since Ψ→Ψi the above also yields
⊢NPDL[π1]iΦi→¬⟨π1⟩i⟨π2⟩m−iΨ.
Now, on the one hand, observe that Ψ∈Γ′ and therefore it holds that ⟨π1;π2⟩mΨ∈Γ (since Rπ1;π2c(Γ,Γ′)=m). Due to our axioms, we get ⋁i=0m⟨π1⟩i⟨π2⟩m−iΨ∈Γ and
K. MANOORKAR AND W. POIGER
therefore ⟨π1⟩i⟨π2⟩m−1Ψ∈Γ must hold for some i. On the other hand, however, since by definition ⟨π1⟩iΦi∈Γ, the above derivation implies ¬⟨π1⟩i⟨π2⟩m−iΨ∈Γ, a contradiction.
(3): Note that ⟨ψ?⟩mφ∈Γ if and only if ⟨ψ?⟩0φ∈Γ due to our reduction axioms for tests. Therefore either Rψ?c(Γ,Γ′)=∞ or Rψ?c(Γ,Γ′)=0. The latter holds if and only if ∀φ:φ∈Γ′⇒ψ∧φ∈Γ which is equivalent to Γ′=Γ (by maximality and Γ′⊆Γ) and Mc,Γ⊩ψ (by the Lemma 4.3 and ψ∈Γ). □
While the canonical pseudo-model does not satisfy Rπ∗c=(Rπc)∗, it still retains some similar properties, as shown in the following.
Lemma 4.5. For every program π, the canonical pseudo-model satisfies:
(1) Rπ∗c(Γ,Γ)=0,
(2) Rπc(Γ,Γ′)≥Rπ∗c(Γ,Γ′),
(3) Rπ∗c(Γ,Δ)+Rπ∗c(Δ,Γ′)≥Rπ∗c(Γ,Γ′).
Proof. (1): If φ∈Γ, then also ⟨π∗⟩0φ∈Γ since ⊢NPDLφ→⟨π∗⟩0φ.
(2): Let Rπc(Γ,Γ′)=m. If φ∈Γ′, then ⟨π⟩mφ∈Γ, since the monotonicity rule yields ⊢NPDL⟨π⟩mφ→⟨π⟩m⟨π∗⟩0φ we find ⟨π⟩m⟨π∗⟩0φ∈Γ, which lastly yields ⟨π∗⟩mφ∈Γ, showing Rπ∗c(Γ,Γ′)≤m as desired.
(3): Let Rπ∗c(Γ,Δ)=i and Rπ∗c(Δ,Γ′)=m−i. If φ∈Γ′ then ⟨π∗⟩m−iφ∈Δ and therefore ⟨π∗⟩i⟨π∗⟩m−iφ∈Γ. Due to ⊢NPDL⟨π∗⟩i⟨π∗⟩m−iφ→⟨π∗⟩mφ we get ⟨φ⟩mφ∈Γ as well, showing Rπ∗c(Γ,Γ′)≤m as desired. □
Crucially, the Filtration Theorem (Theorem 3.7) still works for the canonical pseudo-model.
Theorem 4.6 (Filtration Theorem II). Let Mφf be the filtration of the canonical pseudo-model Mc as in Definition 3.6.
(i) For all formulas ψ with ψ∈FL(φ): Mc,x⊩ψ⇔Mφf,[x]⊩ψ.
(ii) For all programs π with ⟨π⟩mψ∈FL(φ):
(a) Rπf([x],[y])≤Rπc(x,y),
(b) If Rπf([x],[y])≤m and Mc,y⊩ψ, then Mc,x⊩⟨π⟩mψ.
Proof. The only part that is not completely analogous to the proof of Theorem 3.7 is to show that (a) holds for iteration. We show by induction that for all m∈N
Rπ∗c(x,y)=m⇒Rπ∗f([x],[y])≤m.
We begin with the case m = 0. Let Rπ∗c(x,y)=0. Define
E={z∣Rπ∗f([x],[z])=0}
and note that there exists a formula χE such that Mc,z⊩χE⇔z∈E since FL(φ) is finite. We want to show y∈E, for which it suffices to show that x⊩[π∗]0χE. This we derive from the induction axiom for [π∗]0. We have x⊩χE since Rπ∗f([x],[x])=0. Now whenever Rπ∗c(x,z)=0 and z⊩χE and Rπc(z,z′)=0 we have Rπ∗c([x],[z′])≤Rπ∗f([x],[z])+Rπf([z],[z′])=0 (since z⊩χE and inductive hypothesis on π), thus z′∈E. So we showed x⊩χE∧[π∗]0(χE→[π]0χE) as needed.
Now inductively assume Rπ∗c(u,v)=n⇒Rπ∗f([u],[v])≤n holds for all n<m and let Rπ∗c([x],[y])=m. Similarly to before, define E={z∣Rπ∗f([x],[z])≤Rπ∗c(x,z)} and let χE be a formula defining this set. As before, we have x⊩χE, so it suffices to show x⊩[π∗]i(χE→[π]m−iχE) for all i=0,…,m, since then the induction axiom for [π∗]m yields x⊩[π∗]mχE and thus y⊩χE as needed. Let Rπ∗c(x,z)≤i and z⊩χE and Rπc(z,z′)≤m−i. Note that Rπ∗c(x,z′)≤
Rπ∗c(x,z)+Rπ∗c(z,z′)≤m. If Rπ∗c(x,z′)=n<m, then the inductive hypothesis on n yields Rπ∗f([x],[z′])≤n, showing z′⊩χE. If Rπ∗c(x,z′)=m then
Rπ∗f([x],[z′])≤Rπ∗f([x],[z])+Rπf([z],[z′])≤m
where we used z⊩χE and the inductive hypothesis on π as Rπf([z],[z′])≤Rπc(z,z′). This finishes the proof.
Since Mf is a (proper) model by definition, completeness is now a direct consequence.
Corollary 4.7 (Completeness). A formula is NPDL-valid if and only if it is ⊢NPDL provable.
Proof. Soundness was discussed before, completeness is shown as follows. If ⊢NPDLφ, then {¬φ} is consistent, thus (by Lindenbaum's Lemma) can be extended to a maximally consistent set Γ. By Lemma 4.3 and Theorem 4.6 we get that Mφf,[Γ]⊢φ, showing that φ is not valid.
5. COMPLEXITY BOUNDS
In this section, we obtain bounds on the complexity NPDL using translation between this logic and standard PDL. More specifically, we obtain a EXTIME-lower bound via a translation σ of standard PDL into NPDL (Corollary 5.1) and we obtain a 2EXTIME-upper bound via a translation of NPDL into standard PDL over an extended set of atomic programs (Corollary 5.6). We also give a complexity bound for the model checking problem of NPDL which significantly improves the bound obtained via the translation into PDL (Subsection 5.2).
5.1. Satisfiability Problem via Logical Translations. Translating standard PDL into NPDL is fairly straightforward, recalling that the weight 0 was taken to generalize standard accessibility. That is, for every formula φ of PDL we define a formula σ(φ) of NPDL inductively by the rules
σ(p)=p
σ(¬φ)=¬σ(φ)
σ(φ1∧φ2)=σ(φ1)∧σ(φ2)
σ(⟨π⟩φ)=⟨π⟩0σ(φ)
Given a model N=⟨X,{Ra}Π0,Val⟩ of PDL (i.e., Ra⊆X2 are non-weighted atomic accessibility relations), we define a corresponding NPDL-model S(N)=⟨X,{Ra′}Π0,Val⟩ by
Ra′(x,y)={0∞ifxRay,otherwise.
By definition it is straightforward to check that the above extends to all programs π and that
N,x⊩φifandonlyifS(N),x⊩σ(φ).
Since the translation σ does not increase the length of the formula φ, we obtain our lower bound from the fact that PDL is EXTIME-complete (e.g. see [10, Chapter 8]).
Corollary 5.1 (Lower Bound). Satisfiability of NPDL is EXTIME-hard.
In order to obtain an upper bound as well, we now present a translation τ of NPDL into standard PDL over the set of atomic programs
Π0=N:={a=m∣a∈Π0,m∈N}.
The idea is that the standard PDL program a=m encodes the information Ra(x,y)=m in a model of NPDL. From this, one can recover complex NPDL program constructs as follows.
K. MANOORKAR AND W. POIGER
Definition 5.2 (Formula translation). By simultaneous induction, for all formulas φ and programs π of NPDL we define the formula τ(φ) and for every m∈N the program τ≤m(φ) of PDL (over the set of atomic programs Π0N as above) as follows.
Formulas:
τ(p)=p for propositional variables
τ(¬φ)=¬τ(φ)
τ(φ1∧φ2)=τ(φ1)∧τ(φ2)
τ(⟨π⟩mφ)=⟨τ≤m(π)⟩τ(φ)
Programs:
τ≤m(a)=⋃i=0ma≤m for atomic programs
τ≤m(π1∪π2)=τ≤m(π1)∪τ≤m(π2)
τ≤m(π1;π2)=⋃i=0mτ≤i(π1);τ≤m−i(π2)
τ≤0(π∗)=τ≤0(π)∗ and
τ≤m(π∗)=τ≤0(π∗)∪⋃i=1mτ≤0(π∗);τ≤i(π);τ≤m−i(π∗)
τ≤m(φ?)=τ(φ)?
As mentioned above, we now explain how to transform a model of NPDL into a model of PDL over the extended collection of atomic programs Π0N.
Definition 5.3 (Model transformation). For M=⟨X,{Ra}Π0,Val⟩ a NPDL-model, we define the PDL(Π0N) model T(M)=⟨X,{Ra=m}Π0N,Val⟩ by xRa=my if and only if Ra(x,y)=m.
The main result of this subsection shows that the translation τ works as desired.
Theorem 5.4 (Translation Theorem). Let M and T(M) be as in Definition 5.3. Then for every NPDL-formula φ and state x∈X it holds that
M,x⊩φifandonlyifT(M),x⊩τ(φ).
Proof. By simultaneous induction, for every formula φ we prove the above statement and for every program π we show the following (for all x,y∈X):
Rπ(x,y)≤mifandonlyifxRτ≤m(π)y.
Formula induction. The base case p∈Φ0 is due to the fact that the same valuation Val is used in M and T(M). The cases ¬ψ and ψ1∧ψ2 are standard induction arguments.
∙ Case ⟨π⟩mφ: We have M,x⊩⟨π⟩mφ if and only if there is y∈X such that Rπ(x,y)≤m and M,y⊩φ. By the inductive hypothesis on π the former is equivalent to xRτ≤m(π)y and by the inductive hypothesis on φ the latter is equivalent to T(M),y⊩τ(φ). Thus M,x⊩φ if and only if T(M),x⊩⟨τ≤m(π)⟩τ(φ) as desired (recall τ(⟨π⟩mφ)=⟨τ≤m(π)⟩τ(φ))
Program induction. The base case π=a∈Π0 is immediate from the definitions.
The first ‘⇔’ uses the definition of τ≤m(π∗), the second one uses the case m=0 and definition of PDL-programs, the third one uses the inductive hypothesis on π and m−i<m.
Recall that N(φ) is the largest index of modalities occurring in φ (Definition 3.9), furthermore we use ∣φ∣ to denote the length of φ (brackets and indices of modalities excluded). The following establishes the growth in size of a formula under the translation τ in terms of these two parameters.
Lemma 5.5. For every formula φ, the length of τ(φ) is O(22∣φ∣N(φ)∣φ∣). Similarly, for every program π, the length of τ≤m(π) is O(2∣π∣(m+N(π))∣π∣).
Proof. Simultaneous induction on formula φ, program π and index m. The base cases of a∈Π0 and p∈Φ0 are clear by definitions.
The last equality holds since m<2m and ∣π∣(m+N(π))+1<∣π∗∣(m+N(π∗)), asymptotically the term 22∣π∣(m+M(π))+1∣π∣ dominates all other terms in the preceding sum.
Case φ?: We assume that in any formula φ, all occurrences of ⟨φ?⟩m are replaced by ⟨φ?⟩N(φ). The formula obtained after this substitution is equivalent to the original one.
Note that this also indicates that NPDL is more succinct than PDL. Combining the above lemma this with the fact that PDL is EXPTIME-complete, we obtain our upper complexity bound.
Corollary 5.6 (Upper Bound). The satisfiability problem of NPDL is in 2EXPTIME.
Remark 5.7 (Adding converse and intersection). The translation τ can be extended to converse programs π≺ interpreted as Rπ≺(x,y)=Rπ(y,x) via τ≤m(π≺)=τ≤m(π)≺, hence we obtain the same complexity bounds for this extension. Similarly, τ can be extended to concurrent NPDL [4] with intersection generalized by Rπ1∩π2(x,y)=Rπ1(x,y)∨Rπ2(x,y) via τ≤m(π1∩π2)=τ≤m(π1)∩τ≤m(π2). Hence we obtain decidability of concurrent NPDL and from 2EXPTIME-completeness of concurrent PDL [16] we obtain a 3EXPTIME-upper bound.
5.2. The Model Checking Problem. In this subsection, we show that given a NPDL model M=(X,Ra,Val), a state x∈X, and a formula φ, we can check whether M,x⊨φ in time O(∣M∣3∣φ∣). The model checking is performed by computing the set of worlds in M which satisfy φ (denoted by [φ]) through the following recursive steps on the complexity of φ.
For any x,y∈X, and any program π, given Ra(x,y) for any atomic program a occurring in π, we compute Rπ(x,y) by the following recursion.
K. MANOORKAR AND W. POIGER
(1) Rπ1∪π2(x,y)=min(Rπ1(x,y),Rπ2(x,y)).
(2) Rπ1∘π2(x,y)=minv∈XRπ1(x,v)+Rπ2(v,y).
(3) For any π, given Rπ, we can compute Rπ∗ in time O(∣M∣3) using the Floyd–Warshall algorithm [7, 25].
Proposition 5.8. Let π be a program and φ be a formula.
(1) The relation Rπ can be computed in time O(∣M∣3∣π∣).
(2) The set [φ] can be computed in time O(∣M∣3∣φ∣).
Proof. By simultaneous induction we show (1) for every program π and (2) for every formula φ.
Program Induction. The base case is trivially true.
Case π1∪π2: If Rπ1 and Rπ2 are already computed, we need to perform one new operation (taking minimum) for any pair of points x,y∈X. Therefore (using the inductive hypothesis), the total number of steps in this computation is bounded by O(∣M∣3∣π1∣)+O(∣M∣3∣π2∣)+O(∣M∣2)=O(∣M∣3∣π1∪π2∣).
Case π1;π2: If Rπ1 and Rπ2 are already computed, we need to perform two new operations (taking sum and minimum) for any triplet of points x,v,y∈W. Therefore (by the inductive hypothesis), the total number of steps in the computation is bounded by O(∣M∣3∣π1∣)+O(∣M∣3∣π2∣)+O(∣M∣3∣=O(∣M∣3∣π1∘π2∣).
Case π∗: We need to do O(∣M∣3) new operations using the Floyd-Warshall algorithm. Therefore, by induction, the total number of operations is bounded by O(∣M∣3∣π∣)+O(∣M∣3)=O(∣M∣3∣π∗).
Case π=φ?: By definition, Rφ=[φ]×[φ]. Therefore by induction, the total number of operations is bounded by O(∣M∣3∣φ∣)+O(∣M∣2)=O(∣M∣3∣φ?∣).
Formula Induction. The base case is trivially true.
Case φ=φ1∧φ2: Since [φ]=[φ1]∩[φ2], we need to do O(∣M∣) new operations. Therefore, the total number of operations is bounded by O(∣M∣3∣φ1∣)+O(∣M∣3∣φ2∣)+O(∣M∣)=O(∣M∣3∣φ1∧φ2∣).
Case φ=¬φ1: Since [φ]=X\[φ1], we need to do O(∣M∣) new operations. Therefore, the total number of operations is bounded by O(∣M∣3∣φ1∣)+O(∣M∣)=O(∣M∣3∣¬φ1∣).
Case φ=⟨π⟩mφ1: since [φ]={x∣∃y∈[φ1](Rπ(x,y)≤m)}, we need to do O(∣M∣2) new operations. Therefore, the total number of operations is bounded by O(∣M∣3∣φ1∣)+O(∣M∣3∣π∣)+O(∣M∣2)=O(∣M∣3∣⟨π⟩mφ1∣).
In conclusion, we obtain the following complexity bound on the model checking problem. Note that this bound is a significant improvement over the naive bound obtained by the translation of NPDL into PDL of the previous subsection.
Corollary 5.9. The model checking problem of NPDL is in O(∣M∣3∣φ∣).
6. CONCLUSION AND FUTURE RESEARCH
We introduced NPDL, a variant of propositional dynamic logic interpreted on N∞-weighted frames with modalities ⟨π⟩m describing accessibility with resource-consumption at most m∈N. Showing that satisfiability can be checked on finite models of bounded size and with bounded weights, we proved that NPDL is decidable. Combining filtration techniques with the canonical model construction, we showed completeness. Lastly, using translations into standard PDL we obtained complexity bounds for NPDL.
In this work, we have provided a 2EXPTIME-upper bound on the complexity of NPDL. The main open question at this point is whether that bound is strict, or whether NPDL remains EXPTIME-complete (e.g. for the case of PDL, see Pratt's algorithm [19]). This problem also remains open for extensions of NPDL with additional program constructs such as converse and intersection (recall Remark 5.7).
Another question is whether NPDL has Craig Interpolation, a property which has only recently been shown for standard PDL [2] and converse PDL [11]. Related to this, in future work we aim to develop the proof theory of NPDL, for instance via cyclic tableaux systems where linear inequalities of weights are explicitly included in the syntax.
For further future research directions we propose to consider cost-sensitive variants of extensions and generalizations of PDL, for instance of Game Logic [17, 18] or (first-order) Dynamic Logic [10, Chapter 11]. One may also consider other quantiles than N∞ to represent resources, making it more challenging to come up with a finitary axiomatization (note that our reduction axioms depend on the fact that there are only finitely many ways to write n as a binary sum). In addition, it would be interesting to investigate the relation of NPDL to many-valued versions of PDL previously proposed for modeling program costs [3, 20, 21] or to graded-belief based programs [13, 14]. Lastly, let us mention that for such an analysis the coalgebraic perspective [8, 9] (also see Remark 2.5) is promising.
ACKNOWLEDGMENTS
Funded by the European Union under the Operational Programme Jan Amos Komenský project no. CZ.02.01.01/00/23_025/0008724. The second author was furthermore supported by the European Research Executive Agency ERA Fellowship project no. 101334342.
REFERENCES
[1] BLACKBURN, P., DE RIJKE, M., AND VENEMA, Y. Modal Logic, vol. 53 of Cambridge Tracts in Theoretical Computer Science. Cambridge University Press, 2001.
[2] BORZECHOWSKI, M., GATTINGER, M., HANSEN, H., RAMANAYAKE, R., TRUCCO DALMAS, V., AND VENEMA, Y. Propositional dynamic logic has Craig interpolation: a tableau-based proof, 2025. Preprint.
[3] BÉHOUNEK, L. Modeling costs of program runs in fuzzified propositional dynamic logic. In Doktorandský den '08 (2008), H. F., Ed., Matfyzpress, pp. 11–18.
[4] DANECKI, R. Nondeterministic propositional dynamic logic with intersection is decidable. In Computation Theory (1985), A. Skowron, Ed., vol. 208 of LNCS, Springer Berlin Heidelberg, pp. 34–53.
[5] DONG, H., LI, X., AND WÁNG, Y. Weighted modal logic in epistemic and deontic contexts. In Logic, Rationality, and Interaction (LORI'21) (2021), S. Ghosh and T. Icard, Eds., Springer International Publishing, pp. 73–87.
[6] FISCHER, M., AND LADNER, R. Propositional dynamic logic of regular programs. Journal of Computer and System Sciences 18, 2 (1979), 194–211.
[7] FLOYD, R. Algorithm 97: Shortest path. Communications of the ACM 5, 6 (1962), 345–345.
[8] HANSEN, H., AND KUPKE, C. Weak completeness of coalgebraic dynamic logics. In 10th International Workshop on Fixed Points in Computer Science (FICS'15) (2015), R. Matthes and M. Mio, Eds., vol. 191 of EPTCS, Open Publishing Association, pp. 90–104.
[9] HANSEN, H., AND POIGER, W. Safety and strong completeness via reducibility for many-valued coalgebraic dynamic logics. In 11th Conference on Algebra and Coalgebra in Computer Science (CALCO'25) (2025), C. Cirstea and A. Knapp, Eds., vol. 342 of LIPIcs, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 9:1–9:23.
[10] HAREL, D., KOZEN, D., AND TIURYN, J. Dynamic Logic. Foundations of Computing. MIT Press, 2000.
[11] KLOIBHOFER, J., TRUCCO DALMAS, V., AND VENEMA, Y. Interpolation for converse PDL. In Automated Reasoning with Analytic Tableaux and Related Methods (2026), G. Pozzato and T. Uustalu, Eds., Springer, pp. 258–277.
[12] LARSEN, K., AND MARDARE, R. Complete proof systems for weighted modal logic. Theoretical Computer Science 546 (2014), 164–175.
[13] LAVERNY, N., AND LANG, J. From knowledge-based programs to graded belief-based programs, Part I: On-line reasoning. Synthese 147, 2 (2005), 277–321.
[14] LAVERNY, N., AND LANG, J. From knowledge-based programs to graded belief-based programs, Part II: Off-line reasoning. In 19th International Joint Conference on Artificial Intelligence (IJCAI'05) (2005), IJCAI, pp. 497–502.
K. MANOORKAR AND W. POIGER
[15] MA, M., AND WANG, S. Finite-chain graded modal logic. In Modality, Semantics and Interpretations: The Second Asian Workshop on Philosophical Logic (2015), S. Ju, H. Liu, and H. Ono, Eds., Springer Berlin Heidelberg, pp. 71–85.
[16] MAYER, A., AND STOCKMEYER, L. The complexity of PDL with interleaving. Theoretical Computer Science 161, 1 (1996), 109–122.
[17] PARIKH, R. Propositional game logic. In 24th Annual Symposium on Foundations of Computer Science (SFCS'83) (1983), IEEE Computer Society, pp. 195–200.
[18] PAULY, M., AND PARIKH, R. Game logic – An overview. Studia Logica 75, 2 (2003), 165–182.
[19] PRATT, V. A near-optimal method for reasoning about action. Journal of Computer and System Sciences 20, 2 (1980), 231–254.
[20] SEDLÁR, I. Finitely-valued propositional dynamic logic. In Advances in Modal Logic (AiML'20) (2020), N. Olivetti, R. Verbrugge, S. Negri, and G. Sandu, Eds., vol. 13, College Publications, pp. 561–579.
[21] SEDLÁR, I. Decidability and complexity of some finitely-valued dynamic logics. In 18th International Conference on Principles of Knowledge Representation and Reasoning (KR'21) (2021), pp. 570–580.
[22] VAN BENTHEM, J., VAN EIJCK, J., AND KOOI, B. Logics of communication and change. Information and Computation 204, 11 (2006), 1620–1662.
[23] VAN DITMARSCH, H., VAN DER HOEK, W., AND KOOI, B. Dynamic Epistemic Logic, vol. 337 of Synthese Library. Springer Dordrecht, 2008.
[24] VAN EIJCK, J., AND WANG, Y. Propositional dynamic logic as a logic of belief revision. In Logic, Language, Information and Computation (WoLLIC'08) (2008), W. Hodges and R. de Queiroz, Eds., vol. 5110 of LNCS, Springer Berlin Heidelberg, pp. 136–148.
[25] WARSHALL, S. A theorem on Boolean matrices. Journal of the ACM 9, 1 (1962), 11—12.