If we have a language $L$ defined over the alphabet ${(,)}$ defined by
- $\epsilon \in L$
- If $X \in L$ and $Y \in L$ then $XY \in L$
- If $X \in L$ then $(X) \in L$
I want to prove that there is an even number of characters in any $X \in L$.
The basis step in an induction proof is simple I guess, as the $X=\epsilon$ returns 0 characters.
I struggle with the induction step, however, as I feel that I create a circular reference. I have tried assuming that for any $X \in L$, the number of characters is even and showing that then also any $Y \in L$ must return an even number of characters. My reasoning is that since $X \in L$ and $Y \in L$ then $XY \in L$, and that $XY$ must be even-numbered and therefore also $Y$ must be even-numbered.
Any idea where my reasoning faults?