• Keine Ergebnisse gefunden

Exercise 3.2 a) Show that there is no proof sketch for {x = 0}x =x+ 1kx =x+ 1{x = 2} in HOARE + (OG−INF)

N/A
N/A
Protected

Academic year: 2021

Aktie "Exercise 3.2 a) Show that there is no proof sketch for {x = 0}x =x+ 1kx =x+ 1{x = 2} in HOARE + (OG−INF)"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

SS 2014 07.05.2014 Exercises to the lecture

Concurrency Theory Sheet 3

Roland Meyer, Viktor Vafeiadis Delivery until 13.05.2014 at 12h Exercise 3.1

Consider the following proof sketch:

{x= 0}

{x= 0}

x=x+ 1 {x= 1∨x= 3}

{x= 0}

x=x+ 2 {x= 2∨x= 3}

{x= 3}

a) Show that this is not a valid proof sketch with respect to HOARE + (OG−INF).

b) Find a valid proof for{x= 0}x=x+1kx=x+2{x= 3}in HOARE+(OG−INF).

Exercise 3.2

a) Show that there is no proof sketch for {x = 0}x =x+ 1kx =x+ 1{x = 2} in HOARE + (OG−INF).

b) Provide an equivalent program C so that {x= 0}C{x= 2}can be proven.

Exercise 3.3

Consider the following programP: y=y+ 1 assume(x >0)

assume(y >0) x=y

Give suitable rely-guarantee predicatesRandGso thatP : ({x >0∧y >0}, R, G,{true}).

Exercise 3.4

Prove the soundness of the sequential composition rule (SEQ) for rely-guarantee.

Delivery until 13.05.2014 at 12h into the box next to 34-401.4

Referenzen

ÄHNLICHE DOKUMENTE

Bevor du diese Aufgabe bearbeitest, musst du den Rand der Seite an der Markierung knicken.. Nach Bearbeitung der Aufgaben kannst du Richtigkeit deiner

5 In der untenstehenden Abbildung zeigt die Abbildung 1 den unvollständigen Graphen einer ge- brochenrationalen Funktion f, Abbildung 2 den der Ableitungsfunktion f’.. 5.1

[r]

[r]

[r]

Construct the field of 4 elements by taking all polynomials with coefficients 0 and 1, and reduce modulo x 2 + x + 1.. Show that the 4 elements are: 0, 1, x, x

Allgemeine Informationen zur Vorlesung und Übungsblätter benden sih auf der Webseite. http://www.math.unibas.h/

Sind die Summanden in einer Reihe selbst Funktionen einer Variablen x, so stellt der Ausdruck P ∞. n=0 a n (x) eine Funktion dar,