diff bd45ac3..3107e18 finite_monoid_star_height_v2.txt
diff --git a/finite_monoid_star_height_v2.txt b/finite_monoid_star_height_v2.txt
index 472c760..66d5b2a 100644
--- a/finite_monoid_star_height_v2.txt
+++ b/finite_monoid_star_height_v2.txt
@@ -8,25 +8,13 @@ Theorem. For every finite alphabet Sigma and every regular language L over Sigma
The theorem answers the uniform question affirmatively. It does not settle whether height one suffices for every regular language, nor does it produce the minimum of h_Sigma(L) for a particular L. Straubing's 2002 LATIN lecture separates the two questions and observes that no regular language of generalized height greater than one was then known.
-./straubing-2002.pdf
+https://doi.org/10.1007/3-540-45995-2_46
The ordinary star height counts the same way but forbids complement. Eggan introduced it and tied its lower bounds to the transition graph of a deterministic automaton. Dejean and Schutzenberger produced ordinary-height examples over a binary alphabet. Those lower bounds use expressions without complement and so do not transfer to the generalized model. Schutzenberger's 1965 theorem locates the star-free languages exactly at height zero: a language is star-free if and only if it is recognized by a finite aperiodic monoid, and the whole alphabet is the complement of the empty language.
-./eggan-1963.pdf
-./dejean-schutzenberger-1966.pdf
-./schutzenberger-1965.pdf
-
-Several algebraic classes are known to have height one. The 1992 Pin-Straubing-Therien survey recalls Henneman's result for finite abelian groups and extends height one to languages recognized by finite nilpotent groups of class two. Bourne and Ruskuc reached height one for languages recognized by finite Rees zero-matrix semigroups over abelian groups. Place and Zeitoun's 2017 CSR lecture places the ordinary and generalized problems in the broader concatenation-hierarchy landscape. Cotumaccio's 2025 Bulletin of the European Association for Theoretical Computer Science column still lists generalized star height among open problems connecting automata and data compression.
-
-./pst-1992.pdf
-./bourne-ruskuc-2016.pdf
-./place-zeitoun-2017.pdf
-./cotumaccio-2025.pdf
-
-A separated-marker device from topological dynamics supplies the last external ingredient. Krieger's 1982 lemma places markers at mutual distance at least d while forcing the markerless regions to be locally periodic blocks of bounded length. Meyerovitch's 2025 embedding theorem for multidimensional subshifts uses a clopen form of the same idea together with a finite merging argument. The precise finite-window statement on which the affine construction relies is proved from first principles with explicit bounds.
-
-./krieger-1982.pdf
-./meyerovitch-2025.pdf
+https://doi.org/10.1307/mmj/1028998975
+https://doi.org/10.1016/S0019-9958(66)90108-7
+https://doi.org/10.1016/S0019-9958(65)90108-7
The argument runs through a finite monoid attached to the DFA. Let M be the monoid of state transformations induced by words of Sigma, the identity included. The product of a word in M determines acceptance: if q_0 is the initial state, a word w is accepted exactly when q_0 T_w is accepting. The desired language is the union, over the finitely many m in M sending q_0 into the accepting set, of the languages {w : T_w = m}. Finitely many height-bounded languages combine by union without increasing height, so the theorem reduces to bounding, for each m, the generalized height of {w : T_w = m}.
@@ -97,7 +85,7 @@ Proof. The construction is carried out in a product of finitely many cyclic coor
First coordinates. Choose a left/right partitions of Lambda (empty sides permitted) so that, whenever alpha != beta and {alpha, beta} != {gamma, delta}, some partition places alpha on the left, beta on the right, and gamma, delta on the same side. To see that such a family exists, assign each tag a side independently with probability 1/2. The required assignment for a fixed quadruple is feasible: send both members of {gamma, delta} to the left if the set meets alpha, to the right if the set meets beta, and either way if it avoids {alpha, beta}. The excluded equality ensures alpha and beta cannot be forced onto the same side. Specifying sides for at most four distinct tags then has probability at least 1/16. With a independent partitions the expected number missed is at most m^4 (15/16)^a <= m^4 exp(-a/16) <= m^4 (2m)^{-4} = 1/16 < 1. The number missed is an integer, so some choice misses none.
-Choose b partitions of Lambda into Type 1 and Type 2 that separate every two distinct tags; when m = 1 set b = 0 and there are no such partitions. Each Type partition receives a batch of coordinates as follows. List every ordered list of K_cl directed pairs (p, p') of distinct roster labels whose underlying undirected edges are distinct and form a forest. A forest here is a finite simple graph with no cycles. Give each such list its own dedicated coordinate in the batch, and add spare coordinates if necessary to make the batch size positive and odd. All such lists together form a finite set. This defines a finite coordinate set C_before any prime orders are chosen.
+Choose b partitions of Lambda into Type 1 and Type 2 that separate every two distinct tags; when m = 1 set b = 0 and there are no such partitions. Each Type partition receives a batch of coordinates as follows. List every ordered list of K_cl directed pairs (p, p') of distinct roster labels whose underlying undirected edges are distinct and form a forest. A forest is a finite simple graph with no cycles. Give each such list its own dedicated coordinate in the batch, and add spare coordinates if necessary to make the batch size positive and odd. All such lists together form a finite set. This defines a finite coordinate set C_before any prime orders are chosen.
First coordinates: tag semantics. Choose pairwise distinct primes N_c, one for each coordinate c in C, exceeding max(B, 400, 2^{r+1}). Such primes exist recursively: the product of all primes at most any finite bound, plus one, has a prime divisor exceeding that bound. Write G for the product of Z/N_c over c in C. On the circle T = R/Z identify x/N_c with its point and write ||z||_T = min over integers k of |z - k|, with dist_T to a finite set taken as the minimum.
@@ -237,3 +225,350 @@ Internal visibility alone does not put data on the correct side of a cut. Each s
Fixing this finite inventory independently of L_0, o_bullet, B_tail is deferred to the section on choosing parameters, which locates the three lengths in the order displayed above.
+Outer splits. Two outer splits convert graph languages on the full episode class E to graph languages on a residual domain D_0 on which two availability conditions fail in one of five explicit ways. The first outer split uses prediction trials whose boundaries are chosen by inner markers. The second uses a long markerless window whose periodicity supplies cuts with constant prefix product. Both constructions define total deterministic affine updates independent of split success; the split identity transports graph languages between them.
+
+Use the earlier notation. The episode start is s, its origin t = s + L_0, its anchor q, and its end b_0 = q + B_tail. Five aligned subbuffers lie between s and t. The outer layers use cuts after t; every bounded inspection of either layer sits at a fixed offset from t. Write T_e for the interval product T[s, q + B_tail].
+
+Main schedule. Fix the initial representation on V and put J = |V|^2. Fix a finite collection of main trials, indexed by nu, each with a prediction Theta_nu in M^{J+1}. The label set Z = {(nu, j) : 0 <= j <= J + 1} indexes endpoints and checkpoints. For lambda in Z let o_lambda be its nominal offset from t. Take an inner marker system with separation d_circle, block length K_circle > 3 d_circle^2, inspection radius r_circle >= K_circle, and search halfwidth H supplied by the parameter choices.
+
+Set z_lambda(t) = t + o_lambda and u_lambda(t) = first inner marker in [z_lambda(t) - H, z_lambda(t) + H], with "bottom" for absence. Let A(t) mean every u_lambda(t) is present. When A(t) holds, these are the actual trial boundaries; trial nu has endpoints B_nu = u_{nu,0}(t) and C_nu = u_{nu,J+1}(t). Its block j consists of cuts k = t + c_{nu,j} + a for 0 <= a < R_1, where R_1 is the modulus determined by the parameter choices. The offsets place the whole block strictly between boundaries j-1 and j.
+
+Second-layer cuts lie at k = z_lambda(t) + a for 0 <= a < R_2. Let H_1, H_2 be the finite sets of all cut offsets from t. Choose the end-stability radius so that diam(H_1), diam(H_2) < w_E < d_bullet and K_bullet - w_E > d_bullet^2; the parameter choices realise this.
+
+Every suffix test at an outer cut k uses the following guard, independently of its tag. Form all origins k - h for h in H_r with r in {1, 2}. Require their values of eta to be equal, and require exact consumption of the episode end obtained from one reference origin. Let q be that reference anchor. If the prefix used an actual cut k = t + h_0 with h_0 in H_r, the shared-anchor lemma forces q to coincide with the true anchor, even if the suffix initially extends beyond the first episode or ends prematurely. Every accepted cut therefore consumes exactly one episode, and the clock integers i = k - t and j = q - k satisfy i + j = q - t.
+
+Main affine update. Apply the tag clock to tags alpha = (nu, j, X, Y) with X, Y in V. Write n_1, I^(1)_alpha, J^(1)_alpha, W_1 for the resulting modulus, prefix set, suffix set, and bad set. Define F_{1,e}: V -> V for every episode, independently of any split, as follows:
+(a) if the clock graph G_1(ell) of possible tag pairs at ell = q - t is contained in the diagonal and A(t) holds, process letters by v -> v d_e for the letter d_e, insert the ideal shift of the prediction-trial lemma at each main-trial end, and evaluate the affine action so produced on v;
+(b) if G_1(ell) is diagonal and A(t) fails, set F_{1,e}(v) = v T_e;
+(c) if G_1(ell) has its unique off-diagonal edge alpha -> beta, set F_{1,e}(v) = v T_e + Y(beta) - X(alpha) T_e.
+These cases exhaust all possibilities, including the empty graph, which belongs to the diagonal case. Every F_{1,e} is deterministic affine with linear part T_e.
+
+A language with metadata is the union over its own metadata choices; the prefix's union over labels is independent of the suffix's. Define P_x^(1) as the union over alpha = (nu, j, X, Y) of languages of words u such that:
+(i) |u| equals one of the prescribed cuts of block j; |u| - t lies in I^(1)_alpha; and x = X;
+(ii) every boundary preceding the cut is present, including the boundaries of all earlier trials and through boundary j-1 of the current trial;
+(iii) processing from x to B_nu, with ideal shifts on earlier trials, arrives at the enumerated input x_j of this block;
+(iv) the block's predicted transfer, together with all its preceding individual eligibility conditions, holds.
+All data used lie before the cut, by placement.
+
+Define Q_y^(1) as the union over the same alpha of languages of suffixes v such that:
+(a) v satisfies the independent end guard;
+(b) q - k lies in J^(1)_alpha and y = Y;
+(c) for each candidate origin k - c_{nu,j} - a with 0 <= a < R_1, the future boundary searches for that role are performed, with every boundary from j onward in the current trial, and every boundary in later trials, present at the same word position across all those candidates;
+(d) at those common positions, the suffix-product condition from boundary j to C_nu is verified;
+(e) starting from the enumerated output y_j at C_nu, iterating through later trials with ideal shifts, arrives at y.
+All required searches are after k. The candidate-origin role may be false; it remains a finite datum.
+
+Set S_1 subset of E to consist of those episodes satisfying: eta(t) stable within w_E; ell = q - t not in W_1; A(t) holds; u_lambda(t) stable within R_1 for every lambda; and at least one main trial perfectly predicted.
+
+Lemma (Main split). The languages P_x^(1) and Q_y^(1) satisfy the split identity with D = E, updates F_{1,e}, and skipped class S_1.
+
+Proof. Take an accepted pair (u, v) at a genuine episode boundary, so the whole word lies in E*. The end guard gives exact consumption and d = q - t equal on the two sides. If G_1(ell) is contained in the diagonal, the two tag pairs coincide, so the prefix and suffix use the same (nu, j, X, Y). The actual t then appears among the role-origin candidates. The prefix establishes all earlier boundaries, the suffix establishes all later boundaries, and together they verify A(t). Jointly they verify, for the actual trial nu and block j, ideal eligibility of the (x_j, y_j) pair and of all surrounding intervals. The prediction-trial lemma together with the ideal computations before and after that trial give F_{1,e}(x) = y.
+
+If the tag pair is off-diagonal, the tag clock identifies it as the unique edge alpha -> beta. The prefix's input check fixes x = X(alpha) and the suffix's output check fixes y = Y(beta), so F_{1,e}(x) = x T_e + Y(beta) - X(alpha) T_e = y. Data gathered under potentially false role origins introduces no competing input or output.
+
+For availability, take e in S_1 and any x in V. The perfect trial nu supplies a block j such that, for the actually arriving vector at block j and its trial output, the (x_j, y_j) pair is eligible. Set X = x and Y = F_{1,e}(x). Because ell = q - t lies outside W_1, the tag clock gives a decomposition ell = i_p + j_s with i_p in I^(1)_alpha and j_s in J^(1)_alpha for alpha = (nu, j, X, Y). The R_1 consecutive cut offsets enumerate every residue modulo n_1 = R_1, so one cut realises the required residue. Every role origin differs from the true one by less than R_1, so future-boundary stability makes every suffix comparison pass. End stability makes the independent guard pass. Every required datum is present, giving the desired split.
+
+
+Periodic-window update. For episodes in E minus S_1, the main family
+of boundaries is missing, or the trial prediction fails. The second
+layer handles these using a long marker-free window and short-period
+cuts.
+
+Apply Lemma (tag clock) to the second tag alphabet whose fields have
+sizes |Z|, |V|, |V|, |M|, n_1, and |S|^(2 r_circ), where Z is the trial
+label set and r_circ the inner-marker search radius. The clock gives a
+second modulus n_2, sets I^(2)_alpha, J^(2)_alpha in Z/n_2, and a bad
+set W_2.
+
+The prefix P^(2)_x requires: k - t in I^(2)_alpha; x = X; the proposed
+prefix product m equals T_(s,k); the proposed first-clock residue r
+equals k - t modulo n_1; the proposed left context xi equals the
+2 r_circ letters immediately before k; no inner marker lies in
+[z_lambda(t) - H, k - r_circ].
+
+The suffix Q^(2)_y uses the outer guard at layer 2, then requires
+q - k in J^(2)_alpha and y = Y. Adjoin xi immediately before the
+argument and require no inner marker in [k - r_circ, k + H + R_2].
+Combine m with the suffix product T_(k, q + B_tail) to obtain a
+proposed product for the whole episode. Combine r with (q - k) mod n_1
+to obtain a proposed first-clock residue. Use G_1(ell) at this residue
+and the tag (X, Y) to compute F_1,e(x) under that combined graph case.
+Require y = F_1,e(x).
+
+For the linear extension, on U_0 = V + F_2 define F_2,e as the
+homogeneous lift of F_1,e:
+
+ F_2,e(v, c) = (v T_e + c b_e, c),
+
+where F_1,e(v) = v T_e + b_e. The lift is linear on U_0 and recovers
+F_1,e on c = 1.
+
+Set the second availability class
+
+ S_2 = { e in E minus S_1 :
+ eta stable within w_E,
+ ell not in W_2,
+ for some lambda,
+ [z_lambda(t) - H, z_lambda(t) + H + 2 R_2] has no inner
+ marker }.
+
+Lemma (periodic-window split). The pair (P^(2)_x, Q^(2)_y) satisfies
+the split identity on D = E minus S_1, with updates F_2,e and skipped
+class D_0 = E minus S_1 minus S_2.
+
+Proof. Soundness. The guard gives ell = q - t. If G_1(ell) is diagonal,
+the tags agree on (X, Y). The residue combination r + (q - k) mod n_1
+recovers ell mod n_1, so the suffix evaluates F_1,e correctly. If
+G_1(ell) is off-diagonal, the constrained (x, y) fits the affine
+correction absorbed by F_2,e, and the same check y = F_1,e(x) holds.
+Both cases give F_2,e(x, 1) = (y, 1) by the homogeneous lift, which is
+the pair's own graph-test requirement.
+
+Availability. Take e in S_2 with the indicated lambda. The extended
+window is markerless. By Lemma (markers), a short-period K_circ-block
+begins at every start from z_lambda(t) - H + d_circ through
+z_lambda(t) + H - d_circ, and Lemma (periodic overlap) makes these into
+one short-period run with period d < d_circ. The parameter inequality
+places at least |M| whole periods, and the required 2 r_circ context,
+immediately before z_lambda(t) inside the run. Walking through n_1 n_2
+consecutive cuts in the run visits every pair (r, s) of first-clock and
+second-clock residues. Some cut therefore carries the tag
+(X, Y) = (x, F_1,e(x)). All checks pass by stability of eta and the
+marker-free window. So a split exists.
+
+Five witnesses for the remainder
+
+An episode of D_0 witnesses failure of both outer availability
+conditions. A finite number of local, bounded predicates classifies the
+failure.
+
+ A_0 (t, q) = (q - t in W_1) or (A(t) holds and no trial is
+ perfectly predicted).
+
+ A_1 (t, q) = some u_lambda(t) changes under a shift of magnitude
+ at most R_1.
+
+ A_2 (t, q) = q - t in W_2.
+
+ A_3 (t, q) = some lambda has [z_lambda(t) - H, z_lambda(t) + H]
+ markerless, and an inner marker lies in the next
+ 2 R_2 positions to the right of z_lambda(t) + H.
+
+ A_4 (t, q) = eta(t) changes under a shift of magnitude at most
+ w_E.
+
+A_4 does not use q. Membership in a bad set always uses the
+corresponding modulus.
+
+At a formally translated origin t + delta, these predicates act on
+t + delta, q with q fixed. They do not run a new first-break scan and
+do not assert that t + delta starts an episode.
+
+Lemma (residual coverage). Every episode of D_0 satisfies at least one
+of A_0, A_1, A_2, A_3, A_4.
+
+Proof. Suppose A_4 fails, so eta is stable within w_E.
+
+Case A(t) holds. If A_0 and A_1 both fail, every condition of S_1
+holds, so e lies in S_1 and not in D_0. Therefore, in this case,
+either A_0 or A_1 holds.
+
+Case A(t) fails. Some lambda_0 in Z has u_(lambda_0)(t) absent, so
+[z_(lambda_0)(t) - H, z_(lambda_0)(t) + H] is markerless. If A_2 and
+A_3 also fail, then q - t not in W_1 and q - t not in W_2 and, at
+lambda = lambda_0, the failure of A_3 gives no inner marker in
+(z_(lambda_0)(t) + H, z_(lambda_0)(t) + H + 2 R_2], so the extended
+window is markerless. That puts e in S_2, contradicting membership in
+D_0. Therefore in this case A_0, A_2, or A_3 holds.
+
+Since A_4 itself is a witness when it holds, every episode of D_0 lies
+in at least one of the five classes.
+
+The five aligned stages
+
+The two outer splits reduce the task of computing F_2 graph tests on
+D_0^* to the same task on D_0^* itself, at one level of star height
+higher. The five predicates A_0 through A_4 exhaust D_0. Five aligned
+stages eliminate them in order, one stage per predicate, starting with
+stage i = 0 and ending with stage i = 4.
+
+Setup. Fix i in {0, 1, 2, 3, 4}. Let g_0,e = F_2,e on U_0 = V + F_2.
+Each later g_i,e is affine on a larger finite vector space U_i, and the
+aligned stage defines g_(i+1),e: U_(i+1) -> U_(i+1) on
+U_(i+1) = U_i x V_M, where V_M is the finite vector space over F_2
+with basis indexed by M, so that the linear part L_(i+1),e acts by
+
+ [v, 1_M] L_(i+1),e = [ g_i,e(v), 1_M ] for every v in U_i.
+
+Composing this identity across an episode sequence shows that the
+linear part of g_(i+1),e composed over any word w in D_(i+1)^* maps
+[v, 1_M] to [g_i,w(v), 1_M]. The auxiliary register stays at 1_M in
+every episode, so it resets and carries no state across splits; what
+survives is exactly the value the stage must transmit. Recovering
+g_i,w from g_(i+1,w) is therefore a finite Boolean query on the linear
+part applied to the basis [v, 1_M].
+
+Each stage i uses a finite stencil P_i of integer cut offsets from the
+episode start s. The stencil is repeated many times inside a subbuffer
+that is placed before s + L_0. The set
+
+ Delta_i = P_i minus P_i,
+ Gamma_i = sum_(j < i) (Delta_j + Delta_j), Gamma_0 = {0},
+
+captures all the offsets at which A_i or its predecessors are checked.
+For any finite Gamma, write A_h^Gamma (t, q) for the assertion that
+A_h(t + gamma, q) holds for some gamma in Gamma.
+
+The entry promise. Let D_i be the subclass of episodes with the promise
+
+ A_i^(Gamma_i) (t, q) or A_(i+1)^(Gamma_i) (t, q) or ... or
+ A_4^(Gamma_i) (t, q).
+
+For i = 0 this is Lemma (residual coverage). Each stage preserves the
+promise for the next stage.
+
+Total suffix tables. The suffix beginning at a_i does not know the
+prefix product T_(s, a_i). Each table Phi_i(m): U_i -> U_i (with
+m in M) satisfies Phi_i(T_(s, a_i)) = g_i,e. Table evaluation is a
+finite calculation on the episode's own letters, marker data, and M-
+products; it runs no graph test on a word sequence and does not query
+split success.
+
+The proof is inductive. For i = 0, the outer rules reconstruct F_2 in a
+form parametrized by the hidden prefix product m; the two clocks use
+the common ell. For i < 4, suppose Phi_j exists for j <= i. Set
+a = a_(i+1) and b = a_i. A hypothetical product m assigns m T_(a, u)
+to the stage-i measurement at u, selecting a leaf h(m) in the stage-i
+full decision tree. Let C_nu be the ends of the stage-i trials, and let
+beta_nu(h(m)) be the ideal trial shift determined by that leaf's
+predictions and the actual products. For every x in U_(i+1), define
+
+ Phi_(i+1)(m)(x)
+ = ( x rho(m T_(a,b))
+ + sum_nu beta_nu(h(m)) rho(T_(C_nu, b)) ) H_i,
+
+where rho is the reset action taking the auxiliary register back to
+1_M, and H_i is the terminal map. Each trial shift is transported once
+to b; the terminal map is applied linearly. The result is affine in x.
+Setting m = T_(s, a_(i+1)) gives Phi_(i+1)(T_(s, a_(i+1))) = g_(i+1),e,
+and its linear part on the auxiliary M-coordinate equals
+[v, 1_M] L_(i+1),e = [g_i,e(v), 1_M] because the reset per episode
+posts g_i,e (v) in the M-coordinate. That closes the induction.
+
+Full sets, primary and secondary. Within D_i define
+
+ F_i = { e in D_i : the true history has a perfect aligned trial,
+ and no later witness: neg A_h^(Gamma_i
+ + Delta_i) (t, q) for every h > i }.
+
+Put D_i' = D_i minus F_i. Within D_i' define
+
+ O_i = { e in D_i' : neg A_h^(Gamma_i
+ + Delta_i + Delta_i) (t, q) for every h > i }.
+
+Put D_(i+1) = D_i' minus O_i. Every episode left in D_(i+1) fails the
+later-witness bounds of both sets, so it has a later witness expanded
+by Gamma_(i+1) = Gamma_i + Delta_i + Delta_i. That proves the next
+entry promise. At i = 4 the secondary set O_4 is empty and D_5 is
+empty.
+
+Both splits at stage i transmit the same g_(i+1),e. The full sets and
+the residual restrictions reclassify episodes; they do not redefine the
+update.
+
+Exact decoder. At a cut k = s + p with p in P_i, the suffix examines
+the candidate origins
+
+ tau_(p') = k + L_0 - p', p' in P_i.
+
+For i < 4 it does the q-free last-type checks first, requires eta equal
+across all candidates, applies the exact end rule at one reference
+candidate (fixing q), and only then does the remaining later-type
+checks. For i = 4 there is no later guard; the suffix uses the
+q-free uniqueness test for A_4^(Gamma_4) directly, decodes the origin,
+and only after decoding applies the exact end rule. Both uniqueness
+tests range over all of P_i. Every bounded control is mandatory: a
+suffix missing any required inspection rejects.
+
+The prefix family P_x^(i+1) carries a measurement copy: it validates
+the node's length and verifies its ancestor measurements, together
+with the payload x. The suffix family Q_y^(i+1) applies the
+strengthened time decoder to obtain the node, its ancestor-path
+metadata, and the payload. At the node's measurement position u it
+tries every d in M, follows branches using d T_(u, u'), and retains
+exactly those values whose resulting history has no perfectly
+predicted trial. It requires a unique retained value.
+
+Bad histories. Fix one episode and its actual tuple of natural products on all aligned trial intervals. Fewer than R leaf histories have no perfectly predicted trial, including infeasible histories. Along the true path, fewer than R nodes have a wrong proposed measurement value whose suffix continuation yields such a history.
+
+Proof. Let B be the set of all leaf histories whose prediction differs from the actual tuple on every trial. If R distinct leaves lay in B, their allocated common trial would assign all R possible tuples across them. One assignment equals that trial's actual tuple, contradiction. So |B| < R.
+
+At a true-path node with measurement u, a wrong proposed value d chooses a different branch. Continue at any later measurement u' using d T_(u, u'). This selects a well-defined leaf in the off-path subtree, whether or not the whole history is feasible. Departures at two different nodes of the true path lie in disjoint subtrees, so their leaves differ. Selecting one wrong surviving value at each ambiguous node injects those nodes into B, proving the bound.
+
+Aligned stage lemma. Assume the entry promise, the total-table property, the placement conditions, and the ambiguity bound with more than C_i copies per kind. Exact graph tests for g_(i+1) on D_(i+1)^* yield graph tests for g_i on D_i^* by two uses of the split identity and finite Boolean operations. At the next stage every hypothesis still holds, and D_5 is empty.
+
+Proof. The secondary split first gives graph tests for g_(i+1) on (D_i')^*. It uses the entry promise for D_i' and the exact time decoder to recover each episode's update. The primary split uses these as skips and gives its graph tests on D_i^*. Both splits transmit the same deterministic affine update g_(i+1).
+
+By the affine-recovery lemma these tests determine the product of the episodewise linear parts of g_(i+1). By construction L_(i+1,e) sends [v, 1_M] to [g_i,e(v), 1_M], so the composed product on a word w in D_i^* sends [v, 1_M] to [g_i,w(v), 1_M]. Querying basis vectors e_v tensor e_(1_M) therefore recovers g_i,w as a finite Boolean combination. This gives graph tests for g_i on D_i^*.
+
+The domain restrictions D_(i+1) were recorded above and D_5 is empty. Starting with identity graph tests on the empty D_5 domain (height 0), the five stages produce graph tests for g_0 = F_2 on D_0^*.
+
+Consistency of the two splits. Both the primary and secondary split at stage i test the same g_(i+1,e), fixed by the total-table construction from the suffix data at a_i. That construction uses no split-success oracle; it uses only letters, marker data, and M-products on the reading side. Every successful pair at a genuine boundary therefore has x = X and y = g_(i+1,e)(x), regardless of the variant used. Lemma (split identity) applied twice therefore assembles F_2 graph tests on D_i^*.
+
+Parameters
+
+All finite choices are made in a consistent order, so that no choice depends on a later one.
+
+Separated differences. Suppose x_1 < ... < x_a are integers with all positive differences separated by more than S, each larger than S. Put D = x_a - x_1. Choose x_(a+1) in its prescribed residue class so that x_(a+1) - x_a > D + S. Every new positive difference exceeds D + S; the difference of two new positive differences is an old positive gap, larger than S. Separation and distinctness are preserved. Representatives in any residue class may be chosen arbitrarily large, so any nonempty residue prescription is met. This constructs a stencil with preset residues and separated differences. Interposed bounded events fit in the reserved gaps by enlarging them by a finite amount.
+
+Stage 0. Put J = |V|^2 and K = m^(J+1). Choose mu_0 to exceed both 2A and 4 B^2 where A = K + c_cl log(2 J^2 (1 + K kappa_0^(2K))) and B = 2 c_cl K. Let roster P_0 have N_0 = mu_0 kappa_0 slots. For every ordered list of K distinct ordered pairs of slots, reserve a group of K main trials and one spare. The total trial count is T_1 = 1 + K (Q)_K, where Q = N_0 (N_0 - 1). The first tag alphabet has size m_1 = J^2 T_1 and the trial/checkpoint set Z has size (J + 2) T_1. Apply Lemma (tag clock) with threshold 1; obtain n_1, W_1, and roster residues. Set R_1 = n_1. Place the stage-0 stencil with separated differences longer than T.
+
+Stage 1. Choose mu_1 = floor(C_1) + 1. Construct the stage-1 stencil and record h_1. Choose d_circ > 10(2 h_1 + 2 R_1 + 5) and K_circ > 3 d_circ^2. Lemma (markers) gives the inner-marker rule and the search radius r_circ >= K_circ.
+
+Stage 2. Set m_2 = |Z| |V|^2 m n_1 |S|^(2 r_circ). Choose mu_2 = floor(C_2) + 1. Apply Lemma (tag clock) with threshold max{n_1, N_M, d_circ}, N_M = m!. Receive n_2, W_2, and roster residues. Construct the stage-2 stencil and record h_2. Set R_2 = n_2 n_1 N_M d_circ.
+
+Stage 3. Choose mu_3 = floor(C_3) + 1. Construct the stage-3 stencil and record h_3. Choose H > r_circ and a common main-trial template length T exceeding all scheduled inspections. Place the main trials: templates are ordered and separated by more than 2 h_0 + 2 T + h_0.
+
+Stage 4. Choose w_E > 1 + max{diam H_1, diam H_2, 2(h_0 + h_1 + h_2 + h_3)}. Choose mu_4 = floor(C_4) + 1, construct the stage-4 stencil, record h_4. Choose d_bullet > 10(2 h_4 + 2 w_E + 5) and K_bullet > 3 d_bullet^2. Lemma (markers) gives the end-marker rule and radius r_bullet >= K_bullet.
+
+Final placement. Translate the five aligned arrangements into disjoint intervals after s, in reverse order 4, 3, 2, 1, 0, ending at a_4 < a_3 < a_2 < a_1 < a_0. Let A_buf be a bound on their offsets from s. Choose L_0 > A_buf + B_circ + 2 for B_circ a finite envelope bound. Then choose o_bullet and B_tail to satisfy the margins:
+
+ L_0 + I_- > A_buf,
+ o_bullet + min{E_-, -d_bullet} > I_+,
+ B_tail > E_+ + d_bullet, B_tail >= 1.
+
+Existence. Each C_i depends only on strictly earlier choices. Every margin inequality is satisfied by choosing L_0, o_bullet, B_tail large enough after all earlier parameters. Hence a consistent finite parameter set exists, with h_i < w_E for i < 4 and more than C_i copies per stencil kind.
+Compilation and the uniform bound. Three steps assemble the pieces into a height-13 expression for every regular language.
+
+Reduction to E. From the aligned stages, graph tests on D_0^* for F_2 have height at most 11. The periodic-window split, whose domain D_1 = E minus S_1, raises them to graph tests on D_1^* for F_2, at height at most 12. The main split raises them to graph tests on E^* for F_1, at height at most 13. By the affine recovery lemma applied to the linear part of F_1, exact graph tests for F_1 on E^* determine graph tests for the composed interval products T_e on E^*.
+
+Episodes and the tail. Every word of Sigma^* factors uniquely as uv with u in E^* and v in F = complement of (E · top), where top = Sigma^*. The E-part is the concatenation of the maximal initial sequence of whole episodes; the F-part is the trailing remainder, either empty or lacking any nonempty E-prefix. Because E is a prefix code, the factorization is unique.
+
+Lemma (templates). Call a word a template if it has the shape a b^j c with b nonempty and j a nonnegative integer, and a periodic-template family any set of such templates. On any periodic-template family, every finite-data quantity that the construction evaluates is eventually periodic in the exponent j: interval products have the form A T_b^(j-j_0) C for fixed A, C in M, length residues are periodic in j, and any finite function of ultimately periodic data is ultimately periodic.
+
+Proof. Prefixes and suffixes of a b^j c stabilise letterwise past a finite threshold. An interval touching the boundary between a and the j-indexed middle multiplies by T_b each time j increases by one; powers of a fixed element of a finite monoid are ultimately periodic, and length residues are periodic with modulus n. A common threshold and common multiple of the periods put every queried finite-data quantity on one ultimately periodic grid. Finite branching inside the table recursions composes finitely many such functions.
+
+Lemma (component languages). Every component language that occurs in the outer and aligned splits -- a fixed inspection window at a bounded offset from t or t + delta, an equality between two M-products on a bounded interval, a membership test on a fixed clock residue, an exact end rule with bounded lag -- reduces to a finite Boolean combination of periodic-template family languages once the input is restricted to a template. Each such decision therefore has height at most one; the same holds for every metadata choice, which is a finite union on the same alphabet.
+
+Reduction of E^* to bounded instances. For a fixed graph-state pair (x, y), the graph test on E^* now reduces to a union over bounded-length initial episodes of a finite language times a periodic continuation, plus one long-scan case. Both the finite language and the periodic continuation have height at most one. The residual F-language reduces by the final-suffix lemma.
+
+Lemma (Final suffix). For every m in M, the language {f in F : T_f = m} has height at most one. Every word of Sigma^* lies in E^* F.
+
+Proof. The set F = complement of (E · top). Since E is a prefix code and its members end at q + B_tail, a word of F avoids any complete episode as a prefix. Its seed fix, when present, forces a unique continuation by the marker rule. When no marker is visible, the same periodic run extends; when a marker is visible, the first mismatch sits at a fixed distance from the marker. Either way the monoid value of every sufficiently long initial segment is determined by a fixed finite template and a bounded word. By the templates lemma, F_m has height at most one. Completeness of the factorization E^* F is definitional.
+
+Assembly. Let A subset M be the set of monoid elements that send the initial state of the DFA to an accepting state. For each mn in A the language L_m F_n consists of words whose DFA run is accepted along the pairing (m at the E^* prefix, n at the F-suffix). The DFA language equals the union over mn in A of L_m F_n. Concatenation and finite union do not increase the height beyond the maximum, so the DFA language has generalized height at most 13.
+
+Height accounting. Starting at height 0 on the empty D_5 domain, stage 4's two splits travel 0 -> 2 -> 3, stage 3 travels 3 -> 4 -> 5, stage 2 travels 5 -> 6 -> 7, stage 1 travels 7 -> 8 -> 9, stage 0 travels 9 -> 10 -> 11. The periodic-window split then travels 11 -> 12, and the main split travels 12 -> 13. Concatenation with the height-1 suffix F_n preserves 13. Each split's contribution is bounded by max(2, H+1), so no stage adds more than one to the running bound once it exceeds 1.
+
+Historical context. The star-height problem originates with Eggan's 1963 Michigan Mathematical Journal paper; Dejean and Schutzenberger's Information and Control note supplied the binary unbounded example. The star-free case was characterized by Schutzenberger in 1965 via aperiodic monoids. Height one is known for languages recognized by finite abelian groups (Henneman, recorded as Theorem 3.4 in Pin, Straubing, Therien, Information and Computation 1992) and, more generally, by finite nilpotent groups of class two (PST 1992, Theorem 7.3). Bourne and Ruskuc extended height one to languages recognized by finite Rees zero-matrix semigroups over abelian groups in their 2016 Theoretical Computer Science paper. Place and Zeitoun's 2017 CSR lecture framed the concatenation-hierarchy context and distinguished the ordinary from the generalized problem; Cotumaccio's 2025 Bulletin of the European Association for Theoretical Computer Science column records uniform boundedness as an open problem linking automata theory and data compression. Rabin and Scott's 1959 IBM Journal paper established the finite-automaton equivalence for regular languages that underlies the reduction to a monoid. Krieger's 1982 Ergodic Theory and Dynamical Systems paper contains the separated-marker lemma underlying the finite-window form, and Meyerovitch's 2025 paper gives a clopen-marker embedding form of it with a finite merging argument.
+
+./pst-1992.pdf
+./bourne-ruskuc-2016.pdf
+https://doi.org/10.1007/978-3-319-60134-2_3
+./cotumaccio-2025.pdf
+https://doi.org/10.1147/rd.32.0114
+https://doi.org/10.1017/S0143385700001516
+./meyerovitch-2025.pdf
+
+None of these papers contains a uniform bound. The constant 13 constructed above is not optimized: it reflects the number of split applications in the prediction/history chain, not the actual minimum. Whether every regular language has generalized height at most one, two, or some other fixed integer remains open at the time of writing.
+