• Keine Ergebnisse gefunden

Exercise 7.1 Circuit Verification

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise 7.1 Circuit Verification"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Applied Automata Theory (WS 2012/2013) Technische Universit¨ at Kaiserslautern

Exercise Sheet 7

Jun.-Prof. Roland Meyer, Reiner H¨ uchting, Georgel C˘ alin Due: Tue, Dec 4 (noon)

Exercise 7.1 Circuit Verification

Consider a circuit

1

that continuously receives inputs x and generates outputs y:

xor

or and

r2 r1 and

or x xor

y

The circuit uses registers r

1

and r

2

, which are initially r

1

= 0 and r

2

= 1.

(a) Construct a B¨ uchi automaton over the alphabet {0, 1}

2

that accepts all sequences of input/output pairs which describe the possible runs of the circuit.

Hint: The states are determined by r

1

and r

2

and the transitions only depend on x.

(b) Use the automaton to determine whether the circuit satisfies the properties ...

P

fair

: whenever x is infinitely often high, then y is infinitely often high.

P

safe

: always x = y = 1 or x = y = 0.

P

persistent

: starting from some point, y will always be high.

(c) Give words (finite if possible) that satisfy P

i

and ¬P

i

for each i ∈ {fair, safe, persistent}.

Exercise 7.2 Verifying Operating Systems

Our goal is to verify an operating systems OS that runs k processes and has a scheduler.

This means we are given the following B¨ uchi automata:

A

OS

:= A

P1

k . . . k A

Pk

: Describes the behaviour of the operating system, where A

Pi

represents the behavior of process P

i

.

A

Sched

: Describes the scheduling strategy.

A

Prop

: Describes a property to be checked.

1

Inspired by C. Baier & J.P. Katoen: Principles of Model Checking

(2)

Our verification task amounts to solving the following model checking problem:

L (A

OS

) ∩ L (A

Sched

) ⊆ L (A

Prop

).

However, we do not want to solve this problem separately for every scheduling strat- egy, but in a general way. Therefore, we introduce a most general scheduling B¨ uchi automaton A

MG

, that allows for arbitrary behaviors of the scheduler:

q

0

P

1

w(P

1

)

s(P

1

)

P

k

w(P

k

) s(P

k

) . . . . . . . . .

The alphabet contains letters w(P

i

), s(P

i

) for all processes P

i

, meaning wake up or suspend the respective process. Thus, the scheduler can wake up and suspend processes at will, and the processes only work when awake. The problem with this general scheduler is that it is not fair : it does not necessarily wake up each process infinitely often.

(a) Modify A

MG

to a B¨ uchi automaton A

MGF

that is a most general fair scheduler for k processes. This means your automaton has to wake up every process infinitely often and the behavior of your B¨ uchi automaton must be as general as possible. In particular, do not implement a concrete scheduling strategy.

(b) Present an automaton A

RR

that describes the Round Robin scheduling strategy.

What is the relationship between L (A

RR

) and L (A

MG

) respectively L (A

MGF

)?

(c) Why can you conclude L (A

OS

) ∩ L (A

RR

) ⊆ L (A

Prop

) from L (A

OS

) ∩ L (A

MGF

) ⊆ L (A

Prop

)?

Exercise 7.3 On NBA Complementation

Let A be a B¨ uchi automaton and U, V ⊆ Σ

be equivalence classes with respect to ∼

A

. (a) Let w ∈ L (A) and assume w ∈ U V

ω

. Prove U V

ω

⊆ L (A).

(b) Suppose w ∈ L(A) and w ∈ U V

ω

. Prove U V

ω

⊆ L(A).

Exercise 7.4 Disjunctive Well-Foundedness

A partially ordered set (A, ≤) is said to be well-founded if for every sequence a

1

≥ a

2

≥ a

3

≥ · · · ,

a

i

∈ A, i ∈ N , there is an n ∈ N such that a

m

= a

n

for any m ≥ n.

Let T

1

, . . . , T

n

⊆ A × A be well-founded partial orders and R ⊆ A × A be a partial order such that R ⊆ T

1

∪ · · · ∪ T

n

. Show that R is well-founded, too.

Hint: Use Ramsey’s Theorem.

Referenzen

ÄHNLICHE DOKUMENTE

c) We want to prove, using the method from Exercise 2, that if from some point on input() only returns 0, then the program will halt. First, extend your model to a BPDS

[r]

Show that this semantics does not increase the expressive power of B¨ uchi automata, i.e., show that for each NBA A, there is an NBA B such that L(B) = SFL(A). Here, you may assume

This is implication (2) ⇒ (3) of the theorem from the lecture about the equal expressiveness of logspace-bounded Turing machines, k-counter two-way automaton with linearly

In order to develop this remarkable attitude one should first be thoughtful of practice and words of the Mahayana Buddhist doctrine and then through seeing the benefits of

For each species the following informations are provided in German and English: taxonomy (species name, author, quotation of the original description, in some cases

Journal files are required when a user requires a recovery/restart capability, or when a statistical accounting of the network operation is required. Journal control

is a coproduct of X and Y in the category of sets. (40) Show that the category of sets