duaLab Contribute

Sheaf of DFA

Project: Topoi of automata

Contents

A regular language is a language recognized by a deterministic finite automaton (DFA). The sheaf of DFA turns this description into a presentation of the Boolean-ringed topos of regular languages: the site consists of the finite $\Sigma$-sets, and the sheaf assigns to a finite $\Sigma$-set the set of all DFA structures on it.

1. Definition

Fix a finite alphabet $\Sigma$. A $\Sigma$-set is finite if its set of states is finite. Unless $\Sigma$ is empty, the finite $\Sigma$-sets do not form an elementary topos, but they form a site.

Definition 1.1 (Site of finite Σ-sets)

Let $\Sigma\text{-}\mathbf{FinSet}$ be the category of finite $\Sigma$-sets, with the Grothendieck topology $J$ generated by the jointly surjective families, that is, by the families of morphisms $f_i:(Q_i,\delta_i)\to(Q,\delta)$ with $Q=\bigcup_if_i(Q_i)$.

See Definition 3.4 and Remark 3.6.

Definition 1.2 (Sheaf of DFA)

The sheaf of DFA is the $J$-sheaf of Boolean algebras

$$\mathrm{DFA}:\Sigma\text{-}\mathbf{FinSet}^{\mathrm{op}}\to\mathbf{BoolAlg},\qquad (Q,\delta)\mapsto\mathcal P(Q),$$

in which a morphism $f:(Q,\delta)\to(Q',\delta')$ acts by the inverse image $F'\mapsto f^{-1}(F')$. An element $F$ of $\mathrm{DFA}(Q,\delta)$ is a choice of accepting states, that is, a DFA structure $(Q,\delta,F)$ on $(Q,\delta)$; see the example of an automaton.

See Definition 3.7.

2. Properties

The sheaf of DFA is the structure sheaf of regular languages, seen on the site of finite $\Sigma$-sets. Let $\mathcal E_{\mathrm{of}}$ be the topos of orbit-finite $\Sigma$-sets and $\mathcal R$ its Boolean algebra of regular languages.

Proposition 2.1 (DFA presentation)☆

There is an equivalence of Boolean-ringed topoi between $(\mathbf{Sh}(\Sigma\text{-}\mathbf{FinSet},J),\mathrm{DFA})$ and the Boolean-ringed topos of regular languages $(\mathcal E_{\mathrm{of}},\mathcal R)$.

See Lemma 3.5 and Proposition 3.8.

Remark 2.2 (Language recognition)

The equivalence sends an object $X$ of $\mathcal E_{\mathrm{of}}$ to the sheaf $(Q,\delta)\mapsto\mathrm{Hom}((Q,\delta),X)$. For $X=\mathcal R$ it gives the bijection

$$\mathrm{DFA}(Q,\delta)\cong\mathrm{Hom}((Q,\delta),\mathcal R),\qquad F\mapsto\big(q\mapsto\{w\in\Sigma^*\mid q\cdot w\in F\}\big),$$

which sends a set $F$ of accepting states to the map that assigns to each state the language recognized from it. So this equivalence is language recognition by DFA.

See the proof of Proposition 3.8.

4. References

Last edited