• No results found

A Note on Negative Tagging for Least Fixed-Point Formulae

N/A
N/A
Protected

Academic year: 2021

Share "A Note on Negative Tagging for Least Fixed-Point Formulae"

Copied!
13
0
0

Loading.... (view fulltext now)

Full text

(1)

A Note on Negative Tagging for Least

Fixed-Point Formulae

Dilian Gurov Bruce Kapron

y

Abstract

We consider proof systems with sequents of the form U ` for

proving validity of a propositional modal -calculus formula over a set U of states in a given model. Such proof systems usually handle

xed-point formulae through unfolding, thus allowing such formulae to reappear in a proof. Tagging is a technique originated by Winskel for annotating xed-point formulae with information about the proof states at which these are unfolded. This information is used later in the proof to avoid unnecessary unfolding, without having to investi-gate the history of the proof. Depending on whether tags are used for acceptance or for rejection of a branch in the proof tree, we refer to \positive" or \negative" tagging, respectively. In their simplest form, tags consist of the setsU at which xed-point formulae are unfolded.

In this paper, we generalise results of earlier work by Andersen, Stir-ling and Winskel which, in the case of least xed-point formulae, are applicable to singletonU sets only.

1 Introduction

The propositional modal -calculus is a particularly expressive logic for rea-soning about branching-time properties of communicating systems. Many Swedish Institute of Computer Science, E-mail: dilian@sics.se. This author's work was partially supported by a Swedish Foundation for Strategic Research Junior Individual Grant.

yDept. Computer Science, University of Victoria, E-mail: bmkapron@csc.uvic.ca 1

(2)

other logics, like dynamic logic and CTL, have uniform encodings in this logic Koz83, Dam94]. Over the last decade, many proof systems for check-ing validity of -calculus formulae over given states in a model have been proposed, e.g. in SW91, Bra92, And93, GBK96, Dam98] among others. The main di culty in devising such proof systems lies in the handling of xed-point formulae. These are usually unfolded during proof construction, thus allowing them to reappear in a proof. One therefore needs conditions for terminating the proof search process based on identifying certain \loops" in a proof. Important techniques for dealing with xed-point formulae are the subformula condition of Streett and Emerson SE89], the constants of Stirling and Walker SW91], the tags of Winskel Win91], and the ordinal variables of Dam et al DFG98]. The tagging approach is appealing in that it allows all reasoning to be performed using local rules only, and also in that it has a simple semantic justi cation.

Of the two kinds of xed-point formulae, the least xed-point ones are more di cult to handle in general, usually requiring some sort of Noethe-rian induction over some well-founded set Bra92, And93, GBK96]. When model checking nite-state systems, however, it is su cient to perform sim-ple unfolding. In this case, inductive reasoning can reduce the size of a proof signi cantly, but makes proof search far more complicated. Even if no in-duction is employed, it still makes sense to record the states at which a least xed-point formula has been unfolded, since this information can be used to reject a branch. For example, the proof system presented in ASW94] has a rule of the shape:

( ) s `  ZfsLg:=Z] s ` ZfLg:

s62L

which prevents least xed-point formulae from being unfolded more than once at the same state. Such a rule can be justi ed semantically by de ning tagsLto denote sets of states, and by de ning the denotation of tagged least xed-point formulae as follows:

k ZfLg:k V

 X :(kk VZ7!X]

;L)

Rule ( ) is sound and reversible due to the following equivalence, known as the Reduction Lemma (Kozen Koz83], Winskel Win91]):

(3)

s2 X :f(X)  s 2f( X :(f(X);fsg)) (1) which holds for any monotone mappingf :}(S)!}(S). We refer to tagging used in this way as negative tagging, since tags are in some sense negative assumptions: we assume that the states in the tag do not belong to the de-notation of the tagged least xed-point formula.

Unfortunately, equivalence (1) holds only for single states, and not for sets of states in general And93]. Rule ( ) would in general be unsound in a proof system with sequents of the shape U ` ZfLg: whereU is a set of states, and where validity of sequents is understood as set inclusion.

In this paper, we investigate for what semantics of tags and tagged for-mulae, and for what relationship 1 between a set of states U and a tag L, one could justify a rule of the shape

( 0)

U `   ZfULg:=Z] U ` ZfLg:

U 1L

The paper is organised as follows. First, we present the syntax and se-mantics of the propositional modal -calculus. In the following section we motivate a way of tagging least xed-point formulae, and propose a suitable semantics for tagged least xed-point formulae, giving rise to a sound and re-versible inference rule. Section 4 presents a proof system in which this proof rule ts naturally. Finally, some conclusions are drawn in the last section.

2 Propositional Modal -Calculus

This section presents briey the usual notions and notation for the modal -calculus used in the sequel.

2.1 Syntax

Formulae  of the logic are generated by the grammar:

 ::= Z j  ^  j  _  j a]j h aij Z : j Z : 3

(4)

where Z ranges over a set of propositional variables, and a ranges over a non-empty set L of labels.

2.2 Semantics

Modal -calculus formulae are usually interpreted as sets of states in transi-tion systems.

De nition 2.1 (Transition System)

A transition system is a pair T = (Sf

a

;! ja 2 Lg) where S is a non-empty set of states, L is a non-empty

set of labels, and for each a2L, a

;!S S.

De nition 2.2 (Model)

A model for a (possibly open) modal -calculus formula is a pair M = (TV), where T is a transition system, and V is a

valuation taking propositional variables to subsets of states of T.

The semantics of a modal -calculus formula  in a model M= (TV) is given by its denotation kk

T

V (we shall sometimes omit the superscript).

De nition 2.3 (Denotation)

Thedenotation kk T

V of a modal -calculus

formula  is dened inductively as follows:

kZk T V = V(Z) k 1 ^  2 k T V = k 1 k T V \ k 2 k T V k 1 _  2 k T V = k 1 k T V k 2 k T V ka]k T V = ka]k T kk T V kh aik T V = khaik T kk T V kZ :k T V = X :kk T VZ7!X] k Z :k T V = X :kk T VZ7!X]

where we refer to the praedicate transformers

ka]k T = X :fs 2Sj8s 0: s a ;!s 0 :s 0 2Xg khaik T = X :fs 2Sj9s 0: s a ;!s 0 :s 0 2Xg 4

(5)

This de nition uses the fact that the logic is in a positive form, and hence the praedicate transformers X :kk

T

VZ7!X] are monotone w.r.t. set inclu-sion and are guaranteed to have greatest and least xed points, denoted X :kk T VZ7!X] and X :kk T VZ7!X], respectively.

We shall also need the notion of Knaster-Tarski xed-point approximants of monotone mappings over }(S).

De nition 2.4 (Fixed-Point Approximants)

Let f : }(S) ! }(S) be

monotone, let O r d denote the class of all or dinal s, and let  and  range

over ordinals and limit ordinals, respectively. Fixed-point approximants are dened inductively as follows:

0 f =   0 f = S +1 f = f( f)  +1 f = f( f)  f = S < f   f = T <  f

3 Negative Tagging for Sets of States

Let us start by analysing why it is that the equivalence (1) fails for sets of states. If we adopt the notation XfUg:f(X) for X :(f(X);U), this equivalence could be rewritten as:

s2 X :f(X)  s2f( Xfsg:f(X)) Consider the following LTS:

s 3 a ;!s 2 a ;!s 1 a ;!s 0

and the formula Z :a]Z, the denotation of which is the least xed-point f of the state transformerf = X :ka]kX. We have Xfs

2 g:f(X) =fs 0 s 1 g and hencef( Xfs 2 g:f(X)) =f(fs 0 s 1 g) =fs 0 s 1 s 2 gincludess 2. In terms of xed-point approximants, Xfsg:f(X) contains



f for the greatest or-dinal  such that



f does not include s, since this is the rst point in the iterative construction of the xed-point where s comes into play

1. In this 1Or dually, + 1 is the least ordinal such that

 +1

f includess. 5

(6)

example equals two. Sincef is monotone,s2 f implies: s2 +1 f =f(  f)f( Xfsg:f(X))

and therefores2f( Xfsg:f(X)). This is exactly the point where we cannot extend this reasoning to an arbitrary set of states U: if  is the greatest ordinal2 for which 

f does not intersect U, then U  +1

f is guaranteed only when U is a singleton set. For example, for U = fs

1 s 2 g we have XfUg:f(X) = fs 0 g and hence f( XfUg:f(X)) = fs 0 s 1 g which includes s

1 but does not include s

2. On the other hand, the following observation can be made: a relationship of the shape

U  +1

f =f( 

f) f( XfUg:f(X)) would still hold if we rede ned:

  to be the greatest ordinal (if there is such) so that 

f does not contain (rather than \does not intersect")U. Then U 

+1.

 tags to be sets of states U denoting not themselves, but rather those elements of U only which are not in

 f. Then  f  XfUg:f(X) and therefore f(  f)f( XfUg:f(X)).

We now proceed to formalise the above intuitive ideas. LetS be a set (of states), and letf :}(S)!}(S) be monotone.

De nition 3.1

Let U S be a set of states. The closure ordinal co f

U and closure elementsce

f

U of U w.r.t. f are dened as follows: co

f

U =the least ordinal  such that U \ f   f ce f U = U ; S <co f U  f

Note 3.2

In the latter dening equation, the term S <co f U  f equals  f whenever co f

U is the successor ordinal of .

2It should also be noted here, that such a greatest ordinal is guaranteed to exist only

whenU is nite.

(7)

Property 3.3

Let U S be a set of states. Then: (i) (U \ f) co f U f. (ii) ce f

U\ f is non-empty if and only if co f

U is a successor ordinal.

(iii) If U is nite, then co f

U is not a limit ordinal.

(iv) If s2S, then ce f

fsg=fsg.

Proof:

These properties are established as follows. (i) Follows directly from the de nition of co

f U. (ii) We have: ce f U \ f 6=  ce f U \ f 6 S <co f U  f fDef. ce f U,  f  fg  U \ f 6= ^ S <co f U  f 6= co f U f fFrom (i)g  co f U 6= 0 ^ co f

U is not a limit ordinal fDef. xp. approximantg  92O r d:co

f

U =+ 1 fDef. ordinalg

(iii) From the de nition of xed-point approximants follows immediately that the closure ordinal for singleton sets is not a limit ordinal. If U is -nite, the closure ordinals of the singletons formed by the elements of U have a greatest element  which is not a limit ordinal. This ordinal is also the closure ordinal of U.

(iv) This is a direct consequence of (iii). 2

De nition 3.4

Let U S. We dene tagged mappings as follows: f

fUg =

X :(f(X);ce f

U)

and use the notation f fUV 1 :::V n g for ( f fV 1 :::V n g)fUg.

Note 3.5

In the chosen notation f

fUg equals

Xfce f

Ug:f(X). Because of

Property 3.3 (iv), this semantics of tags coincides with the one already given in the Introduction for the case of singleton sets.

Property 3.6

Let U S be a set of states. Then: 7

(8)

(i) f fUg

 f

(ii) if co f

U is the successor of some ordinal , then 

f = 

f fUg.

Proof:

These properties are established as follows. (i) Follows directly from the well-known equation:

f = \ fX jf(X)Xg (ii) Let co f U =  + 1. Then ce f U \  f =  by De nition 3.1 and Note 3.2. Consequentlyce f U \ 

f = holds for all ordinals  . Then the result holds by a simple inductive argument. 2

The following property will be used to justify the side condition of the new proof rule ( 0).

Property 3.7

For any nite non-empty setU, U 6 f fV 1 :::U:::V n g

Proof:

By induction on n. The base case (i.e., empty tag) holds vacuously. The induction hypothesis assumes the property for an arbitrary k. Assume U is a nite non-empty set. IfU =V

i for some

isuch that 2ik+1 then the property holds, since f

fV 2 :::V k +1 g  f fV 1 V 2 :::V k +1 g by Property 3.6 (i) and U 6 f fV 2 :::U:::V k +1

g by the induction hypothesis. The case that re-mains to be considered is U = V 1. Let g denote f fV2:::V k +1 g. We have to show that U 6 g

fUg. According to Property 3.3 (iii), since

U is nite, co

f

U is not a limit ordinal. SinceU is not empty, either there are elements in U which are not in f, orce

f

U is not empty, and in either caseU 6 g fUg.

2 The following lemma plays the same r^ole as Kozen's Reduction Lemma.

Lemma 3.8 (Reduction Lemma)

For any setU S the following

equiv-alence holds:

U  f  U f( f fUg) 8

(9)

Proof:

The two directions are established as follows: (() This direction holds simply because f( f

fUg)

f( f) = f. ()) If ce

f

U \ f is empty, then the implication holds trivially since in this case f = f fUg = f( f) = f( f fUg). If ce f

U \ f is not empty, then by Property 3.3 (ii) co

f

U is the successor of some ordinal. Then:

U  f  U  co f U f fProperty 3.3 (i)g  U  +1 f fco f U =+ 1g  U f( 

f) fDef. xed-point approximantsg  U f(  f fUg) fProperty 3.6 (ii)g ) U f( f fUg) f  f fUg  f fUg g2

We are now ready to give a suitable semantics to formulae tagged with lists of sets of states.

De nition 3.9

The denotation of negatively tagged formulae is dened as follows: k ZfV 1 :::V n g:k T V = f fV 1 :::Vng, where f =X :kk T VZ7!X]

Due to Note 3.5 this semantics is equivalent to the one already given in the Introduction for the case when the tag sets are singletons, and is hence a proper generalisation of the latter. It gives rise to the following inference rule:

( 0)

U `   ZfULg:=Z] U ` ZfLg:

U nite ) 8V 2L:V 6U

In general, a proof rule is calledsoundif it preserves validity, i.e., whenever the premises to the rule are valid and the side-condition holds, then the conclusion is also valid. If the opposite holds, the rule is called reversible. In the rule above, the purpose of the side-condition is somewhat unusual, since it is not needed to ensure soundness, but rather to avoid unnecessary application of the rule in case the conclusion is invalid. Reversibility of the rule ensures that validity of the conclusion implies the side-condition in fact we use, and prove, the counterpositive statement.

(10)

Theorem 3.10

Rule ( 0) is sound and reversible.

Proof:

As a straightforward consequence of De nition 3.9 and the Reduc-tion Lemma, validity of the premise implies validity of the conclusion, and vice versa. Now assume the side condition does not hold, i.e.,U is nite and some set V

i in the tag is a subset of

U. ThenV

i is also nite, and hence, due to Property 3.7, the sequent V

i

` ZfV

1

:::V n

g: is invalid, and hence U ` ZfV

1 :::V

n

g: is invalid as well. 2

Rule ( 0) is easily seen to be a proper generalisation of rule ( ) presented in the Introduction. The most interesting question that oers itself immedi-ately is whether niteness of U is really relevant for rejecting a branch in a proof tree. This turns out to be the case, as Example 4.2 in the next section shows.

4 Applications

The proof rule ( 0) can be plugged into any standard proof system for es-tablishing satisfaction between a set of states U in a model and a modal -calculus formula. In Figure 1 below we present one such proof system, borrowed from Andersen And93], in which rule ( 0) replaces the rules for least xed-point formulae of the original proof system. In these rules the following notation is used:

( a !U) =fs 2S j9s 0 2U:s a ;!s 0 g (U a !) =fs 2Sj9s 0 2U:s 0 a ;!sg

Example 4.1

Consider a LTS with two states s 1 and

s

2 and two labelled

transitions s 1 a ;! s 1 and s 1 a ;! s 2. State s

1 can engage in an innite a-sequence, and therefore the attempt of proving the opposite fails:

fs 1 s 2 g ` Zfs 1 g:a]Z ( ]) fs 1 g ` a] Zfs 1 g:a]Z ( 0) fs 1 g ` Z :a]Z

One can backtrack since an invalid sequent was reached. 2 10

(11)

()  `  (^) U `  1 U `  2 U `  1 ^  2 (_) U 1 `  1 U 2 `  2 U 1 U 2 `  1 _  2 ( ]) (U a !) `  U ` a] ( h i) U `  U 0 ` h ai ( a !U)U 0 (0) U ` ZfVg: U V (1) U `  ZfU Vg:=Z] U ` ZfVg: U 6V ( 0) U `   ZfULg:=Z] U ` ZfLg: U nite ) 8V 2L:V 6U Figure 1: An Example Proof System.

Example 4.2

Consider the innite state LTS with states S:  a ;!s 3 a ;!s 2 a ;!s 1 a ;!s 0

and the formula Z :a]Z. Consider the following derivation: S ` ZfSg:a]Z

( ]) S ` a] ZfSg:a]Z

( 0) S ` Z :a]Z

While it still makes sense to backtrack at the leaf sequent since there is nothing to be gained from repeating the above steps, it is unsound to conclude that this sequent is invalid. 2

This proof system is complete for nite-state systems and tag-free closed formulae (i.e., tags only emerge during proof construction). To see this, rst observe that the only rules which do not increase the size of formulae are the tagging rules (i.e., the rules for unfolding xed-point formulae), and that tags can only be of nite length with the chosen tagging discipline enforced by the side-conditions. Proof tableaux are hence of nite size only. On the other hand, it can easily be shown that every valid sequent can be derived from some (possibly empty) set of valid sequents. Together, these two observations

(12)

imply that for every valid sequent there is a nished tableau, i.e. a nite tableau with axiom leaves only. A formal proof of completeness can easily be obtained along the lines of the completeness proof for the original proof system And93].

5 Conclusion

In this paper we present a way of tagging, together with a suitable semantics, for least xed-point formulae of the propositional modal -calculus. These are used to justify a proof rule for unfolding, combined with tagging, of such formulae in proof systems with sequents of the shapeU `  where U is a set of states, and  is a formula. The proof rule is plugged into a standard proof system for model checking, yielding a complete proof system for nite-state systems.

The result is an extension of previous results on negative tagging to the case of sets of states. This suggests that it can be used for devising similar proof rules in other settings. For example, formulae can be understood as sets of states, and so can parametrised processes, and consequently, proof systems with sequents of the shape  `  or P(x) `  can bene t from the proposed negative tagging technique to provide additional termination conditions, thus aiding both proof search and the theoretical investigation of these proof systems.

Acknowledgement.

We would like to thank Mads Dam and Lars-ake Fredlund for valuable comments on the manuscript.

References

And93] Henrik Reif Andersen. Verication of Temporal Properties of Concurrent Systems. PhD thesis, Computer Science Department, Aarhus University, Denmark, June 1993.

ASW94] Henrik Reif Andersen, Colin Stirling, and Glynn Winskel. A com-positional proof system for the modal mu-calculus. InProceedings of LICS'94, 1994.

(13)

Bra92] Julian Brad eld. Verifying Temporal Properties of Systems. Birkhauser, 1992.

Dam94] Mads Dam. CTL*and ECTL*as fragments of the modal -calculus. Theoretical Computer Science, 126:77{96, 1994.

Dam98] Mads Dam. Proving properties of dynamic process networks. In-formation and Computation, 140(2):95{114, 1998.

DFG98] Mads Dam, Lars-ake Fredlund, and Dilian Gurov. Toward para-metric veri cation of open distributed systems. In H. Langmaack, A. Pnueli, and W.-P. De Roever, editors, Compositionality: The Signicant Di erence. Springer Verlag, 1998. To appear.

GBK96] Dilian Gurov, Sergey Berezin, and Bruce Kapron. A modal -calculus and a proof system for value passing processes. Electronic Notes in Theoretical Computer Science, 5, 1996.

Koz83] Dexter Kozen. Results on the propositional -calculus. Theoretical Computer Science, 27:333{354, 1983.

SE89] R. S. Streett and E. Allen Emerson. An automata theoretic deci-sion procedure for the propositional mu-calculus. Information and Computation, 81:249{264, 1989.

SW91] Colin Stirling and David Walker. Local model checking in the modal mu-calculus. Theoretical Computer Science, 89(1):161{177, 1991.

Win91] Glynn Winskel. A note on model checking the modal nu-calculus.

Theoretical Computer Science, 83:157{167, 1991.

References

Related documents

pedagogue should therefore not be seen as a representative for their native tongue, but just as any other pedagogue but with a special competence. The advantage that these two bi-

While much has been written on the subject of female political participation in the Middle East, especially by prominent scholars such as Beth Baron 5 and Margot Badran, 6 not

Hade Ingleharts index använts istället för den operationalisering som valdes i detta fall som tar hänsyn till båda dimensionerna (ökade självförverkligande värden och minskade

Through a field research in Lebanon, focusing on the Lebanese Red Cross and their methods used for communication, it provides a scrutiny of the theoretical insights

We first run regressions to examine the economic significance of vice as a determinant of firm returns. This test of multicollinearity is summarized in Table 4. Regressing

Representatives of the former type are e.g.: “Development [or innovation is] the carrying out of new combinations” (Schumpeter 1934 p. 65-66) or “Innovation is the generation,

questions submitted to it, 10 April 2013... Another objective is for Kosovo to create an international business environment based on a liberal democracy. Therefore, the

På grund av kraftlösheten efter operationen och ovanan med att inte kunna prata kunde det vara svårt för patienten att ha energi eller förmåga att kommunicera med anhöriga