A is a finite language, then it contains a finite number of strings a0,a1,⋯,anThe language {ai} consisting of a single literal string ai is regular The union of a finite number of regular languages is also regular.Therefore A=a0,a1,⋯,an is regular
L(3)={w3∣w∈L}If L={ab∗,b}L(3)={(ab∗)3,bbb}={ab∗ab∗ab∗,bbb}w3=xwywzwBy pumping lemma∣y∣≥1∣xy∣≤p(∀k≥0)(xykz∈L)But xy0z=ww∈/LTherefor this is not regular languages
wcw=(a∪b)ic(a∪b)i(a∪b)ic(a∪b)j=x(a∪b)p−iy(a∪b)izc(a∪b)p and i>0By pumping lemma∣y∣≥1∣xy∣≤p(∀k≥0)(xykz∈L)But xy0z=(a∪b)p−ic(a∪b)p∈/LTherefor this is not regular languages
Base case i=0,Qr0={q0} This is trivially true since the only path of length 0 is the path that starts and ends at q0Inductive StepAssume that for some k≥0,Qrk is the set of all reachable states from q0 using paths of length k.By definition, Qrk+1 includes all states that can be reached from states in Qrk by a single transition.By repeat Qrk+1→Qrk until k=0We prove (∀i≥0)(Qri is the set of all reachable states from q0 using paths of length i)
Base case Qr0={q0}Inductive Stepq0=Qr0 by definitionAssume (∀i≥0)(q0∈Qri)Qri+1=Qri∪{q∈Q∣∃p∈Qri,∃a∈Σ,q=δ(p,a)}We can see it will repeat Qri+1∪Qri until i=0 which will union q0Then (∀i≥0)(q0∈Qri)
Qr=the state that can reach by init stateF∩Qr=only remain the final state can be reach by init statesince the state cant be reach by init state remove it will not change the language
Because DFA each state have determine result to next state by input. We need to know all symbols is even or odd in one state.
So each symbols have two possible (even or odd) lead to 2n state
M1→M2(∀q∈Q1,∀a∈Σ)f(δ1(q,a))=δ2(f(q),a)M2→M3(∀q∈Q2,∀a∈Σ)g(δ2(q,a))=δ3(g(q),a)M1→M3(∀q∈Q1,∀a∈Σ)(∀q∈Q1,∀a∈Σ)(∀q∈Q2,∀a∈Σ)g(f(δ1(q,a)))=δ3(g(f(q)),a)g(δ2(f(q),a))=δ3(g(f(q)),a)g(δ2(q,a))=δ3(g(q),a)M1→M3 are morphism
δ^2(h(q),wn)δ2(δ^2(h(q),wn−1),a)δ2(δ^2(h(q),wn−1),a)δ^2(h(q),wn−1)=h(δ^1(q,wn))=h(δ1(δ^1(q,wn−1),a))=δ2(h(δ^1(q,wn−1)),a)=h(δ^1(q,wn−1))By repeat this until ∣w∣=1 make δ^2(q,w)=δ2(q,w)We prove that (∀q∈Q1,∀w∈Σ∗)(h(δ^1(q,w))=δ^2(h(q),w))