Over Christmas I typed up my Bass-Serre / Grzegorczyk stuff in quite a lot of detail and fairly rigorously. It’s far too much to put up here as blog posts, so here’s a link to the PDF.

The big theorem I prove says that the fundamental group of a graph of ${E}_{n}$-computable groups is ${E}_{n+1}$-computable. But are there cases when the fgoagog stays at ${E}_{n}$, and can we pin down what conditions cause it to move up to ${E}_{n+1}$? I’ve found a couple of examples which begin to answer those questions.

Corollary 1 says that if the edge groups are finitely generated then you don’t go up a level, while Corollary 2 gives an example of a graph with infinitely generated edge groups that does go up a level.

### Little Facts

- The $n$
^{th} prime ${p}_{n}\approx n\mathrm{log}n$.
- $\mathrm{exp}(x,y):={x}^{y}\in {E}_{3}$.
- The Gödel encoding of a word of length $n$ on an alphabet $X$ is $\le {p}_{n}^{J(n,n)}$, an ${E}_{3}$ function.

### Theorem 6.7 (from the paper)

Suppose we have $G={\pi}_{1}(\mathbf{G},\mathrm{\Gamma},T,{v}_{0})$, where $\mathrm{\Gamma}$ is finite. Suppose all the ${G}_{i}\in \mathbf{G}$ are finitely generated ${E}_{n}$-computable groups, $n\ge 3$. Assume all the identified subgroups are ${E}_{n}$-decidable, and all the isomorphisms ${\varphi}_{e}$ are ${E}_{n}$-computable. Then $G$ is ${E}_{n+1}$-computable.

### Corollary 1

Same assumptions as the Theorem 6.7, but also assume that the edge groups are finitely generated. So each edge homomorphism ${\varphi}_{{e}_{ij}}$ sends a finitely generated subgroup ${E}_{ij}\le {G}_{i}$ to another finitely generated subgroup ${E}_{ji}\le {G}_{j}$. Suppose everything is ${E}_{n}$-computable.

Then $G={\pi}_{1}(\mathbf{G},\mathrm{\Gamma},T,{v}_{0})$ is ${E}_{n}$-computable.

### Proof

In the algorithm from Theorem 6.7, the potential for unbounded recursion comes from applying the edge homomorphisms repeatedly. We will show that the result of applying the edge homomorphisms repeatedly is bounded by an ${E}_{3}$ function.

Let $w$ be a word on $G$ of length $n$. An upper bound on the number of syllables in $w$ is $n$, so let’s say there are $n$ applications of edge homomorphisms.

A homomorphism ${\varphi}_{{e}_{ij}}$ rewrites generators $x\in {X}_{i}$ as words ${\varphi}_{{e}_{ij}}(x)\in {X}_{j}^{\ast}$. As $G-i$ is finitely generated, there is a word ${\varphi}_{{e}_{ij}}(x)$ of maximum, finite length ${k}_{ij}$. So a word ${w}_{i}\in {E}_{ij}$ of length $m$ is rewritten to a word ${w}_{j}\in {E}_{j}$ of length at most ${k}_{ij}m$.

Because the graph is finite, we can find a greatest $k\in \{{k}_{ij}\}$. So after reducing all the syllables (assuming that can be done for the input word), the resulting word in ${G}_{0}$ has length at most ${k}^{n}n=L$.

Hence the index of the resulting word is bounded by

$${p}_{{k}^{n}n}^{J({k}^{n}n,{k}^{n}n)},$$

an ${E}_{3}$ function, by Fact 2. So recursion on the edge homomorphisms is bounded by an ${E}_{n}$ function, and so $G$ is ${E}_{n}$-computable.

$\u25fb$

### Corollary 2

We will construct a graph of ${E}_{3}$-computable groups whose fundamental group is ${E}_{4}$-computable.

Let $\mathbf{G}=\{{G}_{0},{G}_{1}\}$ be two copies of the free group on two generators, so ${G}_{0}=\u27e8x,y\u27e9$ and ${G}_{1}=\u27e8a,b\u27e9$. The graph has a single edge $e$ from ${v}_{0}$ to ${v}_{1}$, so $\mathrm{\Gamma}=T=(\{{v}_{0},{v}_{1}\},\{e,\overline{e}\})$.

Let ${E}_{01}=\u27e8\{{x}^{-n}y{x}^{n},n\in \mathbb{N}\}\u27e9$, ${E}_{10}=\u27e8\{{a}^{-n}b{a}^{n},n\in \mathbb{N}\}\u27e9$. So the edge groups are infinitely generated.

Define

$$\begin{array}{rl}{\varphi}_{e}({x}^{-2n}y{x}^{2n})& ={a}^{(-2n)!}b{a}^{(2n)!},\\ \\ {\varphi}_{\overline{e}}({a}^{-2n-1}b{a}^{2n+1})& ={x}^{-(2n)!-1}y{x}^{(2n)!+1}.\end{array}$$

Then $G={\pi}_{1}(\mathbf{G},\mathrm{\Gamma},T,{v}_{0})$ is ${E}_{4}$-computable.

### Proof

First of all, the homomorphisms are ${E}_{3}$-computable because words of the form ${a}^{-n}b{a}^{n}$ can be recognised by an ${E}_{3}$ function. Hence all the ingredients of the graph of groups are ${E}_{3}$-computable.

A word of the form

$$e{a}^{-1}{e}^{-1}\dots {x}^{-1}e{a}^{-1}{e}^{-1}{x}^{-n}y{x}^{n}ea{e}^{-1}x\dots ea{e}^{-1}$$

will be reduced to a word on ${G}_{0}$ whose length is proportional to ${\mathrm{fact}}^{(m)}(n)$, where $m$ is the number of syllables. As $m$ depends on the input, this length can only be computed by unbounded recursion on an ${E}_{3}$ function, so is only ${E}_{4}$-computable.

Therefore, $G$ is ${E}_{4}$-computable. $\u25fb$