Generalized Star Height at Most ThreeResearch Paper
Motivation: how many nested stars does a regular language need?
A regular expression describes a set of words using letters, union, concatenation and the Kleene star (any finite repetition of words from ). The star height of an expression is the depth of nesting of its stars, and it measures how many layers of unbounded repetition a regular language genuinely needs. For ordinary expressions this hierarchy is infinite. Allowing complement as an additional operation changes the picture: Boolean conditions can replace some layers of repetition, and the generalized star-height problem asks how far this goes. Whether every regular language has generalized star height at most some fixed number — and in particular whether one star always suffices — has been one of the longest-standing questions in the algebraic theory of automata.
Timeline
- 1963 — Eggan connects ordinary star height with the cycle structure of transition graphs and raises the question of its unboundedness (Michigan Math. J. 1963).
- 1965 — Schützenberger characterizes the star-free languages (generalized height ) as those recognized by finite aperiodic monoids (Inform. Control 1965).
- 1966 — Dejean and Schützenberger show that ordinary star height is unbounded already over a two-letter alphabet (Inform. Control 1966).
- 1992 — Pin, Straubing and Thérien prove generalized height at most one for languages recognized by finite nilpotent groups of class two and for further monoid classes (Inform. Comput. 1992, Theorems 7.3 and 7.8).
- 2002 — Straubing distinguishes the questions "is generalized star height bounded?" and "is it at most one?" in his account of the problem (LATIN 2002, p. 537).
- 2016–2017 — Bourne and Ruškuc prove height-one bounds for subword-counting languages with factors of length at most three (Theor. Comput. Sci. 2016); Bourne extends this to arbitrary fixed factors in his thesis (St Andrews, 2017, hdl:10023/12024).
- 2026 — Companion OpenAI preprints prove uniform bounds of thirteen (Finite Monoid Computations and a Uniform Generalized Star-Height Bound) and four (Generalized Star Height at Most Four).
- 2026 — The OpenAI preprint Generalized Star Height at Most Three (OpenAI Math Release, September 25, 2026) claims the bound three. It has not been peer reviewed and its theorem is not formally verified. Whether height one always suffices remains open; no language of generalized height greater than one is known.
Setting
Fix a finite alphabet and let be the set of finite words. A generalized regular expression over is built from the constants (denoting ) and (denoting ), single letters , union , concatenation , complement (taken in ), and star . Its height is defined by
For a regular language , the generalized star height is the least height of an expression over denoting .
In Lean (namespace OAI.GeneralizedStarHeight), expressions are an inductive type Expression Alphabet with exactly these seven constructors, Expression.language interprets them in Mathlib's Language Alphabet (complement is Language complement, i.e. relative to all words), Expression.height is the recursion above, and HasHeightAtMost L n means some expression has language and height at most .
Formalization targets
Goal: generalized star height at most three (Theorem 1.1)
For every finite alphabet and every regular language ,
The goal is published on the platform with status Open.
Significance
The result itself. Before 2026 it was not known whether generalized star height is bounded at all; all positive results covered restricted families of monoids or languages. Theorem 1.1 gives a uniform bound independent of the alphabet and of the recognizing automaton, settling the boundedness question. It leaves open the sharper question of whether height one always suffices: no language is known to require height two. A uniform bound also implies that the hierarchy of generalized heights has at most four nonempty levels, which narrows where any separating example must be sought.
Formalizing it. The statement is short and fully elementary, but the proof composes many constructions (finite-monoid recognition, prefix codes of episodes, split identities, marker scales) whose height accounting is error-prone. A formal proof would certify the boundedness theorem itself. Mathlib already has regular languages (Language.IsRegular) and ordinary regular expressions; this mission adds generalized expressions with complement and their height.
Difficulty
The classical lower bounds for ordinary star height do not transfer once complement is allowed, and complement can simulate many but not obviously all counting arguments. The natural approach — write each fiber of a morphism from to a finite monoid by an expression that simulates the monoid computation letter by letter — needs one star per level of the computation's dependence on earlier history, and the depth of this dependence grows with the monoid. Group components are the difficulty: aperiodic monoids give height zero, but counting modulo and nonabelian group computations require stars, and a uniform bound must handle arbitrary finite groups nested inside arbitrary monoids without the number of stars growing with their size.
Formalization scope
- The alphabet is any
Type uwith[Finite Alphabet]; regularity is Mathlib'sLanguage.IsRegular(acceptance by a finite-state DFA). - Expressions must use letters of the same alphabet, so no auxiliary letters may be introduced; complement is relative to all words over that alphabet.
heightcharges only for stars; complement, union and concatenation are free, exactly as in the source. SinceHasHeightAtMostasks only for existence of an expression, no bound on expression size or computability is claimed, matching the source's remark that the construction bounds nesting only.- Needed infrastructure: recognition of regular languages by finite monoids, prefix codes and unique factorization, and closure of bounded-height expressions under Boolean operations. The generalized-expression layer is reusable for the companion bounds (four and thirteen) and for formal work on star-free languages.
Selected references
- L. C. Eggan, Transition graphs and the star-height of regular events, Michigan Math. J. 10 (1963). https://doi.org/10.1307/mmj/1028998975
- M.-P. Schützenberger, On finite monoids having only trivial subgroups, Inform. Control 8 (1965). https://doi.org/10.1016/S0019-9958(65)90108-7
- F. Dejean and M.-P. Schützenberger, On a question of Eggan, Inform. Control 9 (1966). https://doi.org/10.1016/S0019-9958(66)90083-0
- J.-É. Pin, H. Straubing and D. Thérien, Some results on the generalized star-height problem, Inform. Comput. 101 (1992). https://doi.org/10.1016/0890-5401(92)90063-L
- H. Straubing, On logical descriptions of regular languages, LATIN 2002, LNCS 2286. https://doi.org/10.1007/3-540-45995-2_46
- T. Bourne and N. Ruškuc, On the star-height of subword counting languages and their relationship to Rees zero-matrix semigroups, Theor. Comput. Sci. 653 (2016). https://doi.org/10.1016/j.tcs.2016.09.024
- T. Bourne, Counting subwords and other results related to the generalised star-height problem for regular languages, PhD thesis, University of St Andrews, 2017. https://hdl.handle.net/10023/12024
- OpenAI, Generalized Star Height at Most Three, OpenAI Math Release preprint, September 25, 2026 (Theorem 1.1, p. 2). https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Generalized-Star-Height-at-Most-Three-September-25-2026/article.pdf