Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 4 a) Construct a program transformer (-:-): PX PP which implements the sequential composition of programs, i.e. satisfies {(F;G)} = {G}_{F} for all programs

image text in transcribed

Exercise 4 a) Construct a program transformer (-:-): PX PP which implements the sequential composition of programs, i.e. satisfies {(F;G)} = {G}_{F} for all programs F, G EP. b) is the sequential composition of programs associative? In other words, does it satisfy the equation ((F;G); H) (F;(G;)) for all F,G,H E P? If it is, prove that it is. If it is not, explain why not. c) Show that the sequential composition of programs is associative with respect to extensional equivalence of computations, i.e. that for all F,G,H EP holds ((F:G); H) = (F:(G;H)) where X =Y = {x} = {Y}. Exercise 4 a) Construct a program transformer (-:-): PX PP which implements the sequential composition of programs, i.e. satisfies {(F;G)} = {G}_{F} for all programs F, G EP. b) is the sequential composition of programs associative? In other words, does it satisfy the equation ((F;G); H) (F;(G;)) for all F,G,H E P? If it is, prove that it is. If it is not, explain why not. c) Show that the sequential composition of programs is associative with respect to extensional equivalence of computations, i.e. that for all F,G,H EP holds ((F:G); H) = (F:(G;H)) where X =Y = {x} = {Y}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Government And Not For Profit Accounting Concepts And Practices

Authors: Michael H. Granof, Saleha B. Khumawala, Thad D. Calabrese

9th Edition

1119803896, 978-1119803898

More Books

Students also viewed these Accounting questions

Question

What is self-interest?

Answered: 1 week ago