Finite automata and transformation monoids

L-trivial transformation membership

Passing to the opposite monoid preserves membership and exchanges L-triviality with R-triviality. The NP route needs less than a faithful action of the whole opposite monoid: an instance-specific observer only has to recognize the reversed target fibre. Its canonical states are left-context profiles, and a target withdfd_f such profiles has a word of length at most df−1d_f-1. The first binary counterexample family has exactly(n2)−1\binom n2-1 profiles, so it supports this route rather than obstructing it. A general polynomial bound remains open.

FPRD-LT-D01 · decision problem

The supplied action is the input

Let A=(Q,Σ,δ)A=(Q,\Sigma,\delta) be a minimal DFA and let

M=⟨τa:a∈Σ⟩≤TQ.M=\langle\tau_a:a\in\Sigma\rangle\le T_Q.

The promise is that MM isL\mathcal L-trivial. Given an explicit transformation f:Q→Qf:Q\to Q, decide whether f∈Mf\in M. The monoid may contain exponentially many elements even though every generator is listed on only ∣Q∣|Q|states.

FPRD-LT-L01 · lemma

Membership survives passage to the opposite monoid

Lemma. If transformations act on the right, then

f=τa1⋯τak in M⟺f=τak⋆⋯⋆τa1 in Mop.f=\tau_{a_1}\cdots\tau_{a_k}\text{ in }M\quad\Longleftrightarrow\quad f=\tau_{a_k}\star\cdots\star\tau_{a_1}\text{ in }M^{\mathrm{op}}.

Moreover, MM isL\mathcal L-trivial exactly whenMopM^{\mathrm{op}} isR\mathcal R-trivial.

Proof. Opposite multiplication reverses the order of every product, so reversing the word preserves its underlying element. It also exchanges principal left and right ideals. ∎

This is an algebraic equivalence. It does not yet construct a small transformation action for the opposite monoid.

FPRD-LT-T01 · conditional theorem

A compact faithful action also needs a target code

Suppose one can compute a polynomial-size setPP, a faithful actionρ:Mop↪TP\rho:M^{\mathrm{op}}\hookrightarrow T_P, the images of all generators, and a partial order onPP that makes the action a poDFA. Because the supplied target f:Q→Qf:Q\to Qneed not belong to MM, also suppose the construction supplies a transformationtf∈TPt_f\in T_P satisfyingtf=ρ(f)t_f=\rho(f) whenf∈Mf\in M andtf∉ρ(M)t_f\notin\rho(M) otherwise.

Theorem. Under those assumptions the original membership problem is in NP, and every positive instance has a certificate of length at most

∣P∣(∣P∣+1)2.\frac{|P|(|P|+1)}2.

Proof. The target-code condition preserves membership; faithfulness is the stronger global separation hypothesis. Ryzhikov and Wolf's Proposition 9 supplies the displayed bound. Guess a word in the image generators, compare its transformation withtft_f, and reverse the word to read the corresponding product in MM. The target-code condition handles both positive and negative instances. ∎

The always-available right regular action has one state per element of MM. It proves that a faithful partially ordered action exists, but not that it is polynomial in the original DFA size.

FPRD-LT-T02 · conditional theorem

Only the target fibre must be faithful

Full faithfulness is stronger than the membership instance needs. Here a poDFA action means that PPcarries a partial order and every generator moves each state only upward or leaves it fixed. Suppose one can compute such a polynomial-size actionρ:Mop→TP\rho:M^{\mathrm{op}}\to T_P, the generator images, and a transformationtf∈TPt_f\in T_P. SinceMM andMopM^{\mathrm{op}} have the same underlying elements, require the exact target-code condition

∀g∈M,ρ(g)=tf⟺g=f. \forall g\in M,\qquad \rho(g)=t_f\quad\Longleftrightarrow\quad g=f.

Equality on the right is equality of transformations onQQ. Thus, when the target is not generated, no element of MM may map to tft_f; the notation does not apply ρ\rho outside its domain.

Theorem. Under these assumptions,f∈Mf\in M exactly whentft_f belongs to the monoid generated by the poDFA images. Hence every positive instance has a word certificate of length at most∣P∣(∣P∣+1)/2|P|(|P|+1)/2.

Proof. If f∈Mf\in M, the target-code condition givesρ(f)=tf\rho(f)=t_f. Conversely, if an image word reaches tft_f, its valueg∈Mg\in M lies in the isolated fibre, so g=fg=f. Proposition 9 of Ryzhikov and Wolf replaces the image word by one of length at most ∣P∣(∣P∣+1)/2|P|(|P|+1)/2 with the same transformation. Reversing that word converts multiplication inMopM^{\mathrm{op}} back to multiplication in MM without changing its length. ∎

This remains a conditional route: the target-isolating observation must come from a uniform polynomial-time construction with a proof of the fibre property. Merely guessing a quotient does not make that universal property easy to verify.

FPRD-LT-X01 · exact example

Target isolation can be strictly smaller than faithfulness

Let M={1,a,0}M=\{1,a,0\} witha2=0a^2=0. Its principal left ideals areM⊃{a,0}⊃{0}M\supset\{a,0\}\supset\{0\}, so it is L-trivial. For target f=1f=1, map 11 to the identity on a two-state chain and map both aa and00 to its constant top map.

This is a nonfaithful homomorphism into a two-state poDFA monoid, but the fibre over the identity is exactly{1}\{1\}. Thus it certifies this target while collapsing the other two monoid elements. Full faithful compression is therefore unnecessary for this single-target decision problem.

Independent multiplication-table and fibre audit · Review certificate

FPRD-LT-C01 · counterexample

Directly reversing the DFA does not work

Take the minimal two-state DFA for “the last letter isaa.” Letteraa sends both states to the final state and bb sends both to the other state. Its transition monoid is

M={1,c0,c1},M=\{1,c_0,c_1\},

whose principal left ideals are all distinct. ThusMM is L-trivial.

After reversing every transition, one state has both a self-loop and another outgoing edge on the same letter, and the two states lie on a directed cycle. The result is nondeterministic, not partially ordered, and not self-loop deterministic. Transposing the transition matrices has the same defect: it gives relations, not total functions.

FPRD-LT-E01 · finite computation

The four-state pattern did not survive

Exhaustive enumeration of unordered pairs of distinct complete transformations produced the following maxima among L-trivial semiautomata admitting some minimal-DFA final set:

StatesQualifying pairsMaximum shortest-word diameter
231
3872
43,8463

These counts remain an exact baseline, but their apparentn−1n-1 pattern is refuted by the five-state result below.

FPRD-LT-T03 · theorem

A binary J-trivial family needs length exactly n

For n≥5n\ge5, letQn={0,1,…,n−1}Q_n=\{0,1,\ldots,n-1\}. Define two letters by

a(0)=2,a(n−1)=1,a(0)=2,\qquad a(n-1)=1,

with aa fixing every other state, and

b(i)=i+1(2≤i<n−1),b(i)=i+1\quad(2\le i<n-1),

with bb fixing0,1,n−10,1,n-1. Use initial state00 and sole final state11.

Theorem. This DFA is minimal and its transition monoid is J\mathcal J-trivial. The target

fn=(n−1,1,…,1)f_n=(n-1,1,\ldots,1)

has shortest representativewn=babn−4abw_n=bab^{n-4}ab, of length exactly nn.

Proof. The state order0<2<3<⋯<n−1<10<2<3<\cdots<n-1<1 makes both letters extensive. The DFA is confluent: from a chain stateqq, the two successors merge after bn−1−qab^{n-1-q}a; the endpoint cases are immediate, while the two successors of state00 merge afterbn−3abn−3ab^{n-3}ab^{n-3}a. TheMasopust and Krötzsch's deterministic characterization therefore makes the language piecewise testable. By Simon's theorem, its syntactic monoid is J-trivial; minimality identifies that syntactic monoid with the displayed DFA's transition monoid. All states are reachable, andbn−1−qab^{n-1-q}a separates a chain state qq from every state earlier in the displayed order; the final state is separated by the empty word. Hence the DFA is minimal.

Direct evaluation givesτwn=fn\tau_{w_n}=f_n. Conversely, a target word needs a bb before its first aa; otherwise states00 and22 coincide forever. After that first aa, state00 needs at leastn−3n-3 furtherbbs. Thus there are at leastn−2n-2bbs. With twoaas the total length is at leastnn; with only one, state22 must already have reachedn−1n-1, forcing at least2n−5≥n2n-5\ge n letters. ∎

This refutes the exact n−1n-1conjecture, not polynomial witnesses. A linear lower bound is compatible with Problem 22.19 being in NP.

The hypothesis n≥5n\ge5 is sharp for this formula: at n=4n=4 the same generators reach the target by babbab, of length three. The one-aa lower bound 2n−52n-5 reachesnn only from five states onward.

Independent family and four-state boundary audit · Review certificate

FPRD-LT-E02 · exhaustive computation

The five-state binary maximum is exactly five

Every unordered pair of distinct aperiodic transformations on five states was filtered for accessibility from state00, reduced under state relabellings fixing that state and interchange of the letters, closed exactly, tested for L-triviality, and tested against every final set modulo complementation.

StagePairs retained
Aperiodic unordered pairs839,160
Accessible from state 0210,888
After symmetry reduction8,833
L-trivial generated monoid1,238
Some final set gives a minimal DFA1,148

The maximum shortest-word diameter is55, attained by exactly three generator-pair classes. The smallest extremal uses

a=(2,1,2,3,1),b=(0,1,3,4,4),a=(2,1,2,3,1),\qquad b=(0,1,3,4,4),

generates a 14-element monoid, is minimal with final set{1}\{1\}, and first reaches(4,1,1,1,1)(4,1,1,1,1) bybababbabab. A raw labelled pass retained 27,324 minimal L-trivial pairs and 72 extremals, agreeing with the three symmetry classes.

This is an exhaustive finite classification with an independent exact audit of the smallest extremal, not a formal verification or an upper bound for larger automata.

FPRD-LT-X02 · exact example

The extremal target quotient has nine states

The smallest extremal monoid has 14 elements. Regard its left Cayley graph as a DFA with the targetf=(4,1,1,1,1)f=(4,1,1,1,1) as the sole accepting element. Exact Moore minimization produces nine classes, and the resulting action remains partially ordered.

The transformation induced byff on this nine-state quotient has singleton fibre: among all 14 source transformations, onlyff induces that quotient map.

This is genuine target-specific compression, but it is obtained only after enumerating the 14-element monoid. It therefore does not supply the polynomial construction required to put the general compact-input problem in NP.

FPRD-LT-T04 · theorem

The reversed target fibre has a canonical observer

Let η:Σ∗→M\eta:\Sigma^*\to M be the transition morphism and fix a targetff. For eachx∈Mx\in M, define its left-context profile

Pf(x)={z∈M:zx=f},df=∣{Pf(x):x∈M}∣. P_f(x)=\{z\in M:zx=f\},\qquad d_f=\bigl|\{P_f(x):x\in M\}\bigr|.

Theorem. The minimal DFA ofKf={wR:η(w)=f}K_f=\{w^R:\eta(w)=f\} has exactly dfd_f states. IfMM is L-trivial, that DFA is partially ordered. Hence every generated target has a representative of length at mostdf−1d_f-1.

Proof. A reversed prefix inducingxx accepts a continuation inducing zz exactly whenzx=fzx=f. Myhill–Nerode equivalence is therefore equality of the profilesPf(x)P_f(x). The syntactic monoid ofKfK_f dividesMopM^{\mathrm{op}}; L-triviality of MM makes the latter R-trivial, so the minimal DFA is partially ordered. Delete self-loops from an accepting run. The remaining run visits each observer state at most once and has length at mostdf−1d_f-1. ∎

The profiles factor through target-relevant fibres. With the right-action convention,

zx=f⟺z(q)∈x−1(f(q))for every q∈Q. zx=f\quad\Longleftrightarrow\quad z(q)\in x^{-1}(f(q))\quad\text{for every }q\in Q.

Thus Pf(x)P_f(x) depends only on(x−1(y))y∈im⁡f\bigl(x^{-1}(y)\bigr)_{y\in\operatorname{im}f}. This observer may merge arbitrary non-target transformations; it need not preserve the whole opposite-monoid action. The earlier quadratic poDFA transformation bound is unnecessary here because target membership asks for one accepted path, not for another word inducing the same observer transformation.

FPRD-LT-T05 · theorem

The binary counterexample has an exact quadratic observer

For the family in FPRD-LT-T03, putt=fn=(n−1,1,…,1)t=f_n=(n-1,1,\ldots,1). Its source transition monoid and canonical target observer have the exact sizes

∣Mn∣=(n3)+n−1,dt=(n2)−1. |M_n|=\binom n3+n-1, \qquad d_t=\binom n2-1.

The source count follows from unique normal formsbib^i,biabjb^iab^j, andbiabjabkb^iab^jab^k, together with the single special target. WithL=n−3L=n-3, their ranges are

0≤i≤L;i,j≥0,i+j≤L;j≥1,i,j,k≥0,i+j+k≤L. 0\le i\le L;\qquad i,j\ge0, i+j\le L;\qquad j\ge1, i,j,k\ge0, i+j+k\le L.

Their counts aren−2n-2,(n−12)\binom{n-1}{2}, and(n−13)\binom{n-1}{3}. Pointwise reduction uses

a2=a,quadbL+1=bL,quadabiabja=abmin⁡(i+j,L)a a^2=a,quad b^{L+1}=b^L,quad ab^iab^ja=ab^{\min(i+j,L)}a

and, on overflowi+j>Li+j>L,

biabj=bL−jabi+j−LabL−i. b^iab^j=b^{L-j}ab^{i+j-L}ab^{L-i}.

The remaining two-aa products reduce by the three capped sumsmin⁡(i+j,L)\min(i+j,L),min⁡(j+k,L)\min(j+k,L), andmin⁡(i+j+k,L)\min(i+j+k,L). Direct evaluation distinguishes the listed forms, giving(n3)+n−1\binom n3+n-1 elements.

Since im⁡t={n−1,1}\operatorname{im}t=\{n-1,1\}, each profile is controlled byAx=x−1(n−1)A_x=x^{-1}(n-1) andBx=x−1(1)B_x=x^{-1}(1). The nonempty pairs are exactly the following power, interval, and zero types, wherem=n−1m=n-1:

A=[r,m],B={1};A=[r,s−1],B={1}∪[s,m];A={0}∪[2,s−1],B={1}∪[s,m]. \begin{aligned} &A=[r,m], &&B=\{1\};\\ &A=[r,s-1], &&B=\{1\}\cup[s,m];\\ &A=\{0\}\cup[2,s-1], &&B=\{1\}\cup[s,m]. \end{aligned}

Here the power type has2≤r≤m2\le r\le m; the interval type has 2≤r<s≤m2\le r<s\le m except(r,s)=(2,m)(r,s)=(2,m); and the zero type has2≤s≤m2\le s\le m. There are (n2)−2\binom n2-2 such pairs. All elements with emptyAxA_x form one dead residual. For interval and zero types, everyp∈Ap\in A is realized at state zero by the completing context

z={bs−2,p=0,bs−pabp−2,p≥2. z=\begin{cases} b^{s-2},&p=0,\\ b^{s-p}ab^{p-2},&p\ge2. \end{cases}

For power type usebm−2ab^{m-2}a forp=2p=2,bm−pabp−2ab^{m-p}ab^{p-2}a for3≤p<m3\le p<m, and the target itself for p=mp=m. These contexts send every other source state into BB. Consequently distinct setsAxA_x are extension-distinguishable. This proves the displayed degree exactly.

The result closes this family, not the external complexity problem. It replaces a failed linear conjecture with positive structural evidence: a cubic generated monoid collapses to a quadratic target observer, while the shortest target word remains exactly linear.

FPRD-LT-C02 · exact control

Green height is not target distance

An exhaustive check of all 32,896 unordered generator pairs on four states found 4,473 L-trivial generated monoids. Their maximum left-Cayley height is six, attained by a ten-element monoid, but the largest shortest right-Cayley distance of any target in the entire search is only three.

Ideal-chain height can therefore substantially overestimate the certificate length even inside L-trivial transformation monoids. The exponential Green-height constructions known for unrestricted transformation semigroups do not settle the present problem because they are not shown L-trivial. Likewise, straight-line programs polynomial in an explicitly listed monoid can still be exponential in the degree of the compact transformation input.

This rules out a proxy, not the observer attack. A hard family must force many distinguishable target profiles or genuinely long target geodesics under the L-trivial promise.

FPRD-LT-B01 · open problem

The target-residual degree is the live boundary

Does every positive instance have a word witness of polynomial length in the degree of the supplied L-trivial action? The canonical observer makes one sufficient question exact: isdfd_f polynomially bounded in∣Q∣|Q| for every target? A positive answer puts membership in NP via thedf−1d_f-1 path bound. A superpolynomial observer family would refute this particular route, but would not by itself prove superpolynomial target words; another succinct certificate could exist. The binary family now has an exact quadratic observer and therefore settles neither direction.

Sources

Problem source. Membership in reversed partially ordered automata, contributed by Andrew Ryzhikov.

Andrew Ryzhikov and Petra Wolf, Monoids of Upper Triangular Matrices over the Boolean Semiring, 49th International Symposium on Mathematical Foundations of Computer Science (MFCS 2024), LIPIcs 306, article 81, pp. 81:1–81:18, DOI 10.4230/LIPIcs.MFCS.2024.81. Proposition 9 is the quadratic representative-length result used above.

Tomáš Masopust and Markus Krötzsch, Partially Ordered Automata and Piecewise Testability, Logical Methods in Computer Science 17(2) (2021), article 14, pp. 14:1–14:36, DOI 10.23638/LMCS-17(2:14)2021; arXiv:1907.13115. This is the source used for the confluent-poDFA characterization.

Imre Simon, Piecewise Testable Events, in Automata Theory and Formal Languages, 2nd GI Conference, Lecture Notes in Computer Science 33 (1975), pp. 214–222, DOI 10.1007/3-540-07407-4_23. This is the source for the equivalence between piecewise testability and a J-trivial syntactic monoid.

Lukas Fleischer, Green's Relations in Finite Transformation Semigroups, arXiv:1703.04941. Its unrestricted exponential-height examples are used only as a boundary comparison, not imported into the L-trivial setting.

Lukas Fleischer and Manfred Kufleitner, The Intersection Problem for Finite Monoids, arXiv:1711.08717. Its SLP compression is measured in explicit monoid size and therefore does not settle the compact-input problem here.