ComparatorChallenges/GeneralizedStarHeight.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: OpenAI's pinned repository says an unreleased internal model produced the manuscripts and supporting proof artifacts. The collection builds on the mathematics community's accumulated problems, results, language, and formal libraries; each manuscript's BibTeX and bibliography are the authority for individual scholarly credit.
Project sources: Pinned openai/math documentation, Pinned formalization catalogue
5 declarations, 1 contain sorry, 0 declared as axioms
- inductive
OAI.GeneralizedStarHeight.Expressionline 9Also declared: OAI/Computability/StarHeight/Model.lean:9 (same declaration text).
- def
OAI.GeneralizedStarHeight.Expression.languageline 22Also declared: OAI/Computability/StarHeight/Model.lean:22 (same declaration text).
- def
OAI.GeneralizedStarHeight.Expression.heightline 31Also declared: OAI/Computability/StarHeight/Model.lean:31 (same declaration text).
- def
OAI.GeneralizedStarHeight.HasHeightAtMostline 39Also declared: OAI/Computability/StarHeight/Model.lean:39 (same declaration text).
- theorem
OAI.GeneralizedStarHeight.mainChallenge statement: Generalized star height at most three sorry line 42L4DEL explanation
Generalized star height measures the nesting of Kleene stars in regular expressions that also allow Boolean operations. The formalization proves that every regular language over a finite alphabet has a generalized expression over the same alphabet of star height at most three. This is stronger than the bound of thirteen in the accompanying finite-monoid paper. The selected statement asserts the uniform expression bound, without separately encoding every construction step of that paper. The formalization proves that every regular language over a finite alphabet has a generalized regular expression over that same alphabet with star height at most three. Generalized expressions allow Boolean operations as well as concatenation and Kleene star. The bound of three implies the accompanying paper's bound of four; the selected statement concerns the expression bound itself. Generalized star height measures the nesting of Kleene stars in regular expressions that also allow Boolean operations. The formalization proves that every regular language over a finite alphabet has a generalized regular expression over that same alphabet of star height at most three. Complements are taken in the same free monoid. This is the paper's uniform bound.
- This is an exact comparator target linked by the pinned repository's formalization note for this result.
- The repository's comparator configuration selects OAI.Computability.StarHeight.Main as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/Computability/StarHeight/Main.lean:9 (same statement text; different proof or body). Qualify references as OAI.GeneralizedStarHeight.main@path.
theorem main {Alphabet : Type u} [Finite Alphabet] (L : Language Alphabet) (hL : L.IsRegular) : HasHeightAtMost L 3 := by …