Keywords

These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

1 Introduction

The modal \(\mu \)-calculus [15] is an expressive logic for reasoning about concurrent systems. Its satisfiability problem is \(\textsc {ExpTime}\)-complete [5]. Due to nesting of fixpoints, the semantic structure of the \(\mu \)-calculus is quite involved, which is reflected in the high degree of sophistication of reasoning algorithms for the \(\mu \)-calculus. One convenient modular approach is the definition of suitable satisfiability games (e.g. [10]); solving such games (i.e. computing their winning regions) then amounts to deciding the satisfiability of the input formulas. A standard method for obtaining satisfiability games is to first construct a tracking automaton that accepts the bad branches in a pre-tableau for the input formula, i.e. those that infinitely defer satisfaction of a least fixpoint; this automaton then is determinized and complemented, and the satisfiability game is built over the carrier set of the resulting automaton. The moves in the game are those transitions from the automaton that correspond to applications of tableau-rules; the existence of a winning strategy in this game ensures the existence of a model, i.e. a locally coherent structure that does not contain bad branches. As they typically incur exponential blowup, good determinization procedures for automata on infinite words play a crucial role in standard decision procedures for the satisfiability problem of the \(\mu \)-calculus and its fragments; in particular, better determinization procedures lead to smaller satisfiability games which are easier to solve.

The weakly aconjunctive \(\mu \)-calculus [15, 24] restricts occurrences of recursion variables in conjunctions but is still quite expressive, e.g. can define winning regions in parity games with bounded number of priorities [4]. The key observation for the present paper is that in the weakly aconjunctive case, pre-tableau branches are made ‘bad’ by a single formula; this implies that the tracking automaton for such formulas is limit-deterministic, i.e. that it is sufficient to deterministically track a single formula from some point on. This motivates a notion of limit-deterministic parity automata in which all accepting runs are deterministic from some point on. Because the nondeterminism is restricted to finite prefixes of accepting runs in such automata, they can be determinized in a simpler way than unrestricted parity automata. We present a reformulation of a recent determinization method for limit-deterministic Büchi automata [6]. The method is inspired by, but significantly less involved than the more general Safra/Piterman construction [19, 20], essentially due to the fact that the tree structure of Safra trees collapses, leaving only the permutation structure. The resulting parity automaton can thus be described as a permutation automaton. The method yields deterministic parity automata with \(\mathcal {O}(n!)\) states, compared to \(\mathcal {O}((n!)^2)\) in the Safra/Piterman construction. Crucially, we show that we obtain a similarly simplified determinization for limit-deterministic parity automata by translating into Büchi automata.

As indicated above, limit-deterministic parity automata are able to recognize bad branches in pre-tableaux for weakly aconjunctive \(\mu \)-calculus formulas. Employing them in the standard construction of satisfiability games, we obtain permutation games in which nodes from the pre-tableau are annotated with a partial permutation (i.e. a non-repetitive list) of (levelled) formulas. A parity condition is used to detect indices in the permutation that are active infinitely often without ever being removed from the permutation. The resulting parity games are of size \(\mathcal {O}((nk)!)\) and have \(\mathcal {O}(nk)\) priorities; as a side result, we thus obtain a new bound \(\mathcal {O}((nk)!)\) on model size for weakly aconjunctive formulas.

The resulting decision procedure generalizes to the weakly aconjunctive coalgebraic \(\mu \)-calculus, thus covering also, e.g., probabilistic and alternating-time versions of the \(\mu \)-calculus. The generic algorithm has been implemented as an extension of the Coalgebraic Ontology Logic Reasoner (COOL) [11, 13]. Our implementation constructs and solves the presented permutation games on-the-fly, possibly finishing satisfiability proofs early, and shows promising initial results. The content of the paper is structured as follows: We describe the determinization of limit-deterministic automata in Sect. 2 and the construction of permutation games in Sect. 3, and discuss implementation and evaluation in Sect. 4.

Related Work.   Liu and Wang [17] give a tighter estimate \(\mathcal {O}((n!)^2)\) for the number of states in Piterman’s determinization [19]. Schewe [21] simplifies Piterman’s construction (establishing the same bound as Liu and Wang). Tian and Duan [23] further improve Schewe’s construction. Fisman and Lustig [7] present a modularization of Büchi determinization that is aimed mainly at easing understanding of the construction. Parity automata can be determinized by first converting them to Büchi automata and then applying Büchi determinization. Schewe and Varghese [22] address the direct determinization of parity automata (via Rabin automata), and prove optimality within a small constant factor, and even absolute optimality for the Büchi subcase. All these constructions and estimates concern unrestricted Büchi or parity automata. Recently, Safra-less determinization of limit-deterministic Büchi automata has been described in the context of controller synthesis for LTL [6]; the determinization method that we present in Sect. 2.2. has been devised independently from [6] but employs a very similar construction (yielding essentially the same results on the complexity of the construction).

The use of games in \(\mu \)-calculus satisfiability checking goes back to Niwiński and Walukiewicz [18] and has since been extended to the unguarded \(\mu \)-calculus [10] and the coalgebraic \(\mu \)-calculus [2]. Game-based procedures for the relational \(\mu \)-calculus have been implemented in MLSolver [9], and for the alternation-free coalgebraic \(\mu \)-calculus in COOL [13].

2 Determinizing Limit-Deterministic Automata

2.1 Limit-Deterministic Automata

We recall the basics of parity automata: A parity automaton is a tuple \(\mathcal {A}=(V,\varSigma ,\delta ,u_0,\alpha )\) where V is a set of states, \(\varSigma \) is an alphabet, \(\delta \subseteq V\times \varSigma \times V\) is a transition relation, \(u_0\in V\) is an initial state, and \(\alpha :\delta \rightarrow \mathbb {N}\) is a priority function that assigns natural numbers to transitions (assigning priorities to transitions rather than states yields a slightly more succinct notion of automata while retaining the computational properties of standard parity automata [22]). For \((v,a)\in V\times \varSigma \), we write \(\delta (v,a)=\{u\mid (v,a,u)\in \delta \}\). The index \(\mathsf {idx}(\mathcal {A})=\max \{\alpha (t)\mid t\in \delta \}\) of a parity automaton \(\mathcal {A}\) is its maximal priority. A run \(\rho =v_0v_1\ldots \) of \(\mathcal {A}\) on an infinite word \(w=a_0 a_1\ldots \in \varSigma ^\omega \) starting at \(v\in V\) is a (possibly infinite) sequence of states \(v_i\) such that \(v_0=v\) and for all \(i\ge 0\), \(v_{i+1}\in \delta (v_i,a_i)\). We see runs \(\rho \) or words w as functions from natural numbers to states \(\rho (i)=v_i\in V\) or letters \(w(i)=a_i\in \varSigma \). For a run \(\rho \) on a word w, we define the according sequence \(\mathsf {trans}(\rho )\) of transitions by \(\mathsf {trans}(\rho )(i)=(\rho (i),w(i),\rho (i+1))\). We denote the set of all runs of \(\mathcal {A}\) on a word w starting at v by \(\mathsf {run}(\mathcal {A},v,w)\), or just by \(\mathsf {run}(\mathcal {A},w)\) if \(v=u_0\). A run \(\rho \) of \(\mathcal {A}\) on a word w is accepting if the highest priority that occurs infinitely often in it (notation: \(\max (\mathsf {Inf}(\alpha \circ \mathsf {trans}(\rho )))\); we generally write \(\mathsf {Inf}(s)\) for the set of elements occurring infinitely often in a sequence s) is even. A parity automaton \(\mathcal {A}\) accepts an infinite word w if \(\mathsf {run}(\mathcal {A},w)\) contains an accepting run, and we denote by \(L(\mathcal {A})\subseteq \varSigma ^\omega \) the set of all words that are accepted by \(\mathcal {A}\).

Given a state \(v\in V\) and a letter \(a\in \varSigma \), we define \(\delta |_{v,a}=\{(v,a,u)\mid u\in \delta (v,a)\}\). Given a set \(\gamma \subseteq \delta \) of transitions, a state \(v\in V\), a set of states \(U\subseteq V\) and a letter \(a\in \varSigma \), we put \(\gamma (U,a)=\bigcup \{\gamma (v,a)\mid v\in U\}\); given a finite word \(w=a_0\ldots a_n\), we then recursively define \(\gamma (v,w)=\gamma (\gamma (v,a_0),a_1\ldots a_n)\), obtaining the set of all states reachable from v when reading w while only using transitions from \(\gamma \). For \(U\subseteq V\), \(\gamma \subseteq \delta \) and \(w\in \varSigma ^*\), we put \(\gamma (U,w)=\bigcup \{\gamma (u,w)\mid u\in U\}\). Furthermore, we define the set of states that are reachable from a node \(v\in V\) using transitions from \(\gamma \) as \(\mathsf {reach}_\gamma (v)=\bigcup \{\gamma (v,w)\mid w\in \varSigma ^*\}\); we extend this notation to sets of nodes, putting \(\mathsf {reach}_{\gamma }(U)=\bigcup \{\mathsf {reach}_{\gamma }(u)\mid u\in U\}\) for \(U\subseteq V\). If \(\gamma =\delta \), then we omit the subscripts. A state \(v\in V\) is said to be deterministic (in \(\gamma \subseteq \delta \)) if it has at most one (\(\gamma \)-)successor for each letter \(a\in \varSigma \). A set \(U\subseteq V\) is deterministic (in \(\gamma \subseteq \delta \)) if every state \(v\in U\) is deterministic (in \(\gamma \)). The automaton \(\mathcal {A}\) is said to be deterministic if V is deterministic; the transition relation in deterministic automata hence is a partial function (since such automata can be transformed to equivalent automata with total transition function, this definition suffices for purposes of determinization). We put \(\alpha (i)=\{t\in \delta \mid \alpha (t)= i\}\) and \(\alpha _\le (i)=\{t\in \delta \mid \alpha (t)\le i\}\).

A Büchi automaton is a parity automaton with only the priorities 1 and 2; the set of accepting transitions then is \(F=\alpha (2)\) and a run is accepting if it passes infinitely many accepting transitions. For Büchi automata, we assume w.l.o.g. that every transition \(t\in F\) is part of a cycle. We use the abbreviations (N/D)PA, (N/D)BA to denote the different types of automata.

Our notion of limit-determinism of automata is defined as a semantic property:

Definition 1

(Limit-deterministic parity automata). A PA \(\mathcal {A}=(V,\varSigma ,\delta ,u_0,\alpha )\) is limit-deterministic if there is, for each word w and each accepting run \(\rho \in \mathsf {run}(\mathcal {A},w)\), a number i such that for all \(j\ge i\), \(\delta |_{\rho (j),w(j)}\cap \alpha _\le (l)=\{\mathsf {trans}(\rho )(j)\}\), where \(l=\max (\mathsf {Inf}(\alpha \circ \mathsf {trans}(\rho )))\).

If \(\mathcal {A}\) is a BA, then we have \(\max (\mathsf {Inf}(\alpha \circ \mathsf {trans}(\rho )))=2\) for every accepting run \(\rho \); as \(\alpha _\le (2)=\delta \), the above definition instantiates to requiring the existence of a number i such that for all \(j\ge i\), \(\delta (\rho (j),w(j))=\{\rho (j+1)\}\).

Definition 2

(Compartments). Given a PA \(\mathcal {A}=(V,\varSigma ,\delta ,u_0,\alpha )\) with k priorities, and an even number \(l\le k\), the l-compartment \(C_l(t)\) of a transition \(t\in \alpha (l)\) is the set \(\mathsf {reach}_{\alpha _\le (l)}(\pi _3(t))\) where \(\pi _3\) projects transitions \(t=(v,a,u)\) to their target nodes u. If l is irrelevant, then we refer to l-compartments just as compartments. The size of a compartment C is just |C|. A compartment C is internally deterministic if for each \(v\in C\) and all \(a\in \varSigma \), \(|\delta (v,a)\cap C|\le 1\).

Note that the union of all l-compartments is \(\mathsf {reach}_{\alpha _\le (l)}(\pi _3[\alpha (l)])\). Compartments allow for a syntactic characterization of limit-determinism:

Lemma 3

A PA is limit-deterministic if and only if all its compartments are internally deterministic.

Corollary 4

It is decidable in polynomial time whether a given automaton is limit-deterministic.

Lemma 3 specializes to BA as follows: we have \(\alpha (0)=\emptyset \), \(\alpha _\le (2)=\delta \) and \(\alpha (2)=F\), so that the union of all 0-compartments is empty and that of all 2-compartments is \(\mathsf {reach}(\pi _3[F])\); thus a BA is limit-deterministic if and only if \(\mathsf {reach}(\pi _3[F])\) is deterministic. Such Büchi automata are also called semi-deterministic [3].

2.2 Determinizing Limit-Deterministic Büchi Automata

The Safra/Piterman construction [19, 20] determinizes Büchi automata by means of so-called Safra trees, i.e. trees whose nodes are labelled with sets of states of the input automaton such that the label of a node is a proper superset of the union of all its children’s labels. Additionally, the nodes are ordered by their age and upon each transition between Safra trees, the ages of the oldest nodes that are active and/or removed during this transition determine the priority of the new Safra tree. In its original formulation, the Safra/Piterman construction adds new child nodes to the graph that are labelled with the accepting states in their parent’s label. We observe that this step can be modified slightly – without affecting the correctness of the construction – by letting every accepting state from the parent’s label receive its own separate child node; then the labels of newly created nodes are always singletons. Limit-determinism of the input automaton then implies that the node labels also remain singletons. Since singleton nodes do not have children in Safra trees, this leads to the collapse of their tree structure; the resulting data structure is essentially a partial permutation, i.e. a non-repetitive list, of states (ordered by their age). The arising modified Safra/Piterman construction for the limit-deterministic case boils down to the following method, which (a) has a relatively short presentation and a simpler correctness proof than the full Safra/Piterman construction, and (b) results in asymptotically smaller automata; the underlying idea of the construction has first been described in the context of controller synthesis for LTL [6].

Definition 5

(Partial permutations). Given a set U of states, let \(\mathsf {pperm}(U)\) denote the set of partial permutations over U, i.e. the set of non-repetitive lists \(l=[v_1,\ldots ,v_n]\) with \(v_i\ne v_j\) for \(i\ne j\) and \(v_i\in U\), for all \(1\le i\le n\). We denote the i-th element in l by \(l(i)=v_i\), the empty partial permutation by \([\,]\) and the length of a partial permutation l by |l|.

Definition 6

(Determinization of limit-deterministic BA). Fix a limit-deterministic BA \(\mathcal {A}=(V,\varSigma ,\delta ,u_0,F)\), and put \(Q=\mathsf {reach}(\pi _3[F])\), \(\overline{Q}=V\setminus Q\), \(q=|Q|\). Define the DPA \(\mathcal {B}=(W,\varSigma ,\delta ',w_0,\alpha )\) by putting \(W=\mathcal {P}(\overline{Q})\times \mathsf {pperm}(Q)\), \(w_0 = (\{u_0\},[\,])\) if \(u_0\in \overline{Q}\), \(w_0=(\emptyset ,[u_0])\) if \(u_0\in Q\) and for \(g=(U,l)\in W\) and \(a\in \varSigma \), \(\delta '(g,a)=h\), where \(h=(\delta (U,a)\cap \overline{Q},l')\) and where \(l'\) is constructed from \(l=[v_1,\ldots ,v_m]\) as follows:

  1. 1.

    Define a list t of length m over \(Q\cup \{*\}\) (with \(*\) representing undefinedness) in which \(t(i)=w\) if \(\delta (v_i,a)=\{w\}\), and \(t(i)=*\) if \(\delta (v_i,a)=\emptyset \).

  2. 2.

    For \(j<k\) and \(t(j)=t(k)\), put \(t(k)=*\).

  3. 3.

    Remove undefined entries in t, formally: for each \(1\le i\le |t|\), if \(t(i)=*\), then iteratively put \(t(j)=t(j+1)\) for each \(i\le j\le |t|\), starting at i.

  4. 4.

    For any \(w\in \delta (U,a)\cap Q\) that does not occur in t, add w to the end of t. If there are several such w, the order in which they are added to t is irrelevant.

  5. 5.

    Put \(l'=t\).

Temporarily, t may contain duplicate or undefined entries, but Steps 2. and 3. ensure that in the end, t is a partial permutation of length at most q. Let r (for ‘removed’) denote the lowest index i such that \(t(i)=*\) after Step 2. Let a (for ‘active’) denote the lowest index i such that \((l(i),a,l'(i))\in F\). If \(r>|l'|\) and there is no i with \((l(i),a,l'(i))\in F\), then put \(\alpha (g,a,h)=1\). Otherwise, put

$$\begin{aligned} \alpha (g,a,h)= {\left\{ \begin{array}{ll} 2(q-r)+3&{}\text {if }r\le a\\ 2(q-a)+2&{}\text {if }r>a. \end{array}\right. } \end{aligned}$$

Theorem 7

We have \(L(\mathcal {A})=L(\mathcal {B})\), and \(\mathcal {B}\) has at most \(2n+1\) priorities; for \(n\ge 4\), we have \(|W| \le n!e\).

Corollary 8

Limit-deterministic Büchi automata of size n can be determinized to deterministic parity automata of size \(\mathcal {O}(n!)\) and with \(\mathcal {O}(n)\) priorities.

Example 9

Consider the limit-deterministic BA \(\mathcal {A}\) depicted below and the determinized DPA \(\mathcal {B}\) that is constructed from it by applying the method. We see by Lemma 3 that \(\mathcal {A}\) is really limit-deterministic: we have \(F=\{(1,b,3)\}\), i.e. the b-transition from state 1 to state 3 (depicted with a boxed transition label) is the only accepting transition; thus we have \(Q=\mathsf {reach}(\pi _3[F])=\{1,3\}\) (so \(\overline{Q}=\{0,2\}\)), and the states 1 and 3 are deterministic. Moreover, \(L(\mathcal {A})=L(\mathcal {B})=a(a|b)^+(a^+ b)^\omega \).

figure b

Notice that in \(\mathcal {B}\), there is a b-transition with priority 1 from the initial state to the sink state \((\emptyset ,[\,])\) and an a-transition to \((\{0,2\},[1])\); as \(1\in Q\) but \(1\notin F\), this transition has priority 1. A further b-transition leads from 1 to 3 in \(\mathcal {A}\); in \(\mathcal {B}\), we have a b-transition from \((\{0,2\},[1])\) to \((\{2\},[3])\) and since \((1,b,3)\in F\), the first position in the permutation component is active during this transition so that the transition has priority 4. Yet another b-transition loops from \((\{2\},[3])\) to \((\{2\},[3])\). Since there is no b-transition starting at state 3, the first element in the permutation is removed in Step 1. of the construction. Since there is a b-transition from 2 to 3, it is added to the permutation again in Step 4. of the construction. Crucially, however, the priority of the transition is 5, since the first item of the permutation has been (temporarily) removed. The intuition is that the trace of 3 ends when the letter b is read; even though a new trace of 3 immediately starts, we do not consider it to be the same trace as the previous one. Thus the transition obtains priority 5 so that it may be used only finitely often in an accepting run of \(\mathcal {B}\), i.e. accepting runs contain an uninterrupted trace that visits state 3 infinitely often. Thus two or more consecutive b’s can only occur finitely often in any accepted word.

2.3 Determinizing Limit-Deterministic Parity Automata

To determinize limit-deterministic PA, it suffices to transform them to equivalent limit-deterministic BA and determinize the BA. This transformation from PA to BA is achieved by a construction which is inspired by Theorems 2 and 3 in [14]; we add the observation that the construction preserves limit-determinism.

Definition 10

Given a limit-deterministic PA \(\mathcal {C}=(V,\varSigma ,\delta ,u_0,\alpha )\) with \(n=|V|\) and \(k>2\) priorities, we define the limit-deterministic BA \(\mathcal {D}=(W,\varSigma ,\delta ',u_0,F)\) by putting \(W=V\cup (V\times \{0,\ldots , \big \lceil {\frac{k-1}{2}}\big \rceil \})\), and for \(w\in W\) and \(a\in \varSigma \),

$$\begin{aligned} \delta '(v,a)&= {\left\{ \begin{array}{ll} \{(w,m)\mid (v,a,w)\in \alpha (2m)\}\cup \delta (v,a) &{} \text {if }v\in V\\ \{(w,l)\mid (v',a,w)\in \alpha _\le (2l)\} &{} \text {if }v=(v',l)\notin V \end{array}\right. } \end{aligned}$$

Finally, we put \(F=\{((v,l),a,(w,l))\in \delta '\mid \alpha (v,a,w)=2l\}\). To see that \(\mathcal {D}\) is limit-deterministic, it suffices by Lemma 3 to show that \(\mathsf {reach}(\pi _3[F])\) is deterministic. We observe that for each state \((w,l)\in \mathsf {reach}(\pi _3[F])\), (wl) is deterministic by definition of \(\delta '\) since w is contained in a (by Lemma 3, internally deterministic) 2l-compartment of \(\mathcal {C}\).

Lemma 11

We have \(L(\mathcal {C})=L(\mathcal {D})\) and \(|W|\le n(\big \lceil {\frac{k}{2}}\big \rceil +1)\le nk\).

By Theorem 7, \(\mathcal {D}\) can be determinized to a DPA \(\mathcal {E}\) of size at most (nk)!e, with at most \(nk+2\) priorities and with \(L(\mathcal {D})=L(\mathcal {E})\).

Corollary 12

Limit-deterministic parity automata of size n with k priorities can be determinized to deterministic parity automata of size \(\mathcal {O}((nk)!)\) and with \(\mathcal {O}(nk)\) priorities.

3 Permutation Games for the Aconjunctive \(\mu \)-Calculus

3.1 The \(\mu \)-Calculus

We briefly recall the definition of the \(\mu \)-calculus. We fix a set P of propositions, a set A of actions, and a set \(\mathfrak {V}\) of fixpoint variables. The set \(\mathsf {L}_\mu \) of \(\mu \)-calculus formulas is the set of all formulas \(\phi ,\psi \) that can be constructed by the grammar

$$\begin{aligned} \psi ,\phi :\,\!:= \bot \mid \top \mid p \mid \lnot p \mid X \mid \psi \wedge \phi \mid \psi \vee \phi \mid \langle a \rangle \psi \mid [a]\psi \mid \mu X.\, \psi \mid \nu X.\, \psi \end{aligned}$$

where \(p\in P\), \(a\in A\), and \(X\in \mathfrak {V}\); we write \(|\psi |\) for the size of a formula \(\psi \). Throughout the paper, we use \(\eta \) to denote one of the fixpoint operators \(\mu \) or \(\nu \). We refer to formulas of the form \(\eta X.\,\psi \) as fixpoint literals, to formulas of the form \(\langle a\rangle \psi \) or \([a]\psi \) as modal literals, and to p, \(\lnot p\) as propositional literals. The operators \(\mu \) and \(\nu \) bind their variables, inducing a standard notion of free variables in formulas. We denote the set of free variables of a formula \(\psi \) by \(\mathsf {FV}(\psi )\). A formula \(\psi \) is closed if \(\mathsf {FV}(\psi )=\emptyset \), and open otherwise. We write \(\psi \le \phi \) (\(\psi <\phi \)) to indicate that \(\psi \) is a (proper) subformula of \(\phi \). We say that \(\phi \) occurs free in \(\psi \) if \(\phi \) occurs in \(\psi \) as a subformula that is not in the scope of any fixpoint operator. Throughout, we restrict to formulas that are guarded, i.e. have at least one modal operator between any occurrence of a variable X and an enclosing binder \(\eta X\). (This is standard although possibly not without loss of generality [10].) Moreover we assume w.l.o.g. that input formulas are clean, i.e. all fixpoint variables are mutually distinct and distinct from all free variables, and irredundant, i.e. \(X\in \mathsf {FV}(\psi )\) for all subformulas \(\eta X.\,\psi \). We refer to a variable X that is bound by a least (greatest) fixpoint operator \(\mu X.\chi \) (\(\nu X.\chi \)) in a formula \(\phi \) as a \(\mu \)-variable (\(\nu \)-variable) of \(\phi \), and to the process of substituting such an X with its binding fixpoint literal (\(\mu X.\chi \) or \(\nu X.\chi \), respectively) as unfolding. An occurrence of a subformula \(\psi \) of a formula \(\phi \) contains an active \(\mu \)-variable [15] if \(\psi \) can be converted into a formula containing a free occurrence of a \(\mu \)-variable of \(\phi \) by repeatedly unfolding \(\nu \)-variables of \(\phi \).

Formulas are evaluated over Kripke structures \(\mathcal {K}=(W,(R_a)_{a\in A},\pi )\), consisting of a set W of states, a family \((R_a)_{a\in A}\) of relations \(R_a\subseteq W\times W\), and a valuation \(\pi :P\rightarrow \mathcal {P}(W)\) of the propositions. Given an interpretation \(i:\mathfrak {V}\rightarrow \mathcal {P}(W)\) of the fixpoint variables, define \({[\![\psi ]\!]}_i\subseteq W\) by the obvious clauses for Boolean operators and propositions, \([\![X]\!]_i=i(X)\), \([\![\langle a\rangle \psi ]\!]_i=\{v\in W\mid \exists w\in R_a(v).w\in [\![\psi ]\!]_i\}\), \([\![[a]\psi ]\!]_i=\{v\in W\mid \forall w\in R_a(v).w\in [\![\psi ]\!]_i\}\), \([\![\mu X.\,\psi ]\!]_i =\mu [\![\psi ]\!]^X_i\) and \([\![\nu X.\,\psi ]\!]_i =\nu [\![\psi ]\!]^X_i\), where \(R_a(v)=\{w\in W\mid (v,w)\in R_a\}\), \([\![\psi ]\!]^X_i(G) = [\![\psi ]\!]_{i[X\mapsto G]}\), and \(\mu \), \(\nu \) take least and greatest fixpoints of monotone functions, respectively. If \(\psi \) is closed, then \([\![\psi ]\!]_i\) does not depend on i, so we just write \([\![\psi ]\!]\). We denote the Fischer-Ladner closure [16] of a formula \(\phi \) by \(\mathbf {F}(\phi )\), or just by \(\mathbf {F}\), if no confusion arises; intuitively, \(\mathbf {F}\) is the set of formulas that can arise as subformulas when unfolding each fixpoint operator in \(\phi \) at most once. We note \(\mathbf {F}\le |\phi |\) [16].

The aconjunctive fragment [15] of the \(\mu \)-calculus is obtained by requiring that for all conjunctions that occur as a subformula, at most one of the conjuncts contains an active \(\mu \)-variable. In the weakly aconjunctive fragment [24], this requirement is loosened to the constraint that all conjunctions that occur as a subformula and contain an active \(\mu \)-variable are of the shape \(\psi \wedge \Diamond \psi _1\wedge \ldots \wedge \Diamond \psi _n\wedge \Box (\psi _1\vee \ldots \vee \psi _n)\), where \(\psi \) does not contain active \(\mu \)-variables. For instance, for all n, the formula \(\eta X_n\ldots \mu X_1. \nu X_0. \bigvee _{0\le i\le n} (q_i\wedge \Diamond X_i)\) is aconjunctive (and equivalent to the weakly aconjunctive formula obtained by replacing \(\Diamond X_i\) with \(\Diamond X_i\wedge \Diamond \top \wedge \Box (X_i\vee \top )\)). The permutation satisfiability games that we introduce work for the more expressive weakly aconjunctive fragment.

We will make use of the standard tableau rules [10] (each consisting of one premise and a possibly empty set of conclusions):

$$\begin{aligned} (\bot )\quad&\;\;\;\;\quad \quad \frac{\Gamma ,\bot }{}&(\lightning )\quad&\quad \quad \frac{\Gamma ,p,\lnot p}{}&(\wedge )\quad&\;\quad \quad \frac{\Gamma ,\psi \wedge \phi }{\Gamma ,\psi ,\phi } \\ (\vee ) \quad&\quad \frac{\Gamma ,\psi \vee \phi }{{\Gamma ,\psi }\qquad {\Gamma ,\phi }}&(\langle a\rangle ) \quad&\frac{\Gamma ,[a] \psi _1,\ldots ,[a]\psi _n,\langle a\rangle \phi }{\psi _1,\ldots ,\psi _n,\phi }&(\eta ) \quad&\frac{\Gamma ,\eta X.\, \psi }{\Gamma ,\psi [X\mapsto \eta X.\, \psi ]} \end{aligned}$$

(for \(a\in A\), \(p\in P\)); we refer to the tableau rules by \(\mathcal {R}\) and usually write rule applications with premise \(\Gamma \) and conclusion \(\varSigma =\Gamma _1,\ldots ,\Gamma _n\) sequentially: \((\Gamma /\varSigma )\).

To track fixpoint formulas through pre-tableaux, we will use deferrals, that is, the decomposed form of formulas that are obtained by unfolding fixpoint literals.

Definition 13

(Deferrals). Given fixpoint literals \(\chi _i = \eta X_i.\,\psi _i\), \(i=1,\dots ,n\), we say that a substitution \(\sigma =[X_1\mapsto \chi _1];\ldots ;[X_n\mapsto \chi _n]\) sequentially unfolds \(\chi _n\) if \(\chi _i <_f \chi _{i+1}\) for all \(1\le i<n\), where we write \(\psi <_f \eta X.\,\phi \) if \(\psi \le \phi \) and \(\psi \) is open and occurs free in \(\phi \) (i.e. \(\sigma \) unfolds a nested sequence of fixpoints in \(\chi _n\) innermost-first). We say that a formula \(\chi \) is irreducible if for every substitution \([X_1\mapsto \chi _1];\ldots ;[X_n\mapsto \chi _n]\) that sequentially unfolds \(\chi _n\), we have that \(\chi = \chi _1([X_2\mapsto \chi _2];\ldots ;[X_n\mapsto \chi _n])\) implies \(n=1\) (i.e. \(\chi =\chi _1\)). A formula \(\psi \) belongs to an irreducible closed fixpoint literal \(\theta _n\), or is a \(\theta _n\)-deferral, if \(\psi =\alpha \sigma \) for some substitution \(\sigma = [X_1\mapsto \theta _1];\ldots ;[X_n\mapsto \theta _n]\) that sequentially unfolds \(\theta _n\) and some \(\alpha <_f \theta _1\). We denote the set of \(\theta _n\)-deferrals by \(\mathsf {dfr}(\theta _n)\).

E.g. the substitution \(\sigma =[Y\mapsto \mu Y.\,(\Box X\wedge \Diamond \Diamond Y)];[X\mapsto \theta ]\) sequentially unfolds the irreducible closed formula \(\theta =\nu X.\,\mu Y.\,(\Box X\wedge \Diamond \Diamond Y)\), and \((\Diamond Y)\sigma =\Diamond \mu Y.\,(\Box \theta \wedge \Diamond \Diamond Y)\) is a \(\theta \)-deferral. A fixpoint literal is irreducible if it is not an unfolding \(\psi [X\mapsto \eta X.\,\psi ]\) of a fixpoint literal \(\eta X.\,\psi \); in particular, every clean irredundant fixpoint literal is irreducible.

As a technical tool, we define a measure for the depth of alternation at which a deferral resides inside the fixpoint to which it belongs:

Definition 14

(Alternation level and alternation depth). The alternation level \(\mathsf {al}(\phi \sigma ):=\mathsf {al}(\sigma )\) of a deferral \(\phi \sigma \) is defined inductively over \(|\sigma |\), where \(\mathsf {al}(\epsilon )=\mathsf {al}(\epsilon )_\mu =\mathsf {al}(\epsilon )_\nu =0\), for the empty substitution \(\epsilon \), \(\mathsf {al}(\sigma ;[X\mapsto \eta X.\,\psi ])=\mathsf {al}(\sigma )_\mu +1\) if \(\eta =\mu \) and \(\mathsf {al}(\sigma ;[X\mapsto \eta X.\,\psi ])=\mathsf {al}(\sigma )_\nu \) otherwise, and

$$\begin{aligned} \mathsf {al}(\sigma ;[X\mapsto \eta X.\,\psi ])_\mu = {\left\{ \begin{array}{ll} \mathsf {al}(\sigma )_\mu &{}\text {if }\eta =\mu \\ \mathsf {al}(\sigma )_\nu +1&{}\text {otherwise} \end{array}\right. } \\ \mathsf {al}(\sigma ;[X\mapsto \eta X.\,\psi ])_\nu = {\left\{ \begin{array}{ll} \mathsf {al}(\sigma )_\nu &{}\text {if }\eta =\nu \\ \mathsf {al}(\sigma )_\mu +1&{}\text {otherwise} \end{array}\right. } \end{aligned}$$

This definition assigns greater numbers to inner fixpoint literals, i.e. to deferrals which occur at higher nesting depth, i.e. with more alternation inside their sequence \(\sigma \). Given a formula \(\psi \), its alternation depth \(\mathsf {ad}(\phi )\) is defined as \(\mathsf {ad}(\phi )= \max \{\mathsf {al}(\delta )\mid \delta \in \mathbf F,\exists \theta .\delta \in \mathsf {dfr}(\theta )\}\).

3.2 Limit-Deterministic Tracking Automata

As a first step towards deciding the satisfiability of a weakly aconjunctive \(\mu \)-calculus formula \(\phi \), we now construct a tracking automaton that takes branches of (that is, infinite paths through) standard pre-tableaux for \(\phi \) as input and accepts a branch if and only if it contains a least fixpoint formula whose satisfaction is deferred indefinitely on that branch. To this end, we import the following notions of threads and tableaux from [10]:

Definition 15

A pre-tableau for a formula \(\phi \) is a graph the nodes of which are labelled with subsets of the Fischer-Ladner closure \(\mathbf F\); the graph structure L of a pre-tableau is constructed by applying tableau rules from \(\mathcal {R}\) to the labels of nodes with the requirement that for each rule application \((\Gamma /\varSigma )\) to the label \(\Gamma \) of a node v, there is a w with \((v,w)\in L\) such that the label of w is contained in \(\varSigma \). Nodes whose labels are saturated (i.e. do not contain propositional or fixpoint operators) are called states. Formulas are tracked through rule applications by the connectedness relation \(\leadsto \subseteq (\mathcal {P}(\mathbf F)\times \mathbf F)^2\) that is defined by putting \(\Phi ,\phi \leadsto \Psi ,\psi \) if and only if \(\Psi \) is a conclusion of an application of a rule from \(\mathcal {R}\) to \(\Phi \) such that \(\phi \in \Phi \), \(\psi \in \Psi \), and the rule application transforms \(\phi \) to \(\psi \); if the rule application does not change \(\phi \), then \(\phi =\psi \). E.g. we have \(\Phi ,\psi _1\wedge \psi _2\leadsto \Psi ,\psi _i\), where \(i\in \{1,2\}\) and \(\Psi \) is obtained from \(\Phi \) by applying the rule \((\wedge )\) to \(\psi _1\wedge \psi _2\). A branch \(\Psi _0,\Psi _1\ldots \) in a pre-tableau is a sequence of labels such that for all \(i>0\), \(\Psi _{i+1}\) is an L-successor of \(\Psi _i\). A thread on an infinite branch \(\Psi _0,\Psi _1,\ldots \) is an infinite sequence \(t=\psi _0,\psi _1\ldots \) of formulas with \(\Psi _0,\psi _0\leadsto \Psi _1,\psi _1\leadsto \ldots \). A \(\mu \)-thread is a thread t such that \(\min (\mathsf {Inf}(\mathsf {al}\circ t))\) is odd, i.e. the outermost fixpoint literal that is unfolded infinitely often in t is a least fixpoint literal. A bad branch is an infinite branch that contains a \(\mu \)-thread. A tableau for \(\phi \) is a pre-tableau for \(\phi \) that does not contain bad branches.

We import from [10] the well-known fact that the existence of tableaux in the sense defined above characterizes satisfiability. In [10], the result is shown for the more general unguarded \(\mu \)-calculus; we note that the restriction to guarded formulas does not invalidate the theorem.

Theorem 16

([10]). A \(\mu \)-calculus formula \(\psi \) is satisfiable if and only if there is a tableau for \(\psi \).

Given a formula \(\phi \), we define the alphabet \(\varSigma _{\phi }\) to consist of letters that each identify a rule \(R\in \mathcal {R}\), a principal formula from \(\mathbf {F}\) and one of the conclusions of R. E.g. the letter \(((\vee ),0,p\vee \Diamond q)\) identifies the application of the disjunction rule to a principal formula \(p\vee \Diamond q\) and the choice of the left conclusion; thus this letter identifies the transition from \(p\vee \Diamond q\) to p by use of rule \((\vee )\). We note \(|\varSigma _{\phi }|\in \mathcal {O}(|\phi |)\). Further, we denote the set of all words that encode some branch and some bad branch in some pre-tableau for \(\phi \) by \(\mathsf {Branch}(\phi )\) and \(\mathsf {BadBranch}(\phi )\), respectively.

As a crucial result, we now show that limit-deterministic automata are expressive enough to exactly recognize the bad branches in pre-tableaux for weakly aconjunctive formulas.

Lemma 17

Let \(\phi \) be a weakly aconjunctive formula. Then there is a limit-deterministic PA \(\mathcal {A}=(V,\varSigma _{\phi },\delta ,\phi ,\alpha )\) with \(|V|\le |\phi |\) and \(\mathsf {idx}(\mathcal {A})\le \mathsf {ad}(\phi )+1\) such that \(L(\mathcal {A})\cap \mathsf {Branch}(\phi )=\mathsf {BadBranch}(\phi )\).

Proof

(Sketch). The automaton nondeterministically guesses formulas to be tracked, one at a time; the set of states of the automaton is the Fischer-Ladner closure of \(\phi \). The priorities of the transitions in the automaton are derived from the alternation level of the target formula of the respective transition; then every word \(w\in L(\mathcal {A})\) that encodes some branch encodes a bad branch. Once a deferral is tracked, weak aconjunctivity implies that all compartments to which the tracked formula belongs are internally deterministic; this is the case since for conjunctions \(\psi =\psi _0\wedge \Diamond \psi _1\wedge \ldots \wedge \Diamond \psi _n\wedge \Box (\psi _1\vee \ldots \vee \psi _n)\) – the only case that can introduce nondeterminism – each next modal step determines just one of the formulas \(\psi _i\) that has to be tracked; the conjunct \(\psi _0\) does not contain active \(\mu \)-variables, so tracking it causes the automaton to leave all compartments to which \(\psi \) belongs. Thus the automaton is limit-deterministic.    \(\square \)

Example 18

We consider the aconjunctive formula

$$\begin{aligned} \phi =\mu X.(\;p\wedge \nu Y.\;(\Diamond (Y\wedge p)\vee \Diamond X)) \end{aligned}$$

which expresses the existence of a finite or infinite path on which p holds everywhere. We have the \(\phi \)-deferrals \(\phi \epsilon \), \(\psi :=(p\wedge \nu Y.\;(\Diamond (Y\wedge p)\vee \Diamond X))\sigma _1\), \(\theta :=(\nu Y.\;(\Diamond (Y\wedge p)\vee \Diamond X))\sigma _1\), \(\chi :=(\Diamond (Y\wedge p)\vee \Diamond X)\sigma _2\), \((\Diamond (Y\wedge p))\sigma _2\), \(\tau :=(Y\wedge p)\sigma _2\), \(Y\sigma _2\), \(\Diamond X\sigma _2\) and \(X\sigma _2\), where \(\sigma _1=[X\mapsto \phi ]\) and \(\sigma _2=[Y\mapsto \psi ];\sigma _1\). We consider a pre-tableau \(P_\phi \) for \(\phi \) and like in the proof of Lemma 17, we construct the limit-deterministic tracking automaton \(\mathcal {A}_\phi \), depicted below:

figure c

The priorities in \(\mathcal {A}_\phi \) are derived as follows: As \(\mathsf {ad}(\phi )=2\) is even, we put \(k=\mathsf {ad}(\phi )+1=3\); since \(\mathsf {al}(\phi )=\mathsf {al}(\psi )=1\), \(\alpha (\phi ,(\mu ),\psi )=\alpha (\Diamond \phi ,(\Diamond ),\phi )=k-\mathsf {al}(\phi )=2\) and since \(\mathsf {al}(p)=0\), \(\alpha (\psi ,(\wedge ),p)=\alpha (\varsigma ,(\wedge ),p)=k-\mathsf {al}(\phi )=3\). All other formulas have alternation level 2 and transitions to them obtain priority 1. The tracking automaton accepts exactly those branches in \(P_\phi \) that start at node 1 and take the loop through node 9 infinitely often; in these branches, \(\phi \) can be tracked forever and evolves to \(\phi \) infinitely often, i.e. their dominating formula is the least fixpoint formula \(\phi \). All other branches loop through node 7 without passing node 9 from some point on; their dominating fixpoint formula is \(\theta \), a greatest fixpoint formula. We observe that due to the aconjunctivity of \(\phi \), \(\mathcal {A}_\phi \) is limit-deterministic since the only two nondeterministic states \(\psi \) and \(\varsigma \) each have only one outgoing \((\wedge )\)-transition with priority less than \(k=3\).

Given a weakly aconjunctive formula \(\phi \), we use Lemma 17 to construct a limit-deterministic tracking automaton \(\mathcal {A}_\phi \) with \(L(\mathcal {A}_\phi )\cap \mathsf {Branch}(\phi )=\mathsf {BadBranch}(\phi )\). Then we put Lemma 11 to use to obtain an equivalent BA in which all states from \(Q=\mathsf {reach}(\pi _3[F])\) are levelled deferrals, i.e. pairs \((\psi ,q)\) consisting of a deferral \(\psi \) and a number \(q\le \lceil \frac{k}{2}\rceil \), the level of the pair \((\psi ,q)\); the level q encodes the odd alternation level \(2q-1\). A levelled deferral \((\psi ,q)\) is active if \(\mathsf {al}(\psi )=2q-1\) and the automaton accepts branches which contain a levelled deferral that is active infinitely often without being finished. The set \(\overline{Q}\) is just a subset of \(\mathbf {F}\). Next we use Theorem 7 to transform this BA to a DPA \(\mathcal {B}_\phi \) with \(L(\mathcal {A}_\phi )=L(\mathcal {B}_\phi )\). We complement \(\mathcal {B}_\phi \) to a DPA \(\mathcal {C}_\phi =(W,\varSigma _{\phi },\delta ,\phi ,\alpha )\) by decreasing the priority of each state in \(\mathcal {B}_\phi \) by one; we have \(L(\mathcal {C}_\phi )=\overline{L(\mathcal {B}_\phi )}\), that is, \(\mathcal {C}_\phi \) accepts exactly those words that encode only ‘good’ branches, if they encode some branch in some pre-tableau for \(\phi \). By construction, \(|W|\in \mathcal {O}((nk)!)\) and \(\mathcal {C}_\phi \) has at most \(nk+1\) priorities, and (recalling Definitions 6 and 10) the states in the carrier W of \(\mathcal {C}_\phi \) are of the shape (Ul), where U is a subset of \(\mathbf {F}\) and l is a partial permutation of levelled deferrals. For a transition \(t=((U,l),r,(V,l'))\) with \((U,l),(V,l')\in W\), \(r\in \varSigma _{\phi }\), if \(\alpha (t)=2(n-a)+1\), then a is the lowest number such that \(\mathsf {al}(\phi )=2q-1\), where \(l'(a)=(\phi ,q)\) and the a-th element of l is not removed by the transition t (i.e. \(\alpha (t)\) references the oldest levelled deferral in \(l'\) that is active but not removed by the transition t) and if \(\alpha (t)=2(n-r)+2\), then \(\alpha (t)\) is the index of the oldest levelled deferral \((\phi ,2q-1)\) that is finished (i.e. removed from l) in the transition t of the automaton \(\mathcal {C}_\phi \), which means that the according r-transition in \(\mathcal {A}_\phi \) makes \(\phi \) leave its \(2q-1\)-compartment. For a state \(v=(U,l)\), we define the label \(\Gamma (v)\) of v as \(\Gamma (v)=U\).

3.3 Permutation Games

The deterministic parity automaton \(\mathcal {C}_\phi \) can now be combined with applications of tableau rules from \(\mathcal {R}\) to form a satisfiability game for \(\phi \). We proceed to recall the definition of parity games and some ensuing basic notions. A parity game is a graph \(\mathcal {G}=(V,E,\alpha )\) that consists of a set of nodes V, a set of edges \(E\subseteq V\times V\) and a priority function \(\alpha :E\rightarrow \mathbb {N}\), assigning priorities to edges. We assume , that is, every node in V either belongs to player \(\mathsf {Eloise}\) (\(V_\exists \)) or to player \(\mathsf {Abelard}\) (\(V_\forall \)). A play \(\rho \) of \(\mathcal {G}\) is a (possibly infinite) sequence \(v_0v_1\ldots \) such that for all \(i\ge 0\), \(v_i\in V\) and \((v_i,v_{i+1})\in E\). A play \(\rho \) of \(\mathcal {G}\) is won by \(\mathsf {Eloise}\) if and only if \(\rho \) is finite and ends in a node that belongs to \(\mathsf {Abelard}\) or \(\rho \) is infinite and \(\max (\mathsf {Inf}(\alpha \circ \mathsf {trans}(\rho )))\) is even (where \(\mathsf {trans}(\rho )\) is defined by \(\mathsf {trans}(\rho )(i)=(\rho (i),\rho (i+1))\)); \(\mathsf {Abelard}\) wins a play \(\rho \) if and only if \(\mathsf {Eloise}\) does not win \(\rho \). A (memoryless) strategy assigns moves to states. A play \(\rho \) conforms to a strategy s if for all \(\rho (i)\in \mathsf {dom}(s)\), \(\rho (i+1)=s(\rho (i))\). \(\mathsf {Eloise}\) has a winning strategy for a node v if there is a strategy \(s:V_\exists \rightarrow V\) such that every play of \(\mathcal {G}\) that starts at v and conforms to s is won by \(\mathsf {Eloise}\); we have a dual notion of winning strategies for \(\mathsf {Abelard}\). The winning regions \(\mathsf {win}_\exists (\mathcal {G})\) and \(\mathsf {win}_\forall (\mathcal {G})\) are the sets of those nodes for which \(\mathsf {Eloise}\) and \(\mathsf {Abelard}\) have winning strategies, respectively. Solving a parity game \(\mathcal {G}\) (locally) for a particular node \(v\in V\) amounts to computing the winner of v.

Now we are ready to define permutation games for weakly aconjunctive formulas \(\phi \), using the DPA \(\mathcal {C}_\phi =(W,\varSigma _{\phi },\delta ,\phi ,\alpha )\) from the previous section.

Definition 19

(Permutation games). Let \(\phi \) be a weakly aconjunctive formula. We define the permutation game \(\mathcal {G}(\phi )=(W,E,\beta )\) to be a parity game that has the carrier of \(\mathcal {C}_\phi \) as set of nodes. For every node \(v\in W\) for which \(\Gamma (v)\) is not a state, we fix a single rule that is to be applied to \(\Gamma (v)\) and a single principal formula \(\psi _v\in \Gamma (v)\) to which the rule is to be applied. If \((\vee )\) is to be applied to \(\Gamma (v)\), then we put \(v\in W_\exists \); otherwise, \(v\in W_\forall \). In particular, all state nodes are contained in \(W_\forall \). For \(v\in W\), we put \(E(v)= \bigcup \{\delta (v,a)\mid a\in \varSigma _v\}\), where \(\varSigma _v\subseteq \varSigma _{\phi }\) consists of all letters a that encode the application of some rule to \(\Gamma (v)\) with the condition that the principal formula of the rule application must be \(\psi _v\) if v is not a state node. Finally, we put \(\beta (v,w)=\alpha (v,a,w)\) for \((v,w)\in E\), where \(a\in \varSigma _v\) encodes the rule application that leads from v to w.

Theorem 20

Let \(\phi \) be a closed, irreducible and weakly aconjunctive formula. Then we have \((\{\phi \},[\,])\in \mathsf {win}_\exists (\mathcal {G}(\phi ))\) if and only if \(\phi \) is satisfiable.

Proof

By construction, \(\mathsf {Eloise}\) wins \((\{\phi \},[\,])\) if and only if there is a tableau for \(\phi \) (labelled by the labelling function \(\Gamma \)); we are done by Theorem 16.    \(\square \)

Due to the relatively simple structure and the asymptotically smaller size of the determinized automata \(\mathcal {C}_\phi \), the resulting permutation games are somewhat easier to construct and can be solved asymptotically faster than the structures created by standard satisfiability decision procedures for the full \(\mu \)-calculus (e.g. [5, 10]) which employ the full Safra/Piterman-construction; note however, that our method is restricted to the weakly aconjunctive fragment.

Corollary 21

The satisfiability of weakly aconjunctive \(\mu \)-calculus formulas can be decided by solving parity games of size \(\mathcal {O}((nk)!)\) and \(\mathcal {O}(nk)\) priorities.

The winning strategies for \(\mathsf {Eloise}\) or \(\mathsf {Abelard}\) in these games define models for or refutations of the respective formulas, so that we have

Corollary 22

Satisfiable weakly aconjunctive \(\mu \)-calculus formulas have models of size \(\mathcal {O}((nk)!)\).

4 Implementation and Benchmarking

We have implemented the permutation satisfiability games as an extension of the Coalgebraic Ontology Logic Reasoner (COOL) [11], a generic reasoner for coalgebraic modal logicsFootnote 1. COOL achieves its genericity by instantiating an abstract reasoner that works for all coalgebraic logics to concrete instances of logics. To incorporate support for the aconjunctive coalgebraic \(\mu \)-calculus, we have extended the global caching algorithm that forms the core of COOL to generate and solve the corresponding permutation games, with optional on-the-fly solving; games are solved using either our own implementation of the fixpoint iteration algorithm for parity games (as in [1]) or PGSolver [8], which supports a range of game solving algorithms. Instance logics implemented in COOL currently include linear-time, relational, monotone, and alternating-time logics, as well as any logics that arise as combinations thereof. In particular, this makes COOL, to our knowledge, the only implemented reasoner for the aconjunctive fragments of the alternating-time \(\mu \)-calculus and Parikh’s game logic.

Although our tool supports the aconjunctive coalgebraic \(\mu \)-calculus, we concentrate on the standard relational aconjunctive \(\mu \)-calculus for experiments, as this allows us to compare our implementation with the reasoner MLSolver [9], which constructs satisfiability games using the Safra/Piterman-construction and hence supports the full relational \(\mu \)-calculus; MLSolver uses PGSolver for game solving.

To test the implementations, we devise two series of hard aconjunctive formulas with deep alternating nesting of fixpoints. The following formulas encode that each reachable state in a Kripke structure has one of n priorities (encoded by atoms \(q_i\) for \(1\le i \le n\)) and belongs to either \(\mathsf {Eloise}\) (\(q_e\)) or \(\mathsf {Abelard}\) (\(q_a\)):

$$\begin{aligned} \phi _\mathsf {aut}(n)&= \mathsf {AG}(\bigvee _{1\le i\le n} (q_i\wedge \bigwedge _{j\ne i}\lnot q_j))&\phi _\mathsf {game}(n)&=\phi _\mathsf {aut}(n)\wedge \mathsf {AG}((q_e\wedge \lnot q_a)\vee (\lnot q_e\wedge q_a)) \end{aligned}$$

Here we use \(\mathsf {AG}\;\psi \) to abbreviate \(\nu X.\, (\psi \wedge \Box X)\). Then the non-emptiness regions in parity automata and \(\mathsf {Eloise}\)’s winning region in parity games can be specified by the following aconjunctive formulas (where \(\heartsuit \in \{\Diamond ,\Box \}\)):

$$\begin{aligned} \phi _\mathsf {ne}(n)&= \eta X_n.\ldots .\nu X_2.\mu X_1. \psi _\Diamond&\psi _\heartsuit&=\textstyle \bigvee _{1\le i\le n}(q_i\wedge \heartsuit X_i) \\ \phi _\mathsf {win}(n)&= \eta X_n.\ldots .\nu X_2.\mu X_1.\phi _{\mathsf {strat}}(\psi _\heartsuit )&\phi _{\mathsf {strat}}(\psi _\heartsuit )&=(q_e\wedge \psi _\Diamond )\vee (q_a\wedge \psi _\Box ) \end{aligned}$$

Furthermore, we define (for \(\heartsuit \in \{\Diamond ,\Box \}\))

$$\begin{aligned} \theta _\heartsuit (i)&= (q_i\wedge \heartsuit Y)\vee \textstyle \bigvee _{i<j\le n}(q_j\wedge \heartsuit X)\vee \textstyle \bigvee _{1\le j\le i}(q_j\wedge \heartsuit Z) \end{aligned}$$
Fig. 1.
figure 1

Times for \(\lnot \theta _1(n)\) (unsatisfiable)

Fig. 2.
figure 2

Times for \(\lnot \theta _2(n)\) (unsatisfiable)

The following series of valid formulas states that parity automata with n priorities can be transformed to nondeterministic parity automata with three priorities without affecting the non-emptiness region:

$$\begin{aligned} \theta _1(n):=\phi _{\mathsf {aut}}(n)\rightarrow (\phi _{\mathsf {ne}}(n)\leftrightarrow \textstyle \bigvee _{i\text { even}} \mu X.\nu Y.\mu Z.\;\theta _\Diamond (i)) \end{aligned}$$

Similarly, if \(\mathsf {Eloise}\) wins a parity game with n priorities, then she can ensure that in each play, each odd priority \(1\le i\le n\) is visited only finitely often, unless a priority greater than i is visited infinitely often (the converse does not hold in general [4]):

$$\begin{aligned} \theta _2(n):=\phi _{\mathsf {game}}(n)\rightarrow (\phi _{\mathsf {win}}(n)\rightarrow \bigwedge _{i\text { odd}} \nu X.\mu Y.\nu Z.\;&\phi _\mathsf {strat}(\theta _\heartsuit (i))\;) \end{aligned}$$

Additionally, we devise two series of unsatisfiable formulas that exhibit the advantages of COOL’s global caching and on-the-fly-solving capabilities. These formulas are inspired by the CTL-formula series \(\mathsf {early}(n,j,k)\) and \(\mathsf {early_{gc}}(n,j,k)\) from [13] but contain fixpoint-alternation of depth \(2^k\) inside the subformula \(\theta \):

$$\begin{aligned} \mathsf {early\text {-}ac}(n,j,k) =&\; start _p \wedge \mathsf {init}(p,n) \wedge \mathsf {init}(r,k) \wedge \mathsf {AG}\;((r \rightarrow \mathsf {c}(r,k))\wedge (p \rightarrow \mathsf {c}(p,n))) \wedge \\&\; \mathsf {AG}\;((\textstyle \bigwedge _{0\le i\le j} p_i \rightarrow \Diamond ( start _r \wedge \theta )) \wedge \lnot (p \wedge r)\wedge (r\rightarrow \Box \; r))\\ \mathsf {early\text {-}ac}_{\mathsf {gc}}(n,j,k) =&\;\mathsf {early\text {-}ac}(n,j,k) \wedge b \wedge \mathsf {init}(q,n) \wedge \mathsf {AG}\;(\lnot (p \wedge q)\wedge \lnot (q \wedge r))\wedge \\&\;\mathsf {AG}\;((q \rightarrow c(q,n)) \wedge \mathsf {AF}\; b \wedge ( b \rightarrow (\Diamond \;p \wedge \Diamond \; start _q \wedge \Box \;\lnot b )))\\ \mathsf {init}(x,m) =&\; \mathsf {AG}\; (( start _x \rightarrow (x \wedge \textstyle \bigwedge _{0\le i<m} \lnot x_i))\wedge (x\rightarrow \Diamond \; x))\\ \theta =&\; \eta X_{(2^k)}.\ldots .\nu X_2.\mu X_1.\textstyle \bigvee _{1\le i\le 2^k}(\mathsf {bin}(r,i-1)\wedge \Diamond X_i), \end{aligned}$$
Fig. 3.
figure 3

\(\mathsf {early}\text {-}\mathsf {ac}(n,4,2)\) (unsatisfiable)

Fig. 4.
figure 4

\(\mathsf {early}\text {-}\mathsf {ac}_\mathsf {gc}(n,4,2)\) (unsatisfiable)

where \(\mathsf {c}(x,m)\) encodes an m-bit counter using atoms \(x_0,\ldots ,x_{m-1}\) and \(\mathsf {bin}(r,i)\) denotes the binary encoding of the number i using atoms \(r_0,\ldots , r_{k-1}\). The formulas \(\mathsf {early\text {-}ac}(n,j,k)\) specify a loop p of length \(2^n\) that branches after j steps to a second loop r of length \(2^k\) on which the highest value of the counter (which counts from 0 to \(2^{k}-1\) and then restarts at 0) is required to be an even number. For constant k, the contradiction on loop r yields a small refutation which can be found early, using on-the-fly solving. The formulas \(\mathsf {early\text {-}ac}_\mathsf {gc}(n,j,k)\) extend this specification by stating that a third loop q of length \(2^n\) is started from loop p infinitely often. Procedures with sufficient caching capabilities will have to (partially) explore this loop at most once.

We compare the runtimes of MLSolver and COOL on the formulas described above; we let COOL and MLSolver solve games using the local strategy improvement algorithm stratimprloc2 provided by PGSolver. To solve games on-the-fly with COOL however, we use our own implementation of the fixpoint iteration algorithm, which in general is slower than PGSolver but has the advantage that it enables on-the-fly solving. With this option enabled, COOL constructs and solves the satisfiability games step by step and finishes as soon as one of the players has a winning strategy in the partial game. For COOL, we have conducted all experiments with and without on-the-fly solving. For MLSolver, we also enabled the optimizations -opt litpro and -opt comp (and refer to the resulting prover configuration as MLSolverOpt). Tests have been run on a system with Intel Core i7 3.60 GHz CPU with 16 GB RAM. A more detailed description of the results of the experiments as well as binaries of a formula generator, the prover COOL and scripts that benchmark the various configurations of the provers are available in a figshare repository at [12].

We observe that COOL without on-the-fly solving generally finishes faster than both MLSolver and MLSolverOpt throughout all tested series of formulas (see Figs. 14); the reason for this appears to be that the permutation games solved by COOL are of size \(\mathcal {O}((nk)!)\), where \(n\le k\), and hence asymptotically smaller than the Safra/Piterman games solved by MLSolver which are of size \(\mathcal {O}(((nk)!)^2)\). The size of the refutations for the formulas \(\theta _1(n)\) and \(\theta _2(n)\) is exponential in n so that on-the-fly solving does in fact increase the runtimes of COOL (see Figs. 1 and 2); basically, these formulas cannot be decided early, and therefore any (necessarily unsuccessful) attempt to do so just consumes additional computation time. The formulas \(\mathsf {early}\text {-}\mathsf {ac}(n,4,2)\) and \(\mathsf {early}\text {-}\mathsf {ac}_\mathsf {gc}(n,4,2)\), on the other hand, have refutations of size polynomial in n, and COOL appears to benefit from on-the-fly solving for these formulas as it is able to decide them early (see Figs. 3 and 4). As mentioned above, COOL uses our own unoptimized implementation of the fixpoint iteration algorithm [1] for on-the-fly solving; while this implementation is slower than PGSolver’s stratimprloc2 algorithm, the on-the-fly abilities of COOL seem to compensate this disadvantage for the \(\mathsf {early}\text {-}\mathsf {ac}(n,4,2)\) and \(\mathsf {early}\text {-}\mathsf {ac}_\mathsf {gc}(n,4,2)\) formulas from \(n=11\) and \(n=8\) on, respectively.

5 Conclusion

We have presented a method to obtain satisfiability games for the weakly aconjunctive \(\mu \)-calculus. The game construction uses determinization of limit-deterministic parity automata, avoiding the full complexity of the Safra/Piterman construction a) in the presentation of the procedure and its correctness proof and b) in the size of the obtained DPA (which comes from \(\mathcal {O}((nk)!^2)\) to \(\mathcal {O}((nk)!)\)). The resulting permutation satisfiability games for the weakly aconjunctive \(\mu \)-calculus are of size \(\mathcal {O}((nk)!)\), have \(\mathcal {O}(nk)\) priorities, and yield a new bound of \(\mathcal {O}((nk)!)\) on the model size for this fragment. We have implemented this decision procedure in coalgebraic generality and with support for on-the-fly solving as part of the coalgebraic satisfiability solver COOL; initial experiments show favourable results.

The datasets generated and analyzed during the current study are available in the figshare repository: https://doi.org/10.6084/m9.figshare.5919451.v1.