Title: Complexity of the Universal and Existential Fragments of the mcalculus
1Complexity of the Universal and
ExistentialFragments of the m-calculus
Thomas A. Henzinger, Orna Kupferman, and Rupak
Majumdar UC Berkeley
2The m-calculus
- Modal logic, with least and greatest fixpoints
- Syntax
- f p p y f1 Ç f2 f1 Æ f2
- EX f AX f m y. f n y. f
-
3The m-calculus Semantics
- Kripke Structures
- Set of propositions P
- Set of states W
- Total transition relation R µ W W
- Initial state w0
- Labeling L W ! 2P
-
4The m-calculus Semantics
- Given a Kripke Structure K ltP, W, R, w0, Lgt,
and a function V Vars ! 2W, formula f defines a
subset fV of W - pV w2 W p 2 L(w) pV w2 W
p Ï L(w) - f1 Ç f2V f1V f2V f1 Æ
f2V f1V Å f2V - yV V(y)
- EX fV w2 W 9 w. R(w,w) and w2 fV
- AX fV w2 W 8 w. R(w,w) then w2 fV
- m y.fV Å Wµ W fVy W µ W
- n y.fV Wµ W W µ fVy W
Write K, w0 ² f if w0 2 fV
5Why Study the m-calculus?
- Very expressive can translate most logics of
programs to it - Temporal Logics CTL, LTL, CTL,
- Program Logics PDL, YAPL,
- Assembly language for symbolic model checking
- The fixpoint expressions suggest natural symbolic
evaluation algorithms -
6Assembly Language
7Questions about the m calculus
- Satisfiability
- Validity
- Model checking
- Implication
Given f, is there a Kripke structure K such that
K,w0 ² f?
EXPTIME
Given f, is K,w0 ² f for all Kripke structures K?
EXPTIME
Given f and Kripke structure K, is K,w0 ² f?
NPÅ coNP
Given f1 and f2, is f1 ! f2 valid?
EXPTIME
8Sources of Complexity
- Two apparent sources
- Switches between least and greatest fixpoint
operators - Switches between universal (AX) and existential
(EX) branching modes - Alternation free m calculus (AFMC)
- Switches between least and greatest fixpoint
operators ruled out - Example
- m x. p Ç (n y. q Æ EX y) Æ EX x is
alternation free, - But m y. n x. EX y Ç p Æ EX x is not
-
9Known Complexities
10How about the other source?
- Define fragments AMC and EMC, where only one
branching mode is allowed - AMC f p p y f1 Ç f2 f1 Æ f2
- AX f m y. f n y. f
- EMC f p p y f1 Ç f2 f1 Æ f2
- EX f m y. f n y. f
- AMC rich enough to express most specifications of
interest - Subsumes (universal) LTL, ACTL, ACTL
11Sources of Complexity
- m calculus can express alternating reachability
(by unbounded switching of EX and AX) - m x. p Ç EX AX x
- Alternating reachability is PTIME-complete, but
(existential) reachability is NLOGSPACE - By removing the ability to explicitly specify
alternations, we hope to get simpler algorithms
12Fragments of Temporal Logics
13Fragments of Temporal Logics
14Fragments of Temporal Logics
15We Study
16Satisfiability AMC
- Theorem Satisfiability for AMC and A-AFMC are
PSPACE-complete. - Given an AMC formula f, consider the Linear m
calculus formula f obtained by removing all path
quantifiers. - Then f is satisfiable iff f is satisfiable
- Now use satisfiability for linear m calculus and
its alternation free fragment are PSPACE-complete
Vardi88 -
17Satisfiability EMC
- Theorem Satisfiability for EMC and E-AFMC are
NP-complete. - Technique Show a linear size model property for
EMC - If f 2 EMC is satisfiable, it is satisfiable in a
model of size O(f) - Recall Full m calculus only has an exponential
size model property - ECTL has a linear size model property, but ECTL
does not
18Linear Size Model Property
19Complexity Results
20Satisfiability EMC
- Theorem Satisfiability for EMC and E-AFMC are
NP-complete. - Technique Show a linear size model property for
EMC - If f 2 EMC is satisfiable, it is satisfiable in a
model of size O(f) - Recall Full m calculus only has an exponential
size model property
21Model Checking
22Complexity Results
23Implication
24Implication
- Labeling was the key trick to reduce model
checking and implication - Easy for model checking
- Not so easy for implication
- ACTL and ECTL formulas cannot specify a legal
labeling, hence implication problems are strictly
easier than the full logic
25Complexity Results
26Equivalence
- Given f1 and f2, is f1 f2 ?
- EXPTIME upper bound from the full \mu calculus
- PSPACE hardness from satisfiability or validity
- There is a gap!!
- Equivalence is not harder than implication, and
not easier than satisfiability and validity - In other formalisms (CTL, CTL, word automata)
there is no gap in these complexities