Origin Sections AutomataTheory Doc

nfa_1

Nuprl Section: nfa_1

Selected Objects
THMlength_reversel:T*. ||rev(l)|| = ||l||
THMhd_selectl:T*. ||l|| > 0 hd(l) = l[0]
THMhd_append_frontl,m:T*. ||l|| > 0 hd((l @ m)) = hd(l)
THMhd_append_backl,m:T*. ||l|| = 0 ||m|| > 0 hd((l @ m)) = hd(m)
THMhd_mapl:A*, f:(AB). ||l|| > 0 hd(map(f;l)) = f(hd(l))
THMtl_append_frontl,m:T*. ||l|| > 0 tl((l @ m)) = (tl(l) @ m)
THMtl_append_backl,m:T*. ||l|| = 0 ||m|| > 0 tl((l @ m)) = tl(m)
THMreverse_cons_nilt:T. rev([t]) = [t]
THMhd_reversel:T*. ||l|| > 0 hd(rev(l)) = l[(||l||-1)]
defnd_automataNDA(Alph;States) == (StatesAlphStatesProp)States(States)
defNDA_actn == 1of(n)
defNDA_initI(n) == 1of(2of(n))
defNDA_finF(n) == 2of(2of(n))
defcook_nd_automataNDA(act;init;fin) == < act,init,fin >
defnd_compute_list(rec) NDA(l)q == if null(l) q = I(NDA) St else t:St. NDA(tl(l))t & NDA(t,hd(l),q) fi
defnd_accept_listNDA(l) == q:St. NDA(l)q & F(NDA)(q)
defnd_auto_langL(NDA)(l) == NDA(l)
THMnd_auto_eq_autoNDA:NDA(Alph;St). Fin(St) (x,y:St, a:Alph. Dec(NDA(x,a,y))) (S:Type. Fin(S) & (DA:Automata(Alph;S). L(NDA) = LangOf(DA)))
defnd_computationNComp(Alph;St) == {C:(StAlph* List)| i:(||C||-1). ||2of(C[i])|| > 0 }
defnd_comp_car|C| == 2of(hd(C))
defnd_comp_length||C|| == ||C||
defnd_comp_init[ < q,[] > ] == [ < q,nil > ]
THMnd_comp_init_thmNDA:NDA(Alph;St). NDA([ < I(NDA),[] > ]) I(NDA)
defnd_comp_extendC+[a;q] == map(c. < 1of(c),a.2of(c) > ;C) @ [ < q,nil > ]
defnd_valcomNDA(C) q == I(NDA) = 1of(hd(C)) St & (i:(||C||-1). NDA(1of(C[i]),hd(rev(2of(C[i]))),1of(C[(i+1)])) & 2of(C[(i+1)]) = rev(tl(rev(2of(C[i])))) Alph*) & 1of(hd(rev(C))) = q St & 2of(hd(rev(C))) = nil Alph*
THMnd_init_valcomNDA:NDA(Alph;St). NDA([ < I(NDA),[] > ]) I(NDA)
THMnd_ext_valcomNDA:NDA(Alph;St), C:NComp(Alph;St), q:St, a:Alph, p:St. NDA(C) q NDA(q,a,p) NDA(C+[a;p]) p