Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started