Professional Documents
Culture Documents
hw1 2023
hw1 2023
This homework comprises three mandatory questions (1.1 –1.3, for which you can get up to
90 points) and one bonus question (1.4 – for which you can get up to extra 20 points).
The use of the LATEX template for homeworks (available in Brightspace) is mandatory.
You will get up to 10 points if you appropriately use this template to produce a PDF.
The grade is the number of points obtained divided by 10, with a maximum of 10.
Mandatory Questions
x := 2 · x; y := 2 · x; x := y − x;
Determine a post-regular specification for this command and write down its annotated proof.
Exercise 1.2 (25 points)
Determine an annotated command S that satisfies:
{P : x = 2 · y + 3 · X ∧ y = Y }
S
{Q : x = 2 · y + 3 · X ∧ y = 2 · Y }
Bonus Question
{P : x = X ∨ y = Y }
T
{Q : x = Y ∧ y = X}