ArticleslgStudy

mathematics

Cobham's theorem

Cobham's theorem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Cobham's theorem rather than just read about it. In short: 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.

Key takeaways

  • Cobham's theorem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Cobham's theorem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Cobham's theorem from memory before moving on to harder problems.

Reference excerpt

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 and has since given rise to many extensions and generalisations.

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+⋯+nhbh where 0≤n0,n1,…,nh<b and nh>0. The word n0n1⋯nh is often denoted ⟨n⟩b, 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∣n∈S} of the representations of its elements in base b is a language recognisable by a finite automaton on the alphabet {0,1,…,b−1}. Two positive integers k and ℓ are multiplicatively independent if there are no non-negative integers p and q such that kp=ℓq. 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: Another way to state the theorem is by using automatic sequences. Cobham himself calls them "uniform tag sequences." The following form is found in Allouche and Shallit's book: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≤i<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. This formulation in logic allows for extensions and generalisations. The logical expression uses the theory

⟨N,+,Vr⟩ of natural integers equipped with addition and the function Vr defined by Vr(0)=1 and for any positive integer n, Vr(n)=rm 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 ⟨N,+,Vr⟩ if it can be described by a first-order formula with equality, addition, and Vr. Examples:

The set of odd numbers is definable (without Vr) by the formula (∃y)(x=y+y+1) The set {2n∣n≥0} 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 ⟨N,+,Vk⟩ and ⟨N,+,Vℓ⟩ 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↦a1 ,1↦10 ,0↦00 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: a morphic word s is α-substitutive for a certain number α if when written in the form

s=π(fω(b)) where the morphism f:B∗→B∗, prolongable in b, has the following properties:

all letters of B occur in fω(b), and α>1 is the dominant eigenvalue of the matrix of morphism f, namely, the matrix M(f)=(mx,y)x∈B,y∈A, where mx,y is the number of occurrences of the letter x in the word f(y). A set S of natural numbers is α-recognisable if its characteristic sequence s is α-substitutive. A last definition: a Perron number is an algebraic number z>1 such that all its conjugates belong to the disc {z′∈ℂ,|z′|<z}. These are exactly the dominant eigenvalues of the primitive matrices of positive integers.

We then have the following statement:

Logic approach The logic equivalent permits to consider more general situations: the automatic sequences over the natural numbers ℕ or recognisable sets have been extended to the integers ℤ, to the Cartesian products ℕm, to the real numbers ℝ and to the Cartesian products ℝm.

Extension to ℤ 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 ℕm 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 (39) is written as (00111001)=(01)(00)(10)(11).An elegant proof of this theorem is given by Muchnik in 1991 by induction on m. Other extensions have been given to the real numbers and vectors of real numbers.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Cobham's theorem

Start with the simplest possible case. Write down what Cobham's theorem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Cobham's theorem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Cobham's theorem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Cobham's theorem

In research
Cobham's theorem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Cobham's theorem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Cobham's theorem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorics on words, Finite-state machines, Information theory, so understanding it makes those chapters shorter.
In everyday life
Look for Cobham's theorem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Cobham's theorem” →

How to study Cobham's theorem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Cobham's theorem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Cobham's theorem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Cobham's theorem in simple terms?

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…

Why does Cobham's theorem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Cobham's theorem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Cobham's theorem.

Tags

  • Combinatorics on words
  • Finite-state machines
  • Information theory
  • Number theory
  • Theorems in combinatorics
  • Theoretical computer science

Keep exploring