Complexity and Expressivity of Branching- and Alternating-Time - - PowerPoint PPT Presentation

complexity and expressivity of branching and alternating
SMART_READER_LITE
LIVE PREVIEW

Complexity and Expressivity of Branching- and Alternating-Time - - PowerPoint PPT Presentation

Complexity and Expressivity of Branching- and Alternating-Time Temporal Logics with Finitely Many Variables Mikhail Rybakov and Dmitry Shkatov ICTAC 2018 Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables


slide-1
SLIDE 1

Complexity and Expressivity of Branching- and Alternating-Time Temporal Logics with Finitely Many Variables

Mikhail Rybakov and Dmitry Shkatov ICTAC 2018

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-2
SLIDE 2

Motivation

Temporal logics–such as CLT (Computational Tree Logic), CTL∗, ALT (Alternating-Time Temporal Logic), and ATL∗–are used in formal specification and verification of software and hardware. In verification, they are used to verify that an implemented system is correct when other verification methods are not guaranteed to succeed (i.e., verification of parallel programs such as operating systems). In specification, they are used to make sure that a specification is satisfiable and thus a system conforming to a specification can be built. In this talk, we will be looking at the use of these logics in formal specification.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-3
SLIDE 3

Motivation

Temporal logics–such as CLT (Computational Tree Logic), CTL∗, ALT (Alternating-Time Temporal Logic), and ATL∗–are used in formal specification and verification of software and hardware. In verification, they are used to verify that an implemented system is correct when other verification methods are not guaranteed to succeed (i.e., verification of parallel programs such as operating systems). In specification, they are used to make sure that a specification is satisfiable and thus a system conforming to a specification can be built. In this talk, we will be looking at the use of these logics in formal specification.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-4
SLIDE 4

Motivation

Temporal logics–such as CLT (Computational Tree Logic), CTL∗, ALT (Alternating-Time Temporal Logic), and ATL∗–are used in formal specification and verification of software and hardware. In verification, they are used to verify that an implemented system is correct when other verification methods are not guaranteed to succeed (i.e., verification of parallel programs such as operating systems). In specification, they are used to make sure that a specification is satisfiable and thus a system conforming to a specification can be built. In this talk, we will be looking at the use of these logics in formal specification.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-5
SLIDE 5

Motivation

Temporal logics–such as CLT (Computational Tree Logic), CTL∗, ALT (Alternating-Time Temporal Logic), and ATL∗–are used in formal specification and verification of software and hardware. In verification, they are used to verify that an implemented system is correct when other verification methods are not guaranteed to succeed (i.e., verification of parallel programs such as operating systems). In specification, they are used to make sure that a specification is satisfiable and thus a system conforming to a specification can be built. In this talk, we will be looking at the use of these logics in formal specification.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-6
SLIDE 6

Motivation, continued

When using temporal logics in specification, we

1 construct a formula, say ϕ, expressing a specification; 2 test that there exists a structure M modelling a system of the

type we are interested in (for programs, this is the graph that models execution paths of the program) such that ϕ is true in M. If we have succeeded, then the specification expressed by ϕ is

  • satisfiable. Moreover, we can use M in building an implemented

system.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-7
SLIDE 7

Motivation, continued

The problem with this vision is that testing a temporal formula for satisfiability is hard. Namely, for CTL and ATL, it is EXPTIME-complete. for CTL∗ and ATL∗, it is 2EXPTIME-complete. Therefore, it is interesting to see if the languages of these logics can be restricted so that we obtain an expressive fragment with a more tractable satisfiability problem. In particular, it has been noticed that most specifications used in practice contain a very small number of primitive propositions (usually, no more than three).

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-8
SLIDE 8

Motivation, continued

The problem with this vision is that testing a temporal formula for satisfiability is hard. Namely, for CTL and ATL, it is EXPTIME-complete. for CTL∗ and ATL∗, it is 2EXPTIME-complete. Therefore, it is interesting to see if the languages of these logics can be restricted so that we obtain an expressive fragment with a more tractable satisfiability problem. In particular, it has been noticed that most specifications used in practice contain a very small number of primitive propositions (usually, no more than three).

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-9
SLIDE 9

Motivation, continued

The problem with this vision is that testing a temporal formula for satisfiability is hard. Namely, for CTL and ATL, it is EXPTIME-complete. for CTL∗ and ATL∗, it is 2EXPTIME-complete. Therefore, it is interesting to see if the languages of these logics can be restricted so that we obtain an expressive fragment with a more tractable satisfiability problem. In particular, it has been noticed that most specifications used in practice contain a very small number of primitive propositions (usually, no more than three).

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-10
SLIDE 10

The main question

For any of CLT, CTL∗, ALT, or ATL∗, can we obtain a fragment with a tractable (or, at least, less hard) satisfiability problem by restricting the number of primitive propositions allowed in the construction of formulas? For some logics (i.e., the extensions of K5), placing a restriction

  • n the number of primitive propositions produces tractable

fragments, see [Nagle, Thomason 1975]. For others, a restriction to one or even zero primitive propositions produces fragments as hard as the entire logic, see [Blackburn and Spaan 1993, Halpern 1995, Chagrov and Rybakov 2003].

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-11
SLIDE 11

The main question

For any of CLT, CTL∗, ALT, or ATL∗, can we obtain a fragment with a tractable (or, at least, less hard) satisfiability problem by restricting the number of primitive propositions allowed in the construction of formulas? For some logics (i.e., the extensions of K5), placing a restriction

  • n the number of primitive propositions produces tractable

fragments, see [Nagle, Thomason 1975]. For others, a restriction to one or even zero primitive propositions produces fragments as hard as the entire logic, see [Blackburn and Spaan 1993, Halpern 1995, Chagrov and Rybakov 2003].

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-12
SLIDE 12

The main question

For any of CLT, CTL∗, ALT, or ATL∗, can we obtain a fragment with a tractable (or, at least, less hard) satisfiability problem by restricting the number of primitive propositions allowed in the construction of formulas? For some logics (i.e., the extensions of K5), placing a restriction

  • n the number of primitive propositions produces tractable

fragments, see [Nagle, Thomason 1975]. For others, a restriction to one or even zero primitive propositions produces fragments as hard as the entire logic, see [Blackburn and Spaan 1993, Halpern 1995, Chagrov and Rybakov 2003].

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-13
SLIDE 13

The main question, continued

Our paper shows that the answer is NO for CLT, CTL∗, ALT, and ATL∗. Namely, we show that restricting the languages of these logics to

  • ne primitive proposition produces fragments as expressive as the

entire logics; therefore, the satisfiability problem for those fragments is as hard as for the entire logics. While doing so, we present a technique that can be used in other contexts, as well (for example, Propositional Dynamic Logics). For clarity, in the talk, we only present the details for CTL. The idea for the other logics is similar, and the details can be found in the paper.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-14
SLIDE 14

The main question, continued

Our paper shows that the answer is NO for CLT, CTL∗, ALT, and ATL∗. Namely, we show that restricting the languages of these logics to

  • ne primitive proposition produces fragments as expressive as the

entire logics; therefore, the satisfiability problem for those fragments is as hard as for the entire logics. While doing so, we present a technique that can be used in other contexts, as well (for example, Propositional Dynamic Logics). For clarity, in the talk, we only present the details for CTL. The idea for the other logics is similar, and the details can be found in the paper.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-15
SLIDE 15

The main question, continued

Our paper shows that the answer is NO for CLT, CTL∗, ALT, and ATL∗. Namely, we show that restricting the languages of these logics to

  • ne primitive proposition produces fragments as expressive as the

entire logics; therefore, the satisfiability problem for those fragments is as hard as for the entire logics. While doing so, we present a technique that can be used in other contexts, as well (for example, Propositional Dynamic Logics). For clarity, in the talk, we only present the details for CTL. The idea for the other logics is similar, and the details can be found in the paper.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-16
SLIDE 16

Formulas of CTL

Formulas are defined by the following BNF expression: ϕ ::= p | ⊥ | (ϕ → ϕ) | ∀ Xϕ | ∀ (ϕ Uϕ) | ∃ (ϕ Uϕ), where p is a propositional variable (primitive proposition). As usual, we use the following abbreviations: ¬ϕ := (ϕ → ⊥); (ϕ ∧ ψ) := ¬(ϕ → ¬ψ); (ϕ ∨ ψ) := (¬ϕ → ψ); ⊤ = ⊥ → ⊥; ∃ Xϕ := ¬∀ X¬ϕ; ∃✸ϕ := ∃(⊤ Uϕ); ∀✷ϕ := ¬∃✸¬ϕ.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-17
SLIDE 17

Formulas of CTL

Formulas are defined by the following BNF expression: ϕ ::= p | ⊥ | (ϕ → ϕ) | ∀ Xϕ | ∀ (ϕ Uϕ) | ∃ (ϕ Uϕ), where p is a propositional variable (primitive proposition). As usual, we use the following abbreviations: ¬ϕ := (ϕ → ⊥); (ϕ ∧ ψ) := ¬(ϕ → ¬ψ); (ϕ ∨ ψ) := (¬ϕ → ψ); ⊤ = ⊥ → ⊥; ∃ Xϕ := ¬∀ X¬ϕ; ∃✸ϕ := ∃(⊤ Uϕ); ∀✷ϕ := ¬∃✸¬ϕ.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-18
SLIDE 18

Semantics of CTL

Kripke model M = (S, − →, V ), where S is a non-empty set (of states), − → is a binary (transition) relation on S that is serial (i.e., for every s ∈ S, there exists s′ ∈ S such that s − → s′), and V is a (valuation) function V : Var → 2S. An infinite sequence s0, s1, . . . of states in M such that si − → si+1, for every i 0, is called a path.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-19
SLIDE 19

Satisfaction relation

M, s | = pi ⇌ s ∈ V (pi); M, s | = ⊥ never holds; M, s | = ϕ1 → ϕ2 ⇌ M, s | = ϕ1 implies M, s | = ϕ2; M, s | = ∀ Xϕ1 ⇌ M, s′ | = ϕ1 whenever s − → s′. M, s | = ∀(ϕ1 Uϕ2) ⇌ for every path s0 − → s1 − → . . . with s0 = s, M, si | = ϕ2, for some i 0, and M, sj | = ϕ1, for every 0 j < i; M, s | = ∃(ϕ1 Uϕ2) ⇌ there exists a path s0 − → s1 − → . . . with s0 = s, such that M, si | = ϕ2, for some i 0, and M, sj | = ϕ1, for every 0 j < i.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-20
SLIDE 20

Satisfiability problem

A formula ϕ is satisfiable if there exists a model M and a state s such that M, s | = ϕ. Satisfiability problem Given a formula ϕ, determine whether ϕ is satisfiable. Fact Satisfiability problem for CTL is EXPTIME-complete.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-21
SLIDE 21

Finite-variable fragments

In the rest of the talk, we show that CTL can be polynomial-time embedded in into its one-variable fragment. That is, given a formula ϕ, we construct, in time polynomial in the size of ϕ, a formula ϕ∗ such that ϕ∗ is satisfiable if, and only if, ϕ is satisfiable. It then follows that satisfiability problem for the one-variable fragment of CTL is EXPTIME-complete.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-22
SLIDE 22

Construction of ϕ∗, step 1 – constructing ϕ

We assume that ϕ contains variables p1, . . . , pn. Define the translation ·′ as follows: pi ′ = pi where i ∈ {1, . . . , n}; (⊥)′ = ⊥; (φ → ψ)′ = φ′ → ψ′; (∀ Xφ)′ = ∀ X(pn+1 → φ′); (∀ (φ Uψ))′ = ∀ (φ′ U(pn+1 ∧ ψ′)); (∃ (φ Uψ))′ = ∃ (φ′ U(pn+1 ∧ ψ′)). Next, let Θ = pn+1 ∧ ∀✷(∃ Xpn+1 ↔ pn+1). and define

  • ϕ = Θ ∧ ϕ′.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-23
SLIDE 23

Construction of ϕ∗, step 1 – constructing ϕ, continued

Lemma If ϕ is satisfiable, then it is satisfied in a model where pn+1 is true at every state. Proof. Let M, s | = ϕ. Consider the submodel M′ of M consisting of the states where pn+1 is true. Then, M′, s | = ϕ. Lemma Formula ϕ is satisfiable if, and only if, formula ϕ is satisfiable. Proof. First, observe that ϕ is equivalent to ϕ[pn+1/⊤]. Then, (⇒) From closure of CTL under substitution. (⇐) From the previous lemma.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-24
SLIDE 24

Construction of ϕ∗, step 1 – constructing ϕ, continued

Lemma If ϕ is satisfiable, then it is satisfied in a model where pn+1 is true at every state. Proof. Let M, s | = ϕ. Consider the submodel M′ of M consisting of the states where pn+1 is true. Then, M′, s | = ϕ. Lemma Formula ϕ is satisfiable if, and only if, formula ϕ is satisfiable. Proof. First, observe that ϕ is equivalent to ϕ[pn+1/⊤]. Then, (⇒) From closure of CTL under substitution. (⇐) From the previous lemma.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-25
SLIDE 25

Construction of ϕ∗, step 2 – modelling of variables of ϕ

To obtain ϕ, we model all the variables of ϕ using single-variable formulas A1, . . . , An+1. To each formula Am, where m ∈ {1, . . . , n + 1}, there corresponds a model Mm.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-26
SLIDE 26

Construction of ϕ∗, step 2 – modelling of variables of ϕ

δ0 = ∀ ✷ p; δk+1 = p ∧ ∃ X(¬p ∧ ∃ Xδk). Am = δm ∧ ∃ X∀✷¬p.

  • rm |

= Am p ¬p p ¬p p ¬p am

1

am

2

am

3

am

2m

bm

✻ ✻ ✻ ❅ ❅ ❅ ❅ ■ ✻ ✻

. . . Model Mm

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-27
SLIDE 27

Construction of ϕ∗, step 2 – modelling of variables of ϕ

Bm = ∃ XAm. ϕ∗ = ϕ[pi/Bi]. Lemma Formula ϕ∗ is satisfiable if, and only if, formula ϕ is satisfiable. Proof. (⇒) From closure of CTL under substitution. (⇐) Transform the model satisfying ϕ by attaching to a state satisfying the variable pi the model Mi.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-28
SLIDE 28

Main results

Theorem There exists a polynomial-time computable function e assigning to every CTL-formula ϕ a single-variable formula e(ϕ) such that e(ϕ) is satisfiable if, and only if, ϕ is satisfiable. Theorem The satisfiability problem for the single-variable fragment of CTL is EXPTIME-complete. Proof. The lower bound follows from the previous theorem and EXPTIME-hardness of satisfiability for CTL. The upper bound follows from the EXPTIME upper bound for satisfiability for CTL.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-29
SLIDE 29

Main results

Theorem There exists a polynomial-time computable function e assigning to every CTL-formula ϕ a single-variable formula e(ϕ) such that e(ϕ) is satisfiable if, and only if, ϕ is satisfiable. Theorem The satisfiability problem for the single-variable fragment of CTL is EXPTIME-complete. Proof. The lower bound follows from the previous theorem and EXPTIME-hardness of satisfiability for CTL. The upper bound follows from the EXPTIME upper bound for satisfiability for CTL.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-30
SLIDE 30

Conclusion

The technique we have used for CTL can be applied to a wide variety of modal logics used in computer science: Other branching- and alternating-time temporal logics, see the paper Propositional Dynamic Logics, see [Rybakov, Shkatov 2018] Epistemic logics with the common knowledge operator Temporal-epistemic logics The technique is modular with respect to how it handles modalities, so it can be applied to logics combining various modalities.

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables

slide-31
SLIDE 31

The main open question

How do we restrict the languages of these logics to obtain fragments with the tractable satisfiability problem?

Mikhail Rybakov and Dmitry Shkatov Complexity of Logics with Finitely Many Variables