Definition (nondeterministic finite automata)

A nondeterministic finite automaton (NFA) is a tuple $N = (Q, Σ, δ, q_0, F)$ where

Extend $δ$ to $\hat δ: Q\times Σ^\ast\to \mathcal{P}(Q)$ by $$ \begin{align*} \hat δ(q,ε) = \set{q}, \qquad \hat δ(q, wa) = \bigcup \sb{δ(p,a)}{p\in \hat δ(q,w)}. \end{align*} $$

For every word $w=a_0 a_1 \ldots a_n\in Σ^\ast$, the state set sequence is $$ \begin{align*} X_0 &= \set{q_0}, \qquad X_{i+1} = \bigcup \sb{δ(p,a_i)}{p\in X_i}. \end{align*} $$

The language accepted by $N$ is $$ \begin{align*} \mathcal{L}(N) = \sb{w\in Σ^\ast}{\hat δ(q_0, w) \cap F \neq \emptyset}. \end{align*} $$