Feedback Set-theoretic notation 

Forum: U Chicago, Com Sci 221, autumn 2000
Re: News Final exam Monday 4 December (Mike O'Donnell)
Re: None questions
Date: 2000, Dec 03
From: <Anonymous>

  1. Is A+B the union or marked union of A and B?

    It's the marked union.


  2. 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.


  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.


  4. 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.


  5. (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.


Messages

1. Question (A*)* and (A+{0})* by Michael C. Brizic, 2000, Dec 03
1. Feedback Wrong about (A*)*, right about + by Mike O'Donnell, 2000, Dec 03
2. None translation by dave, 2000, Dec 03
1. Agree Exactly right by Mike O'Donnell, 2000, Dec 03

to: "Set-theoretic notation"