• Aucun résultat trouvé

A puzzle game

N/A
N/A
Protected

Academic year: 2022

Partager "A puzzle game"

Copied!
110
0
0

Texte intégral

(1)

Temporal Logic of Knowledge and its applications in security

C˘at˘alin Dima

LACL, Universit´e Paris 12

8/12/2006

(2)

1 Preliminaries

The muddy children puzzle Logics of knowledge and security

2 The bases

Syntax and semantics Knowledge and time

Types of temporal knowledge Axiomatics and decidability issues

3 Knowledge and information flow Classical information flow properties

(3)

1 Preliminaries

The muddy children puzzle Logics of knowledge and security

2 The bases

Syntax and semantics Knowledge and time

Types of temporal knowledge Axiomatics and decidability issues

3 Knowledge and information flow Classical information flow properties

(4)

A puzzle game

nchildren play together outside,

None wants to get dirty (Dad punishes!), but would like to see the others dirty! (kids...)

It happens that, at some moment,k of them get mud on their foreheads

... so each of them cannot see if he’s dirty or not!

... and none signals anything to anybody who’s dirty!

Mum comes into the room and says

At least one of you has mud on his forehead Then she asks everybody:

Does anyone of you know whether you’re dirty?

Assuming that all children are intelligent, perceptive and truthful (!), what happens?

(5)

A puzzle game

nchildren play together outside,

None wants to get dirty (Dad punishes!), but would like to see the others dirty! (kids...)

It happens that, at some moment,k of them get mud on their foreheads

... so each of them cannot see if he’s dirty or not!

... and none signals anything to anybody who’s dirty!

Mum comes into the room and says

At least one of you has mud on his forehead Then she asks everybody:

Does anyone of you know whether you’re dirty?

Assuming that all children are intelligent, perceptive and truthful (!), what happens?

(6)

A puzzle game

nchildren play together outside,

None wants to get dirty (Dad punishes!), but would like to see the others dirty! (kids...)

It happens that, at some moment,k of them get mud on their foreheads

... so each of them cannot see if he’s dirty or not!

... and none signals anything to anybody who’s dirty!

Mum comes into the room and says

At least one of you has mud on his forehead Then she asks everybody:

Does anyone of you know whether you’re dirty?

Assuming that all children are intelligent, perceptive and truthful (!), what happens?

(7)

A puzzle game

nchildren play together outside,

None wants to get dirty (Dad punishes!), but would like to see the others dirty! (kids...)

It happens that, at some moment,k of them get mud on their foreheads

... so each of them cannot see if he’s dirty or not!

... and none signals anything to anybody who’s dirty!

Mum comes into the room and says

At least one of you has mud on his forehead Then she asks everybody:

Does anyone of you know whether you’re dirty?

Assuming that all children are intelligent, perceptive and truthful (!), what happens?

(8)

Solving the puzzle game

There is a “formal” proof that

the firstk1 times Mum asks her question, all will sayNo, butthekthtime she asks her question, exactly those children with muddy foreheads will sayYes, I am dirty!

Proof: by induction onk:

Fork=1 it’s obvious (ain’t it?).

Fork=2, the first time everybody saysNo.

... but then everybody will notice that the two muddy children do not know they are dirty.

Hence muddyaconcludes that, since muddybdoes not deduce that he’s the only one to be dirty, he must have seen mud on someone else’s forehead.

So it must be his (a’s) own forehead that was muddy!

Generalize the reasoning!

(9)

Solving the puzzle game

There is a “formal” proof that

the firstk1 times Mum asks her question, all will sayNo, butthekthtime she asks her question, exactly those children with muddy foreheads will sayYes, I am dirty!

Proof: by induction onk:

Fork=1 it’s obvious (ain’t it?).

Fork=2, the first time everybody saysNo.

... but then everybody will notice that the two muddy children do not know they are dirty.

Hence muddyaconcludes that, since muddybdoes not deduce that he’s the only one to be dirty, he must have seen mud on someone else’s forehead.

So it must be his (a’s) own forehead that was muddy!

Generalize the reasoning!

(10)

Solving the puzzle game

There is a “formal” proof that

the firstk1 times Mum asks her question, all will sayNo, butthekthtime she asks her question, exactly those children with muddy foreheads will sayYes, I am dirty!

Proof: by induction onk:

Fork=1 it’s obvious (ain’t it?).

Fork=2, the first time everybody saysNo.

... but then everybody will notice that the two muddy children do not know they are dirty.

Hence muddyaconcludes that, since muddybdoes not deduce that he’s the only one to be dirty, he must have seen mud on someone else’s forehead.

So it must be his (a’s) own forehead that was muddy!

Generalize the reasoning!

(11)

Solving the puzzle game

There is a “formal” proof that

the firstk1 times Mum asks her question, all will sayNo, butthekthtime she asks her question, exactly those children with muddy foreheads will sayYes, I am dirty!

Proof: by induction onk:

Fork=1 it’s obvious (ain’t it?).

Fork=2, the first time everybody saysNo.

... but then everybody will notice that the two muddy children do not know they are dirty.

Hence muddyaconcludes that, since muddybdoes not deduce that he’s the only one to be dirty, he must have seen mud on someone else’s forehead.

So it must be his (a’s) own forehead that was muddy!

Generalize the reasoning!

(12)

Solving the puzzle game

There is a “formal” proof that

the firstk1 times Mum asks her question, all will sayNo, butthekthtime she asks her question, exactly those children with muddy foreheads will sayYes, I am dirty!

Proof: by induction onk:

Fork=1 it’s obvious (ain’t it?).

Fork=2, the first time everybody saysNo.

... but then everybody will notice that the two muddy children do not know they are dirty.

Hence muddyaconcludes that, since muddybdoes not deduce that he’s the only one to be dirty, he must have seen mud on someone else’s forehead.

So it must be his (a’s) own forehead that was muddy!

Generalize the reasoning!

(13)

Solving the puzzle game

There is a “formal” proof that

the firstk1 times Mum asks her question, all will sayNo, butthekthtime she asks her question, exactly those children with muddy foreheads will sayYes, I am dirty!

Proof: by induction onk:

Fork=1 it’s obvious (ain’t it?).

Fork=2, the first time everybody saysNo.

... but then everybody will notice that the two muddy children do not know they are dirty.

Hence muddyaconcludes that, since muddybdoes not deduce that he’s the only one to be dirty, he must have seen mud on someone else’s forehead.

So it must be his (a’s) own forehead that was muddy!

Generalize the reasoning!

(14)

Solving the puzzle game

There is a “formal” proof that

the firstk1 times Mum asks her question, all will sayNo, butthekthtime she asks her question, exactly those children with muddy foreheads will sayYes, I am dirty!

Proof: by induction onk:

Fork=1 it’s obvious (ain’t it?).

Fork=2, the first time everybody saysNo.

... but then everybody will notice that the two muddy children do not know they are dirty.

Hence muddyaconcludes that, since muddybdoes not deduce that he’s the only one to be dirty, he must have seen mud on someone else’s forehead.

So it must be his (a’s) own forehead that was muddy!

Generalize the reasoning!

(15)

Muddy children and knowledge

All children do their reasoning provided theyknowsome properties...

... and deduce (know) later that the othersdo not know some other properties.

Mum’s questions serve assynchronization steps.

Without these, there could be no way for children to achieve their deductions!

Stepk +1 also represents the convergence of the system tocommon knowledge.

That is,everybody knows that everybody knows that everybody knows that ... thata1. . .ak are dirty

(16)

Why studying logics of knowledge?

Epistemic logics are important inmulti-agent systems.

Originally developed for AI.

Security analysis involves at least two agents: the legitimate user(s) and the intruder(s).

In security protocol analysis, we speak aboutintruder knowledge!

Information flow analysis also is concerned with the information an agent gains about security levels to which he is not authorized to access.

Information is closely related to knowledge.

(17)

What characterizes a logic?

Its syntax.

Its semantics.

Its axiomatic system.

The possibility to “mechanicise” the deduction = decidability of various decision problems.

Various interesting extensions.

Applications in the study of information flow.

(18)

1 Preliminaries

The muddy children puzzle Logics of knowledge and security

2 The bases

Syntax and semantics Knowledge and time

Types of temporal knowledge Axiomatics and decidability issues

3 Knowledge and information flow Classical information flow properties

(19)

Basic knowledge operators

nagent system – call them 1,2, . . . ,n.

Kiφ: agenti knowsformulaφ.

Examples:

1 nchildren play their muddy forehead game.

2 p2:childi has mud on his forehead.

3 K4p2:child 4 knows that child 2 is muddy.

4 K1(K4p2p1) :

child 1 knows that child 2 knows that 2 is muddy...

... and also knows that he himself is muddy!

All the other boolean operators: ∧,∨,¬,→. . .. Temporal operators will be added later!

(20)

Basic knowledge operators

nagent system – call them 1,2, . . . ,n.

Kiφ: agenti knowsformulaφ.

Examples:

1 nchildren play their muddy forehead game.

2 p2:childi has mud on his forehead.

3 K4p2:child 4 knows that child 2 is muddy.

4 K1(K4p2p1) :

child 1 knows that child 2 knows that 2 is muddy...

... and also knows that he himself is muddy!

All the other boolean operators: ∧,∨,¬,→. . .. Temporal operators will be added later!

(21)

Basic knowledge operators

nagent system – call them 1,2, . . . ,n.

Kiφ: agenti knowsformulaφ.

Examples:

1 nchildren play their muddy forehead game.

2 p2:childi has mud on his forehead.

3 K4p2:child 4 knows that child 2 is muddy.

4 K1(K4p2p1) :

child 1 knows that child 2 knows that 2 is muddy...

... and also knows that he himself is muddy!

All the other boolean operators: ∧,∨,¬,→. . .. Temporal operators will be added later!

(22)

Basic knowledge operators

nagent system – call them 1,2, . . . ,n.

Kiφ: agenti knowsformulaφ.

Examples:

1 nchildren play their muddy forehead game.

2 p2:childi has mud on his forehead.

3 K4p2:child 4 knows that child 2 is muddy.

4 K1(K4p2p1) :

child 1 knows that child 2 knows that 2 is muddy...

... and also knows that he himself is muddy!

All the other boolean operators: ∧,∨,¬,→. . .. Temporal operators will be added later!

(23)

Basic knowledge operators

nagent system – call them 1,2, . . . ,n.

Kiφ: agenti knowsformulaφ.

Examples:

1 nchildren play their muddy forehead game.

2 p2:childi has mud on his forehead.

3 K4p2:child 4 knows that child 2 is muddy.

4 K1(K4p2p1) :

child 1 knows that child 2 knows that 2 is muddy...

... and also knows that he himself is muddy!

All the other boolean operators: ∧,∨,¬,→. . .. Temporal operators will be added later!

(24)

Basic knowledge operators

nagent system – call them 1,2, . . . ,n.

Kiφ: agenti knowsformulaφ.

Examples:

1 nchildren play their muddy forehead game.

2 p2:childi has mud on his forehead.

3 K4p2:child 4 knows that child 2 is muddy.

4 K1(K4p2p1) :

child 1 knows that child 2 knows that 2 is muddy...

... and also knows that he himself is muddy!

All the other boolean operators: ∧,∨,¬,→. . .. Temporal operators will be added later!

(25)

Semantics

Possible worldsmodel: Kripke structurefornagents:

M = (S,Π, π,K1, . . . ,Kn).

S– the set ofglobal states.

SometimesS=S1×. . .×Sn. Si =local statesfor agenti.

Π– set of primitive propositions (likep2:childi is muddy).

π :S→2Π– truth value for each primite propositionin each state.

Ki – theindistinguishibility relation(also called the possibilityrelation).

Ki(s,s0)= for agenti, statessands0 cannot be

distinguished by prior observation – i.e., according toi’s knowledge!

Very oftenKi arereflexive, symmetric & transitive– i.e.

equivalence relations.

(26)

Semantics

Possible worldsmodel: Kripke structurefornagents:

M = (S,Π, π,K1, . . . ,Kn).

S– the set ofglobal states.

SometimesS=S1×. . .×Sn. Si =local statesfor agenti.

Π– set of primitive propositions (likep2:childi is muddy).

π :S→2Π– truth value for each primite propositionin each state.

Ki – theindistinguishibility relation(also called the possibilityrelation).

Ki(s,s0)= for agenti, statessands0 cannot be

distinguished by prior observation – i.e., according toi’s knowledge!

Very oftenKi arereflexive, symmetric & transitive– i.e.

equivalence relations.

(27)

Semantics

Possible worldsmodel: Kripke structurefornagents:

M = (S,Π, π,K1, . . . ,Kn).

S– the set ofglobal states.

SometimesS=S1×. . .×Sn. Si =local statesfor agenti.

Π– set of primitive propositions (likep2:childi is muddy).

π :S→2Π– truth value for each primite propositionin each state.

Ki – theindistinguishibility relation(also called the possibilityrelation).

Ki(s,s0)= for agenti, statessands0 cannot be

distinguished by prior observation – i.e., according toi’s knowledge!

Very oftenKi arereflexive, symmetric & transitive– i.e.

equivalence relations.

(28)

Semantics

Possible worldsmodel: Kripke structurefornagents:

M = (S,Π, π,K1, . . . ,Kn).

S– the set ofglobal states.

SometimesS=S1×. . .×Sn. Si =local statesfor agenti.

Π– set of primitive propositions (likep2:childi is muddy).

π :S→2Π– truth value for each primite propositionin each state.

Ki – theindistinguishibility relation(also called the possibilityrelation).

Ki(s,s0)= for agenti, statessands0 cannot be

distinguished by prior observation – i.e., according toi’s knowledge!

Very oftenKi arereflexive, symmetric & transitive– i.e.

equivalence relations.

(29)

Semantics

Possible worldsmodel: Kripke structurefornagents:

M = (S,Π, π,K1, . . . ,Kn).

S– the set ofglobal states.

SometimesS=S1×. . .×Sn. Si =local statesfor agenti.

Π– set of primitive propositions (likep2:childi is muddy).

π :S→2Π– truth value for each primite propositionin each state.

Ki – theindistinguishibility relation(also called the possibilityrelation).

Ki(s,s0)= for agenti, statessands0 cannot be

distinguished by prior observation – i.e., according toi’s knowledge!

Very oftenKi arereflexive, symmetric & transitive– i.e.

equivalence relations.

(30)

Semantics (contd.)

Semantics of formulas: evaluated at eachstates:

(M,s)|=φ: formulaφholds atstates.

(M,s)|=piffp2∈π(s).

(M,s)|=φ1∧φ2iff

(M,s)|=Kiφiff(M,s0)|=φfor alls0 withKi(s,s0).

φis a formula that is acquired byi.

All observations bringi to consider thatφmust hold.

Notation:M |=φiff(M,s)|=φfor allsS.

(31)

Semantics (contd.)

Semantics of formulas: evaluated at eachstates:

(M,s)|=φ: formulaφholds atstates.

(M,s)|=piffp2∈π(s).

(M,s)|=φ1∧φ2iff

(M,s)|=Kiφiff(M,s0)|=φfor alls0 withKi(s,s0).

φis a formula that is acquired byi.

All observations bringi to consider thatφmust hold.

Notation:M |=φiff(M,s)|=φfor allsS.

(32)

Semantics (contd.)

Semantics of formulas: evaluated at eachstates:

(M,s)|=φ: formulaφholds atstates.

(M,s)|=piffp2∈π(s).

(M,s)|=φ1∧φ2iff

(M,s)|=Kiφiff(M,s0)|=φfor alls0 withKi(s,s0).

φis a formula that is acquired byi.

All observations bringi to consider thatφmust hold.

Notation:M |=φiff(M,s)|=φfor allsS.

(33)

Semantics (contd.)

Semantics of formulas: evaluated at eachstates:

(M,s)|=φ: formulaφholds atstates.

(M,s)|=piffp2∈π(s).

(M,s)|=φ1∧φ2iff(M,s)|=φ1and(M,s) |=φ2. (M,s)|=Kiφiff(M,s0)|=φfor alls0 withKi(s,s0).

φis a formula that is acquired byi.

All observations bringi to consider thatφmust hold.

Notation:M |=φiff(M,s)|=φfor allsS.

(34)

Semantics (contd.)

Semantics of formulas: evaluated at eachstates:

(M,s)|=φ: formulaφholds atstates.

(M,s)|=piffp2∈π(s).

(M,s)|=φ1∧φ2iff(M,s)|=φ1and(M,s) |=φ2. (M,s)|=Kiφiff(M,s0)|=φfor alls0 withKi(s,s0).

φis a formula that is acquired byi.

All observations bringi to consider thatφmust hold.

Notation:M |=φiff(M,s)|=φfor allsS.

(35)

Muddy children – original situation

Kripke structureMmud = (S,Π, π,Ki)fornagents.

“Local state” for agenti: Si ={0,1}(muddy or not!).

S=S1×. . .Sn– that is, 2ninitial situations.

A “global state” is composed of “local states”:

s= (s1, . . . ,sn).

Π ={p1, . . . ,pn}.

(Mmud,s)|=p3iffs3=1.

Ki(s,s0)iffsj =sj0for allj 6=i.

“Hypercube” representation ofMmud.

What are the states where(Mmud,s)|=K1p2?

(36)

Muddy children – original situation

Kripke structureMmud = (S,Π, π,Ki)fornagents.

“Local state” for agenti: Si ={0,1}(muddy or not!).

S=S1×. . .Sn– that is, 2ninitial situations.

A “global state” is composed of “local states”:

s= (s1, . . . ,sn).

Π ={p1, . . . ,pn}.

(Mmud,s)|=p3iffs3=1.

Ki(s,s0)iffsj =sj0for allj 6=i.

“Hypercube” representation ofMmud.

What are the states where(Mmud,s)|=K1p2?

(37)

Muddy children – original situation

Kripke structureMmud = (S,Π, π,Ki)fornagents.

“Local state” for agenti: Si ={0,1}(muddy or not!).

S=S1×. . .Sn– that is, 2ninitial situations.

A “global state” is composed of “local states”:

s= (s1, . . . ,sn).

Π ={p1, . . . ,pn}.

(Mmud,s)|=p3iffs3=1.

Ki(s,s0)iffsj =sj0for allj 6=i.

“Hypercube” representation ofMmud.

What are the states where(Mmud,s)|=K1p2?

(38)

Muddy children – original situation

Kripke structureMmud = (S,Π, π,Ki)fornagents.

“Local state” for agenti: Si ={0,1}(muddy or not!).

S=S1×. . .Sn– that is, 2ninitial situations.

A “global state” is composed of “local states”:

s= (s1, . . . ,sn).

Π ={p1, . . . ,pn}.

(Mmud,s)|=p3iffs3=1.

Ki(s,s0)iffsj =sj0for allj 6=i.

“Hypercube” representation ofMmud.

What are the states where(Mmud,s)|=K1p2?

(39)

Other knowledge operators

i considersφpossible–Piφ–

(M,s)|=Piφiff(M,s0)|=φfor somes0withKi(s,s0).

Everybody in the groupGknowsφ–EGφ– (M,s)|=EGφiff(M,s)|=Kiφfor alli G.

Distributed knowledge ofφwithin a group: DGφ

(M,s)|=EGφiff(M,s0)|=φfor alls0withKi(s,s0)∀i G.

Common knowledge ofφwithin a groupG: CGφ (M,s)|=CGφiff(M,s)|=EGkφfor allk.

That is, each agent knows that each other agent knows that .... knows thatφholds.

Stronger thanEGand distributed knowledge!

What aboutP2p2,E1,2p2,E1,2p3,D1,2p3,C1,2p3inMmud?

(40)

Other knowledge operators

i considersφpossible–Piφ–

(M,s)|=Piφiff(M,s0)|=φfor somes0withKi(s,s0).

Everybody in the groupGknowsφ–EGφ– (M,s)|=EGφiff(M,s)|=Kiφfor alli G.

Distributed knowledge ofφwithin a group: DGφ

(M,s)|=EGφiff(M,s0)|=φfor alls0withKi(s,s0)∀i G.

Common knowledge ofφwithin a groupG: CGφ (M,s)|=CGφiff(M,s)|=EGkφfor allk.

That is, each agent knows that each other agent knows that .... knows thatφholds.

Stronger thanEGand distributed knowledge!

What aboutP2p2,E1,2p2,E1,2p3,D1,2p3,C1,2p3inMmud?

(41)

Other knowledge operators

i considersφpossible–Piφ–

(M,s)|=Piφiff(M,s0)|=φfor somes0withKi(s,s0).

Everybody in the groupGknowsφ–EGφ– (M,s)|=EGφiff(M,s)|=Kiφfor alli G.

Distributed knowledge ofφwithin a group: DGφ

(M,s)|=EGφiff(M,s0)|=φfor alls0withKi(s,s0)∀i G.

Common knowledge ofφwithin a groupG: CGφ (M,s)|=CGφiff(M,s)|=EGkφfor allk.

That is, each agent knows that each other agent knows that .... knows thatφholds.

Stronger thanEGand distributed knowledge!

What aboutP2p2,E1,2p2,E1,2p3,D1,2p3,C1,2p3inMmud?

(42)

Other knowledge operators

i considersφpossible–Piφ–

(M,s)|=Piφiff(M,s0)|=φfor somes0withKi(s,s0).

Everybody in the groupGknowsφ–EGφ– (M,s)|=EGφiff(M,s)|=Kiφfor alli G.

Distributed knowledge ofφwithin a group: DGφ

(M,s)|=EGφiff(M,s0)|=φfor alls0withKi(s,s0)∀i G.

Common knowledge ofφwithin a groupG: CGφ (M,s)|=CGφiff(M,s)|=EGkφfor allk.

That is, each agent knows that each other agent knows that .... knows thatφholds.

Stronger thanEGand distributed knowledge!

What aboutP2p2,E1,2p2,E1,2p3,D1,2p3,C1,2p3inMmud?

(43)

Other knowledge operators

i considersφpossible–Piφ–

(M,s)|=Piφiff(M,s0)|=φfor somes0withKi(s,s0).

Everybody in the groupGknowsφ–EGφ– (M,s)|=EGφiff(M,s)|=Kiφfor alli G.

Distributed knowledge ofφwithin a group: DGφ

(M,s)|=EGφiff(M,s0)|=φfor alls0withKi(s,s0)∀i G.

Common knowledge ofφwithin a groupG: CGφ (M,s)|=CGφiff(M,s)|=EGkφfor allk.

That is, each agent knows that each other agent knows that .... knows thatφholds.

Stronger thanEGand distributed knowledge!

What aboutP2p2,E1,2p2,E1,2p3,D1,2p3,C1,2p3inMmud?

(44)

Evolving knowledge

Consider again the muddy children Kripke structureMmud. What happens when Mum speaks the first time?

Answer: state(0,0, ...,0) disappears!

After Mum’s announcement, it iscommon knowledgethat someone has mud on his forehead!

What happens when Mum speaks the second time?

All states with only one 1 dissapear!

After Mum’s announcement, it iscommon knowledgethat at least twochildren are dirty!

And so on...

But this is not exactly captured by our system model!

(45)

Evolving knowledge

Consider again the muddy children Kripke structureMmud. What happens when Mum speaks the first time?

Answer: state(0,0, ...,0) disappears!

After Mum’s announcement, it iscommon knowledgethat someone has mud on his forehead!

What happens when Mum speaks the second time?

All states with only one 1 dissapear!

After Mum’s announcement, it iscommon knowledgethat at least twochildren are dirty!

And so on...

But this is not exactly captured by our system model!

(46)

Evolving knowledge

Consider again the muddy children Kripke structureMmud. What happens when Mum speaks the first time?

Answer: state(0,0, ...,0) disappears!

After Mum’s announcement, it iscommon knowledgethat someone has mud on his forehead!

What happens when Mum speaks the second time?

All states with only one 1 dissapear!

After Mum’s announcement, it iscommon knowledgethat at least twochildren are dirty!

And so on...

But this is not exactly captured by our system model!

(47)

Evolving knowledge

Consider again the muddy children Kripke structureMmud. What happens when Mum speaks the first time?

Answer: state(0,0, ...,0) disappears!

After Mum’s announcement, it iscommon knowledgethat someone has mud on his forehead!

What happens when Mum speaks the second time?

All states with only one 1 dissapear!

After Mum’s announcement, it iscommon knowledgethat at least twochildren are dirty!

And so on...

But this is not exactly captured by our system model!

(48)

Evolving knowledge

Consider again the muddy children Kripke structureMmud. What happens when Mum speaks the first time?

Answer: state(0,0, ...,0) disappears!

After Mum’s announcement, it iscommon knowledgethat someone has mud on his forehead!

What happens when Mum speaks the second time?

All states with only one 1 dissapear!

After Mum’s announcement, it iscommon knowledgethat at least twochildren are dirty!

And so on...

But this is not exactly captured by our system model!

(49)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(50)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(51)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(52)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(53)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(54)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(55)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(56)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(57)

Incorporating temporal operators

Future temporal operators:

φ– next time,φholds.

2φ–φholds forever, from now on.

φUψ–φholds in every time point untilψholds.

3φ– there exists a point in the future whereφwill hold.

And past temporal operators:

φ– last time,φheld.

φ– always before,φheld.

φ–φheld sometime in the past.

φSψ–φheld in every time point sinceψheld.

Other operators can be added (e.g. fixpoints).

(58)

Temporal semantics

Transition system fornagentsT = (S,):

S×Stemporal evolutionof the system.

RunsinT =infinitesequences of states inS.

Temporal interpreted system overT: I= (Q,Π, π):

Q=Runs(T)×Npoints.

π:Q2Π– interpretation of propositional symbols.

Semantics of temporal formulas: (I,r,n)|=φ.

(r,n)Q.

(59)

Temporal semantics

Transition system fornagentsT = (S,):

S×Stemporal evolutionof the system.

RunsinT =infinitesequences of states inS.

Temporal interpreted system overT: I= (Q,Π, π):

Q=Runs(T)×Npoints.

π:Q2Π– interpretation of propositional symbols.

Semantics of temporal formulas: (I,r,n)|=φ.

(r,n)Q.

(60)

Temporal semantics

Transition system fornagentsT = (S,):

S×Stemporal evolutionof the system.

RunsinT =infinitesequences of states inS.

Temporal interpreted system overT: I= (Q,Π, π):

Q=Runs(T)×Npoints.

π:Q2Π– interpretation of propositional symbols.

Semantics of temporal formulas: (I,r,n)|=φ.

(r,n)Q.

(61)

Temporal semantics (contd.)

(I,r,n)|=φiff(I,r,n+1)|=φ.

(I,r,n)|=2φiff(I,r,m)|=φforallmn.

(I,r,n)|=3φiff(I,r,m)|=φforsomemn.

(I,r,n)|=φUψiff(I,r,m)|=ψfor somemnand (I,r,p)|=φfor allnp <m.

(I,r,n)|= φiff(I,r,n−1)|=φ(n>0!).

(I,r,n)|=φiff(I,r,m)|=φfor allmn.

(I,r,n)|=φiff(I,r,n+1)|=φfor somemn.

(I,r,n)|=φUψiff(I,r,m)|=ψfor somemnand (I,r,p)|=φfor allm<pm.

(62)

Temporal semantics (contd.)

(I,r,n)|=φiff(I,r,n+1)|=φ.

(I,r,n)|=2φiff(I,r,m)|=φforallmn.

(I,r,n)|=3φiff(I,r,m)|=φforsomemn.

(I,r,n)|=φUψiff(I,r,m)|=ψfor somemnand (I,r,p)|=φfor allnp <m.

(I,r,n)|= φiff(I,r,n−1)|=φ(n>0!).

(I,r,n)|=φiff(I,r,m)|=φfor allmn.

(I,r,n)|=φiff(I,r,n+1)|=φfor somemn.

(I,r,n)|=φUψiff(I,r,m)|=ψfor somemnand (I,r,p)|=φfor allm<pm.

(63)

Temporal and knowledge semantics

Temporal interpreted systemI = (Q,Π, π) over a transition systemT.

Kripke structure overT: MT = (I,K1, . . .Kn). Ki Q×Q.

Semantics : unchanged from what we’ve seen!

Example formulas: K12p1p2UC2,3p3.

(64)

Temporal and knowledge semantics

Temporal interpreted systemI = (Q,Π, π) over a transition systemT.

Kripke structure overT: MT = (I,K1, . . .Kn). Ki Q×Q.

Semantics : unchanged from what we’ve seen!

Example formulas: K12p1p2UC2,3p3.

(65)

Muddy children example

Transition system: T = (S,)with={(s,s)| sS}.

Local states are unchanged during the run!

Run – identified with the (unique) state occurring in it!

Hence points = pairs (state, timepoint).

Interpretation: π(s,n) ={pi |si =1}.

Possibility relations:

Ki (s,k),(s0.k)

iffs=s0 or supp(s),supp(s0)≥k andsj =sj0 ∀j6=i

supp(s) ={i |si =1}.

Draw it!

(66)

Muddy children example

Transition system: T = (S,)with={(s,s)| sS}.

Local states are unchanged during the run!

Run – identified with the (unique) state occurring in it!

Hence points = pairs (state, timepoint).

Interpretation: π(s,n) ={pi |si =1}.

Possibility relations:

Ki (s,k),(s0.k)

iffs=s0 or supp(s),supp(s0)≥k andsj =sj0 ∀j6=i

supp(s) ={i |si =1}.

Draw it!

(67)

Muddy children example

Transition system: T = (S,)with={(s,s)| sS}.

Local states are unchanged during the run!

Run – identified with the (unique) state occurring in it!

Hence points = pairs (state, timepoint).

Interpretation: π(s,n) ={pi |si =1}.

Possibility relations:

Ki (s,k),(s0.k)

iffs=s0 or supp(s),supp(s0)≥k andsj =sj0 ∀j6=i

supp(s) ={i |si =1}.

Draw it!

Références

Documents relatifs

On suppose que le pentagone ~ abcde est non d´ eg´ en´ er´ e : les cinq points ne sont pas sur une mˆ

He ( like / enjoy/ loves) reading books and magazines.( On/ At /In ) Saturday ,they play football together.Peter likes his brother George.. because he is ( lazy/ kind /naughty

Ana was excited about going to school .Her class was going to take a test to see how much they had learned so far that year .Ana couldn’t wait to get to school .Ana sharpened her

Rosa is very interested in children .Last year ,she studied about children at university.Mary is nervous about her child’s journey to Britain.She says to her daughter « I’m

Montrer que le mécanisme est compatible avec l’ordre expérimental déterminé et exprimer la constante de vitesse k en fonction des constantes de vitesse k i

Dr Tannenbaum is Chair of the Working Group on Curriculum Review of the College of Family Physicians of Canada, Associate Professor in the Department of Family and Community

[r]

The target VCD was an Amazon Echo that had been configured for a domestic en- vironment and was interacted with by a single primary user over a period of five