• Keine Ergebnisse gefunden

WS 2019/2020 20.11.2019 Exercises to the lecture

N/A
N/A
Protected

Academic year: 2021

Aktie "WS 2019/2020 20.11.2019 Exercises to the lecture"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

WS 2019/2020 20.11.2019 Exercises to the lecture

Semantics Sheet 2 Prof. Dr. Roland Meyer,

Sören van der Wall Delivery until — at —

In the lecture, we constructed a set of types from a given APTA A, namely θ ::= q | τ → θ

τ ::= ^

{(θ 1 , m 1 ), . . . , (θ k , m k )},

where q ∈ Q is a state of A and 0 ≤ k, i.e. the conjunct may be empty.

Intuitivly, a type describes the (powerset-constructional) behaviour of A on any tree: A tree typed by a type q is accepted by A from state q. A tree t typed by a type

^ {(θ 1,1 , m 1,1 ), . . . , (θ 1,k

1

, m 1,k

1

)} → . . . → ^

{(θ n,1 , m n,1 ), . . . , (θ n,k

n

, m n,k

n

)} → q is an uncomplete tree, that requires n trees s 1 , . . . , s n , each s i having all types θ i,1 , . . . , θ i,k

i

, in order to be accepted by A from state q. Whenever s i is used in t, the just mentioned run of A visits the root of s i in a state q i,j for some 1 ≤ j ≤ k i , where θ i,j = τ → . . . → q i,j , and this path of the run from the root of t up to the root of s i sees maximal priority m i,j .

Exercise 2.1 (Language of APTA)

Look at the APTA A = (Σ, Q, δ, q 0 , Ω) with Σ = {a : σ → σ → σ, b : σ}, Q = {q 0 , q 1 }, Ω = {(q 0 , 2), (q 1 , 1)} and transition relation

δ(q 0 , a) = (1, q 1 ) ∧ (1, q 0 ) ∧ (2, q 0 ) δ(q 1 , a) = (1, q 1 )

δ(q 0 , b) = tt.

Describe its language.

Exercise 2.2 (Well-formed types of APTAs)

Which of the following types are well-formed for the APTA A from Ex. 1?

1. V {(q 0 , 2), ((q 1 , 1) → q 0 , 1)} → q 0 2. V

{((q 0 , 2) → q 1 , 2), ((q 1 , 1) → q 1 , 1)} → V

{(q 0 , 2), (q 1 , 1)} → q 0

3. V

{(q 0 , 2), (q 1 , 1), (q 1 , 2)} → q 0

4. V

{(q 2 , 2)} → q 0

List the atomic types θ with θ :: a σ → σ.

(2)

Exercise 2.3 (Type Judgements) Set the types

θ x,q

0

= ^

{(q 0 , 2), (q 1 , 2)} → ^

{(q 0 , 2), (q 1 , 2)} → q 0 , θ x,q

1

= ^

{(q 0 , 2), (q 1 , 1)} → ^

{(q 0 , 2), (q 1 , 2)} → q 1 , θ H,q

0

= ^

{(θ x,q

0

, 2), (θ x,q

1

, 2)} → θ x,q

0

, θ H,q

1

= ^

{(θ x,q

0

, 2), (θ x,q

1

, 2)} → θ x,q

1

, θ F = ^

{(θ x,q

0

, 2), (θ x,q

1

, 2)} → ^

{(q 0 , 2), (q 1 , 2)} → q 0 . Show a formal deduction for the type judgement

{H : (θ H,q

0

, 2) f , H : (θ H,q

1

, 2) f , F : (θ F , 2) f } ` λxλy.a(xyy)(F (Hx)y) : θ F .

Referenzen

ÄHNLICHE DOKUMENTE

Betrachten Sie ein Cournot-Duopol-Spiel. Beide Firmen setzen simultan ihre Mengen. Unternehmen 1 ist ¨uber die Nachfrage informiert und weiß, ob die Nachfrage hoch, mittel oder

(b) Show that if the minimum of I is not unique, then it is possible that X n does not converge in probability. Exercise 2.4 (LDP for

be independent, identically distributed, integrable random variables, and T an integrable stopping time (w.r.t. the canonicalen filtration).. Exercise 8.4 (Examples of

Asymptotic lower bounds for optimal tracking: a linear programming approach 19.01.: Giorgio Ferrari (University of Bielefeld). Nash equilibria of threshold type for

• Zweiter geänderter Vorschlag für eine Verordnung über das Statut der Europäischen Aktiengesellschaft. Ø vom 25. 41 ff., Dok KOM [89]

Für seine Geschäftsführertätigkeit erhält Herr Kruse von der OHG im Jahr 2019 eine monatli- che Vergütung (13 Gehälter) in Höhe von 5.000 €. a) Erstellen Sie für Herrn Kruse

handelt und der Kreditgeber eine natürliche Person und zugleich Mitunternehmer ist. Shepherd wünscht sich, ein Stück kürzer treten zu können und entschließt sich daher

d) Write down the Klein-Gordon equation, Maxwell’s equations, and the Dirac equa- tion with their corresponding lagrangian densities in covariant notation. What is the