# A common-phase order control via weighted three-state Markov types **Scope first.** This proposes a different conditional reference law, not recovery of return #438's missing observed-position maps. No large-word normalizer, production sampler, new null draw, arithmetic gap bound, or asymptotic inference was computed. The counting construction is standard Markov-type/Euler-trail machinery specialized to this marked twin-gap problem, with new exact small-instance checks and a copied-data preflight. ## Why change the law Return #452 removes locally impossible pairs from the score but retains globally impossible words in the ensemble. Its period150 counterexample proves that a common residue phase is a genuinely stronger condition. The new object is a uniform permutation of the retained half multiset, conditioned on every prefix of the resulting full reflected word being compatible with **one fixed modulo5 phase**. The phase is not fitted or averaged: return #428 marks the fixed twin slot n=-1. Thus its residue is4. The half-word ends at n=M/2-4, residue1, because M=x# is divisible by10. Its central gap6 leads from1 to2; reflection completes the word back to4. This addresses the arrangement-model comparison behind route14 and Q-record-mechanism-0830. Fixed-multiset conditioning still leaves A1 constant, so this is not itself a method to bound A1. A fixed modulus cannot improve the asymptotic exponent by itself. Any eventual gap-bound route would still need growing-modulus control, a justified transfer to actual arithmetic order and uniform bounds on the relevant k-gap/merge-depth quantities. Those are unproved, conjectural links, not conclusions of this proposal. ## Three states, one free transition count Allowed twin-start residues modulo5 are {1,2,4}. All gaps are multiples of6. Let m_r count half-word gaps congruent to r modulo5. Removing residue0 loops leaves only these transitions: |Transition|Multiplicity| |---|---| |1 -> 2|m1| |2 -> 1|m4| |2 -> 4|c| |4 -> 1|d=m2-c| |4 -> 2|f=c-m1+m4| |1 -> 4|e=m3-c+m1-m4| The potential h(1)=0,h(2)=2,h(4)=1 changes by +2,-2,-1,+1 on residues1,4,2,3, respectively. From start4 to end1 its total change is-1. Therefore a necessary identity is m2-m3 = 2(m1-m4)+1. It is also sufficient for nonemptiness of this three-state marked-word language, for nonnegative integer counts. The compatible flows are exactly max(0,m1-m4) <= c <= min(m2,m3+m1-m4). The interval is nonempty by the displayed identity. Every such flow has the required start/end balances and admits a terminal-rooted tree on its active support, as the explicit positive tree factor below shows. If state2 is absent, the nonzero path is forced to alternate4,1,...,4,1. Residue0 loops can be inserted anywhere without changing validity. Copied published custody passes this new necessary/sufficient preflight: |x|m0|m1|m2|m3|m4|Compatible c range|Number of flows| |---|---:|---:|---:|---:|---:|---|---:| |19|41614|31438|67975|33906|14404|17034..50940|33907| |23|898299|646184|1385114|728575|317915|328269..1056844|728576| No wheel or ordered word was regenerated. These integers are new aggregations of the retained histograms, whose historical arithmetic correctness remains a dependency. ## Exact weights: do not choose a flow uniformly Set K=d+f. The number of labeled in-arborescences toward terminal1 is tau1 = m4*(d+f) + c*d. Its three tree types have weights m4*d, m4*f and c*d. If state2 is active, the number of nonzero residue words of this transition type is W(c) = tau1 * (m1+e)! * (m4+c-1)! * (K-1)! / [m1! m4! c! d! e! f!]. This is the open, marked-endpoint BEST/Whittle form. It does not divide by a rotation factor. Remove unused state2 before applying a tree determinant; the absent-state case contributes the unique alternating word. Terminal outdegree zero is legitimate. Residue0 insertion multiplies every type weight by binom(n,m0), n=sum m_r. For each residue word, assigning the actual gap values to its residue positions contributes the same factor product_r m_r! / product_gap h_gap!. Both factors cancel when normalizing flows. Hence the intended law requires P(c)=W(c)/sum W, not uniform c. A five-letter counterexample has (m0,m1,m2,m3,m4)=(0,0,3,2,0): its three flows have weights **1,2,1**. Uniform flows would give a biased word law. There is no need to repeatedly construct huge factorials. For consecutive supported flows, with tau1' evaluated at c+1, W(c+1)/W(c) = (tau1'/tau1) * (m4+c)*d*e / [(m1+e)*(c+1)*(f+1)]. When m1=m4=0 the isolated-state endpoint is handled by the binomial ratio (m3-c)/(c+1), including c=0. ## Independent transfer-matrix count With states ordered1,2,4 and residue0 removed, the transition matrix is B = [[0,z1,z3],[z4,0,z2],[z2,z3,0]]. The (4,1) entry of (I-B)^-1 is (z2+z3*z4) / (1-z1*z4-2*z2*z3-z1*z2^2-z4*z3^2). Its coefficient at the prescribed nonzero residue counts is the same marked-word count; reinsert zeros with binom(n,m0). For an explicit finite coefficient formula, choose numerator seed s=0 for z2 or s=1 for z3*z4. For each nonnegative a put c0=m1-a, d0=m4-a-s, b0=m2-2*c0-(1-s). Keep terms with b0,c0,d0>=0 and b0+2*d0+s=m3. Their contribution is 2^b0 * (a+b0+c0+d0)! / (a! b0! c0! d0!). These cycle-expansion variables are separate from the transition-flow c. The formula is used as an independent check, not as a scalable per-symbol sampling algorithm. ## Completed cheapest checks `phase_types.py` exhaustively enumerates accepted state paths from4 to1 of every length0..8. Across **1287** five-residue count profiles, all **3280** accepted words agree with both the transfer-matrix coefficient formula and the open Euler-trail weights. Every neighboring flow-weight ratio in that domain also agrees. This includes empty support, repeated letters, zero loops, an absent state2 and a terminal with no outgoing edge. Every accepted half-word's reflected cycle also passes the common-phase prefix check and closes at residue4. No large word was enumerated. The program separately checks the two copied histograms, half-period identity, residue balance and flow ranges. Its target comparison rejects changing the 1,2,1 flow example to uniform weights. Output is deterministic; resource timing is stderr. Initial scientific CPU time was0.013373 seconds, peak RSS16144KiB; subsequent ratio/target checks remained under a second. Run python3 phase_types.py input1071.json phase-types.json with Python3.14.4, standard library, assertions enabled. Expected stdout SHA-256: `9d8071fd0d6e6514c5b12fc60536a57f0b38ff4e5fe9d263b6d8b8f483187d8d`. The script consumes the published target. No dependency installation, RNG, wheel enumeration or historical-null replay is required. Rungs: elementary conditional identities/counting argument, subject to review; verified finite implementation checks on the stated domain; conditional published histogram custody; no observed large-level null result. ## Distinct next experiment and weakest step Implement a rejection-free common-phase sampler at x19, not x23 first: 1. Normalize supported c with the displayed exact ratio, using exact integers or a certified approximation of total variation at most10^-9. Uniform c, unbounded floating normalization error or a full-word rejection sampler is not an acceptable substitute. 2. Given c, sample the terminal-rooted last-exit tree with multiplicity weights, reserve that edge last at each nonterminal vertex, uniformly shuffle the other outgoing copies, shuffle all root outgoing copies, and walk from4. The last-exit bijection gives uniform words within a fixed type. Insert residue0 positions uniformly and independently permute actual gaps inside each residue class. 3. Validate exact small-support probabilities, including the1,2,1 example, against the retained small-instance oracle. Then run two x19 batches of100 draws, seeds109319 and109419, with the full marked A2 score and the published observed186. Check gap counts, marked endpoints, every common-phase prefix and the direct mirrored cyclic score. A practical normalization option is interval recurrence for weights, then dyadic lower masses q_c=floor(2^64*p_c_lower). Place the remaining mass at one fixed flow. Its total-variation error is at most 1-sum(q_c)/2^64, which is directly checkable; require the stated tolerance before interpreting samples. This scheme is proposed, not implemented here. Report mean, sample sd, z_ref, tied/lower-tail counts and the certified law-error bound. Handle sd=0 explicitly. Continuing to x23 is justified only if both complete batches have z_ref<=-2. If both have |z_ref|<=1 or nonnegative discrepancies, do not invest in a larger-level run on this basis. Intermediate, discordant, ill-normalized or capped results are inconclusive. These are descriptive allocation rules, not arithmetic p-values, a causal decomposition or an exponent theorem. Budget0.5 agent-hours, one core,180CPU seconds total,1GiB RAM,0.1GiB disk. An initial at-most10-draw profile must show the200-draw producer plus checking fits; stop at the cap rather than completing a different sampler. The weakest immediate step is correct, affordable weighted-flow sampling, not missing observed positions. The broader arithmetic-transfer gap remains. ## Prior work, exact difference and source limits Search date2026-09-14. Read the open-question index and current routes; Q-record-mechanism-0830 and route14 supply the specific order-model issue. Read OUTCOMES Closed routes for two-class driving terms (O(x) ceiling), fold-succession damping and mirror symmetrization. None is reopened. Updated searches covered Whittle Markov-type counts, open directed Euler trails with fixed endpoints, last-exit trees, fixed-composition automaton words and common-prefix modular conditioning of twin-gap permutations. No verified matching twin-gap benchmark was found; this is not a novelty certificate. The generic counting/sampling methods are already established. - S. D. Pethel and D. W. Hahs, *Exact test for Markov order*, arXiv:1302.1500, equations5-12 and surrounding text, https://arxiv.org/html/1302.1500: inspected by the research subagent. Whittle-type counts have fixed endpoints; zero outgoing rows need an explicit convention, cofactors are signed, and sampling is weighted by completion counts. The paper's numerical Stirling approximation is not a certificate of exact implementation. - Jiang, Anderson, Gillespie and Mayne, *uShuffle* (2008): the article itself was inaccessible, but the authors' bundled implementation was read at https://github.com/guma44/ushuffle/blob/master/src/ushuffle.c, lines143-194 and216-274: terminal-rooted trees, last-exit reservation and outgoing-order traversal. Its use of modulo reduction for bounded random integers is not adopted as an unbiased-RNG guarantee. - Bodini and Ponty, *Multi-dimensional Boltzmann Sampling of Languages*, arXiv:1002.0046, sections1 and4, https://arxiv.org/html/1002.0046: nearby fixed-composition language sampling, with tuned rejection rather than the weighted-flow mixture. - Whittle (1955), *Some Distribution and Moment Formulae for the Markov Chain*, JRSS B17,235-242, and van Aardenne-Ehrenfest/de Bruijn (1951), *Circuits and trees in oriented linear graphs*, were identified bibliographically, but their original proofs were not accessed. Original equation numbering and degeneracy wording are not claimed. - Project return #428, the marked b,6,reverse(b) identity and half counts; return #438, the observed-position obstruction; return #452, the score-mask/global-law distinction. Input `input1071.json`, SHA256 `daa5d6d095b5986b65e7a4ac501b2fe3a9c572d5f7fc94bcd2e255e63d2ea892`, retains the published x19/x23 histogram custody. No arithmetic baseline or existing null was reproduced. The difference from existing fixed-transition shufflers is the mixture over aggregate-residue-compatible flows, with the particular marked prime5 endpoints and retained arithmetic histograms. Uniform flow weights, uniform collapsed-tree shapes, arbitrary last exits and rotation-class quotients would define the wrong law. Only necessary modulo30 compatibility is imposed; higher-prime exclusions and arithmetic exchangeability are not. Transcript redactions remove credentials and session identifiers, private paths/metadata, unrelated accounting and earlier-assignment activity, hidden reasoning/encrypted fields, and bulk third-party source payloads. No estimated token usage is claimed.