Abstract family of acceptors

From HandWiki
Revision as of 17:06, 20 December 2020 by imported>Jport (url)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

An abstract family of acceptors (AFA) is a grouping of generalized acceptors. Informally, an acceptor is a device with a finite state control, a finite number of input symbols, and an internal store with a read and write function. Each acceptor has a start state and a set of accepting states. The device reads a sequence of symbols, transitioning from state to state for each input symbol. If the device ends in an accepting state, the device is said to accept the sequence of symbols. A family of acceptors is a set of acceptors with the same type of internal store. The study of AFA is part of AFL (abstract families of languages) theory.[1]

Formal definitions

AFA Schema

An AFA Schema is an ordered 4-tuple [math]\displaystyle{ (\Gamma, I, f, g) }[/math], where

  1. [math]\displaystyle{ \Gamma }[/math] and [math]\displaystyle{ I }[/math] are nonempty abstract sets.
  2. [math]\displaystyle{ f }[/math] is the write function: [math]\displaystyle{ f : \Gamma^* \times I \rightarrow \Gamma^* \cup \{\empty\} }[/math] (N.B. * is the Kleene star operation).
  3. [math]\displaystyle{ g }[/math] is the read function, a mapping from [math]\displaystyle{ \Gamma^* }[/math] into the finite subsets of [math]\displaystyle{ \Gamma^* }[/math], such that [math]\displaystyle{ g (\epsilon) = \{ \epsilon \} }[/math] and [math]\displaystyle{ \epsilon }[/math] is in [math]\displaystyle{ g(\gamma) }[/math] if and only if [math]\displaystyle{ \gamma = \epsilon }[/math]. (N.B. [math]\displaystyle{ \epsilon }[/math] is the empty word).
  4. For each [math]\displaystyle{ \gamma }[/math] in [math]\displaystyle{ g(\Gamma^*) }[/math], there is an element [math]\displaystyle{ 1_\gamma }[/math] in [math]\displaystyle{ I }[/math] satisfying [math]\displaystyle{ f(\gamma', 1_\gamma) = \gamma' }[/math] for all [math]\displaystyle{ \gamma' }[/math] such that [math]\displaystyle{ \gamma }[/math] is in [math]\displaystyle{ g(\gamma') }[/math].
  5. For each u in I, there exists a finite set [math]\displaystyle{ \Gamma_u }[/math][math]\displaystyle{ \Gamma }[/math], such that if [math]\displaystyle{ \Gamma_1 }[/math][math]\displaystyle{ \Gamma }[/math], [math]\displaystyle{ \gamma }[/math] is in [math]\displaystyle{ \Gamma_1^* }[/math], and [math]\displaystyle{ f(\gamma,u) \ne \empty }[/math], then [math]\displaystyle{ f(\gamma,u) }[/math] is in [math]\displaystyle{ (\Gamma_1 \cup \Gamma_u)^* }[/math].

Abstract family of acceptors

An abstract family of acceptors (AFA) is an ordered pair [math]\displaystyle{ (\Omega, \mathcal{D}) }[/math] such that:

  1. [math]\displaystyle{ \Omega }[/math] is an ordered 6-tuple ([math]\displaystyle{ K }[/math], [math]\displaystyle{ \Sigma }[/math], [math]\displaystyle{ \Gamma }[/math], [math]\displaystyle{ I }[/math], [math]\displaystyle{ f }[/math], [math]\displaystyle{ g }[/math]), where
    1. ([math]\displaystyle{ \Gamma }[/math], [math]\displaystyle{ I }[/math], [math]\displaystyle{ f }[/math], [math]\displaystyle{ g }[/math]) is an AFA schema; and
    2. [math]\displaystyle{ K }[/math] and [math]\displaystyle{ \Sigma }[/math] are infinite abstract sets
  2. [math]\displaystyle{ \mathcal{D} }[/math] is the family of all acceptors [math]\displaystyle{ D }[/math] = ([math]\displaystyle{ K_1 }[/math], [math]\displaystyle{ \Sigma_1 }[/math], [math]\displaystyle{ \delta }[/math], [math]\displaystyle{ q_0 }[/math], [math]\displaystyle{ F }[/math]), where
    1. [math]\displaystyle{ K_1 }[/math] and [math]\displaystyle{ \Sigma_1 }[/math] are finite subsets of [math]\displaystyle{ K }[/math], and [math]\displaystyle{ \Sigma }[/math] respectively, [math]\displaystyle{ F }[/math][math]\displaystyle{ K_1 }[/math], and [math]\displaystyle{ q_0 }[/math] is in [math]\displaystyle{ K_1 }[/math]; and
    2. [math]\displaystyle{ \delta }[/math] (called the transition function) is a mapping from [math]\displaystyle{ K_1 \times (\Sigma_1 \cup \{ \epsilon \}) \times g(\Gamma^*) }[/math] into the finite subsets of [math]\displaystyle{ K_1 \times I }[/math] such that the set [math]\displaystyle{ G_D = \{ \gamma }[/math] | [math]\displaystyle{ \delta(q,a,\gamma) }[/math] ≠ ø for some [math]\displaystyle{ q }[/math] and [math]\displaystyle{ a \} }[/math] is finite.

For a given acceptor, let [math]\displaystyle{ \vdash }[/math] be the relation on [math]\displaystyle{ K_1 \times \Sigma_1^* \times \Gamma^* }[/math] defined by: For [math]\displaystyle{ a }[/math] in [math]\displaystyle{ \Sigma_1 \cup \{ \epsilon \} }[/math], [math]\displaystyle{ (p,aw,\gamma) \vdash (p',w,\gamma') }[/math] if there exists a [math]\displaystyle{ \overline{\gamma} }[/math] and [math]\displaystyle{ u }[/math] such that [math]\displaystyle{ \overline{\gamma} }[/math] is in [math]\displaystyle{ g(\gamma) }[/math], [math]\displaystyle{ (p',u) }[/math] is in [math]\displaystyle{ \delta(p,a,\overline{\gamma}) }[/math] and [math]\displaystyle{ f(\gamma,u)=\gamma' }[/math]. Let [math]\displaystyle{ \vdash^* }[/math] denote the transitive closure of [math]\displaystyle{ \vdash }[/math].

Let [math]\displaystyle{ (\Omega, \mathcal{D}) }[/math] be an AFA and [math]\displaystyle{ D }[/math] = ([math]\displaystyle{ K_1 }[/math], [math]\displaystyle{ \Sigma_1 }[/math], [math]\displaystyle{ \delta }[/math], [math]\displaystyle{ q_0 }[/math], [math]\displaystyle{ F }[/math]) be in [math]\displaystyle{ D }[/math]. Define [math]\displaystyle{ L(D) }[/math] to be the set [math]\displaystyle{ \{ w \in \Sigma_1^* | \exists q \in F . (q_0,w,\epsilon) \vdash^* (q,\epsilon,\epsilon)\} }[/math]. For each subset [math]\displaystyle{ \mathcal{E} }[/math] of [math]\displaystyle{ \mathcal{D} }[/math], let [math]\displaystyle{ \mathcal{L}(\mathcal{E}) = \{L(D) | D \in \mathcal{E} \} }[/math].

Define [math]\displaystyle{ L_f(D) }[/math] to be the set [math]\displaystyle{ \{ w \in \Sigma_1^* | \exists(q \in F)\exists(\gamma \in \Gamma^*) . (q_0,w,\epsilon) \vdash^* (q,\epsilon,\gamma)\} }[/math]. For each subset [math]\displaystyle{ \mathcal{E} }[/math] of [math]\displaystyle{ \mathcal{D} }[/math], let [math]\displaystyle{ \mathcal{L}_f(\mathcal{E}) = \{L_f(D) | D \in \mathcal{E} \} }[/math].

Informal discussion

AFA Schema

An AFA schema defines a store or memory with read and write function. The symbols in [math]\displaystyle{ \Gamma }[/math] are called storage symbols and the symbols in [math]\displaystyle{ I }[/math] are called instructions. The write function [math]\displaystyle{ f }[/math] returns a new storage state given the current storage state and an instruction. The read function [math]\displaystyle{ g }[/math] returns the current state of memory. Condition (3) insures the empty storage configuration is distinct from other configurations. Condition (4) requires there be an identity instruction that allows the state of memory to remain unchanged while the acceptor changes state or advances the input. Condition (5) assures that the set of storage symbols for any given acceptor is finite.

Abstract family of acceptors

An AFA is the set of all acceptors over a given pair of state and input alphabets which have the same storage mechanism defined by a given AFA schema. The [math]\displaystyle{ \vdash }[/math] relation defines one step in the operation of an acceptor. [math]\displaystyle{ L_f(D) }[/math] is the set of words accepted by acceptor [math]\displaystyle{ D }[/math] by having the acceptor enter an accepting state. [math]\displaystyle{ L(D) }[/math] is the set of words accepted by acceptor [math]\displaystyle{ D }[/math] by having the acceptor simultaneously enter an accepting state and having an empty storage.

The abstract acceptors defined by AFA are generalizations of other types of acceptors (e.g. finite state automata, pushdown automata, etc.). They have a finite state control like other automata, but their internal storage may vary widely from the stacks and tapes used in classical automata.

Results from AFL theory

The main result from AFL theory is that a family of languages [math]\displaystyle{ \mathcal{L} }[/math] is a full AFL if and only if [math]\displaystyle{ \mathcal{L} = \mathcal{L}(\mathcal{D}) }[/math] for some AFA [math]\displaystyle{ (\Omega, \mathcal{D}) }[/math]. Equally important is the result that [math]\displaystyle{ \mathcal{L} }[/math] is a full semi-AFL if and only if [math]\displaystyle{ \mathcal{L} = \mathcal{L}_f(\mathcal{D}) }[/math] for some AFA [math]\displaystyle{ (\Omega, \mathcal{D}) }[/math].

Origins

Seymour Ginsburg of the University of Southern California and Sheila Greibach of Harvard University first presented their AFL theory paper at the IEEE Eighth Annual Symposium on Switching and Automata Theory in 1967.[2]

References

  1. Seymour Ginsburg, Algebraic and automata theoretic properties of formal languages, North-Holland, 1975, ISBN:0-7204-2506-9.
  2. IEEE conference record of 1967 Eighth Annual Symposium on Switching and Automata Theory : papers presented at the Eighth Annual Symposium, University of Texas, October 18–20, 1967.