Top Banner
Equations in free groups and EDT0L languages Volker Diekert 1 Universit¨ at Stuttgart Group Theory International Webinar, Thursday, April 16, 2015 1 Joint work with: Laura Ciobanu and Murray Elder The paper is on arXiv and it will appear at ICALP 2015, Kyoto, 2015 July 6 -10
23

Equations in free groups and EDT0L languages

Dec 06, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Equations in free groups and EDT0L languages

Equations in free groups and EDT0L languages

Volker Diekert1

Universitat Stuttgart

Group Theory International Webinar, Thursday, April 16, 2015

1Joint work with: Laura Ciobanu and Murray ElderThe paper is on arXiv and it will appear at ICALP 2015, Kyoto, 2015 July 6 -10

Page 2: Equations in free groups and EDT0L languages

The main result

Let W = 1 with W ∈ F (A ∪ Ω) be an equation over a free groupF (A) in variables Ω = X1, . . . , Xk. There is a simple algorithmwhich yields a finite NFA A such that:

A accepts a rational language R of endomorphisms over C∗.

A ⊆ C.

The alphabet C is of linear size in the input.

The set of all solutions σ in reduced words for W = is

(σ(X1), . . . , σ(Xk)) ∈ A∗ × · · · ×A∗ | σ(W ) = 1 = (h($1), . . . , h($k)) ∈ C∗ × · · · × C∗ | h ∈ R

where $1, . . . , $k ∈ C are special symbols.

1

Page 3: Equations in free groups and EDT0L languages

Remarks

Our result relies on the (re-)compression technique due toArtur Jez for solving word equations (STACS 2013).

The set of all solutions is finite if and only if R is a finite.

As a byproduct we obtain the following new complexityresults:

The existential theory of free groups is in NSPACE(n log n).Deciding whether an equation in free groups has only finitelymany solutions is in NSPACE(n log n).

Commercial break

We believe that NSPACE(n log n) is space optimal.The compression technique is powerful.It provides the simplest method to solve equations in free groups.

Unfortunately, it is somewhat difficult to explain why it is easy.Sorry.

2

Page 4: Equations in free groups and EDT0L languages

NFAs and rational subsets

Let M be any monoid, eg. either M = F (A) or M = C∗ orM = End(C∗).

A nondeterministic finite automaton (NFA) over M is a finitedirected graph A with initial and final states where the arcs arelabeled with elements of M .

Reading the labels of paths from initial to final states defines theaccepted language L(A) ⊆M .

Definition

L ⊆M is rational if L = L(A) for some NFA.

Rational = regular for f.g. free monoids.

In general, rational sets are not closed under intersection.

Benois (1969): Rational sets in free groups form a Booleanalgebra.

3

Page 5: Equations in free groups and EDT0L languages

EDT0L languages

EDT0L refers to Extended, Deterministic, Table, 0 interaction,and Lindenmayer system. See: The Book of L (Springer, 1986).

EDT0L languages via a “rational control” due to Asveld (1977).

Definition

L ⊆ A∗ is an EDT0L language if there is an extended alphabet Cwith A ⊆ C, a symbol # ∈ C, and a rational set ofendomorphisms R ⊆ End(C∗) such that

L = h(#) | h ∈ R ⊆ A∗.

4

Page 6: Equations in free groups and EDT0L languages

The picture of L

5

Page 7: Equations in free groups and EDT0L languages

The main result as a statement about EDT0L

Theorem

Let W = 1 with W ∈ F (A ∪ Ω) be an equation (with rationalconstraints) over a free group F (A) in variablesΩ = X1, . . . , Xk. Then the set of all solutions of W in reducedwords is an EDT0L language.

EDT0L languages form a proper subset of indexed languages.

Solution sets are not context-free, in general.

The context-free language of words overa, a−1, b, b−1

which reduce to the empty word is not in EDT0L. Thus, theword problem of F (a, b) is not in EDT0L. (This is awell-known fact in formal language theory.)

It is open whether the word problem of Z is in EDT0L.

6

Page 8: Equations in free groups and EDT0L languages

From groups to monoids with involution

Starting point: Replace F (A) by A∗, where A∗ is a free monoidwith involution. Transform the group equation W = 1 into a wordequation U = V over A∗. Add special constants $1, . . . , $k and #with # = # to A. Replace U = V by a single word:

Winit = $1X1 · · · $kXk#U#V#U#V#Xk $k · · ·X1 $1.

Introduce a rational constraint σ(X) /∈⋃a∈AA

∗aaA∗ via amorphism µ : A∗ → N where N is a finite monoid with zero 0.This ensures that solutions are in reduced words.

Definition

A solution of a word W ∈ (A ∪ Ω)∗ is a morphism σ : Ω→ A∗

such that

σ(W ) = σ(W ).

µσ(X) 6= 0 for all X ∈ Ω, ie. σ(X) has no nontrivial factoraa.

7

Page 9: Equations in free groups and EDT0L languages

The finite monoid N keeping the words reduced

Define N = 1, 0 ∪A×A to “remember first and last letters”with 1 · x = x · 1 = x, 0 · x = x · 0 = 0, and

(a, b) · (c, d) =

0 if b = c(a, d) b 6= c.

The monoid N has an involution by 1 = 1, 0 = 0, and(a, b) = (b, a).

Fix the morphism µ0 : A∗ → N given by µ0($i) = µ0(#) = 0 andµ0(a) = (a, a) otherwise.

µ0 respects the involution.

µ0(w) = 0 if and only if either w is not reduced or contains asymbol from $1, . . . , $k,#.

8

Page 10: Equations in free groups and EDT0L languages

How to solve equations?

Specify an equation together with a set of constants and variables,a morphism µ (which controls the rational constraints) and apartial commutation which allows some symbols to commute.

Specification: (W,B,X , µ, θ)

W = equation, the solution is a palindrome.

B = constants with A ⊆ B = B ⊆ C.

X = variables in W .

µ =morphism to control constraints.

θ = partial commutation

During the process of finding a solution we change theseparameters and we describe the process in terms of a diagram ofstates and arcs between them.

9

Page 11: Equations in free groups and EDT0L languages

Arcs changing variables: substitution arcs

Arcs (W,B,X , µ, θ) ε−→ (τ(W ), B,X ′, µ′, θ′) manipulate variablesvia a morphism τ : X →M(B,X ′, µ′, θ′). The label is ε = idC∗ .

1 τ(X) = 1: remove X (and X) from W . Potentially removespartial commutation.

2 τ(X) = aX: substitute X by aX, where a is a constant.

3 τ(X) = Y X: split X as Y X and define a type θ(Y ) = a,where a is a constant. After that Y commutes with a.This commuting relation is used for compressing blocks a`

into a single fresh letter a`.

10

Page 12: Equations in free groups and EDT0L languages

Arcs changing constants: compression arcs

Arcs (h(W ′), B,X , µ, θ) h−→ (W ′, B′,X , µ′, θ′) change theconstants. The label h ∈ End(C∗) induces a morphismh : M(B′)→M(B) in the opposite direction of the arc.

1 Make B larger via morphisms c 7→ h(c) 6= 1 where c ∈ B′.This provides us with enough fresh letters which can be usedfor compression.

2 Consider morphisms c 7→ h(c) ∈ B∗ with 1 ≤ |h(c)| ≤ 2; andmove from an equation h(W ′) to W ′. We compress the wordh(c) into a (fresh) letter c. As a consequence |W ′| ≤ |h(W )|.The equation gets shorter.

3 Replace B by a smaller alphabet B′ if W does not use a letterin B \B′. We have h = idC∗ . This keeps the alphabet ofconstants small.

4 Introduce partial commutation between constants by makingθ larger: h = idC∗ . Used inside block compression. If a` iscompressed into a`, then a and a` must commute, hencedefine θ(a`) = a. 11

Page 13: Equations in free groups and EDT0L languages

Notation

Let C be a fixed extended alphabet with A ⊆ C and|C| ≤ 100 |Winit|.A ⊆ B = B ⊆ C and X = X ⊆ Ω with morphism µ : B ∪ X → Nsuch that µ(a) = µ0(a) for all a ∈ A.

A type is a partial mapping θ : (B ∪ X ) \A→ B respecting theinvolution such that µ(θ(x)x) = µ(xθ(x)) ∈ N .

We define

M(B∪X , µ, θ) = (B∪X )∗/ θ(x)x = xθ(x) | x ∈ B ∪ X µ−→ N

M(B) denotes the submonoid of M(B ∪ X , µ, θ) generated by B.We have A∗ ⊆M(B) since θ(a) is not defined for a ∈ A.

The monoids M(B) and M(B ∪ X , µ, θ) are free partiallycommutative.

We need only free products of free commutative monoids.12

Page 14: Equations in free groups and EDT0L languages

The states of the NFA A of endomorphisms

Definition

A state of A is a tuple P = (W,B,X , µ, θ) such that:

W ∈M(B ∪ X , µ, θ).

|W | ≤ 100 |Winit|.W is called the equation at P .

Initial states

(Winit, A,Ω, µ, ∅)

Final states

(W,B, ∅, µ, ∅) with W = W ∈ B∗ and $1 · · · $k is a prefix of W .

13

Page 15: Equations in free groups and EDT0L languages

Solutions at states

Definition

Let P = (W,B,X , µ, θ) be a state.

A B-solution at P is given by a morphism σ : X → B∗

inducing a B-morphism σ : M(B ∪ X , µ, θ)→M(B) suchthat σ(W ) = σ(W ).

A solution at P is a pair (α, σ) such that σ is a B-solutionand α : M(B)→ A∗ is an A-morphism.

Remark

If (Winit, A,Ω, µ, ∅) has a solution (α, σ), then it has the form(idA∗ , σ)

Final states (W,B, ∅, µ, ∅) have a unique B-solution idB∗ .

14

Page 16: Equations in free groups and EDT0L languages

A obtains the substitution and compression arcs

Let P = (W,B,X , µ, θ) h−→ (W ′, B′,X ′, µ′, θ′) = P ′, whereh : M(B′)→M(B) is an A-morphism with the restrictions above.

Lemma

If σ′ is a B′-solution at P ′ and if α : M(B)→ A∗ is anA-morphism, then (αh, σ′) is a solution at P ′ and there existsa solution (α, σ) at P with ασW = αhσ′W ′.

If (α, σ) at P , then there exists a solution (αh, σ′) at P ′ withασW = αhσ′W ′.

Soundness of ALet h1 · · ·ht be the labels of a path from an initial stateP0 = (Winit, A,Ω, µ, ∅) to a final state (W,B, ∅, µ, ∅). Thenσ(Xi) = h1 · · ·ht($i) defines a solution at P0.

15

Page 17: Equations in free groups and EDT0L languages

Complexity

Theorem

The graph A can be constructed deterministically in singlyexponential time via some NSPACE(n log n) algorithm whichoutputs states and arcs which appear on paths between initial andfinal vertices.The NFA A satisfies the soundness property, i.e., the correspondingEDT0L language is a subset of solutions in reduced words.

Proof.

The complexity statement is trivial by standard methods.It is only here where |h(c)| ≤ 2 is used.Soundness was stated above.

16

Page 18: Equations in free groups and EDT0L languages

“Then a miracle occurs” (cf. S. Harris): completenes

By soundness of the NFA A it remains to prove the followingpurely existential statement

Theorem

Let (idA∗ , σ) be a solution at an initial vertex (Winit, A,Ω, µ, ∅).Then there exists a path inside A to a some final vertex.

Proof.

Iterate block compression and pair compression based on themethod of Jez presented at STACS 2013. Details are on arXiv.

17

Page 19: Equations in free groups and EDT0L languages

“Then a miracle occurs” (cf. S. Harris): completenes

By the soundness of the NFA A it remains to prove the followingpurely existential statement:

Theorem

Let (idA∗ , σ) be a solution at an initial vertex (Winit, A,Ω, µ, ∅).Then there exists a path inside A to some final vertex.

Proof.

Iterate block compression and pair compression based on themethod of Jez presented at STACS 2013. Details are on arXiv.

This is the end. Thank you.

17

Page 20: Equations in free groups and EDT0L languages

Related Literature.

A. V. Aho.Indexed grammars—an extension of context-free grammars.J. Assoc. Comput. Mach., 15:647–671, 1968.

P. R. Asveld.Controlled iteration grammars and full hyper-AFL’s.Information and Control, 34(3):248 – 269, 1977.

M. Benois.Parties rationelles du groupe libre.C. R. Acad. Sci. Paris, Ser. A, 269:1188–1190, 1969.

V. Diekert, C. Gutierrez, and Ch. Hagenah.The existential theory of equations with rational constraints infree groups is PSPACE-complete.Information and Computation, 202:105–140, 2005.Conference version in STACS 2001.

17

Page 21: Equations in free groups and EDT0L languages

V. Diekert, A. Jez, and W. Plandowski.Finding all solutions of equations in free groups and monoidswith involution.Proc. CSR 2014 LNCS8476: 1–15, 2014.

A. Ehrenfeucht and G. Rozenberg.On some context free languages that are not deterministicET0L languages.RAIRO Theor. Inform. Appl., 11:273–291, 1977.

S. Eilenberg.Automata, Languages, and Machines, Vol A.Acad. Press, 1974.

J. Ferte, N. Marin, and G. Senizergues.Word-mappings of level 2.Theory Comput. Syst., 54:111–148, 2014.

R. H. Gilman.Personal communication, 2012.

17

Page 22: Equations in free groups and EDT0L languages

A. Jez.Recompression: a simple and powerful technique for wordequations.Proc. STACS. LIPIcs, 20:233–244, 2013. Journal version toappear in JACM

O. Kharlampovich and A. Myasnikov.Elementary theory of free non-abelian groups.J. of Algebra, 302:451–552, 2006.

A. G. Myasnikov and V. Roman’kov.On rationality of verbal subsets in a group.Theory Comput. Syst., 52:587–598, 2013.

W. Plandowski.An efficient algorithm for solving word equations.Proc. STOC’06: 467–476. ACM Press, 2006.

W. Plandowski.personal communication, 2014.

17

Page 23: Equations in free groups and EDT0L languages

W. Plandowski and W. Rytter.Application of Lempel-Ziv encodings to the solution of wordequations.Proc. ICALP’98. LNCS1443: 731–742, 1998.

A. A. Razborov.On systems of equations in free groups.In Combinatorial and Geometric Group Theory, pages269–283. Cambridge University Press, 1994.

G. Rozenberg and A. Salomaa.The Book of L. Springer, 1986.

G. Rozenberg et al. (Eds.)Handbook of Formal Languages, Vol 1. Springer, 1997.

Z. Sela.Diophantine geometry over groups VIII: Stability.Annals of Math., 177:787–868, 2013.

17