Generalized star height at most three

Three nested stars are enough to describe any regular language once complement is allowed.

3 papers September 25, 2026 Explained by AI

A regular expression describes a set of words, and a star means "repeat as often as you like." If you may also take complements, some stars become unnecessary. These papers prove that no regular language ever needs stars nested more than three deep (Lean proof listed). This answers whether any fixed bound exists. Whether depth one always suffices is still open.

First step
1963
Lawrence Eggan, star height of regular events
Significance
Major
It answers whether a fixed bound on generalized star height exists for all regular languages. The gap between one and three remains.
Trust
Formal proof listed
Field
Theoretical computer science
3 papers

The explanation

Take every word made of the letters a and b that contains ab somewhere. There are 16 words of length four, and 11 of them qualify. The five that do not are aaaa, baaa, bbaa, bbba and bbbb. A regular expression (a short formula for a set of words) can describe this set. The usual formula reads: anything, then ab, then anything. Writing "anything" needs a star. The star means "repeat as often as you like."

Now allow one more operation, the complement. It means every word not in a given set. The empty set contains no words, so its complement is every word. That writes "anything" with no star at all. So once complement is allowed, the set above needs zero stars. Some sets still need a star. Over the single letter a, take the words of even length. Up to length ten, that is 6 of the 11 possible lengths. Without a star, a one-letter set is always finite or cofinite (missing only finitely many words). The even lengths are neither, so this set needs one star.

The generalized star height of a set of words counts stars inside stars. It is the smallest nesting depth of stars that any formula for the set needs, when complement is allowed. The sets in question are regular languages. These are the sets a finite automaton can recognize. A finite automaton is a machine with finitely many states that reads a word letter by letter. The question asks whether one fixed depth works for every regular language.

Without complement, the answer is no. In 1963, Lawrence Eggan linked ordinary star height to the loops in an automaton's diagram. In 1966, Françoise Dejean and Marcel-Paul Schützenberger showed ordinary star height is unbounded, even with two letters. Those lower bounds do not carry over once complement is added. In 1965, Schützenberger described exactly which languages need no star in the generalized setting. Later work proved a depth of one for special families. Pin, Straubing and Thérien did this in 1992 for languages recognized by certain finite groups. Nothing gave a bound for every regular language.

That was the obstacle: the known results covered only restricted families. A general regular language has no special structure to exploit. Every regular language does come with a finite monoid. That is a finite table recording how each word moves the automaton between states. The task is to compute that table's value for any word with only a few nested stars.

These papers prove a uniform bound (Lean proof listed). Every regular language, over any finite alphabet, has generalized star height at most three. The formulas use the same letters as the language, and complement means all other words over those letters. Three separate papers give three separate proofs, of the bounds thirteen, four and three. None uses another's numerical result. The proof of three cuts each word into pieces called episodes, which can be found in only one way. It checks the front and back of each piece separately. A clock (a word-length counter that cycles) forces the two checks to agree, or to differ in one way only. The paper builds each piece's computation so that this one mismatch still gives the right answer. Two such splitting steps, each adding one star, reach depth three.

The bound limits the nesting only. The paper gives no bound on how long the formulas are or how long building them takes. It also does not show that any language needs more than one star. Whether depth one always suffices is still undecided. Howard Straubing's 2002 account treats that as a different question from the existence of a fixed bound.

How sure is this? A computer proof checker called Lean has checked a formal proof of the main statement. It says every regular language over a finite alphabet has depth at most three. Complements are taken over the same alphabet. The formal statement does not separately encode every construction step of the paper with the bound thirteen. No specialist review has been published.

What it doesn't show. This does not show that any language needs more than one nested star.

Where it came from

This result comes from an unreleased OpenAI model, published in the openai/math release on 6 October 2026.

Hype check

Major for automata theory if the proof holds. Lean has checked a formal proof of the depth-three statement. The formulas may be huge, the question of depth one stays open, and no specialist review is published.

Words used

Regular language
A set of words that a machine with finitely many states can recognize.
Regular expression
A short formula for a set of words, built from letters, union, joining words end to end, and the star.
Kleene star
The operation that repeats words from a set any number of times, including zero.
Complement
All words over the alphabet that are not in a given set.
Generalized star height
The smallest nesting depth of stars needed to write a language when complement is also allowed.
Cofinite
Missing only finitely many words.
Finite monoid
A finite table recording how words combine; here, how each word moves an automaton between states.

The original papers (3)

All quoted lines (10)

  1. Every regular language over a finite alphabet has generalized star height at most four over that same alphabet.
    Generalized Star Height at Most Four Back to text
  2. The expressions in the theorem use the letters of Σ\Sigma itself.
    Generalized Star Height at Most Three Back to text
  3. Each of the three papers gives its own complete proof; the numerical theorem of one is not used to prove another.
    Generalized Star Height at Most Three Back to text
  4. This makes the episode boundaries unique.
    Generalized Star Height at Most Three Back to text
  5. A clock restricts the pairs they can jointly realize: either they agree, or there is only one possible unequal pair.
    Generalized Star Height at Most Three Back to text
  6. A clock restricts the pairs they can jointly realize: either they agree, or there is only one possible unequal pair.
    Generalized Star Height at Most Three Back to text
  7. The inner split starts from empty skip computations and gives height two; recovery makes those computations the skips for the outer split, giving height three.
    Generalized Star Height at Most Three Back to text
  8. The construction gives an upper bound on nesting, without a bound on expression size or running time.
    Generalized Star Height at Most Three Back to text
  9. It does not exhibit a language of generalized height greater than one, and does not decide whether one always suffices.
    Generalized Star Height at Most Three Back to text
  10. A universal finite upper bound and a universal upper bound of one are different assertions; Straubing distinguishes them explicitly in his account of the problem.
    Generalized Star Height at Most Three Back to text

Other sources

  1. L. C. Eggan, “Transition graphs and the star-height of regular events”, Michigan Mathematical Journal 10 (1963), 385–397
  2. F. Dejean and M.-P. Schützenberger, “On a question of Eggan”, Information and Control 9 (1966), 23–25
  3. M.-P. Schützenberger, “On finite monoids having only trivial subgroups”, Information and Control 8 (1965), 190–194
  4. J.-É. Pin, H. Straubing and D. Thérien, “Some results on the generalized star-height problem”, Information and Computation 101 (1992), 219–250
  5. H. Straubing, “On logical descriptions of regular languages”, LATIN 2002, LNCS 2286, 528–538