chess review may 11, 2005 berkeley, ca discrete-event systems: generalizing metric spaces and...

25
Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu Eleftherios Matsikoudis Haiyang Zheng

Post on 21-Dec-2015

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Chess ReviewMay 11, 2005Berkeley, CA

Discrete-Event Systems:Generalizing Metric Spaces and Fixed-Point Semantics

Adam CataldoEdward LeeXiaojun LiuEleftherios MatsikoudisHaiyang Zheng

Page 2: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 2

Discrete-Event (DE) Systems

• Traditional Examples– VHDL– OPNET Modeler– NS-2

• Distributed systems– TeaTime protocol in Croquet

(two players vs. the computer)

Page 3: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 3

Introduction to DE Systems

• In DE systems, concurrent objects (processes) interact via signals

Process

Process

Values

Time

Event

Signal Signal

Page 4: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 4

What is the semantics of DE?

• Simultaneous events may occur in a model – VHDL Delta Time

• Simultaneity absent in traditional formalisms– Yates– Chandy/Misra– Zeigler

Page 5: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 5

Time in Software

• Traditional programming language semantics lack time

• When a physical system interacts with software, how should we model time?

• One possiblity is to assume some computations take zero time, e.g.– Synchronous language semantics– GIOTTO logical execution time

Page 6: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 6

Simultaneity in Hardware

• Simultaneity is common in synchronous circuits

• Example:

01

0

010 1

This value changes instantly

0

1

Time

Page 7: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 7

Simultaneity in Physical Systems

Page 8: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 8

Our Contributions

• We generalize DE semantics to handle simultaneous events

• We generalize metric space concepts to handle our model of time

• We give uniqueness conditions and conditions for avoidance of Zeno behavior

Page 9: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 9

Models of Time

• Time (real time)

• Superdense time [Maler, Manna, Pnueli]

Time increases in this direction

Supertime increases first in this direction(sequence time)

then in this direction(real time)

Page 10: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 10

Zeno Signals

• Definition: Zeno Signal infinite events in finite real time

Chattering Zeno [Ames]

Genuinely Zeno [Ames]

Page 11: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 11

Source of Zeno Signals

• Feedback can cause Zeno

Merge

Input Signal

Output Signal

Page 12: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 12

Genuinely Zeno

• A source of genuinely Zeno signals

Input Signal

Output Signal

DelayBy Input

Value

Merge

1/2

Page 13: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 13

Simple Processes

• Definition: Simple Process

ProcessNon-Zeno Signal Non-Zeno Signal

• Merge is simple, but it has Zeno feedback solutions

Merge

• When are compositions of simple processes simple?

Page 14: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 14

Cantor Metric for Signals

First time at which the two signals differ

1

“Distance” betweentwo signals

0 t

t

ssd2

1, 21

1s

2s

t

t

Page 15: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 15

Tetrics: Extending Metric Spaces

• Cantor metric doesn’t capture simultaneity

• Tetrics are generalized metrics

• We generalized metric spaces with “tetric spaces”

• Our tetric allows us to deal with simultaneity

Page 16: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 16

Our Tetric for signals

t

n

First time at which the two signals differ

First sequence number at which the two signals differ

“Distance” between two signals:

t

ssd2

1, 211

n

ssd2

1, 212

ntssd

2

1,

2

1, 21

1s

2s

t

t

n

n

Page 17: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 17

Delta Causal

Process

Definition: Delta CausalInput signals agree up to time t implies output signals agree up to time t +

t

t

t

t

Page 18: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 18

What Delta Causal Means

Delta Causal

Process

• Signals which delay their response to input events by delta will have non-Zeno fixed points

tt 2t

Page 19: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 19

Extending Delta Causal

• The system should be allowed to chatter

• As long as time eventually advances by delta

Delta Causal

Process

01

2

2ttt

Page 20: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 20

Tetric Delta Causal

Process

Definition: Tetric Delta Causal1) Input signals agree up to time (t,n) implies output signals agree up to time (t, n + 1)

2) If n is large enough, this alsoimplies output signals agree up to time (t + ,0)

t

t

t

t

1n

1n

t

t

n

n

Page 21: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 21

Causal

Process

Definition: CausalIf input signals agree up to supertime (t, n) then the output signals agree up to supertime (t, n)

n

n

n

n

t

t t

t

Page 22: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 22

Result 1

• Every (extended) delta causal process has a unique feedback solution

Delta CausalProcess

Unique feedback solution

Page 23: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 23

Result 2

• Every network of simple, causal processes is a simple causal process, provided in each cycle there is a delta causal process

• Example

MergeNon-Zeno Input Signal

Non-ZenoOutput Signal

Delay

Page 24: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 24

Conclusions

• We broadened DE semantics to handle superdense time

• We invented tetric spaces to measure the distance between DE signals

• We gave conditions under which systems will have unique fixed-point solutions

• We provided sufficient conditions under which this solution is non-Zeno

• http://ptolemy.eecs.berkeley.edu/papers/05/DE_Systems

Page 25: Chess Review May 11, 2005 Berkeley, CA Discrete-Event Systems: Generalizing Metric Spaces and Fixed-Point Semantics Adam Cataldo Edward Lee Xiaojun Liu

Cataldo, CHESS, May 11, 2005 25

Acknowledgements

• Edward Lee• Xiaojun Liu• Eleftherios Matsikoudis• Haiyang Zheng• Aaron Ames• Oded Maler• Marc Rieffel