Modal μ-calculus

From testwiki
Jump to navigation Jump to search

Template:Short description In theoretical computer science, the modal μ-calculus (Lμ, Lμ, or propositional mu-calculus[1], sometimes just μ-calculus, although this can have a more general meaningTemplate:Which) 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,[2] and was further developed by Dexter Kozen[3] 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.[4]

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.[5] The game semantics of μ-calculus is related to two-player games with perfect information, particularly infinite parity games.[6]

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 ϕ and ψ are formulas, then ϕ∧ψ is a formula;
  • if ϕ is a formula, then ¬ϕ is a formula;
  • if ϕ is a formula and a is an action, then [a]ϕ is a formula; (pronounced either: a box ϕ or after a necessarily ϕ)
  • if ϕ is a formula and Z a variable, then νZ.ϕ is a formula, provided that every free occurrence of Z in ϕ occurs positively, i.e. within the scope of an even number of negations.

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

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

  • ϕ∨ψ meaning ¬(¬ϕ∧¬ψ)
  • ⟨a⟩ϕ (pronounced either: a diamond ϕ or after a possibly ϕ) meaning ¬[a]¬ϕ
  • μZ.ϕ means ¬νZ.¬ϕ[Z:=¬Z], where ϕ[Z:=¬Z] means substituting ¬Z for Z in all free occurrences of Z in ϕ.

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

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

Denotational semantics

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

  • S is a set of states;
  • R maps to each label a a binary relation on S;
  • V:P→2S, maps each proposition p∈P to the set of states where the proposition is true.

Given a labelled transition system (S,R,V) and an interpretation i of the variables Z of the μ-calculus, [[⋅]]i:ϕ→2S, is the function defined by the following rules:

  • [[p]]i=V(p);
  • [[Z]]i=i(Z);
  • [[ϕ∧ψ]]i=[[ϕ]]i∩[[ψ]]i;
  • [[¬ϕ]]i=S∖[[ϕ]]i;
  • [[[a]ϕ]]i={s∈S∣∀t∈S,(s,t)∈Ra→t∈[[ϕ]]i};
  • [[νZ.ϕ]]i=⋃{T⊆S∣T⊆[[ϕ]]i[Z:=T]}, where i[Z:=T] maps Z to T while preserving the mappings of i everywhere else.

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

  • [[ϕ∨ψ]]i=[[ϕ]]i∪[[ψ]]i;
  • [[⟨a⟩ϕ]]i={s∈S∣∃t∈S,(s,t)∈Ra∧t∈[[ϕ]]i};
  • [[μZ.ϕ]]i=⋂{T⊆S∣[[ϕ]]i[Z:=T]⊆T}

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

  • p holds in the set of states V(p);
  • ϕ∧ψ holds in every state where ϕ and ψ both hold;
  • ¬ϕ holds in every state where ϕ does not hold.
  • [a]ϕ holds in a state s if every a-transition leading out of s leads to a state where ϕ holds.
  • ⟨a⟩ϕ holds in a state s if there exists a-transition leading out of s that leads to a state where ϕ holds.
  • νZ.ϕ holds in any state in any set T such that, when the variable Z is set to T, then ϕ holds for all of T. (From the Knaster–Tarski theorem it follows that [[νZ.ϕ]]i is the greatest fixed point of T↦[[ϕ]]i[Z:=T], and [[μZ.ϕ]]i its least fixed point.)

The interpretations of [a]ϕ and ⟨a⟩ϕ are in fact the "classical" ones from dynamic logic. Additionally, the operator μ can be interpreted as liveness ("something good eventually happens") and ν as safety ("nothing bad ever happens") in Leslie Lamport's informal classification.[8]

Examples

  • νZ.ϕ∧[a]Z is interpreted as "ϕ is true along every a-path".[8] The idea is that "ϕ is true along every a-path" can be defined axiomatically as that (weakest) sentence Z which implies ϕ and which remains true after processing any a-label. [9]
  • μZ.ϕ∨⟨a⟩Z is interpreted as the existence of a path along a-transitions to a state where ϕ holds.[10]
  • The property of a state being deadlock-free, meaning no path from that state reaches a dead end, is expressed by the formula[10] νZ.(⋁a∈A⟨a⟩⊤∧⋀a∈A[a]Z)

Decision problems

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

Actually, the complexity of the satisfiability problem of graded modal μ-calculus is also EXPTIME-complete, even if the number in the modalities are written in binary (graded modal μ-calculus is an extension of standard modal μ-calculus with modalities "there are at least k successors such that...).[14]

Comparison to other logics

Recall that modal logic can be translated in first-order logic (FO) via the standard translation denoted by ST and indexed by a first-order variable x denoting the current state:

STx(p):=p(x)STx(¬ϕ):=¬STx(ϕ)STx(ϕ∧ψ):=STx(ϕ)∧STy(ψ)STx([a]ϕ):=∀y,xRay→STy(ϕ)

Recall that monadic second order logic (MSO) extends first-order logic (FO) with second order quantifications over subsets. The standard translation extends to mu-calculus that can be translated in monadic second order logic by adding the following translation rules for the fix-point operators[15]:

STx(μX.ϕ):=∀X,(∀y,STy(ϕ)→y∈X)→x∈X)STx(νX.ϕ):=∃X,(∀y,y∈X→STy(ϕ))∧x∈X)

Janin and Walukiewicz proved in 1996 that any formula of monadic second order that is invariant by bisimilation is equivalent to some mu-calculus formula[1].

See also

Notes

  1. ↑ 1.0 1.1 Template:Cite journal
  2. ↑ Template:Cite journal
  3. ↑ Template:Cite conference
  4. ↑ Clarke p.108, Theorem 6; Emerson p. 196
  5. ↑ Arnold and Niwiński, pp. viii-x and chapter 6
  6. ↑ Arnold and Niwiński, pp. viii-x and chapter 4
  7. ↑ Arnold and Niwiński, p. 14
  8. ↑ 8.0 8.1 Bradfield and Stirling, p. 731
  9. ↑ Bradfield and Stirling, p. 6
  10. ↑ 10.0 10.1 Template:Cite book
  11. ↑ Template:Cite book
  12. ↑ Template:Cite journal
  13. ↑ Template:Cite book
  14. ↑ Template:Cite journal
  15. ↑ Kazuyuki Tanaka. Logic and Computation II. Part 5. Modal μ-calculus. https://hep.tsinghua.edu.cn/~liwj/SP2025-0501.pdf

References