Cobham's theorem explained

Cobham's theorem should not be confused with Cobham's thesis.

Cobham's theorem is a theorem in combinatorics on words that has important connections with number theory, notably transcendental numbers, and automata theory. Informally, the theorem gives the condition for the members of a set S of natural numbers written in bases b1 and base b2 to be recognised by finite automata. Specifically, consider bases b1 and b2 such that they are not powers of the same integer. Cobham's theorem states that S written in bases b1 and b2 is recognised by finite automata if and only if S differs by a finite set from a finite union of arithmetic progressions. The theorem was proved by Alan Cobham in 1969[1] and has since given rise to many extensions and generalisations.[2] [3]

Definitions

Let

n>0

be an integer. The representation of a natural number n in base b is the sequence of digits

n0n1 … nh

such that

n=n0+n1b+ … +n

h
hb

where

0\len0,n1,\ldots,nh<b

and

nh>0

. The word

n0n1 … nh

is often denoted

\langlen\rangleb

, or more simply,

nb

.

A set of natural numbers S is recognisable in base b or more simply b-recognisable or b-automatic if the set

\{nb\midn\inS\}

of the representations of its elements in base

b

is a language recognisable by a finite automaton on the alphabet

\{0,1,\ldots,b-1\}

.

Two positive integers

k

and

\ell

are multiplicatively independent if there are no non-negative integers

p

and

q

such that

kp=\ellq

. For example, 2 and 3 are multiplicatively independent, but 8 and 16 are not since

84=163

. Two integers are multiplicatively dependent if and only if they are powers of a same third integer.

Problem statements

Original problem statement

More equivalent statements of the theorem have been given. The original version by Cobham is the following:[1] Another way to state the theorem is by using automatic sequences. Cobham himself calls them "uniform tag sequences.".[4] The following form is found in Allouche and Shallit's book:[5] We can show that the characteristic sequence of a set of natural numbers S recognisable by finite automata in base k is a k-automatic sequence and that conversely, for all k-automatic sequences

u

and all integers

0\lei<k

, the set

Si

of natural numbers

s

such that

us=i

is recognisable in base

k

.

Formulation in logic

Cobham's theorem can be formulated in first-order logic using a theorem proven by Büchi in 1960.[6] This formulation in logic allows for extensions and generalisations. The logical expression uses the theory[7]

\langleN,+,Vr\rangle

of natural integers equipped with addition and the function

Vr

defined by

Vr(0)=1

and for any positive integer n,
m
V
r(n)=r
if

rm

is the largest power of

r

that divides n. For example,

V2(20)=4

, and

V3(20)=1

.

A set of integers

S

is definable in first-order logic in

\langleN,+,Vr\rangle

if it can be described by a first-order formula with equality, addition, and

Vr

.

Examples:

Vr

) by the formula

(\existsy)(x=y+y+1)

\{2n\midn\ge0\}

of the powers of 2 is definable by the simple formula

V2(x)=x

.We can push the analogy with logic further by noting that S is first-order definable in Presburger arithmetic if and only if it is ultimately periodic. So, a set S is definable in the logics

\langleN,+,Vk\rangle

and

\langleN,+,V\ell\rangle

if and only if it is definable in Presburger arithmetic.

Generalisations

Approach by morphisms

An automatic sequence is a particular morphic word, whose morphism is uniform, meaning that the length of the images generated by the morphism for each letter of its input alphabet is the same. A set of integers is hence k-recognisable if and only if its characteristic sequence is generated by a uniform morphism followed by a coding, where a coding is a morphism that maps each letter of the input alphabet to a letter of the output alphabet. For example, the characteristic sequence of the powers of 2 is produced by the 2-uniform morphism (meaning each letter is mapped to a word of length 2) over the alphabet

B=\{a,0,1\}

defined by

a\mapstoa1 ,1\mapsto10 ,0\mapsto00

which generates the infinite word

a11010001 …

,

followed by the coding (that is, letter to letter) that maps

a

to

0

and leaves

0

and

1

unchanged, giving

011010001 …

.

The notion has been extended as follows:[8] a morphic word

s

is

\alpha

-substitutive for a certain number

\alpha

if when written in the form

s=\pi(f\omega(b))

where the morphism

f:B*\toB*

, prolongable in b, has the following properties:

B

occur in

f\omega(b)

, and

\alpha>1

is the dominant eigenvalue of the matrix of morphism

f

, namely, the matrix

M(f)=(mx,y)x\in

, where

mx,y

is the number of occurrences of the letter

x

in the word

f(y)

.

A set S of natural numbers is

\alpha

-recognisable if its characteristic sequence

s

is

\alpha

-substitutive.

z>1

such that all its conjugates belong to the disc

\{z'\in\Complex,|z'|<z\}

. These are exactly the dominant eigenvalues of the primitive matrices of positive integers.

We then have the following statement:[8]

Logic approach

The logic equivalent permits to consider more general situations: the automatic sequences over the natural numbers

\N

or recognisable sets have been extended to the integers

\Z

, to the Cartesian products

\Nm

, to the real numbers

\R

and to the Cartesian products

\Rm

.
Extension to

\Z

We code the base

k

integers by prepending to the representation of a positive integer the digit

0

, and by representing negative integers by

k-1

followed by the number's

k

-complement
. For example, in base 2, the integer

-6=-8+2

is represented as

1010

. The powers of 2 are written as

010*

, and their negatives

110*

(since

11000

is the representation of

-16+8=-8

).
Extension to

\Nm

A subset

X

of

Nm

is recognisable in base

k

if the elements of

X

, written as vectors with

m

components, are recognisable over the resulting alphabet.

For example, in base 2, we have

3=112

and

9=10012

; the vector

\begin{pmatrix}3\\9\end{pmatrix}

is written as

\begin{pmatrix}0011\\1001\end{pmatrix}=\begin{pmatrix}0\\1\end{pmatrix}\begin{pmatrix}0\\0\end{pmatrix}\begin{pmatrix}1\\0\end{pmatrix}\begin{pmatrix}1\\1\end{pmatrix}

.An elegant proof of this theorem is given by Muchnik in 1991 by induction on

m

.[9]

Other extensions have been given to the real numbers and vectors of real numbers.

Proofs

Samuel Eilenberg announced the theorem without proof in his book;[10] he says "The proof is correct, long, and hard. It is a challenge to find a more reasonable proof of this fine theorem." Georges Hansel proposed a more simple proof, published in the not-easily accessible proceedings of a conference.[11] The proof of Dominique Perrin[12] and that of Allouche and Shallit's book[13] contains the same error in one of the lemmas, mentioned in the list of errata of the book.[14] This error was uncovered in a note by Tomi Kärki,[15] and corrected by Michel Rigo and Laurent Waxweiler.[16] This part of the proof has been recently written.[17]

In January 2018, Thijmen J. P. Krebs announced, on Arxiv, a simplified proof of the original theorem, based on Dirichlet's approximation criterion instead of that of Kronecker; the article appeared in 2021.[18] The employed method has been refined and used by Mol, Rampersad, Shallit and Stipulanti.[19]

Bibliography

Notes and References

  1. Cobham. Alan. 1969. On the base-dependence of sets of numbers recognizable by finite automata. Mathematical Systems Theory. 3. 2. 186–192 . 10.1007/BF01746527. free. 0250789.
  2. Book: Fabien. Michel. Durand. Rigo. Automata: from Mathematics to Applications. European Mathematical Society. 2010. Chapter originally written 2010. On Cobham’s Theorem. Pin. J.-É.. https://www-fourier.ujf-grenoble.fr/sites/default/files/files/fichiers/cobham010711.pdf.
  3. Book: Boris. Jason. Adamczewski. Bell. Automata: from Mathematics to Applications. European Mathematical Society. 2010. Chapter originally written 2010. Automata in number theory. Pin. J.-É.. https://adamczewski.perso.math.cnrs.fr/Chapter25.pdf.
  4. Cobham. Alan. 1972. Uniform tag sequences. Mathematical Systems Theory. 6. 1–2. 164–192 . 10.1007/BF01706087. free. 0457011.
  5. Book: Allouche. Jean-Paul.

    fr:Jean-Paul Allouche

    . Automatic Sequences: theory, applications, generalizations. Shallit. Jeffrey. Jeffrey Shallit. Cambridge University Press. 2003. 0-521-82332-3. Cambridge. 350.
  6. Book: Büchi, J. R. . Weak Second-Order Arithmetic and Finite Automata . 1990 . The Collected Works of J. Richard Büchi . Z. Math. Logik Grundlagen Math. . 6 . 87 . 10.1007/978-1-4613-8928-6_22 . 978-1-4613-8930-9 .
  7. Web site: Bruyère. Véronique. Véronique Bruyère. 2010. Around Cobham's theorem and some of its extensions. 19 January 2017. Dynamical Aspects of Automata and Semigroup Theories. Satellite Workshop of Highlights of AutoMathA.
  8. Durand. Fabien. 2011. Cobham's theorem for substitutions. Journal of the European Mathematical Society. 13. 6. 1797–1812. 1010.4009. 10.4171/JEMS/294. free.
  9. Muchnik. Theoretical Computer Science. The definable criterion for definability in Presburger arithmetic and its applications. 2003. 10.1016/S0304-3975(02)00047-6. 290. 3. 1433–1444 . free.
  10. Book: Eilenberg, Samuel. Automata, Languages and Machines, Vol. A. Academic Press. 1974. 978-0-12-234001-7. Pure and Applied Mathematics. New York. xvi+451. 58. .
  11. Book: Actes de la Fête des mots. Rouen. Greco de programmation, CNRS. 1982. 55–59. Hansel. Georges. fr. À propos d'un théorème de Cobham. Perrin. D..
  12. Book: Dominique. Perrin. van Leeuwen. Jan. Handbook of Theoretical Computer Science. B: Formal Models and Semantics. Elsevier. 1990. 978-0444880741. Finite Automata. 1–57.
  13. Book: Allouche. Jean-Paul.

    fr:Jean-Paul Allouche

    . Automatic Sequences: theory, applications, generalizations. Shallit. Jeffrey. Jeffrey Shallit. Cambridge University Press. 2003. 0-521-82332-3. Cambridge.
  14. Web site: Errata for Automatic Sequences: Theory, Applications, Generalizations . Shallit . Jeffrey . Allouche . Jean-Paul . 31 March 2020 . 25 June 2021.
  15. Web site: Tomi Kärki. 2005. A Note on the Proof of Cobham's Theorem. 23 January 2017. Rapport Technique n° 713. University of Turku.
  16. Michel Rigo. Laurent Waxweiler. 2006. A Note on Syndeticity, Recognizable Sets and Cobham's Theorem.. Bulletin of the EATCS. 88. 169–173 . 0907.0624. 2222340. 1169.68490. 23 January 2017.
  17. Web site: Paul Fermé, Willy Quach and Yassine Hamoudi. 2015. Le théorème de Cobham. French . Cobham's Theorem. 24 January 2017. 2017-02-02. https://web.archive.org/web/20170202033005/http://perso.ens-lyon.fr/yassine.hamoudi/wp-content/uploads/2016/07/Cobham.pdf.
  18. Krebs. Thijmen J. P.. 2021. A More Reasonable Proof of Cobham's Theorem. International Journal of Foundations of Computer Science. 32. 2. 203207. 1801.06704. 10.1142/S0129054121500118. 39850911 . 0129-0541.
  19. Mol. Lucas. Rampersad. Narad. Shallit. Jeffrey. Stipulanti. Manon. 2019. Cobham's Theorem and Automaticity. International Journal of Foundations of Computer Science. 30. 8. 1363–1379. 1809.00679. 10.1142/S0129054119500308. 52156852 . 0129-0541.