Papers
Topics
Authors
Recent
Search
2000 character limit reached

Bi-level Nondeterministic Finite Automata

Updated 15 March 2026
  • Bi-level NFAs are automata that couple two NFAs with a dependency relation to simultaneously recognize a language and its reversal.
  • This formalism establishes a categorical equivalence with deterministic automata over finite join-semilattices using functors like Det and Airr.
  • Its structure generalizes Brzozowski’s double-reversal minimization and characterizes subatomic NFAs through syntactic semirings and Boolean-quotient closures.

A Bi-level Nondeterministic Finite Automaton (Bi-NFA), also known as a dependency automaton, generalizes classical nondeterministic finite automata (NFA) by incorporating two NFAs connected via a dependency relation on their state sets. This framework enables an explicit and canonical interaction between an automaton for a regular language and one for its reversal, formalizing a deep algebraic equivalence with deterministic automata over finite join-semilattices (JSL-dfas). Bi-NFAs support a categorical structure that unifies automata-theoretic dualities, state-minimality for languages and their reverses, and extends foundational minimization algorithms such as Brzozowski’s double-reversal construction. The Bi-NFA formalism also provides a natural setting for defining and characterizing “subatomic” NFAs through the lens of syntactic semirings and Boolean-quotient closures (Myers, 2020).

1. Formal Structure of Bi-level NFAs (Dependency Automata)

A Bi-NFA over alphabet Σ\Sigma is a triple

(N1,R,N2)=((I1,Q1,δa1,F1),  RQ1×Q2,  (I2,Q2,δa2,F2))(N_1, R, N_2) = \left((I_1, Q_1, \delta^1_a, F_1),\; R \subseteq Q_1 \times Q_2,\; (I_2, Q_2, \delta^2_a, F_2)\right)

where:

  • N1N_1 and N2N_2 are both NFAs:
    • Q1Q_1, Q2Q_2 are state sets,
    • I1Q1I_1\subseteq Q_1, I2Q2I_2\subseteq Q_2 initial states,
    • F1Q1F_1\subseteq Q_1, F2Q2F_2\subseteq Q_2 final states,
    • δa1Q1×Q1\delta^1_a\subseteq Q_1\times Q_1, δa2Q2×Q2\delta^2_a\subseteq Q_2\times Q_2 transition relations for each aΣa\in\Sigma.
  • The dependency relation RQ1×Q2R\subseteq Q_1 \times Q_2 satisfies:
    • Transition-compatibility: for all aΣa\in\Sigma,

    δa1  ;  R=R  ;(δa2)˘\delta^1_a\;;\; R = R\;; (\delta^2_a)^{\breve{}}

    That is, for q1Q1q_1 \in Q_1, q2Q2q_2 \in Q_2,

    (p1.  δa1(q1,p1)R(p1,q2))    (p2.  R(q1,p2)δa2(q2,p2))(\exists\,p_1.\;\delta^1_a(q_1,p_1)\land R(p_1,q_2)) \iff (\exists\,p_2.\;R(q_1,p_2)\land\delta^2_a(q_2,p_2)) - Initial–final compatibility:

    F2=R[I1],F1=R˘[I2]F_2 = R[I_1],\quad F_1 = R^{\breve{}}[I_2]

    R˘R^{\breve{}} denotes converse.

  • (N1,R,N2)(N_1, R, N_2) accepts L(N1)L(N_1) and L(N2)=L(N1)rL(N_2) = L(N_1)^r.

This explicit relational coupling constrains the joint NFA behavior, enforcing coherent language acceptance between each automaton and its dual for the reversed language.

2. Categorical Equivalence: Bi-NFAs and JSL-dfas

Bi-NFAs constitute the objects of the category Dep\mathbf{Dep}, with morphisms given by compatible finite relations. This category is equivalent to that of deterministic automata in finite join-semilattices (JSL-dfa\mathbf{JSL\text{-}dfa}). The equivalence is constructed as follows:

  • The functor $\Det : \mathbf{Dep} \to \mathbf{JSL\text{-}dfa}$ assigns to (N1,R,N2)(N_1, R, N_2) the JSL-dfa defined on the semilattice $\Open R$ of RR-open sets (down-closures R[X]R[X]):

    • Initial state: R[I1]R[I_1].
    • Transitions: γa(Y)=(N2)a˘[Y]\gamma_a(Y) = (N_2)_a^{\breve{}}[Y] for each aΣa\in\Sigma.
    • Final filter: {Y:YI2}\{Y : Y\cap I_2\neq\emptyset\}.
  • The functor $\Airr: \mathbf{JSL\text{-}dfa} \to \mathbf{Dep}$ produces a dependency automaton from a JSL-dfa, where the lower NFA has states the join-irreducibles of the semilattice SS (linking transitions to the partial order), and the upper NFA uses the meet-irreducibles.

Natural isomorphisms rep\mathrm{rep} and red\mathrm{red} ensure that $\Det\circ\Airr\cong \mathrm{Id}$ and $\Airr\circ\Det\cong\mathrm{Id}$, providing a categorical equivalence between Bi-NFAs and JSL-dfas. This implies any Bi-NFA arises canonically from a JSL-dfa and vice versa (Myers, 2020).

3. Canonical Bi-NFA Construction for a Regular Language

Given a regular language LΣL\subseteq\Sigma^*, the canonical dependency automaton is defined as

$\Dep(L) = (\mathit{dfa}(L),\, DR_L,\, \mathit{dfa}(L^r))$

where:

  • dfa(L)\mathit{dfa}(L) is the state-minimal deterministic automaton on the semilattice of left quotients:

LW(L)={u1L:uΣ}LW(L) = \{u^{-1}L : u\in\Sigma^*\}

with transition δa:u1L(ua)1L\delta_a : u^{-1}L \mapsto (ua)^{-1}L and final states {u1L:εu1L}\{u^{-1}L : \varepsilon \in u^{-1}L\}.

  • DRLLW(L)×LW(Lr)DR_L \subseteq LW(L)\times LW(L^r) is the dependency relation:

DRL(u1L,v1Lr)    uvrLDR_L(u^{-1}L, v^{-1}L^r) \iff uv^r\in L

  • dfa(Lr)\mathit{dfa}(L^r) similarly for the reverse language.

DRLDR_L satisfies the Bi-NFA compatibility axioms and yields, up to Dep\mathbf{Dep}-isomorphism, the unique minimal Bi-NFA for LL. This construction intertwines the state-minimal automata for both LL and LrL^r via DRLDR_L, encapsulating the duality of forward and reverse recognition in a single object.

4. Bi-NFAs and Brzozowski’s Double-Reverse Minimization

Brzozowski’s minimization algorithm for DFAs proceeds by reversing the automaton, applying the subset construction, and reversing again (“reverse–subset–reverse”). In the Bi-NFA context, this process generalizes as follows:

  • For any NFA NN,

$N \cong \mathrm{reach}(\Det(N, \Delta_N, N)) = \mathrm{reach}(\mathit{subset}(N))$

so dualizing (reversing) and simplifying twice yields the minimal DFA.

  • The workflow can be captured categorically:

$\delta \xrightarrow{\Affr} (N, \Delta_N, N) \xrightarrow{\Det} sc(N) \xrightarrow{\mathrm{reach}/\mathrm{simple}} \delta_{\min}$

where $\Affr$ constructs a trivial Bi-NFA, $\Det$ applies the JSL-dfa functor, and reachability plus simplification produce the state-minimal DFA.

The bi-level perspective reveals that Brzozowski's minimization is naturally interpreted within autdfa\mathbf{aut} \simeq \mathbf{dfa}, making the double-reversal an internal manifestation of equivalence between Bi-NFAs and JSL-dfas (Myers, 2020).

5. Subatomic NFAs and the Syntactic Transition Semiring

A subatomic NFA for regular LL is one whose state languages are all in LRP(L)\mathit{LRP}(L), the Boolean closure under left and right quotients: LRP(L)={finite Boolean combinations of u1Lv1:u,vΣ}\mathit{LRP}(L) = \{\text{finite Boolean combinations of } u^{-1}L v^{-1} : u,v\in\Sigma^*\}

The defining theorem establishes:

NN is subatomic     \iff the transition semiring of rsc(rev(N))\mathrm{rsc}(\mathrm{rev}(N)) is isomorphic to the syntactic semiring of LrL^r.

Here,

  • rsc(N)\mathrm{rsc}(N) is the reachable-subset construction viewed as a JSL-dfa.
  • Transition semiring of a JSL-dfa (S,,,δa)(S,\lor,\bot,\delta_a) is the idempotent semiring generated by endomorphisms {δw:wΣ}\{\delta_w: w\in\Sigma^*\} (SSS\to S).
  • Syntactic semiring of LL is the quotient of the free idempotent semiring (Pf(Σ),,,,{ε})(\mathcal{P}_f(\Sigma^*),\cup,\emptyset, \cdot, \{\varepsilon\}) by the congruence induced by LL:

UV    x,y.  xUyL    xVyLU\sim V \iff \forall x,y.\; xUy\subseteq \overline{L} \iff xVy \subseteq \overline{L}

If NN is subatomic, the reachability-closed subset construction inherits the Boolean-quotient atomic structure, ensuring the transition semiring coincides with the syntactic semiring. Conversely, if the transition semiring is syntactic, all state languages must lie in the Boolean quotient closure, so NN is subatomic (Myers, 2020).

6. Summary and Theoretical Context

Dependency automata (Bi-NFAs) provide a categorical and algebraic unification for regular language recognition, capturing both forward and reverse automata in a minimal, relational framework. They form a self-dual category under language reversal and are categorically equivalent to deterministic automata over finite join-semilattices. The canonical Bi-NFA for a language synchronizes the minimal DFAs of a language and its reversal via an explicit dependency relation. This structure subsumes Brzozowski's double-reversal algorithm and yields a precise interpretation of subatomic automata in terms of syntactic transition semirings, characterizing when the atomic structure of an automaton is preserved under Boolean operations and quotients (Myers, 2020).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Bi-level Non-deterministic Finite Automaton (Bi-NFA).