📝

1 Logic

1.1 MSO Workout

Provide MSO transductions realizing the following functions:

  1. reverse
  2. sort
  3. swap-first-last
  4. duplicate

2 Atomisation and Deatomisation

2.1 Deatomisation of Bimachines

Let \(\mathbb{A}\) be an infinite set, and \(\mathcal{S}\) be the set of permutations of \(\mathbb{A}\). We define atomic bimachines with input alphabet \((\Sigma \cup \mathbb{A})\) and output alphabet \((\Gamma \cup \mathbb{A})\) via the existence of a finite monoid \(M\) and a morphism \(\mu \colon (\Sigma \cup \mathbb{A})^* \to M\) such that \(\mu(a) = 1_M\) for all \(a \in \mathbb{A}\), together with a production function \(\pi \colon M \times (\Sigma \cup \mathbb{A}) \times M \to (\Gamma \cup \mathbb{A})^*\), satisfying the following equivariance property (where \(\sigma \in \mathcal{S}\) is lifted from permutations over \(\mathbb{A}\) to an action over \((\Gamma \cup \mathbb{A})^*\) and \((\Sigma \cup \mathbb{A})^*\) in the natural way):

\[ \forall a \in \mathbb{A}, \forall \sigma \in \mathcal{S}, \pi (m, \sigma(a), n) = \sigma(\pi(m,a,n)) \quad . \]

An atom coding function is a function \(c \colon \mathbb{A}\hookrightarrow\langle 1^* \rangle\), i.e., that maps every atom to a unique word of the form \(\langle 1^k \rangle\) for some \(k \in \mathbb{N}\). We say that a function \(f \colon (\mathbb{A}\cup \Sigma)^* \to (\mathbb{A}\cup \Gamma)^*\) is deatomisable if there exists a rational function \(f^\dagger \colon (\Sigma \cup \{ \langle, \rangle, 1 \})^* to (\Gamma \cup \{ \langle, \rangle, 1 \})^*\) such that for all atomic codes \(c \colon \mathbb{A}\hookrightarrow\langle 1^* \rangle\), the following commutes

\[ c \circ f = f^\dagger \circ c \quad . \]

Prove that the following are equivalent:

  1. A function \(f\) is deatomisable,
  2. It is realisable by an atomic bimachine.

2.2 Atomic Bimachines

Prove that the following are not computable by atomic bimachines.

  1. The reverse function.
  2. The duplicate function.
  3. The unzip function.

Conclude that those cannot be computed by rational functions.

3 Pumping Lemmas

3.1 Pumping Bimachines

Let \(f\) be computed by a bimachine. We extend the function \(f\) by considering \(f(w_1 [w] w_2)\) to be the word produced by the bimachine when reading \(w\), under the context \(w_1\) and \(w_2\).

  1. Prove that \(f(w_1 w [w]^{X \times n!} w w_2)\) is of the form \(\alpha \beta^X \gamma\) for some \(\alpha, \beta, \gamma\), where \(n\) is the number of states of the automata in the bimachine.
  2. Conclude that reverse, duplicate and unzip are not computable by bimachines.

3.2 Pumping Sweeping Transducers

This exercise is based on the notion of sweeping transducers and their study done by Baschenis et al. (2015) and Baschenis et al. (2016).

Let \(f\) be computed by a sweeping transducer. Provide an appropriate pumping lemma for \(f\). Use this pumping argument to prove that map-reverse is not computable using a sweeping transducer.

3.3 Pumping for sweeping 2DFTs

Provide a pumping lemma for sweeping 2DFTs. Conclude that map-reverse is not computable using a sweeping transducer.

3.4 Sweeping Minimization

We define the sweeping number of a sweeping transducer the maximal number of sweeps it performs on any input words.

  1. Prove that the sweeping number of a sweeping transducer is finite
  2. Does there exist an algorithm that, given a transducer \(T\), computes its sweeping number?
  3. Describe an algorithm that, given a sweeping transducer \(T\) and a number \(k\) with the promise that \(T\) can be realized by a sweeping transducer of sweeping number \(k\), constructs a such a transducer.
  4. Given a sweeping transducer \(T\) and a number \(k\), is it decidable whether \(T\) is realized by a sweeping transducer with sweeping number at most \(k\)?
Hint: Use effective continuity

Recall that if a function \(f\) is computed by a 2DFT, then it is continuous, and even more: effectively continuous.

4 Well quasi orderings

4.1 Well-Quasi-Ordered Image

Let \(f\) be a function from \(\Sigma^*\) to \(\Gamma^*\). We say that \(f\) generates a well-quasi-order whenever \(f(\Sigma^*)\) is well-quasi-ordered for the factor relation. We say that \(f\) generates a \(k\)-well-quasi-order whenever \(f(\Sigma^*)\) endowed (freely) with \(k\) distinguishing colours (unary predicates) is a well-quasi-order. Finally, we say that \(f\) generates an \(\infty\)-well-quasi-order whenever it generates a \(k\)-well-quasi-order for all \(k \in \mathbb{N}\).

  1. Is it decidable whether the image of \(f\) is a well-quasi-ordering when \(f\) is computedb y a 2DFT?
  2. What about a bimachine? What about a Mealy Machine?
  3. Prove that it is decidable whether \(f\) generates an \(\infty\)-well-quasi-ordering.

References

Baschenis, Félix, Olivier Gauwin, Anca Muscholl, and Gabriele Puppis. 2015. One-way Definability of Sweeping Transducer. In 35th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2015), edited by Prahladh Harsha and G. Ramalingam, 45:178–91. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik. https://doi.org/10.4230/LIPIcs.FSTTCS.2015.178.
———. 2016. Minimizing Resources of Sweeping and Streaming String Transducers. In 43rd International Colloquium on Automata, Languages, and Programming (ICALP 2016), edited by Ioannis Chatzigiannakis, Michael Mitzenmacher, Yuval Rabani, and Davide Sangiorgi, 55:114:1–14. Leibniz International Proceedings in Informatics (LIPIcs). Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik. https://doi.org/10.4230/LIPIcs.ICALP.2016.114.