The language is an infinite set of chains that are defined by the next conditions.
Conditions:
1) The language chains may consist of symbols from the set {1,a,b}.
2) The language chains always start from subchain '1a'.
3) Every languange chain has to include at least one subchain 'aa'.
For example:
1aa, 1abaa, 1aaab, 1aab1a, ... etc.
My current solution is this:
1a ((1+b)* a)* (a (1+b)*)* a (1+b+a)*
My solution seems to pass tests like these:
Allowed chains : 1aa, 1aaa, 1abaa, 1aaba, 1aabaa, 1aab, 1aaab, 1aaabaaa
Not allowed chains: 1aba, 1abab, 1ababab
But I'm not quite sure if it's still correct. Is it correct?
If not, please offer your solution using only the type of formal language used in my solution.