Misplaced Pages

Modal μ-calculus

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Extension of propositional modal logic

In theoretical computer science, the modal μ-calculus (, Lμ, sometimes just μ-calculus, although this can have a more general meaning) is an extension of propositional modal logic (with many modalities) by adding the least fixed point operator μ and the greatest fixed point operator ν, thus a fixed-point logic.

The (propositional, modal) μ-calculus originates with Dana Scott and Jaco de Bakker, and was further developed by Dexter Kozen into the version most used nowadays. It is used to describe properties of labelled transition systems and for verifying these properties. Many temporal logics can be encoded in the μ-calculus, including CTL* and its widely used fragments—linear temporal logic and computational tree logic.

An algebraic view is to see it as an algebra of monotonic functions over a complete lattice, with operators consisting of functional composition plus the least and greatest fixed point operators; from this viewpoint, the modal μ-calculus is over the lattice of a power set algebra. The game semantics of μ-calculus is related to two-player games with perfect information, particularly infinite parity games.

Syntax

Let P (propositions) and A (actions) be two finite sets of symbols, and let Var be a countably infinite set of variables. The set of formulas of (propositional, modal) μ-calculus is defined as follows:

  • each proposition and each variable is a formula;
  • if ϕ {\displaystyle \phi } and ψ {\displaystyle \psi } are formulas, then ϕ ψ {\displaystyle \phi \wedge \psi } is a formula;
  • if ϕ {\displaystyle \phi } is a formula, then ¬ ϕ {\displaystyle \neg \phi } is a formula;
  • if ϕ {\displaystyle \phi } is a formula and a {\displaystyle a} is an action, then [ a ] ϕ {\displaystyle \phi } is a formula; (pronounced either: a {\displaystyle a} box ϕ {\displaystyle \phi } or after a {\displaystyle a} necessarily ϕ {\displaystyle \phi } )
  • if ϕ {\displaystyle \phi } is a formula and Z {\displaystyle Z} a variable, then ν Z . ϕ {\displaystyle \nu Z.\phi } is a formula, provided that every free occurrence of Z {\displaystyle Z} in ϕ {\displaystyle \phi } occurs positively, i.e. within the scope of an even number of negations.

(The notions of free and bound variables are as usual, where ν {\displaystyle \nu } is the only binding operator.)

Given the above definitions, we can enrich the syntax with:

  • ϕ ψ {\displaystyle \phi \lor \psi } meaning ¬ ( ¬ ϕ ¬ ψ ) {\displaystyle \neg (\neg \phi \land \neg \psi )}
  • a ϕ {\displaystyle \langle a\rangle \phi } (pronounced either: a {\displaystyle a} diamond ϕ {\displaystyle \phi } or after a {\displaystyle a} possibly ϕ {\displaystyle \phi } ) meaning ¬ [ a ] ¬ ϕ {\displaystyle \neg \neg \phi }
  • μ Z . ϕ {\displaystyle \mu Z.\phi } means ¬ ν Z . ¬ ϕ [ Z := ¬ Z ] {\displaystyle \neg \nu Z.\neg \phi } , where ϕ [ Z := ¬ Z ] {\displaystyle \phi } means substituting ¬ Z {\displaystyle \neg Z} for Z {\displaystyle Z} in all free occurrences of Z {\displaystyle Z} in ϕ {\displaystyle \phi } .

The first two formulas are the familiar ones from the classical propositional calculus and respectively the minimal multimodal logic K.

The notation μ Z . ϕ {\displaystyle \mu Z.\phi } (and its dual) are inspired from the lambda calculus; the intent is to denote the least (and respectively greatest) fixed point of the expression ϕ {\displaystyle \phi } where the "minimization" (and respectively "maximization") are in the variable Z {\displaystyle Z} , much like in lambda calculus λ Z . ϕ {\displaystyle \lambda Z.\phi } is a function with formula ϕ {\displaystyle \phi } in bound variable Z {\displaystyle Z} ; see the denotational semantics below for details.

Denotational semantics

Models of (propositional) μ-calculus are given as labelled transition systems ( S , R , V ) {\displaystyle (S,R,V)} where:

  • S {\displaystyle S} is a set of states;
  • R {\displaystyle R} maps to each label a {\displaystyle a} a binary relation on S {\displaystyle S} ;
  • V : P 2 S {\displaystyle V:P\to 2^{S}} , maps each proposition p P {\displaystyle p\in P} to the set of states where the proposition is true.

Given a labelled transition system ( S , R , V ) {\displaystyle (S,R,V)} and an interpretation i {\displaystyle i} of the variables Z {\displaystyle Z} of the μ {\displaystyle \mu } -calculus, [ [ ] ] i : ϕ 2 S {\displaystyle \!]_{i}:\phi \to 2^{S}} , is the function defined by the following rules:

  • [ [ p ] ] i = V ( p ) {\displaystyle \!]_{i}=V(p)} ;
  • [ [ Z ] ] i = i ( Z ) {\displaystyle \!]_{i}=i(Z)} ;
  • [ [ ϕ ψ ] ] i = [ [ ϕ ] ] i [ [ ψ ] ] i {\displaystyle \!]_{i}=\!]_{i}\cap \!]_{i}} ;
  • [ [ ¬ ϕ ] ] i = S [ [ ϕ ] ] i {\displaystyle \!]_{i}=S\smallsetminus \!]_{i}} ;
  • [ [ [ a ] ϕ ] ] i = { s S t S , ( s , t ) R a t [ [ ϕ ] ] i } {\displaystyle \phi ]\!]_{i}=\{s\in S\mid \forall t\in S,(s,t)\in R_{a}\rightarrow t\in \!]_{i}\}} ;
  • [ [ ν Z . ϕ ] ] i = { T S T [ [ ϕ ] ] i [ Z := T ] } {\displaystyle \!]_{i}=\bigcup \{T\subseteq S\mid T\subseteq \!]_{i}\}} , where i [ Z := T ] {\displaystyle i} maps Z {\displaystyle Z} to T {\displaystyle T} while preserving the mappings of i {\displaystyle i} everywhere else.

By duality, the interpretation of the other basic formulas is:

  • [ [ ϕ ψ ] ] i = [ [ ϕ ] ] i [ [ ψ ] ] i {\displaystyle \!]_{i}=\!]_{i}\cup \!]_{i}} ;
  • [ [ a ϕ ] ] i = { s S t S , ( s , t ) R a t [ [ ϕ ] ] i } {\displaystyle \!]_{i}=\{s\in S\mid \exists t\in S,(s,t)\in R_{a}\wedge t\in \!]_{i}\}} ;
  • [ [ μ Z . ϕ ] ] i = { T S [ [ ϕ ] ] i [ Z := T ] T } {\displaystyle \!]_{i}=\bigcap \{T\subseteq S\mid \!]_{i}\subseteq T\}}

Less formally, this means that, for a given transition system ( S , R , V ) {\displaystyle (S,R,V)} :

  • p {\displaystyle p} holds in the set of states V ( p ) {\displaystyle V(p)} ;
  • ϕ ψ {\displaystyle \phi \wedge \psi } holds in every state where ϕ {\displaystyle \phi } and ψ {\displaystyle \psi } both hold;
  • ¬ ϕ {\displaystyle \neg \phi } holds in every state where ϕ {\displaystyle \phi } does not hold.
  • [ a ] ϕ {\displaystyle \phi } holds in a state s {\displaystyle s} if every a {\displaystyle a} -transition leading out of s {\displaystyle s} leads to a state where ϕ {\displaystyle \phi } holds.
  • a ϕ {\displaystyle \langle a\rangle \phi } holds in a state s {\displaystyle s} if there exists a {\displaystyle a} -transition leading out of s {\displaystyle s} that leads to a state where ϕ {\displaystyle \phi } holds.
  • ν Z . ϕ {\displaystyle \nu Z.\phi } holds in any state in any set T {\displaystyle T} such that, when the variable Z {\displaystyle Z} is set to T {\displaystyle T} , then ϕ {\displaystyle \phi } holds for all of T {\displaystyle T} . (From the Knaster–Tarski theorem it follows that [ [ ν Z . ϕ ] ] i {\displaystyle \!]_{i}} is the greatest fixed point of T [ [ ϕ ] ] i [ Z := T ] {\displaystyle T\mapsto \!]_{i}} , and [ [ μ Z . ϕ ] ] i {\displaystyle \!]_{i}} its least fixed point.)

The interpretations of [ a ] ϕ {\displaystyle \phi } and a ϕ {\displaystyle \langle a\rangle \phi } are in fact the "classical" ones from dynamic logic. Additionally, the operator μ {\displaystyle \mu } can be interpreted as liveness ("something good eventually happens") and ν {\displaystyle \nu } as safety ("nothing bad ever happens") in Leslie Lamport's informal classification.

Examples

  • ν Z . ϕ [ a ] Z {\displaystyle \nu Z.\phi \wedge Z} is interpreted as " ϕ {\displaystyle \phi } is true along every a-path". The idea is that " ϕ {\displaystyle \phi } is true along every a-path" can be defined axiomatically as that (weakest) sentence Z {\displaystyle Z} which implies ϕ {\displaystyle \phi } and which remains true after processing any a-label.
  • μ Z . ϕ a Z {\displaystyle \mu Z.\phi \vee \langle a\rangle Z} is interpreted as the existence of a path along a-transitions to a state where ϕ {\displaystyle \phi } holds.
  • The property of a state being deadlock-free, meaning no path from that state reaches a dead end, is expressed by the formula ν Z . ( a A a a A [ a ] Z ) {\displaystyle \nu Z.\left(\bigvee _{a\in A}\langle a\rangle \top \wedge \bigwedge _{a\in A}Z\right)}

Decision problems

Satisfiability of a modal μ-calculus formula is EXPTIME-complete. Like for linear temporal logic, the model checking, satisfiability and validity problems of linear modal μ-calculus are PSPACE-complete.

See also

Notes

  1. Scott, Dana; Bakker, Jacobus (1969). "A theory of programs". Unpublished Manuscript.
  2. Kozen, Dexter (1982). "Results on the propositional μ-calculus". Automata, Languages and Programming. ICALP. Vol. 140. pp. 348–359. doi:10.1007/BFb0012782. ISBN 978-3-540-11576-2.
  3. Clarke p.108, Theorem 6; Emerson p. 196
  4. Arnold and Niwiński, pp. viii-x and chapter 6
  5. Arnold and Niwiński, pp. viii-x and chapter 4
  6. Arnold and Niwiński, p. 14
  7. ^ Bradfield and Stirling, p. 731
  8. Bradfield and Stirling, p. 6
  9. ^ Erich Grädel; Phokion G. Kolaitis; Leonid Libkin; Maarten Marx; Joel Spencer; Moshe Y. Vardi; Yde Venema; Scott Weinstein (2007). Finite Model Theory and Its Applications. Springer. p. 159. ISBN 978-3-540-00428-8.
  10. Klaus Schneider (2004). Verification of reactive systems: formal methods and algorithms. Springer. p. 521. ISBN 978-3-540-00296-3.
  11. Sistla, A. P.; Clarke, E. M. (1985-07-01). "The Complexity of Propositional Linear Temporal Logics". J. ACM. 32 (3): 733–749. doi:10.1145/3828.3837. ISSN 0004-5411.
  12. Vardi, M. Y. (1988-01-01). "A temporal fixpoint calculus". Proceedings of the 15th ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL '88. New York, NY, USA: ACM. pp. 250–259. doi:10.1145/73560.73582. ISBN 0897912527.

References

  • Clarke, Edmund M. Jr.; Orna Grumberg; Doron A. Peled (1999). Model Checking. Cambridge, Massachusetts, USA: MIT press. ISBN 0-262-03270-8., chapter 7, Model checking for the μ-calculus, pp. 97–108
  • Stirling, Colin. (2001). Modal and Temporal Properties of Processes. New York, Berlin, Heidelberg: Springer Verlag. ISBN 0-387-98717-7., chapter 5, Modal μ-calculus, pp. 103–128
  • André Arnold; Damian Niwiński (2001). Rudiments of μ-Calculus. Elsevier. ISBN 978-0-444-50620-7., chapter 6, The μ-calculus over powerset algebras, pp. 141–153 is about the modal μ-calculus
  • Yde Venema (2008) Lectures on the Modal μ-calculus; was presented at The 18th European Summer School in Logic, Language and Information
  • Bradfield, Julian & Stirling, Colin (2006). "Modal mu-calculi". In P. Blackburn; J. van Benthem & F. Wolter (eds.). The Handbook of Modal Logic. Elsevier. pp. 721–756.
  • Emerson, E. Allen (1996). "Model Checking and the Mu-calculus". Descriptive Complexity and Finite Models. American Mathematical Society. pp. 185–214. ISBN 0-8218-0517-7.
  • Kozen, Dexter (1983). "Results on the Propositional μ-Calculus". Theoretical Computer Science. 27 (3): 333–354. doi:10.1016/0304-3975(82)90125-6.

External links

Categories: