Computing the ordinal of a rational language well-partially-ordered by the subword relation
Statement
Let be a finite set or "alphabet", the free monoid on or set of "words". If , write when is a "subword" of , i.e., can be obtained by deleting certain letters in .
The well-known "Higman's lemma" states that is a well partial order, meaning that any total order extending it is a well-order. Furthermore, the least upper bound of the ordinals of such well-orderings is where (and it is attained) by results of de Jongh and Parikh (“Well-Partial Orderings and Hierarchies”, Nederl. Akad. Wetensch. Proc. Ser. A 80 = Indag. Math. 39 (1977), 195–207, esp. thm. 3.11 & 2.13).
Now let be a rational (=regular) language (i.e., recognizable by a finite automaton, or inverse image of a subset of a finite monoid by a homomorphism of monoids ). The set is still well partially ordered by .
Question: How can we compute the ordinal (the least upper bound of well-orderings of extending ) from a description of (by finite automaton, regular expression, or morphism of monoids)?
Comment 1: I expect …
Posed by Gro-Tsen · co.combinatorics, order-theory, formal-languages, ordinal-numbers
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-237188.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-237188.lean
import Mathlib /-! # Computing the ordinal of a rational language well-partially-ordered by the subword relation Source: https://mathoverflow.net/questions/237188 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_237188 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_237188