HAL Id: tel-00440829
https://tel.archives-ouvertes.fr/tel-00440829
Submitted on 11 Dec 2009
HAL is a multi-disciplinary open access
archive for the deposit and dissemination of
sci-entific research documents, whether they are
pub-lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d’enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.
To cite this version:
Omer Landry Nguena Timo. Synthesis for a Weak Real-Time Logic. Software Engineering [cs.SE].
Université Sciences et Technologies - Bordeaux I, 2009. English. �tel-00440829�
N
o
d'ordre :3931THÈSE
PRÉSENTÉE À
L'UNIVERSITÉ DE BORDEAUX
ÉCOLE DOCTORALE DE MATHÉMATIQUES ET
D'INFORMATIQUE
Par Omer Landry Nguena Timo
POUR OBTENIR LE GRADE DE
DOCTEUR
SPÉCIALITÉ : INFORMATIQUE
SYNTHESE POUR UNE LOGIQUE TEMPS-REEL FAIBLE
(SYNTHESIS FOR A WEAKREAL-TIME LOGIC)
Soutenue le : 07Dé embre 2009
Après avis des rapporteurs :
Fran k Cassez ... Chargéde Re her he CNRS, HDR
François Laroussinie Professeur, Université Paris Diderot Paris7
Devant la ommission d'examen omposée de :
Mar Zeitoun ... Professeur, Université Bordeaux 1 ... Président du jury
Fran k Cassez ... Chargéde Re her he CNRS, HDR ... Rapporteur
François Laroussinie Professeur, Université Paris Diderot Paris7 ... Rapporteur
Didier Lime ... Maître de Conféren es, É ole Centrale de Nantes Examinateur
Igor Walukiewi z ... Dire teur de Re her he CNRS ... Dire teur de Thèse
André Arnold ... Professeur àla retraite ... Invité
Dans ette thèse,nous nous intéressonsà la spé i ation età lasynthèse de ontrleurs des
systèmestemps-réels.Lesmodèlespour essystèmessontdesEvent-re ordingAutomata.Nous
supposonsqueles ontrleurs observent touslesévènementsseproduisant danslesystèmeet
qu'ils peuvent interdirent uniquement des évènements ontrlables. Tous les évènements ne
sontpasné essairement ontrlables.
Une premièreétude estfaitesurlalogique Event-re ording Logi (ERL). Nousproposons
des nouveaux algorithmes pour les problèmes de véri ation et de satisfaisabilité. Ces
algo-rithmes présentent les similitudes entre les problèmes de dé ision ités i-dessus et les
prob-lèmes dedé isionsimilairesétudiés dansle adredu
µ
- al ul. Nosalgorithmes orrigentaussi desalgorithmesprésentsdanslalitérature.Lessimilitudesrelevéesnouspermettentdeprouverl'équivalen eentreles formules de ERLetlesformulesde ERLen forme normaledisjon tive.
La logiqueERL n'étant passusamment expressive pour dé rire ertaines propriétés des
systèmes,enparti ulierdespropriétésdes ontrleurs,nousintroduisonsunenouvelle logique
WT
µ
. La logique WTµ
est une extension temps-réel faible duµ
- al ul. Nous proposons des algorithmes pourlavéri ationdessystèmeslorsquelespropriétéssont é ritesenWTµ
.Nous identions un fragment de WTµ
appeléWTµ
pour le ontrle (C
-WTµ
). Nousproposons un algorithmequipermetdevériersiuneformuledeC
-WTµ
possèdeunmodèle.Cetalgorithme n'a pasbesoin de onnaîtreles ressour es(horloges et onstantemaximale omparéeave leshorloges) desmodèles.
En utilisant
C
-WTµ
omme langage de spé i ation des systèmes, nous proposons des algorithmes dedé isionpourle ontrle entralisé etle∆
- ontrle entralisé.Ces algorithmes permettent ausside onstruire desmodèles de ontrleurs.Mots- lés : Systèmestemps-réel, Event-Re ording automata,logique temps-réel,
satisfais-abilité, Event-Re ording Logi , méthodes formelles,véri ation, synthèsede ontrleurs.
Dis ipline : Informatique.
LaBRI,
Université Bordeaux1,
351, oursde laLibération,
real-time systems.OurmodelsforsystemsarekindsofEvent-re ording automata.Weassume
that ontrollersobserveallthe eventso urringinthesystemand an prevent o urren esof
ontrollable events.
WestudyEvent-re ordingLogi (ERL).Weproposenewalgorithmsforthemodel- he king
and the satisability problems of that logi . Our algorithms are similar to some algorithms
proposed for the same problems in the setting of the standard
µ
- al ulus. They also orre t earlier proposed algorithms. We dene disjun tive normal form formulas and we show thatevery formulaisequivalent to aformulaindisjun tive normal form.
Unfortunately, ERLis rather weak and an not des ribe some interesting real-time
prop-erties, inparti ular some important properties for ontrollers. We dene a new logi thatwe
allWT
µ
.Thelogi WTµ
isaweakreal-timeextensionofthestandardµ
- al ulus.Wepresent analgorithmfor themodel- he king problemofWTµ
.We onsiderafragmentofWTµ
alled WTµ
for ontrol (C
-WTµ
).We showthatthe satisabilityofC
-WTµ
isde idable. The algo-rithm thatwe proposefor de idingwhethera formulaofC
-WTµ
,hasamodeldoesnotneed to know the maximal onstant used in models and it enables the onstru tion of a witnessmodel.
Using
C
-WTµ
,we present algorithms for a entralised ontroller synthesis problemand a entralised∆
- ontrollersynthesisproblems.The onstru tionofwitness ontrollersisee tive.Keywords: Real-timesystems,Event-Re ordingautomata,formalmethods,real-timelogi ,
µ
- al ulus, Event-Re ording Logi , satisability,model- he king, ontroller synthesis.Dis ipline: Computer S ien e.
LaBRI,
Université Bordeaux1,
351, oursde laLibération,
Introdu tion 1
1 Preliminaries 15
1.1 Automata onWords . . . 15
1.2 Two PlayerParityGames and Multi-Parity Games . . . 17
1.3 The
µ
-Cal ulus . . . 181.3.1 Denitions andSemanti s . . . 18
1.3.2 Model-Che king andSatisabilityResults . . . 22
1.3.3 Disjun tive NormalForm . . . 23
1.4 Alternating TreeAutomata . . . 23
1.5 Frameworksfor Dis rete-TimeControl . . . 24
1.5.1 The Ramadge etal. Approa h. . . 25
1.5.2 The Arnoldet al.Approa h . . . 25
1.6 Frameworksfor Dense-TimeSupervisoryControl . . . 26
1.6.1 The TimedAutomata Model . . . 26
1.6.2 The Madhusudan etal.Approa hfor Automata Spe i ation . . . 28
1.6.3 The Laroussinieetal. Approa h for
L
ν
Spe i ation . . . 292 Timed Pro esses 33 2.1 Clo k,Valuation, Constraints . . . 35
2.1.1 Clo ksand Valuations . . . 35
2.1.2 Constraints . . . 35
2.2 Regions . . . 41
2.2.1 Regions for Diagonal FreeConstraints . . . 42
2.2.2 Regions for General Constraints. . . 45
2.3 Zonesand Dieren eBounded Matri es . . . 45
2.3.1 Zone and Representation. . . 45
2.4.3 Representations for TimedPro esses . . . 51
2.5 Produ tof TimedPro esses . . . 52
2.6 Rea habilityAnalysis. . . 53
2.6.1 Region-based Algorithms . . . 54
2.6.2 Zone-based Algorithms . . . 55
2.7 Diagonal ConstraintsCan BeSafely Removed . . . 58
2.8 Con luding Remarks . . . 60
3 Results on Event-Re ording Logi 61 3.1 Event-Re ording Logi . . . 63
3.1.1 Denitions . . . 63
3.1.2 Semanti s . . . 63
3.2 Model-Che king . . . 66
3.2.1 Abstra t Semanti s for Formulas . . . 67
3.2.2 Fixpoint Approximation . . . 69 3.2.3 Model-Che king Results . . . 70 3.2.4 Complexity . . . 71 3.3 Satisability . . . 72 3.3.1 Tableau . . . 72 3.3.2 Semanti s ofTableau. . . 76 3.3.3 Satisability Results . . . 77 3.3.4 Complexity Issues . . . 82
3.4 Comparison WithEarlierWorks . . . 82
3.4.1 Sorea's Semanti s for Timed Pro ess and ERLFormulas . . . 82
3.4.2 Sorea's Tableau Systemof Rules . . . 83
3.4.3 Existential ModalityMayCause Constraint Division . . . 83
3.4.4 Zone Approa hIs NotCorre t . . . 85
3.5 Disjun tive NormalForm . . . 87
3.5.1 Denition and Satisability Results. . . 87
3.5.2 TableauEquivalen e and Tableau WithBa kEdges . . . 88
3.6 Con luding Remarks . . . 92
4.1.1 Denitions . . . 94
4.1.2 Semanti s ofWT
µ
. . . 954.1.3 Restri tedLogi s:
W G
-WTµ
andC
-WTµ
. . . 974.1.4 Re tangular Formulas . . . 98
4.1.5 Relation between ERLand WT
µ
. . . 994.2 Model- he king . . . 101
4.2.1 Abstra t Semanti s for Formulas . . . 101
4.2.2 Model-Che king Results . . . 102
4.3 Satisabilityof the
C
-WTµ
Fragment . . . 1034.3.1 Tableaux . . . 103
4.3.2 Satisability Results . . . 106
4.3.3 Existen e ofDeterministi Modelsfor Formulas . . . 108
4.4 Con luding Remarks . . . 109
5 Centralised Controller Synthesis using C-WT
µ
Spe i ation 111 5.1 ModalAutomataand ModalAutomata for Controller Synthesis . . . 1135.1.1 Denition and Semanti s . . . 113
5.1.2 Model- Che king . . . 115
5.1.3 Restri tedModalAutomata:
W G
-MAandC
-MA. . . 1175.2 Automata andLogi . . . 118
5.2.1 FromFormulasto ModalAutomata . . . 118
5.2.2 FromModalAutomatato Formulas . . . 121
5.3 Quotient forAutomata . . . 123
5.4 Centralised Controller Synthesis for
C
-WTµ
. . . 1265.4.1 Centralised Controller Synthesis. . . 126
5.4.2 The
∆
-Dense-TimeControl Problem . . . 1275.5 Con lusion. . . 129
Con lusion and Perspe tives 131 Bibliography . . . 133
Asystemis aset ofintera ting obje ts. We onsider omputerisedsystems,that aresystems
embedding omputationaldevi es.The roleof omputationaldevi es isto exe uteprograms.
Computerised systems in lude transformational systems ( lassi al systems whose inputs are
availableatthebeginningoftheexe ution,andwhi hdelivertheiroutputswhenterminating:
for instan e ompiler and bat h systems), and rea tive systems that rea t ontinuously to
their environment, at the speed determined bythe latter [HP85 ℄. Rea tive systemsmaintain
anongoingintera tionwiththeir environmentwhiletransformationalsystemsdonot.Intheir
turn, rea tive systems in lude intera tive systems (for instan e: World wide web browsers)
and real-time systems (for instan e ontrol systems). While deadlinesof omputations, tasks
or events an be o asionally missed in intera tive systems, they should not be missed in
real-time systems. Thus, the orre tness of a real-time system not only depends on logi al
intera tions thathappen init, butalso onthetime atwhi h intera tions (re eptionof inputs
or out omes ofoutputs) o ur.
Be ause the size of omputational devi es have shrank, they are embedded in physi al
obje tsthatthey ontrol.Controloperationsareoftentriggeredbyinternalorexternalsignals
and the results of omputations areused to introdu e motion inphysi al obje ts of systems.
In pra ti e, the ommuni ation between omputational devi es and the rest of the system
is realised using sensors that interpret physi al input and a tuators that introdu e motions
in the obje ts using results of omputations. Compa t disk players, mobiles phones, ars,
washingma hinesandplanesareexamplesofsystems.Forexamplethereisaround30program
instru tions in a washing ma hine and around one billion program instru tions in a mobile
phone.
A ording to the ar hite ture of systems, it is usual to onsider entralised systems and
de entralised systems.Centralised systems embed asingle omputationaldevi ewithasingle
program,whilede entralised systems embedmore than one omputationaldevi e orprogram
needingto ommuni ate to a hieve tasks in ludingthe ontrol ofphysi al devi es.
The design of programs and systems should be a rigorous taskand programs need to be
validated. The validation approa h that is widely onsidered onsist to test the systemwith
sometest ases.Thetest asesareoftengeneratedmanuallybythedevelopers.Thisvalidation
approa his not reliable.Indeed,test ases ould not overall theaspe tsof thesystems.For
example,thetest asesapproa hhadnotbeene ienttodis overedbugsinthephoneswit h
CCS7atManathan(1990),inthephone ommuni ationnetworkatParis(1998),intheAriane
ro ket(1999) [Fle02℄. Just imagine a riti al bug in the program that ommands the exit of
the wheelsof anairplane or insystemsembedded inautomated ars.
to orre tthem.Asolutionmay onsist to orre terroneouspartsofthesystem;ifoneisnot
able to orre t the system, a solution may onsist to start again the implementation of the
system.Anothersolutionmay onsistto ombinetheerroneoussystemwithanewoneinsu h
awaythatthe resulting systemdoesnot longer ontain bugs.
Inthisthesiswe onsiderthe orre tionproblemfor systems.Theabovemotivatestheuse
offormalmethods presented below.
Formal Methods
Itisoften the ase thatrequirements for systemsaredes ribedina natural languageby
us-tomers,andimplementationisperformedbyateamofengineers. Itshouldbe learthat,ifthe
requirementsare omplex,sowill alsobethesystem. But, thesimpli ityofthe requirements
isnot a guaranteefor thesimpli ityand the orre tness ofthesystems,asnatural languages
areoftenambiguous.Itis important to haveexa t languagestodes ribeproperties, exa t
methodstodesignsystems,exa t methodstovalidateor orre tsystems.Thesearethegoals
ofFormal methods thatin lude:
•
Test generation aims at providing methods for asserting that a system is orre t. It amountsto generation of a olle tion of test sequen es from a formal spe i ation anda propertyto betested.
•
Proving orre tness amounts toprovidingaformalproof onthe orre tnessofasystem withrespe ttoapropertydes ribedinaformallanguage.Thismethodissemi-automatiasitisoftenthe asethatproverneedshumanintera tion (introdu tionofnewaxioms)
to terminates.
•
Model- he king isan automati method thatallows to he kwhether asystemsatises a given property.•
Satisability/realisability provideste hniquesto he k whethera given property anbe fullled by at least one system. It also provide te hniques to onstru t a system thatsatisesa givenproperty.
•
Controller synthesisdesigns ontrollers fora mainsystem( alledtheplant) sothatthe ontrolled system satisesa given property. It an be applied if the supervision of thesystem an bedone bydisabling intheplant somea tions at theorigin ofthebugs.
All the lasses above aresomehow related. For example ontroller synthesis methods an
be useful when a given systemdoesnot satisfya property (test, proof, model- he king) and
whenthe ontrollers an be onstru ted automati ally (satisability).
We will onsider the ontroller synthesis method for the orre tion of real-time systems
whenthepropertiesaredes ribedwithaweak real-timeformallanguage.But,letusdis uss
some hallenges on erning the denition of models for systems and thedenition of formal
The Design of models and De ision Pro edures
Themain goalof formalmodels isto provide formalrepresentations for interesting real-life
situationsaswe arenot always interestedin alltheaspe ts ofsystems [HP85, Sif01℄.
Thedesignofmodelsforsystemsandpropertiesdependsoninterestingaspe tsofsystems
andthenatureofthepropertiesforsystems.Areweinterestedinthetimeatwhi havariation
o urs in systems (if so, models may expli itly mention information on the time)? Are we
interested only in the logi al o urren e of events? Are we interested in a ommuni ation
proto ol(ifso,amodelmayhavea queueformessage) orinrea tive systems(ifso, noqueue
isneededinthemodel).Thedesignofmodelsisbasedontheabstra tionrealisedoninteresting
aspe tsof systems.
We are most often interested in the representation of behavioural aspe ts of systems.
It is natural to think of behavioural aspe ts of systems as su essive observable variations
o urring in systems. Ea h variation may have a ause. Models for systems are abstra tion
of thevariations and the auses of the variations.An abstra tion of a variation ontains: an
abstra tion of starting ontrol point of the variation, an abstra tion of the ending ontrol
point of the variation and, an abstra tion of the ause of thevariation. Abstra t variations
areoften alledtransitions,abstra t ontrolpointsareoften alledstates and abstra t auses
of variations areoften alledevents.
To des ribe properties of systems, one an use natural languages; be ause they are
am-biguous,theyarenegle tedinfavorofformallanguageshavingexa tsemanti s.Thedesignof
modelsfor propertiesdependson themodelsfor systemsand thenature ofproperties forthe
models.Propertiesfor modelswill ombine properties onstatesand propertieson transitions
leading froma state(future-based properties) oron transitionsleading to astate(past-based
properties).Thestandardtypesofpropertiesforsystemsin luderea hability properties(some
situation anhappen),safety properties(somesituation willneverhappen),liveliness
proper-ties (some situationis unavoidable) fairness properties(somesituation will happen innitely
often) deadlo k-free properties (thesystemnever stop).
Whateveristhenatureandaspe tsofasystemandtheproperties,itisobviousthattheir
representations are useful in pra ti e only if we are able to provide de ision pro edures for
the validation and the orre tion problems in luding the model- he king, and the ontroller
synthesis.Themodels ofsystemsandthe languagestodes ribepropertiesareinthisway,the
result ofan arbitration between the expressive power (that is lassof systemsand properties
they an represent) , their su in tness enabling the representation of a big system with a
model of small size, and their simpli ity that makes their use easy and enables problems to
be ome de idable(existen e ofde ision pro edures).
For pra ti al issues, de ision pro edures need to be e ient and their implementation
should be easy. For theoreti al issues, it ould happen that we are interested in the
under-standing of models and their theoreti al properties. Then, we may not be interested in the
e ien y ofpro edures,but only inrelations withothers de ision pro edures.
Abstra tion of systems into models is the sour e of some problems in luding a non
de-terminism ofthe models,the (behavioral) equivalen e of models and theformalisationof the
notion of ombination of systems. A non determinism o urs ina model when two outgoing
transitions from a state an be triggered by the same event; this an happen if an event is
models for the same system, knowing whether they are equivalent an redu e the
omplex-ityof de ision pro edures when amodelis more tra table (forde ision pro edures)than the
others. Models of systems an be ombined in syn hronous mode or asyn hronous mode. In
syn hronous mode,atransitiono ursinthe ombinedsystemwhen fromtherespe tive
ur-rent state of ea h omponent of the ombination, itispossible totake atransition aused by
a same event. In asyn hronous model it is not required that the event happens at the same
time inall the omponents. Rea tivesystems areoften ombined insyn hronousmode.
Providing new languages for properties of systems raises fundamental problems of the
language theory in luding emptiness he king (does a property have a model?), in lusion
he king(isasetofmodelsofapropertyin ludedinasetofmodelsofanotherproperty),the
expressive poweroflanguages(what properties an bedes ribedwithagivenlanguage?) and
losurepropertiesunderoperationson languages(union, interse tion, omplementation). For
example, forthe losureunder omplementation, it ouldbeuseful andpra ti al thattheset
of systemsthat do not satisfya property an be des ribed with another property written in
the samelanguage; for the losureunderinterse tion, it ouldbeuseful thatthe onjun tion
oftwo properties an bedes ribed witha singleproperty ofthelanguage.
Formal Models for Rea tive Systems
A low level model for systemsis untimed transition system thatis just a olle tion of
transi-tions.Inthat model, atransition
s
a
−→ s
′
indi ates that inthestate
s
,thepro ess an move to the states
′
when the event
a
o urs. No expli it information on the time of the o ur-ren eoftheeventsarementioned.Untimedtransitionsystemshave beenextendedbyaddinga tripping ondition on the transitions. For probabilisti transition systems [PZ93 ℄, tripping
onditions are justprobabilisti laws. For timed transition systems (TTS) [HMP92℄,tripping
onditions are information on the time at whi h the event an o ur. In timed transition
systems,transitions are labelled either with a delay or by an event. Delay an range over a
dis rete domain (natural numbers for example) for dis rete time transition system or over a
densedomain (real numbersfor example) for dense time transition system.
Theproblemwiththelowlevelmodelsaboveisthattheyarenottra tableforautomation.
They annotberepresentedusinganitestru tureasthesetofstatesandthesetoftransitions
inamodel anbeinnite.Highlevel models that anberepresentedinanitewayhavebeen
developed.
There are two theoreti al approa hes for high-level modelling of systems. The algebrai
approa h [vG97℄ and the nite state transition systems based approa h. The semanti s of
highlevelmodelsisoftendes ribedusinglow-levelsmodels.Algebrai -basedmodels anoften
be translated into transition systems. Thus, they will not be onsidered here. We des ribe
belowdevelopment thathave been done forhigh-levelmodels inthetransitionsystemsbased
approa h.
Kripke stru ture or nite state automata [CCG00 ℄ are transition systems with nitely
manystates. Behaviours ofthe systems areasequen e oftransitions.
Durational Kripke stru ture (DKS)[Lar05 ℄ are somehow a generalisation of ideas behind
s
1
s
0
s
2
[2; 3], a
[3; 3], a
(a)ADKSs
1
s
0
s
1
s
2
2
a
3
a
3
a
(b)JumpSemanti ss
1
s
0
s
2
1
1
1
a
1
1
1
1
a
( )Semanti swithintermediarystates
s
1
s
1
s
0
1
1
1
a
s
2
a
a
(d)Continuouswithdelay
Figure1:ExampleofaDKS anditssemanti s.
Theyarekindsof nitestate automatahaving tripping onditions ontransitions.There
on-dition are integer interval. For example, a transition
s
[2,3],a
−→ s
′
asserts that the system an
move from
s
tos
′
when iftheevent
a
o ursat 2, or 3 timeunits after thesystementerthe states
.Thenitisfundamental towonderabout thestatesofthesystem1,2,or 3timesunits afteritenterthestates
′
orthestateofthesystembetween1and2timesunits.Threedis rete
semanti s had been onsidered(see Figure1 forillustration):
1. the the jump semanti s.Inthis semanti s thesystemmovefrom astate
s
tos
′
without
takinganyintermediarystate.Thus,thestatesofasystematthetimes
d + 1
,d + 2
,. . .
,d + t − 1
arenotexpli itlyrepresentedwhen movingfroms
inthetimed
tothestates
′
inthetime
d + t
.Heretimeprogresses butina dis rete way.2. the ontinuous semanti s with intermediary states. Here, moving from
s
tos
′
takes
t
timeunits and thesystemmoves throughintermediary statesbetweens
ands
′
.Allthe
rossed intermediary states have the same properties as
s
. This semanti s is not time deterministi but time elapse ontinuously. Then next rea hable state is hosen veryearly inthe time.
3. the ontinuous semanti swithdelay.Thesystemletsthetimeelapseinits urrent state
before moving to another state. This semanti s is time deterministi and time elapses
ontinuously.Moreoverafterano urren eofanevent,thenextrea hablestateis hosen
late inthe time.
Timed automata [AD94 ℄ has been provided as powerful model to des ribe real-time
lo kvariables growwith thesamerate (theone of theuniversal time).Timed automata are
also a kind of timed extension of nite state automata. A transition
s
g,a,X
−→ s
′
is equipped
with a tripping onstraint
g
and a set of lo kX
to be reset when the transition is taken. Thetripping onstraint ompares lo k variables withrational onstants. There istwo typesof omparisons: the omparison between asingle lo kandarational alleddiagonalfree
on-straint and the omparison of a dieren e between two lo ks and a rational alleddiagonal
onstraint. Clo ks areevaluated inthe dense-timedomain (setof positive real number). The
ontinuous semanti s of a high level transition
s
g,a,X
−→ s
′
is a set of low level transitions of the forms(s, v)
t
−→ (s, v + t)
or(s, v)
a
−→ (s, v[X := 0])
(v
represents a valuation of the lo ks,t
represent a delay,v + t
returns the value ofthe lo ks after thedelayandv[X := 0]
return the values of the lo ks after the reset of all the lo k inX
). A low level transition(s, v)
−→ (s, v[X := 0])
a
o urs only if the value of the lo ks represented byv
satises the onditiong
.We remarkthat sin e their introdu tion byAlurand Dill, timed automata have been extended to interesting models su h as hybrid automata [Hen96℄, updatable timedau-tomata [BDFP04 ℄.
Event-re ordingautomata[AFH99℄modelhasbeenintrodu edasarestri tedformoftimed
automata. The main dieren e between Event-Re ording automata and timed automata is
that ea h lo k is asso iated to a unique event and the unique lo k to be reset when a
transitionistakenis the lo kasso iatedto theevent on thattransition.
Formal Des ription of Properties
Low level models are widely used to represent the semanti s of high level models.
Lan-guages to des ribed properties must be interpreted on transition systems models. Formal
languages [Koy90, AH94, HR04℄ enable exa t des ription of linear-time properties (that are
properties on the possible exe utions) and/orbran hing-time properties (that are properties
on states whi h may have several possible futures). They also des ribe either properties on
untimedsystems or properties on timedsystems.
As it is dis ussed in [EH83 ℄, the use of linear or bran hing time spe i ation languages
depends on the underlying nature of time. The use of linear time language is based on the
hypothesis that ea h moment (present time) has a unique future time while, when using
bran hing time languages, we impli itly assume that the future of a present time ould be
dividedinto alternative future times. Alternation an beobserved innon deterministi
mod-els as an event an be the sour e of two alternative transitions. Bran hing-time languages
allowto hara terize interesting behavioral relations between systemssu h assimulationand
bisimulation[Par81 ℄; theyaresometimes preferredto linear-time languages.
The development of formal languages to des ribe properties has been done in two main
dire tions: The logi al dire tion that provides logi al languages and the automata-based
di-re tion. We present here some relevant languages for untimed systems followed with some
relevant languagesfor real-time (timed) systems.
Theautomataapproa h Automata,thatareKripkestru turesequippedwithasetof
a - eptingsequen es oftransitions, anbeusedtodes ribeasystemanditsproperties.AKripke
de laredgood orbad a ordingtowhethertheybelongtoana eptan e ondition(Rabin,
Parity, et ...). Thus, automata [Tho90℄ are kinds of devi es re ognising set of words, set of
trees,or set oftransitionsystems.Automata on wordsare usedto des ribe linear-time
prop-erties and automata on trees, inparti ular alternating automata on trees, are often used to
des ribebran hing-time properties.
Usual methods for emptiness he king and universality he king for automata-based
languages onsist to he k whether some states are rea hable. Forward or Ba kward state
exploration algorithms areoftenused. The losure under booleanoperations usuallyinvolves
the onstru tion ofnew automata.
Were allsomeresults on erningsomeimportantproblemsonautomata-basedlanguages.
Finitestateautomataonwordsandevent-re ordingautomataontimedwordsare losedunder
all booleanoperations andthelanguage in lusion testingproblemisde idable. The language
in lusion testingproblemfor theseautomataisalso de idable.Timed automata onwordsare
not losedunder omplementation andlanguagein lusiontestingproblemisunde idable.The
languageemptinesstestingproblemforalltheaforementionedautomataonwordsisde idable.
Alternating automata on trees (or transition systems) are losed under boolean operations,
their emptiness andtheir in lusion testingproblem isalso de idable.
The logi al approa h Herearesome important languagesthat have beendeveloped.
Linear-temporal Logi (LTL)isalinear-time temporallogi introdu ed byPnueli [Pnu77,
LPZ85℄for untimedsystems.LTLenables thedes riptionof properties ona single exe ution
of thesystem or sequen e of transitions. But itis not possible to des ribe a property of the
form on all the exe utions of a system it is always true that there existsan exe ution that
satisesa property.
TheComputational Tree Logi (CTL[CE82 ℄,CTL
∗
[EH83℄) arebran hing-timelogi s for
untimedsystems. Theyallow quanti ation (existential or universal) on transitions outgoing
fromstatesofmodels.FormulasofCTL
∗
andCTL arenotinterpretedoverindependentsetof
exe utions (sequen e of transitions) but over a tree-like stru ture representing a dependen e
between exe utions.
The Hennessy-Milner logi was introdu ed by Hennessy and Milner [HM80℄ for untimed
systems(initially represented withtheCCS algebrai representation). Thislogi in lude two
important modal operators
hai
and[a]
. A states
of a system satiseshaiϕ
when there is at least one outgoing transitions
a
−→ s
′
su h that the target
s
′
satises theproperty
ϕ
. A states
of asystemsatises[a]ϕ
whenfor alloutgoing transitionss
a
−→ s
′
,thetarget state
s
′
satisesthe property
ϕ
.A weakness of the Hennessy-Milner logi is thatit an not be used todes ribedfairness or liveliness properties.The
µ
- al ulus introdu ed by Kozen [Koz82 , AN01℄ is an expressive logi whi h extends the Hennessy-Milner Logi [HM80℄ by onsidering thegreatest (ν
) andleast (µ
) xpoint op-erators. Fixpoint operatorsareusefultodes riberea hability,fairnessor livelinessproperties.The
µ
- al ulus is more expressive than CTL and CTL∗
. Formulas of the
µ
- al ulus in ludes arbitrarynestedxpoints.Thepowerofnestedxpointhadbeendemonstrated[Bra98 ,BL05 ℄;inparti ular theyareusedto des ribe properties su has:anevento ursinnitelyoften or
the
µ
- al ulusarede idable.Theµ
- al ulus isasexpressiveasalternatingautomata ontrees. The metri temporal logi (MTL) [Koy90℄ is a timed linear-time temporal logi whi hextendsLTLwithtiming onstraints.For instan e,withMTL,itispossibleto writeaformula
expressingthat a request
p
is always followed one timeunit later bya responseq
.There are tra tablefragmentsofMTLthathadbeen onsideredlikeSafety-MTL[OW06b ℄whi himposeboundonthemodalityonthefutureandMITL [AFH96℄whi hdisallowspun tual onstraints
some modality ofthefuture.
TimedComputationalTreeLogi (TCTL)[ACD93 ℄isanextension ofCTLthatexpli itly
mentions the information on thetime.
Timed Modal Logi (TML) and Extended Timed Modal Logi (ETML) are timed logi
proposed by Larsen etal. [HLY91 ℄ to des ribe properties of pro esses expressed in the
real-time pro ess al ulus TCCS of Wang [Yi90 ℄. Among properties that an be handled with
these logi an important property for real-time pro esses is the ne essity modal operator on
time delays that enables to des ribe a property like After a oin has been inserted, oee
will be ontinuously available for 30 se onds. TML is an extension of the Hennessy-Milner
Logi [HM80℄whi h onsidersmodalitiesoftheform
hai
∃I
ϕ
,hai
∀I
ϕ
,[a]
∃I
ϕ
,and[a]
∀I
ϕ
where the semanti s ofI
isa delayinterval,a
is ana tion andϕ
aformulaand .A formulahai
∀I
ϕ
spe iesapropertywhi hholds invariably foralltime-delaysinI
;asystemthatsatisesthis formula is su h that any state rea hed after a time-delay withinI
must have aa
-su essor satisfyingϕ
. Aformulahai
∃I
ϕ
spe ifyapropertywhi hholds eventuallyfor some time-delay inI
.Operator ofthe form[a]
∃I
ϕ
and[a]
∀I
ϕ
aredened byduality. Then, Larsen etal. have shown that ifI
is dened with a rst-order assertion, then the model- he king of TML is de idable. ETML isa fragment of TMLinwhi h timeintervals arenot spe ied.In[HLY91 ℄the model- he king and the satisability ofETMLis leftopen.
The logi
L
t
µ
has been introdu ed by Sokolsky et al. [SS95 ℄. The logiL
t
µ
is a timed extensionoftheµ
- al ulus;itenablesthedes riptionofsafetyandlivelinesspropertiesof real-timesystems.Themodel- he kingofL
t
µ
isshownde idablein[SS95 ℄.ThelogiL
t
µ
supportsall originaloperatorsof theµ
- al ulus aswell astwo newtimemodalities(ne essity/universality and possibility/eventuality of time su essors) also used in [HLY91 ℄. ButLµ
t
formulas are
alternation free asthefragment ofthe
µ
- al ulusstudied in [SS94 , BC96 ℄,whi h meansthat in everyL
t
µ
formula the level of mutually re ursive greatest and least xpoint operators is one (arbitrary nested xpoint is not authorized). The lo al model- he king algorithm forL
t
µ
[SS95 ℄ uses quotients of lo ks values asdened by Alurand Dill [AD94℄. As this model- he king algorithm is lo al, the whole state spa e need not be explored and renements ofthequotient are arriedonly whenne essaryto satisfy lo k onstraints intheformulaorthe
timedautomatonusedto represent thesystemunderinvestigation.
The logi
L
ν
[LLW95 ℄ has been onsidered by Laroussinie et al.. It is a fragment of the logiT
ν
[TXJS92 ℄ introdu ed by Henzinger et al.; it allows to des ribe properties on timed automata. Formulas ofL
ν
use also ombined modalities on events of the lassi alµ
- al ulus withmodalitieson time-delays.ThelogiL
ν
onsiders thegreatestxpoint operator;it does not onsiderthe leastxpointoperator.ThelogiL
ν
issu iently expressive for hara teris-ingtimed automata (behavioral hara terisation) [Cer93 ,SI94, IPPA00 ℄.For a given timedautomata, itispossible to onstru ta
L
ν
hara teristi formula. ThesatisabilityproblemofL
ν
have been leftopen in[BCL05 ℄.EventClo kTL is an extension of LTL with event-re ording and event-predi ting operators.
The satisabilityproblem ofEventClo kTL have been shownde idable.
Event-re ording Logi (ERL) is a timed extension of the
µ
- al ulus introdu ed by Sorea [Sor02 ℄ and itis usedto des ribe properties on systemsmodelled withevent-re ordingautomata. ERLismoreexpressivethantheevent-re ording partofEventClo kTL sin eit
in- ludesarbitrarynestedxpoints.Theextension onsistinaddingtiming onstraintsinmodal
operatorsobtainingmodaloperatoroftheform
hg, ai
and[g, a]
.For example,aformulaofthe formhh
b
< 3, ai
expressesthefa tthatthe eventa
musto urat most3
timeunitsafterthe lo kh
b
hasbeen reset (re all thatthe lo kh
b
isreset only afteran o urren eofthe eventb
).Ade ision pro edure forthesatisabilityproblemof ERLis provided in [Sor02 ℄.Let us omment some te hniques usedto solve some problems on logi al languages. The
losure properties are often a onsequen e of their denitions. Indeed most of the logi al
languagesusebooleanoperators(logi al"and"operator(
∧
)forthe losureunderinterse tion, logi al"or"operator (∨
)for the losureunderunion, and logi al"negation" operator (¬
) for the omplementation). Dualityisoftena fundamental prin iple oflogi al languages.The emptiness testing of logi al languages is also alled the satisability problem. A widely
used method for temporal logi is the tableau method. Tableau systems were rst developed
byGentzen assynta ti al devi esfor modallogi s[Gen34 ℄.Tableausystems benetfromthe
stru ture of the properties to de ompose their satisability he king into the satisability
he king of smaller properties. It has been shown that there exists an intimate relationship
between tableaux andautomata overtrees [Eme85 ℄.
Whatever is their forms (automata or logi ), languages on the same models need to be
ompared.To omparetwolanguages,itis ommontoprovideexampleofpropertiesthat an
be des ribed with only one of the two languages and it is ommon to show how properties
written inone of thetwo languages an be rewrittenintheother language.
Methods and Algorithms for the Model- he king
Te hniquesfor the model- he king ofsystemshave been developed depending onmodels and
the spe i ations.Mostof these te hniqueswork on lowlevelmodels.
There aretwo basi strategies whendesigning amodel- he king algorithm: Global
algo-rithms thatarere ursive onthestru ture ofthespe i ation andevaluateea hofpartofthe
spe i ation over the states ofthe transitionsystem. Lo al algorithms, in ontrast, explore
onlypartsofthestatesspa eofthesystem,but he kallpartsofthespe i ation.The hoi e
of lo al or global algorithm does not ae t the worst- ase omplexity of model- he king
al-gorithms. Model- he king algorithms areoften presented intheformof tableau [Eme85 ℄ and
they useresults ontwo player games.
Inorderto provide e ient model- he king algorithm, somete hniques toredu e thesize
of models have been developed [Mer01℄in luding, symboli te hniques and abstra tion based
te hniques. Symboli te hniques onsist in en odingset of states using ompa t obje ts su h
as logi al formulas or e ient data stru tures [GV08℄ su h as Binary De ision Diagrams,
Dieren e BoundMatri es,Clo kDieren e Diagrams.
•
The setting of Kripke Stru tures. Themodel- he king of systems modeled withKripke stru tures has been widely investigated for linear-time properties (LTL [Var07 ℄) andBran hing-time Properties (CTL and CTL
∗
[LS01℄, the
µ
- al ulus [SE89 ℄). The te h-niquesaforementionedhavebeenusedandimplementedintoolssu hasSMV[CCG+
02 ℄,
MEC 5[GV04 ℄,Lustre [CPHP87 ℄ and SPIN[Hol97℄.
•
Thesettingoftimedautomata.Abstra tionbasedte hniqueshavebeenprovidedforthe rea hability of timed automata. These te hniques in lude region abstra tion andzone-based abstra tion. They onsistinpartitioningtheinniteset ofstatesof thesemanti s
into nite sets of abstra tion lasses. Region and zone-abstra tion based te hniques
have also been deployed for other types of properties. This te hniques have been used
for the model- he king of TCTL [TXJS92℄, the model- he king of MTL and its
frag-ments [OW05 ,OW06a ,AH93,OW06b ,AFH96℄, themodel- he king ofTML[HLY91 ℄,
ETML [HLY91 ℄,
L
t
µ
[SS95 ℄,L
ν
[LLW95 ℄ and Event-Re ording Logi [Sor01 , Sor02 ℄. Tools implementing model- he king algorithms for real-time systems in ludeKro-nos [BDM
+
98℄,Uppaal [BLL
+
96 ℄, Hyte h[HHWT97℄, Cm [LL98 ℄,Tempo [Sor01 ℄and
PHAVer[Fre05 , Fre08 ℄.
Methods and Algorithms for the Controller Synthesis
We re all that the supervisory ontrol problem, as introdu ed by Ramadge and W
on-ham [RW89℄, asks whether a given system alled a plant an be ontrolled with another
system alleda ontroller insu hawaythattheresultingsystem alledthe ontrolledsystem
satisesthegiven ontrol obje tive. The synthesisproblem askswhether a witness ontroller
anbe ee tively omputed.
The ontroller synthesis ( ontrol + synthesis) problem is studied depending on theoreti al
assumption made on the systems. These assumptions on ern the nature of the events in
systems,thear hite ture of systemsand the natureof properties.
The notions of ontrollability, observability, distinguishability are often onsidered. The
notion of ontrollability is based on theassumption that some events of the systems an be
disable( ontrollableevent)andtheothers annot.Thenotionofobservabilityisbasedonthe
assumption that ontroller an not observe all the events that happen in the systems. This
notion onsiders observable eventsand unobservable events. The notion of distinguishability
reliesonthefa tthata ontrollermaynotabstra ta auseofavariationinthesamemanner
asthesystem; then, it ould happen thato urren es ofsome events inthe systems an not
bedistinguishedbythe ontrollers.Relyingonthe ar hite tureofthesystems,the entralised
supervisory ontrol isopposedtothede entralised(distributed) ontrol.The entralised
super-visory ontrolof a systemis a hieved bya unique ontroller whileinthe de entralised ases,
more than one ontroller an be ombined with the plant to meet the ontrol obje tives. It
is usual to distinguish internal ontrol obje tives from external ontrol obje tives. Internal
ontrol obje tivesrefertostatepropertieswhileexternal ontrol obje tivesrefertoproperties
onsequen es of events.
Let us re all some previous works on the ontroller synthesis for dis rete event systems
anddense-time systems.
systems. In their setting, a plant and ontrollers are deterministi nite state automata;
the notion of ontrollability is also onsidered. The external ontrol obje tive is either a
rea hability or a safety property. Manyauthors [PR05, BK06 , AVW03, AW07℄ have
onsid-ered the supervisory ontrol of dis rete event systems modeled with nite state automata
when the ontrol obje tives are des ribed with a
µ
- al ulus formula. These extensions of the works of Ramadge and Wonham use the expressive power of theµ
- al ulus to des ribe more general properties for supervised systems and ontrollers. They onsider the notionof ontrollability, observability, and distinguishability and the entralised and de entralised
supervisory ontrol problems. They use a so- alled quotient based method that provide
powerful quotient operation for the division of properties by systems and the division of
properties by properties. In the works of Arnold et al. [AVW03, ABPV05, AW07℄, the
division operation works for disjun tive normal form formulas and the omputation of
witness ontrollers is ee tive (winning strategy intwo player parity game) for some lasses
of de idable supervisory ontrol problems. In parti ular, Arnold et al. [AW07℄ have shown
that the supervisory ontrol problem is de idable under the three following onditions: at
most one ontroller isnon deterministi ; all but one spe i ation of ontrollersaresimple (a
simple spe i ation does not des ribe observability and distinguishability onditions); and
the spe i ationof the nondeterministi ontroller issimple.
The entralised dense-time version of the supervisory ontrol has been investigated and
solved in [AMP95℄. In that investigation, Maler et al. onsider timed automata models,
un-timed ontrol obje tivesandthenotionof ontrollability.Theyprovideanalgorithmtode ide
whetheradis rete ontroller exists,andshowthatiftheanswerispositive,awitness ontroller
anbe ee tively omputed. The ontrol obje tive is area habilityor a safetyproperty.
D'Souza and Madhusudan [DM02℄ have also onsidered the entralised dense-time
supervi-sory ontrol fortimedautomatawhentheexternal ontrolobje tiveisdes ribedwithatimed
automaton. They also onsider the notion of ontrollability. For de idable ases of ontrol,
D'Souzaand Madhusudansynthesise ontrollerswitha priory limit ontheir resour es
(num-berof lo ks,powerof the ontrollers to observe lo ks). Madhusudan et al. [BDMP03 ℄ had
extended the frameworks of D'Souza and Madhusudan by onsidering the notion of partial
observability.
Bouyer et al. [BBC06 ℄ have investigated entralised dense-time supervisory ontrol of timed
automatawhentheexternal ontrolobje tive isdes ribedwiththelogi MTL. They onsider
notionsof ontrollabilityandthey provide de idabilityresults whenthereisalimitonthe
re-sour esof ontrollers.Controllersarejustwinningstrategiesinsometwoplayerparitygames.
Laroussinie et al. [BCL05 ℄ have onsidered the entralised supervisory ontrol problem for
timedautomatamodelswith
L
ν
whenthesetofeventsispartitioned intoasetof ontrollable events and a set of un ontrollable events. They present how to de ide the existen e ofon-trollerforsomedeterministi fragmentof
L
ν
,butthepro eduredoesnotsayhowto onstru t a witness ontroller.Contributions of this Thesis
We onsider ontroller synthesis for real-time systems that an be ombined in syn hronous
TheframeworkofArnoldetal.[AVW03,ABPV05 ,AW07℄,basedonnitestateautomata
and the
µ
- al ulus, is a powerful framework for the ontroller synthesis of untimed systems. This workproposes methods to de ide theexisten eof ontrollers andmethods tosynthesizeontrollers. For timed systems,Laroussinie etal. [BCL05 ℄ have provided an extension to the
frameworkofArnoldetal.astheyhave onsideredtimedautomatamodelsforsystemsandthe
logi
L
ν
to des ribe ontrol obje tives. The method intheLaroussinie etal. framework only de ides theexisten eofa ontroller anddoesnot provide amethod to synthesise ontrollers.Our goalinthis thesis isto nd a lassof timedmodels weaker than the lass oftimed
automata, to use a weak real-time extension of the
µ
- al ulus for providing a powerful frameworkfor the ontroller synthesis ofreal-time systems.We alsohopeto reuse te hniquesof theframework of Arnoldetal.
Westartourinvestigationwithevent-re ordingautomataasmodelsforsystemsand
Event-Re ordingLogi (ERL)aslanguagetodes ribeproperties.Wepresentnewde isionpro edures
forthemodel- he kingandthesatisabilityofERL.Wealsopresentadisjun tivenormalform
theorem for ERL. We show thatERL is not expressibleenough to des ribe useful properties
of timed pro esses, espe ially some interesting properties for ontrollers. For instan e, with
the modalities of ERL we are not able to des ribe a property of theform an event an be
ompletedat anymoment thatsatisesatiming onstraint.
Then,weintrodu eanewlogi thatwe allWT
µ
whi hisalsoaweak real-timeextension oftheµ
- al ulus. WeshowthatWTµ
ismore expressivethatERL.We onsiderfundamental problems on WTµ
namely: themodel- he king and thesatisability problems.We showthat the model- he king problem of WTµ
is de idable. For the satisability, we onsider a frag-ment of WTµ
alledC
-WTµ
(WTµ
for the ontrol). We provide a de ision pro edure for a satisabilityproblemofC
-WTµ
formulas.That pro edureworkswithoutanyinformation on the maximal onstant of the models. It also shows how to onstru t a witness model for asatisable formula.
We present de ision pro edures for the entralised and the
∆
-dense-time entralised on-trollersynthesisproblems when the ontrol obje tives aredes ribed withC
-WTµ
formulas.Organisation of this Thesis
InChapter 1 we present basi notions that we use later in the thesis. These notions in lude
alternatingautomataontrees,two playerparitygames,the
µ
- al ulus,thelogiL
µ
andsome frameworksto the ontroller synthesis.In Chapter 2, we present models for real-time systems and some fundamental problems
about thesemodels.Ourmodel,thatwe alltimed pro ess isnothing elsebutevent-re ording
automata (without an a eptan e ondition). We present the rea hability analysis in that
model using well know region abstra tion te hniques and zone abstra tion te hnique. We
present howto remove diagonal onstraintsinthe modelwithout hangingtheir behavioural
properties.
In Chapter 3, we present Event-Re ording Logi (ERL for short). We onsider
funda-mental problems about that logi : the model- he king problem, the satisability problem,
the disjun tivenormal formproblem. Therst two problemshave been onsidered earlier by
theyalso enableto reusesome algorithms forthesame problems forthestandard
µ
- al ulus. We provide a disjun tive normal form theorem for ERL formulas. We show that thealgo-rithmof Sorea[Sor02 ℄for thesatisability he king isambiguous andisnot orre tin aseof
diagonal onstraints.
The Chapter 4 introdu es the new logi WT
µ
. There, we dene WTµ
and we show that WTµ
is more expressive than ERL as any formula of ERL an be translated into equivalent formulaofWTµ
andsomeformulasofWTµ
annotbetranslatedintoformulasofERL.WTµ
enablesades riptionofsomeinterestingpropertiesinparti ularsomepropertiesof ontrollers.Then we onsiderthe model- he king andthesatisabilityproblemsfor WT
µ
.We showthat the model- he king of WTµ
is de idable. We introdu eC
-WTµ
as a de idable fragment of WTµ
.Our de isionpro edure forthesatisabilityofC
-WTµ
shows howto onstru t models for satisable formulas.The entralised andthe
∆
-densetime entralised ontroller synthesisproblemsare onsid-ered inChapter 5. Formulas are di ult to handle be ause they use xpoint operators. Weintrodu emodalautomatathatareakindofalternatingautomata.Modalautomataare
inter-pretedovertimedpro esses.We denethe quotient ofmodalautomata overtimedpro esses.
Then,we onsiderasub lassofmodalautomata thatwe allmodalautomata for ontrol(
C
-MA).WeshowthataC
-MAautomaton anbe translatedintoanequivalentC
-WTµ
formula andre ipro allyaC
-WTµ
formula anbetranslatedintoanequivalentC
-MAautomaton.At the end of this hapter, we show that the two aforementioned ontroller synthesis problemsPreliminaries
This hapterpresentssomeframeworksforthesupervisory ontrolproblemofdis retesystems
anddense-time systems.
Firstofall,we re allsomedenitions andresults on erningtransitionsystems,automata
on words, the standard
µ
- al ulusand automata ontransitionsystems.Then, we presentthe frameworks of Ramadage and Wonham [RW89℄, Arnold et al. [AVW03, ABPV05, AW07℄,D'Souzaand Madhusudan[DM02℄and Laroussinieetal. [BCL05 ℄.
1.1 Automata on Words
Inthisse tion wepresent basi notions thatin lude labelled transitionsystems,bisimulation
relation,(Bü hi, Rabinand Parity) a eptan e onditions andautomata on words.
Denition 1 A word overan alphabet
Σ
isa sequen ew = w
0
.w
1
. . .
ofsymbolsinΣ
.Σ
∗
is
the setof nitewords over
Σ
,andΣ
ω
is thesetof innitewordsover
Σ
.For a word
w
, the number of o urren es of the lettera
inw
is denoted by|w|
a
. Givenw ∈ Σ
ω
,we onsider the setInf (w) = {a ∈ Σ | ∀i∃j > i w
j
= a}
ofsymbolsin
Σ
o urringinnitely ofteninw
.Denition 2 A labelled transition system overan alphabet
Σ
(oraΣ
-labelled transition sys-tem forshort)isatupleS = hS, Σ, s
0
, ∆
S
i
whereS
isasetofstates,s
0
∈ S
istheinitial state
and
∆
S
⊆ S × Σ × S
is a transitionrelation. AΣ
-labelled transition systemis deterministi if∆
S
isa partialfun tion∆
S
: S × Σ → S
.We oftenwrite
s
a
−→ s
′
insteadof simplythetransition
(s, a, s
′
) ∈ ∆
S
. A nite labelledtransition systemisa systemwithnitelymany states.Denition 3 A produ t of two
Σ
-labelled transition systemsP = hP , Σ, p
0
, ∆
P
i
andS =
hS, Σ, s
0
, ∆
S
i
is theΣ
-labelled transition systemP × S = hP × S, Σ, (p
0
, s
0
), ∆
P×S
i
where(p, s)
−→ (p
a
′
, s
′
)
ifandonly ifp
a
−→ p
′
ands
a
−→ s
′
.Wedenetwobehavioralrelationsbetweenlabeltransitionsystems.Theserelations, alled
simulation andbisimulation, havebeenintrodu ed byPark [Par81℄.Let
S
1
= hS
1
, Σ, s
0
1
, ∆
S 1
i
and
S
2
= hS
2
, Σ, s
0
2
, ∆
S 2
i
be two labelled transitionsystems.Denition 4 A simulation between
S
1
andS
2
isa relationR ⊆ S
1
× S
2
su h thatwhenevers
1
Rs
2
anda ∈ Σ
,then:•
Ifs
1
a
−→ s
′
1
thenthere existss
′
2
∈ S
2
su h thats
2
a
−→ s
′
2
ands
′
1
Rs
′
2
.Denition 5 Abisimulation between
S
1
andS
2
isarelationR ⊆ S
1
× S
2
su hthatwhenevers
1
Rs
2
anda ∈ Σ
,then:•
Ifs
1
a
−→ s
′
1
thenthere existss
′
2
∈ S
2
su h thats
2
a
−→ s
′
2
ands
′
1
Rs
′
2
.•
Ifs
2
a
−→ s
′
2
thenthere existss
′
1
∈ S
1
su h thats
1
a
−→ s
′
1
ands
′
1
Rs
′
2
.We write
s
1
⊑ s
2
(resp.s
1
∼ s
2
)ifand only ifthereexistsa simulation(resp. a bisimula-tion)R
withs
1
Rs
2
.Denition 6
S
2
simulateS
1
(resp.S
1
andS
2
are bisimilar) whenever there exists a simu-lation(resp. a bisimulation)R
betweenS
1
andS
2
su h that the pair(s
0
1
, s
0
2
)
of their initial states belongs to the relationR
,andthenwe writeS
1
⊑ S
2
(resp.S
1
∼ S
2
).Denition 7 An
ω
-automaton on words overΣ
is a tupleA = hS, Acci
whereS =
hS, Σ, s
0
, ∆
S
i
isa niteΣ
-labelled transitionsystemandAcc
isthea eptan e ondition. Denition 8 LetA = hS, Acci
be anω
-automaton overΣ
-words asabove dened. A runρ
ofA
ona wordw = w
0
w
1
· · · ∈ Σ
ω
isasequen eof states
ρ = s
0
s
1
. . .
su hthatthefollowing onditions hold:1.
s
0
= s
0
2.
s
i
issu h thats
i−1
w
i
−→ s
i
∈ ∆
S
Whether a run of an automaton is a epting depends on the nature of the a eptan e
ondition ofthe automaton. There areseveral a eptan e onditions:
1. The Bü hia eptan e ondition [B
62℄is givenbya set
F ⊆ Q
:ρ
is a eptingwhenInf (ρ) ∩ F 6= ∅
2. The Rabin a eptan e ondition [Rab69 ℄ is given by a set
Ω = {(E
i
, F
i
)}
i=1..n
withE
i
, F
i
⊆ Q
:ρ
isa epting when3. The parity ondition [Mos85℄ isgiven byafun tion
rank : Q → {1, . . . , k}
(wherek
is a naturalnumber)thatassignsaparity index tostatesoftheautomaton:ρ
isa epting whenmax{rank(q) | q ∈ Inf (ρ)}
is even.This onditionisalso alledthemax
-parity ondition.Dependingofthenatureofthea eptan e ondition,automata are alledBü hiautomata,
Rabinautomata,or Parity automata.
Denition 9 Thelanguage ofanautomaton
A
denotedbyL(A)
isthesetofwordsonwhi hA
hasan a eptingrun.Let us re all some interesting well known results on automata. Non deterministi Bü hi
automata, RabinautomataandParityautomata a eptthesamesetoflanguages.Thissetof
languagesis losedunderinterse tion,union,and omplementation (see[Tho97℄).The
empti-ness he kingforaRabinautomatawith
m
statesandn
pairsisde idableinO(mn)
3n
.Every
nondeterministi Rabinautomaton anbetranslatedintoanequivalentparityautomatonand
re ipro ally(see[L
99 ℄).Moreover,everynondeterministi parityautomaton anbetranslated
into a deterministi parityautomaton.
1.2 Two Player Parity Games and Multi-Parity Games
We present a omplexity result for he king a winning strategy in a two player games with
parity ondition. Wealso present thenotionof twomulti-paritygame.
Denition 10 Atwoplayerparity game(see [Zie98 ℄)isatuple
G = hN
E
, N
A
, T ⊆ N
2
, Acc
G
i
where
hN, T i
isa graphwiththenodes(orpositions)N = N
A
∪ N
E
partitioned intoN
E
andN
A
.N
E
denotes the set of nodes of the playerEve
andN
A
denotes the set of nodes of the playerAdam
. The winning onditionAcc
G
⊆ N
ω
, is a parity ondition on the nodes. The
gameisnite if
N
is nite.Aplaybetween
Eve
andAdam
fromsomenoden ∈ N
pro eedsasfollows:ifn ∈ N
E
thenEve
makes a hoi e of a su essor otherwiseAdam
hooses a su essor; from this su essor thesame rule applies and the play goes on forever unless one of the parties annot make amove.A playis niteifa player annot make a move and thenheloosetheplay.In the ase
that the play is an innite path
π = n
0
n
1
n
2
· · ·
,Eve
wins ifπ ∈ Acc
G
. OtherwiseAdam
isthewinner. Among winning onditions introdu ed intheliterature, we onsiderthe parityondition. Astrategy
σ
forEve
isafun tion assigningto everysequen eofnodes~n
ending in anoden
fromN
E
a vertexσ(~n)
whi h isa su essor ofn
.A play from
n
onsistent withσ
is a nite or innite sequen en
0
n
1
n
2
· · ·
su h thatn
i+1
= σ(n
i
)
foralli
withn
i
∈ N
E
.Thestrategyσ
iswinningforEve
fromthenoden
ifand onlyifallthe playsstarting inn
and onsistentwithσ
arewinning. Thestrategies forAdam
isaredened similarly. Anode iswinning ifthere existsa strategy winning fromit. A gameisdetermined ifeverynode iswinningforoneof theplayer. Astrategyispositional ifitdoes
Sosu h a strategy for
Eve
an be representedasa fun tionσ : N
E
→ N
andidentied with a hoi eof edges inthe graph ofthe game.Nowwe state the following resultson two playergames (see[GH82, EJ91 , Jur00,VJ00℄).
Theorem 11 Everyparity gameisdetermined.Ina twoplayerparitygameoneoftheplayers
hasawinningpositionalstrategyfromea hofhiswinningnodes.Thereisanee tivepro edure
that de ideswho isa winner froma given node in a nite game, andthat pro edure works in
time
O
|T | ×
2 × |N |
d
⌈d/2⌉
!
where,
d
isthe maximal parity index.1.3 The
µ
-Cal ulusThe
µ
- al ulusintrodu ed byKozen[Koz82℄(seealso[AN01℄)isanexpressivetemporallogi thatextendsmodallogi withthegreatest(ν
)andleast(µ
)xpointoperators.Wepresentthe syntaxandthesemanti softheµ
- al ulus.Thenwestatesomewellknownresultsthatin lude the omplexityofthemodel- he kingproblem,the omplexityofthesatisabilityproblemandadisjun tive normalformtheorem. The omplexityresultfor themodel- he king is obtained
byredu tionto he king ifthereis awinning strategy inatwo playerparitygame.
1.3.1 Denitions and Semanti s
Denition 12 The syntax of the
µ
- al ulus is dened over a setVar
= {X, Y, . . .}
of vari-ables, asetΣ
of events.It isgiven by thefollowing grammar:ϕ ::= tt |
| X | ϕ ∨ ψ | ϕ ∧ ψ | haiϕ | [a]ϕ | µX.ϕ(X) | νX.ϕ(X)
In theabove,
X ∈ Var
,a ∈ Σ
; andtt
and denote the formula that are always true and false respe tively;hai
and[a]
denotetheexistentialandtheuniversalmodalitiesindexedwith theeventa
;theyrepresentexistsa
-su essorandalla
-su essor modalitiesrespe tively.The formulasµX.ϕ(X)
andνX.ϕ(X)
represent respe tively the least and the greatest xpoint formula.For a formula
ϕ
,the losure[Koz82℄ofϕ
,sub(ϕ)
isdened asfollows:Denition 13 The losure
sub(ϕ)
ofϕ
isthe smallest setof formulas su h that:• ϕ ∈ sub(ϕ)
•
ifψ
1
∨ ψ
2
∈ sub(ϕ)
thebothψ
1
, ψ
2
∈ sub(ϕ)
•
ifψ
1
∧ ψ
2
∈ sub(ϕ)
thebothψ
1
, ψ
2
∈ sub(ϕ)
•
ifhaiψ ∈ sub(ϕ)
thenψ ∈ sub(ϕ)
1.3. The
µ
-Cal ulus 19•
ifσX.ψ(X) ∈ sub(ϕ)
thenψ(X) ∈ sub(ϕ)
,whereσ ∈ {ν, µ}
Theformulasin
sub(ϕ)
are alledthe sub formulas ofϕ
.For aformulaϕ
,sub(ϕ)
is nite and, bydenition, itis not largerthatthenumberof symbols usedinϕ
.Denition 14 Theset
f ree(ϕ)
offreevariableofaµ
- al ulusformulaϕ
isdenedindu tively asfollows:• f ree(tt) = f ree(
) = ∅
• f ree(X) = {X}
• f ree(ϕ ∨ ψ) = f ree(ϕ ∧ ψ) = f ree(ϕ) ∪ f ree(ψ)
• f ree([a]ϕ) = f ree(haiϕ) = f ree(ϕ)
• f ree(µX.ϕ(X)) = f ree(νX.ϕ(X)) = f ree(ϕ) \ {X}
Avariable
X
isfree ina formulaϕ
ifX ∈ f ree(ϕ)
.Denition 15 Avariable
X
isbound ina formulaϕ
ifthereisasub formulaσX.ψ(X)
ofϕ
withσ ∈ {µ, ν}
.We remark that, a variable an be bound and free at the same time. For example, in the
formula
ϕ = µX(haiX ∨ hbiY ) ∧ νY.hciY
,the variableY
is bound andfree. Ano urren eofY
inϕ
an be repla ed with a new variable to getan equivalent formula variables of whi h areeitherfreeor bound.Denition 16 (Well named) We all aformulawell named iftheexpression
µX.ϕ(X)
(orνX.ϕ(X)
) o ursat most on efor ea h variableX
.By renaming some o urren es of variables if ne essary, every formula an be translated
into an equivalent well namedformula. Inwhatfollows,withoutlossof generality,weassume
that formulas arewell named.
Denition 17 (Binding) The binding denition of a bound variable
X
in a well named formulaϕ
,D
ϕ
(X)
istheuniquesubformulaofϕ
oftheformσX.ψ(X)
.Wewillomitsubs riptϕ
when it auses no ambiguity. We allX
aµ
-variable whenσ = µ
, otherwise we allX
aν
-variable. Thefun tionD
ϕ
assigning to everyboundvariable itsbinding denitioninϕ
will be alledthe binding fun tion asso iatedwithϕ
.Denition 18 Asenten e is awell named formulawithout freevariables.
Denition 19 The dependen y order
≤
ϕ
over the bound variables of a formulaϕ
, is the leastpartialordersu hthatifX
o urs inD
ϕ
(Y )
andD
ϕ
(Y )
isasubformulaofD
ϕ
(X)
thenX ≤
ϕ
Y
.WhenX ≤
ϕ
Y
, itisalso saidthatY
depends onX
orX
is older thanY
.Letus illustratethe threedenitionsjustabove withanexample.Consideragaintheformula
ϕ = µX(haiX ∨ hbiY ) ∧ νY.hciY
. It should be lear thatϕ
is not a senten e as there is a free o urren e of the variableY
inϕ
. We have thatD
ϕ
(X) = µX(haiX ∨ hbiY )
andD
ϕ
(Y ) = νY.hciY
. The variablesX
andY
an not be ompared withthe dependen y order relation≤
ϕ
.Denition 20 (Expansion) Givena formula
ϕ
,itsbinding fun tionD
ϕ
,andasub formulaψ
ofϕ
,theexpansionh[ψ]i
D
ϕ
ofψ
withrespe ttoD
ϕ
is dened byh[ψ]i
D
ϕ
= ψ[D
ϕ
(X
n
)/X
n
] · · · [D
ϕ
(X
1
)/X
1
]
where
X
1
≤
ϕ
X
2
≤
ϕ
· · · ≤
ϕ
X
n
isa hain ofboundvariables ofϕ
withrespe tto≤
ϕ
.Denition 21 Variable
X
inµX.ϕ(X)
isguarded ifevery o urren e ofX inϕ(X)
isinthe s ope of some modality operatorhi
or[]
. We say that a formula is guarded if every bound variable intheformulais guarded.Alternationdepthdes ribesthenumberofalternationsbetweenleastandgreatestxpoint
operators.
Denition 22 Thealternation depthofaformuladenotedby
alt(ϕ)
isthenumber ofnesting betweenµ
andν
inϕ
;it isre ursively dened asfollows:• alt(tt) = alt(
) = alt(X) = 0
• alt(ϕ ∧ ψ) = alt(ϕ ∨ ψ) = max(alt(ϕ), alt(ψ))
• alt(haiϕ) = alt([a]ϕ) = alt(ϕ)
• alt(µX.ϕ(X)) = max({1, alt(ϕ(X)} ∪ {1 + alt(νY.ψ(Y )) | νY.ψ(Y ) ∈ sub(ϕ); X ≤
ϕ
Y })
• alt(νX.ϕ(X)) = max({1, alt(ϕ(X)} ∪ {1 + alt(µY.ψ(Y )) | µY.ψ(Y ) ∈ sub(ϕ); X ≤
ϕ
Y })
Formulas of the
µ
- al ulus are interpreted overΣ
-labelled transition systems. The se-manti s of aµ
- al ulus formulaϕ
is a set of states of aΣ
-labelled transition systemS =
hS, Σ, s
0
, ∆
S
i
where the formula holds undera given valuationof variablesVal
: Var → 2
S
,
and it is denoted by