Consider the set of strings defined recursively as follows
Suppose there is a set of strings L ⊆ {0,1}∗ which means L can contain any string of any length that can contain any combination of 0 and 1.
This has a property of:
• The empty string " is in L.
• For any string x in L, the string 0x is also in L.
• For any strings x and y in L, the string 1x1y is also in L.
• These are the only strings in L.
I want to prove that the string 101110101101011 is in L.
How can I use the properties stated above to prove this with valid reasons?
( There's probably a much nicer way to do this. )
Let's number the properties
for easier reference. I'm going to work from the end of the string to the beginning.
Applying 3) to x=", y=" shows $11$ is in L.
Applying 2) to x=" shows $0$ is in L.
Applying 2) to x=$11$ shows $0\underline{11}$ is in L.
Applying 3) to x=$0$, y=$011$ shows $1\underline{0}1\underline{011}$ is in L.
Applying 3) to x=$0$, y=$101011$ shows $1\underline{0}1\underline{101011}$ is in L.
Applying 2) to x=$101101011$ shows $0\underline{101101011}$ is in L.
Applying 3) to x=$011$ and y=$0101101011$ shows $1\underline{011}1\underline{0101101011}$ is in L.