I am taking a course on the formal foundations of programming, one of things we have covered is proving certain properties of languages, i have done most of the work, but I am stuck on these two questions, as I have no idea how to prove them.
they are as follows:
A ^ (B ^ C) = (A ^ B) ^ C (which I believe is the associative rule)
A ^ (B U C) = (A ^ B) U ( A ^ C) (Distribution rule)
In these examples i have used the ^ to mean concatenation
First
A^B is all the words x such that there is v in A and w in B such that x = vw
Second:
x in B U C if and only if x is in B or x is in C.
second inclusion
Therefore
A ^ (B U C) = (A ^ B) U ( A ^ C)