Design a sequence S0, S1, ... , S∞ where each Si
1) is a string of characters from the set
{φ, "right brace", "left brace", comma} (φ denotes the empty set),
2) denotes a valid set, and
3) |Si| = i.
For clarity you can define substrings and use recursion.
Note; Si = {φ,{φ},{φ},φ,{φ,{φ}}} = {φ,{φ},{φ,{φ}}}
|Si| = 3 not |Si| = 5.