|
- Is A+B the union or marked union of A and B?
It's the marked union.
- If A is a set, what is A*? For example, if A were {1, 2, 3}, what would A* look like?
As long as A is nonempty, A* is infinite. For your example,
A = {1, 2, 3}
A* = {[], [1], [2], [3], [1,1], [1,2], [1,3], [2,1], [2,2], [2,3], [3,1], [3,2], [3,3], [1,1,1], [1,1,2], ...}
I showed all the lists of length 0, 1, 2 and the first two lists of length 3.
- In the 94 final, problem 3, students are asked if two sets can be represented by each other, for example (A*)* and (A + {0})*. Are the A on the left side and the A on the right side the same set?
Yes. In a mathematical formula, unless there's a specific symbol---such as the quantifiers ``for all'' and ``there exists''---making a variable local to a part of the formula, the scope of a variable is always the whole formula. So, all the As are the same.
In the case you mentioned, each set can represent the other. The 0 can be used as an end-of-inner-list marker. That idea works in both directions.
- A -> (B -> C) and (A x B) -> C
This is one that we did during the problem session. There was a bit of confusion, since the functional arrow was written as exponentiation (a common piece of mathematical notation), and someone's notes had printed out exponentiation as ``!''. These two types are equivalent by Currying, which we discussed in order to understand ML notation.
- (A -> C) x (B -> C) and (A + B) -> C
These two are equivalent. If you're given two functions, one mapping A to C and the other mapping B to C, then you can construct a function that maps members of the marked union of A and B to C. Vice versa works just as well.
In the last two, I strongly suggest that you write ML definitions of the encodings to cement your understanding.
Mike O'D.
|