Introduction

A two-way nondeterministic finite automaton (2NFA) has a finite set of states and a single read-only head, which may move in either direction along an input bounded by endmarkers. It accepts when some finite computation reaches an accepting state. The complementation problem asks whether every nn-state 2NFA over a finite alphabet Σ\Sigma has a 2NFA for the complementary language with at most p(n)p(n) states, for one polynomial pp independent of Σ\Sigma. We answer this question negatively.

For exact state counts, there is one initial state and a set of accepting states. Each transition depends only on the current state and scanned symbol, updates the state, and moves the head left, right, or not at all. We start the head on the left endmarker and forbid moves beyond either endmarker. Missing transitions reject that branch; infinite nonaccepting computations do not accept. An accepting initial configuration counts as acceptance. All states, including initial and accepting states, are counted. A deterministic two-way automaton (2DFA) has at most one successor for each state and scanned symbol.

For a finite set HH, let RH\mathcal{R}_H denote all binary relations on HH. Products are composed in path order: (p,r)∈AB(p,r) \in AB if and only if (p,q)∈A(p,q) \in A and (q,r)∈B(q,r) \in B for some qq. Use ΣH=RH\Sigma_H = \mathcal{R}_H as an input alphabet. The product r(w)r(w) of a word w=R1⋯Rkw = R_1 \cdots R_k is R1⋯RkR_1 \cdots R_k, and the empty product is r(ε)=IH={(p,p):p∈H}r(\varepsilon) = I_H = \{(p,p) : p \in H\}. Define the relation-product liveness language

LH={w∈ΣH∗:r(w)≠∅}.L_H = \{w \in\Sigma_H^* : r(w) \ne\varnothing\}.

In particular, LHL_H contains the empty word when HH is nonempty. For nonempty words, this is Sakoda and Sipser’s family BhB_h, where h=∣H∣h = |H| [7]; the name one-way liveness is used in [4].

Theorem 1.1. For every integer n≥4n \ge4, set H={1,…,n−2}H = \{1,\ldots,n-2\} and Σn=RH\Sigma_n = \mathcal{R}_H. There is an nn-state 2NFA AnA_n recognizing LHL_H such that every 2NFA recognizing Σn∗∖L(An)\Sigma_n^* \setminus L(A_n) has at least

122⌊(n−4)/127⌋−1\frac{1}{2}2^{\lfloor(n-4)/127 \rfloor}-1

states. In particular, there is no polynomial state bound for complementation that is independent of the finite alphabet.

The alphabet Σn\Sigma_n consists of all binary relations on a set of n−2n-2 points, so ∣Σn∣=2(n−2)2|\Sigma_n| = 2^{(n-2)^2}. The parameter is the number of states, not the size of the transition table. Theorem 1.1 concerns bounds uniform over finite alphabets; it does not assert a lower bound over one fixed alphabet.

History and significance. Sakoda and Sipser’s work on nondeterminism and two-way finite automata [7] initiated the central state-succinctness problem of simulating two-way nondeterministic automata deterministically. Complementation is a separate question: here the target remains nondeterministic. Vardi’s construction gives an exponential-state one-way nondeterministic automaton for the complement of a two-way nondeterministic automaton [8, Theorem 3.2]. It certifies nonacceptance by locally consistent sets of states. For sweeping automata, whose head can reverse direction only at the endmarkers, Kapoutsis proved that the complement of one-way liveness requires exponentially many states in every sweeping 2NFA [4, Theorem 1]. Theorem 1.1 allows unrestricted two-way motion in the complementing automaton.

For deterministic two-way automata, complementation has a linear state bound independent of the alphabet [2]. Guillon, Prigioniero, and Taheri describe polynomial 2NFA complementation as open [3, Section 1] and give polynomial complementation by 1-limited automata [3, Theorem 4.1]. These automata may rewrite a tape cell on its first visit; this resource is absent from the read-only model considered here. Theorem 1.1 resolves the alphabet-uniform polynomial complementation question negatively. The same growing-alphabet family also requires exponentially many states in every equivalent deterministic two-way automaton: a smaller deterministic simulator could be complemented with linear state overhead. Corollary 5.3 makes this implication explicit, including the treatment of infinite nonaccepting computations.

The companion paper [6] proves a deterministic lower bound with a larger exponential rate for the same language, by an independent matching-diagram argument. We compare the exact bounds after Corollary 5.3. The new obstruction here applies even when the complementing machine is nondeterministic.

The argument. An automaton with h+2h+2 states guesses a path through the relations and accepts exactly when their product is nonempty. We prove that recognizing product emptiness requires exponentially many states.

The proof separates a representation of computations from a finite algebraic lower bound. A segment of a computation is represented by four relations recording the possible entries and exits through its two boundaries. These path diagrams compose by joining boundaries. Their monoid is the monoid of partitioned binary relations introduced by Martin and Mazorczak [5, Sections 2.1–2.3], written with separate labels for the two directions of travel. Adding edges only increases the available accepting paths. On the other hand, singleton relation contexts test the absence of any prescribed pair. Consequently a machine for product emptiness induces a surjective multiplicative map from its path diagrams to the relation monoid that reverses inclusion.

To bound such maps, we attach recurrent classes of boundary labels to an idempotent diagram ee, meaning e2=ee^2=e. These classes group labels joined in both directions by through paths together with returns. Their precise definition is given in Section 2. The diagrams zz satisfying ez=ze=zez=ze=z form a submonoid with identity ee, called its corner. Such a zz may destroy the loops on some of those classes; we record the destroyed classes as a missing set. Two structural facts control this loss. First, one common missing-set bound transports through any fixed diagram context with only a factor of two. Second, along a chain of nested idempotents the sum of successive losses is bounded by twice a single initial missing-set budget. The second fact permits the corner identity to change during the argument.

For an integer parameter tt, the amplification step converts 2t2t conjugates of one relation with an added off-diagonal pair into t2t^2 additions sharing a common budget. Each addition, after restriction to a smaller relation corner, incurs an inductively bounded loss. Taking t=64t = 64 gives the exponential recurrence. This strategy adapts the conjugate-amplification pattern of the matching-diagram rank-loss argument in [6], that argument concerns a deterministic state lower bound. Here all diagram paths may be nondeterministic, and the transport and nested-class bounds are proved anew. They are stated independently of automata and may be useful for other order-reversing images of finite path monoids.

Section 2 states the algebraic bound and derives the order-reversing map before developing recurrent classes and transport. Section 3 proves the chain bound, and Section 4 proves the algebraic lower bound. Section 5 proves the promised automata representation and completes the proof of Theorem 1.1.

The bounds impose no restriction on input length or on the running time of a successful computation. They compare finite-state machines without a work tape, and give no separation between uniform logarithmic-space complexity classes.

Path diagrams and missing recurrent classes

We first describe finite paths through a segment, without assuming that the paths come from an automaton. Our goal is a loss measure that detects edge inclusion and remains controlled when a segment is put in context.

Relations are composed in path order: x(AB)yx(AB)y means that xAzxAz and zByzBy for some zz. On a single set, A∗A^* denotes the reflexive transitive closure, so it includes paths of length zero. We use the elementary path identities

(A∪B)∗=A∗(BA∗)∗,A(BA)∗=(AB)∗A.(A \cup B)^* = A^*(BA^*)^*, \qquad A(BA)^* = (AB)^*A.

The first groups successive AA-steps between BB-steps; the second groups the same alternating path from its opposite end. These identities hold whenever the relation types permit the displayed products.

The diagram monoid

Fix disjoint sets D+D^+ and D−D^-, each of size m≥1m \ge1. A diagram aa consists of four arbitrary relations

Fa⊆D+×D+,Ba⊆D−×D−,La⊆D+×D−,Ra⊆D−×D+.F_a \subseteq D^+ \times D^+, \qquad B_a \subseteq D^- \times D^-, \qquad L_a \subseteq D^+ \times D^-, \qquad R_a \subseteq D^- \times D^+.

Entering the segment on the left uses a label of D+D^+; FaF_a records an exit on the right and LaL_a an exit on the left. Entering on the right uses a label of D−D^-; BaB_a records an exit on the left and RaR_a an exit on the right. The relations FaF_a, BaB_a are the through relations, and LaL_a, RaR_a are the return relations; see Figure 1.

The four relations of a path diagram

Figure 1. The four relations of a path diagram. Each arrow represents a relation between entire label sets, not a single deterministic edge. In a product, an exit enters the neighboring segment with the same label.

Place diagrams in a line. At each internal boundary, identify an exit with the entry of the neighboring diagram bearing the same label. The product records finite paths from an outer entry to the first outer exit, with all earlier joins internal. A traversal of any consecutive block can be replaced by one edge of the block’s product, and that edge can conversely be expanded into a finite traversal. This proves associativity. The diagram with FF and BB identity relations and LL, RR empty is the identity. Thus the diagrams form a finite monoid Tm\mathcal{T}_m.

This is the degree-mm monoid of partitioned binary relations of Martin and Mazorchuk [5]. To identify the two descriptions, label D+D^+ and D−D^- by a common mm-element set. @ Bibliography keys

At each boundary, an entry and an exit with the same underlying label give one vertex. The four relations above become the four blocks of a binary relation on the left and right vertex sets. A join always switches from one factor to its neighbor, exactly as in their alternating-path composition. We have included the path expansion and contraction proof of associativity to fix the finite-path convention used below.

Write a⊑ba \sqsubseteq b when all four relations of aa are included in the corresponding relations of bb. Products preserve this order in each argument. Joining two diagrams at one boundary gives

Fab=Fa(LbRa)∗Fb,Bab=Bb(RaLb)∗Ba,Lab=La∪Fa(LbRa)∗LbBa,Rab=Rb∪BbRa(LbRa)∗Fb.(1)\begin{aligned} F_{ab} &= F_a(L_bR_a)^*F_b, \qquad B_{ab} = B_b(R_aL_b)^*B_a,\\ L_{ab} &= L_a \cup F_a(L_bR_a)^*L_bB_a, \qquad R_{ab} = R_b \cup B_bR_a(L_bR_a)^*F_b. \tag*{(1)} \end{aligned}

For example, a forward path crosses aa, alternates returns at the join, and crosses bb. Reflection exchanges D+D^+ with D−D^-, FF with BB, and LL with RR, while reversing product order. We will prove symmetric statements for the positive sign and obtain the negative sign by this reflection.

From complementation to an order-reversing image

The algebraic obstruction to complementation is the following bound. As in the introduction, RH\mathcal{R}_H is the monoid of all binary relations on HH, composed in path order.

Theorem 2.1 (Order-reversing image bound). Let m≥1m \ge1, let HH be a finite set of cardinality h≥2h \ge2, and let S0S_0 be a submonoid of Tm\mathcal{T}_m. Suppose that a surjective multiplicative map φ0:S0→RH\varphi_0 : S_0 \to\mathcal{R}_H satisfies

z⊑w⟹φ0(w)⊆φ0(z)(z,w∈S0).(2)z \sqsubseteq w \quad\Longrightarrow\quad\varphi_0(w) \subseteq\varphi_0(z) \qquad(z,w \in S_0). \tag*{(2)}

Then

2m≥2⌊(h−2)/127⌋.(3)2^m \ge2^{\lfloor(h-2)/127\rfloor}. \tag*{(3)}

The map need not initially be assumed to preserve identities.

The proof is completed in Section 4. We first explain the automata reduction, using the finite-computation representation below. Its construction, proved in Section 5.2, uses one additional state to represent success by an exit past the right endmarker. Local diagram edges record finitely many stay moves followed by one move out of a cell; no bound on repeated crossings is imposed.

Lemma 2.2. Let BB be an ss-state 22NFA over a finite alphabet Σ\Sigma in the model fixed in the introduction. There are a monoid homomorphism

τ:Σ∗⟶Ts+1,\tau: \Sigma^* \longrightarrow\mathcal{T}_{s+1},

two fixed endmarker diagrams λ,ρ∈Ts+1\lambda, \rho\in\mathcal{T}_{s+1}, and fixed positive labels a,ba, b such that, for every word ww,

w∈L(B)⟺(a,b)∈Fλτ(w)ρ.w \in L(B) \Longleftrightarrow(a,b) \in F_{\lambda\tau(w)\rho}.

Consequently, if τ(u)⊑τ(v)\tau(u) \sqsubseteq\tau(v), then

αuβ∈L(B)⟹αvβ∈L(B)(α,β∈Σ∗).(4)\alpha u \beta\in L(B) \Longrightarrow\alpha v \beta\in L(B) \qquad(\alpha,\beta\in\Sigma^{*}). \tag*{(4)}

The acceptance equivalence immediately implies the stated monotonicity in arbitrary word contexts:

Derivation of context monotonicity. Diagram multiplication is increasing in each factor. If τ(u)⊑τ(v)\tau(u) \sqsubseteq\tau(v), then

λτ(α)τ(u)τ(β)ρ⊑λτ(α)τ(v)τ(β)ρ.\lambda\tau(\alpha)\tau(u)\tau(\beta)\rho\sqsubseteq\lambda\tau(\alpha)\tau(v)\tau(\beta)\rho.

The designated forward edge persists under this inclusion. Applying (2.5) proves (4).

For relation-product emptiness, singleton contexts convert this increasing behavior of acceptance into a decreasing relation image. For F⊆HF \subseteq H, write IF={(x,x):x∈F}I_F = \{(x,x): x \in F\}. A multiplicative map is unital if it preserves identities.

Proposition 2.3. Let HH be a finite set with at least two elements. If an ss-state 22NFA recognizes ΣH∗∖LH\Sigma_H^{*} \setminus L_H, then a submonoid of Ts+1\mathcal{T}_{s+1} admits a surjective unital homomorphism ϕ\phi onto RH\mathcal{R}_H satisfying

z⊑z′⟹ϕ(z′)⊆ϕ(z).z \sqsubseteq z' \Longrightarrow\phi(z') \subseteq\phi(z).

Proof. Apply Lemma 2.2 to the complementing machine, and let S=τ(ΣH∗)S = \tau(\Sigma_H^{*}). Suppose τ(u)⊑τ(v)\tau(u) \sqsubseteq\tau(v). For each p,q∈Hp,q \in H, take the one-letter words

α=I{p},β=I{q}.\alpha= I_{\{p\}}, \qquad\beta= I_{\{q\}}.

They belong to ΣH\Sigma_H, and

I{p}r(u)I{q}={{(p,q)},(p,q)∈r(u),∅,(p,q)∉r(u).I_{\{p\}}r(u)I_{\{q\}} = \begin{cases} \{(p,q)\}, & (p,q) \in r(u),\\ \varnothing, & (p,q) \notin r(u). \end{cases}

Since the machine accepts exactly the words with empty relation product, (4) implies

(p,q)∉r(u)⟹(p,q)∉r(v).(p,q) \notin r(u) \Longrightarrow(p,q) \notin r(v).

Thus

τ(u)⊑τ(v)⟹r(v)⊆r(u).\tau(u) \sqsubseteq\tau(v) \Longrightarrow r(v) \subseteq r(u).

If τ(u)=τ(v)\tau(u) = \tau(v), applying (2.8) in both directions yields r(u)=r(v)r(u) = r(v). Therefore

ϕ:S⟶RH,ϕ(τ(w))=r(w),\phi: S \longrightarrow\mathcal{R}_H, \qquad\phi(\tau(w)) = r(w),

is well-defined. Concatenation of words proves multiplicativity, and the empty word proves preservation of the identity. It is surjective because every relation in RH\mathcal{R}_H is itself a letter of ΣH\Sigma_H. Equation (2.8) is exactly the required order reversal (2.7).

With m=s+1m=s+1, Theorem 2.1 therefore bounds the states of a complementing machine. Section 5 constructs the h+2h+2-state source machine and completes the numerical deduction. It remains to prove the algebraic bound. The next subsection associates at most 2m2m recurrent classes with an idempotent diagram. We will measure loss by the classes whose through loops are missing, and force that loss to grow exponentially with hh.

Recurrent classes in a corner

For an idempotent e∈Tme \in\mathcal{T}_m, define

Ke+=(LeRe)∗,Pe+=Ke+FeKe+,K_e^{+} = (L_eR_e)^*, \qquad P_e^{+} = K_e^{+}F_eK_e^{+},
Ke−=(ReLe)∗,Pe−=Ke−BeKe−.(5)K_e^{-} = (R_eL_e)^*, \qquad P_e^{-} = K_e^{-}B_eK_e^{-}. \tag*{(5)}

When working only with the positive sign we omit superscripts. By e2=ee^2=e and eq:2,

FeKeFe=Fe,Pe2=Pe.F_eK_eF_e=F_e, \qquad P_e^2=P_e.

In particular, PeP_e is transitive. A point x∈Dσx \in D^\sigma is recurrent if xPeσxxP_e^\sigma x. Mutual relatedness under PeσP_e^\sigma is an equivalence relation on the recurrent points. Let Ce\mathcal{C}_e be the collection of its classes for both signs, keeping the signs distinct. Then

∣Ce∣≤2m.(6)|\mathcal{C}_e| \leq2m. \tag*{(6)}

For the identity diagram, Keσ=PeσK_e^\sigma=P_e^\sigma is the identity relation on DσD^\sigma, so all 2m2m directional labels form singleton recurrent classes.

The corner eTme={eae:a∈Tm}e\mathcal{T}_me=\{eae:a\in\mathcal{T}_m\} is a monoid with identity ee; membership is equivalent to ez=ze=zez=ze=z. For zz in this corner put

Ue+(z)=Ke+FzKe+,Ue−(z)=Ke−BzKe−.U_e^{+}(z)=K_e^{+}F_zK_e^{+}, \qquad U_e^{-}(z)=K_e^{-}B_zK_e^{-}.

The return formulas and the two corner identities give

Le⊆Lz,Re⊆Rz,Fz=Fe(LzRe)∗Fz=Fz(LeRz)∗Fe.L_e\subseteq L_z,\qquad R_e\subseteq R_z,\qquad F_z=F_e(L_zR_e)^*F_z=F_z(L_eR_z)^*F_e.

Consequently

FeKeFz⊆Fz,FzKeFe⊆Fz,PeUe(z), Ue(z)Pe⊆Ue(z).F_eK_eF_z\subseteq F_z,\qquad F_zK_eF_e\subseteq F_z,\qquad P_eU_e(z),\ U_e(z)P_e\subseteq U_e(z).

The last two inclusions follow by multiplying the first two by KeK_e on the appropriate sides. If x,yx,y belong to one recurrent class, then yPexyP_ex, xPeyxP_ey, and (2.13) show that a loop xUe(z)xxU_e(z)x implies yUe(z)yyU_e(z)y. Reflection gives the same fact for the negative sign. Hence the following is well-defined:

Me(z)={C∈Ce:xUeσ(z)x fails for x∈C, where C⊆Dσ}.\mathcal{M}_e(z)=\{C\in\mathcal{C}_e:xU_e^\sigma(z)x\text{ fails for }x\in C,\text{ where }C\subseteq D^\sigma\}.

We call Me(z)\mathcal{M}_e(z) the missing set of zz relative to ee.

Lemma 2.4 (Products of missing sets). Let e∈Tme\in\mathcal{T}_m be idempotent. For z,w∈eTmez,w\in e\mathcal{T}_me,

Me(zw)⊆Me(z)∪Me(w),Me(e)=∅.\mathcal{M}_e(zw)\subseteq\mathcal{M}_e(z)\cup\mathcal{M}_e(w),\qquad\mathcal{M}_e(e)=\varnothing.

In particular, Me(zk)⊆Me(z)\mathcal{M}_e(z^k)\subseteq\mathcal{M}_e(z) for every positive integer kk.

Proof. The returns of ee persist in both zz and ww, so (LwRz)∗⊇Ke(L_wR_z)^*\supseteq K_e. Formula eq:2 therefore gives Ue+(zw)⊇Ue+(z)Ue+(w)U_e^{+}(zw)\supseteq U_e^{+}(z)U_e^{+}(w). Two loops at the same point compose to a loop. For the negative sign the corresponding product is Ue−(w)Ue−(z)U_e^{-}(w)U_e^{-}(z), which gives the same conclusion. Finally Ueσ(e)=PeσU_e^\sigma(e)=P_e^\sigma, so no recurrent class is missing from ee. □\square

Lemma 2.5 (Rectangles of through edges). Let e∈Tme\in\mathcal{T}_m be idempotent and let z∈eTmez\in e\mathcal{T}_me. For a positive recurrent class C∈CeC\in\mathcal{C}_e and any p∈Cp\in C, set

AC={u:u(FeKe)p},BC={v:p(KeFe)v}.A_C=\{u:u(F_eK_e)p\},\qquad B_C=\{v:p(K_eF_e)v\}.

The rectangle AC×BCA_C\times B_C is independent of pp and is contained in FeF_e. These rectangles cover FeF_e. If C∉Me(z)C\notin\mathcal{M}_e(z), its rectangle is contained in FzF_z. The reflected assertions hold for negative classes and BeB_e. In particular,

Me(z)=∅⟹e⊑z.(7)\mathcal{M}_e(z)=\varnothing\quad\Longrightarrow\quad e\sqsubseteq z. \tag*{(7)}

Proof. Containment in FeF_e follows from FeKeFe=FeF_eK_eF_e = F_e. The identities

(FeKe)Pe=FeKe,Pe(KeFe)=KeFe(F_eK_e)P_e = F_eK_e,\qquad P_e(K_eF_e) = K_eF_e

show that replacing pp by a mutually PeP_e-related point does not change either factor of the rectangle.

To prove coverage, (2.10) implies FePekFe=FeF_eP_e^kF_e = F_e for every k≥1k \ge1. Given a pair in FeF_e, choose a witness for this expression with k>mk > m. Some label repeats along the PeP_e portion. That label pp is recurrent, since a nonempty PeP_e-path from pp back to itself is a PeP_e-edge by transitivity. The portions before and after pp belong to FeKeF_eK_e and KeFeK_eF_e: indeed FePej⊆FeKeF_eP_e^j \subseteq F_eK_e and PejFe⊆KeFeP_e^jF_e \subseteq K_eF_e for j≥0j \ge0, including j=0j = 0 since KeK_e is reflexive.

If CC is not missing from zz, insert pKeFzKeppK_eF_zK_ep between the two halves of its rectangle. The resulting relation is contained in FeKeFzKeFe⊆FzF_eK_eF_zK_eF_e \subseteq F_z by (2.13). Reflection proves the backward assertion. When the missing set is empty all through edges of ee are thus present in zz, and its return edges persist by (2.12).

Transport through a fixed context

The next statement controls a whole family of replacements at once. The common target set, rather than merely a bound for each replacement, will be essential in the amplification argument.

Lemma 2.6 (Transport). Let e,d∈Tme,d \in\mathcal{T}_m be idempotents and let u,v∈Tmu,v \in\mathcal{T}_m satisfy uev=duev = d. For every J⊆CeJ \subseteq C_e there exists a single set J′⊆CdJ' \subseteq C_d, with ∣J′∣≤2∣J∣|J'| \le2|J|, such that

Md(uzv)⊆J′\mathcal{M}_d(uzv) \subseteq J'

for every z∈eTmez \in e\mathcal{T}_me satisfying Me(z)⊆J\mathcal{M}_e(z) \subseteq J and uzv∈dTmduzv \in d\mathcal{T}_md.

Proof. For each positive class of CdC_d, choose a representative xx and a witness for xKd+FduevKd+xxK_d^+F_duevK_d^+x. Expand the middle edge into an actual finite path through the three diagrams u,e,vu,e,v. For a negative class do the same with xKd−BuevKd−xxK_d^-BuevK_d^-x. Make these choices once, independently of zz.

For every occurrence of a through edge of the middle factor ee on a chosen path, choose an ee-class whose rectangle covers that edge, using Lemma 2.5. Mark a dd-class if any class chosen along its witness lies in JJ; let J′J' be the marked set. If a class is unmarked, all its chosen through edges survive replacement of ee by zz, as do all return edges of ee. Its original outer KdσK_d^\sigma pieces remain fixed. Thus its witness is a loop in Ud(uzv)U_d(uzv), and the class is not missing. This proves the required common-set inclusion.

It remains to count marked classes. For each dd-class CC, let SCS_C be the set of ee-classes chosen along its fixed witness. We show that the sets SCS_C are pairwise disjoint among dd-classes of a fixed sign. Consider two positive witnesses, written as

xKd+αFdβKd+x,yKd+α′Fdβ′Kd+y,xK_d^+\alpha F_d\beta K_d^+x,\qquad yK_d^+\alpha'F_d\beta'K_d^+y,

where α,β,α′,β′∈D+\alpha,\beta,\alpha',\beta' \in D^+ and the displayed FdF_d-edges have been expanded through u,e,vu,e,v. Suppose the expanded paths use occurrences of middle-factor edges (a,b)(a,b) and (a′,b′)(a',b') covered by one ee-class. Its rectangle also contains (a,b′)(a,b') and (a′,b)(a',b). The sign of that ee-class fixes the orientation of both edges and their entry and exit boundaries inside the three-factor product. Thus the prefix ending at aa, the crossed edge (a,b′)(a,b'), and the suffix starting at b′b' concatenate to a path from α\alpha to β′\beta'. Neither retained subpath has an earlier outer exit. The concatenation is therefore a valid finite path for FdF_d, even if it repeats internal crossings or its selected middle edge points backward. Interchanging the two prefixes and suffixes similarly gives α′Fdβ\alpha'F_d\beta. The original exterior factors now give xPd+yxP_d^+y and yPd+xyP_d^+x, so xx and yy belong to the same recurrent class. Reflection gives the same conclusion for negative witnesses, with BdB_d in place of FdF_d. This proves the asserted disjointness for each sign. A witness using only returns of ee has SC=∅S_C=\varnothing and is never marked. Since J′={C:SC∩J≠∅}J'=\{C:S_C\cap J\ne\varnothing\}, at most ∣J∣|J| classes of each sign are marked, and ∣J′∣≤2∣J∣|J'|\le2|J|.

A loss budget for nested idempotents

For idempotents in a semigroup, write d⊴ed\trianglelefteq e if de=ed=dde=ed=d, and say that dd is nested under ee. This is a partial order: reflexivity and antisymmetry are immediate, and if d⊴e⊴fd\trianglelefteq e\trianglelefteq f, then df=(de)f=d(ef)=de=ddf=(de)f=d(ef)=de=d and fd=f(ed)=(fe)d=ed=dfd=f(ed)=(fe)d=ed=d. Nesting is distinct from the edge-inclusion order ⊑\sqsubseteq.

We will bound the sum of the losses incurred along a nested chain, even though the identity, the recurrent classes, and hence the meaning of a loss change at every step. The key fact is a containment dichotomy: a new recurrent class contains either an old class that is not lost, or at least two old classes.

Lemma 3.1 (Absorption under nesting). Let d,e∈Tmd,e\in\mathcal{T}_m be idempotents with d⊴ed\trianglelefteq e. For either sign σ\sigma,

Keσ⊆Kdσ,PeσPdσ⊆Pdσ,PdσPeσ⊆Pdσ.K_e^\sigma\subseteq K_d^\sigma,\qquad P_e^\sigma P_d^\sigma\subseteq P_d^\sigma,\qquad P_d^\sigma P_e^\sigma\subseteq P_d^\sigma.

In the positive sign one also has

FePd+⊆Pd+,Pd+Fe⊆Pd+.F_eP_d^+\subseteq P_d^+,\qquad P_d^+F_e\subseteq P_d^+.

The corresponding negative-sign inclusions use BeB_e.

Proof. We prove the positive-sign statements and suppress the superscript ++. Because d∈eTmed\in e\mathcal{T}_m e, its returns contain those of ee: Le⊆LdL_e\subseteq L_d and Re⊆RdR_e\subseteq R_d. Set

S=(LdRe)∗,T=(LeRd)∗.S=(L_dR_e)^*,\qquad T=(L_eR_d)^*.

Then Ke⊆S,T⊆KdK_e\subseteq S,T\subseteq K_d. The multiplication formulas applied to ed=de=ded=de=d give

Fd=FeSFd=FdTFe.(8)F_d=F_eSF_d=F_dTF_e. \tag*{(8)}
Ld=Le∪FeSLdBe,Rd=Re∪BeRdTFe.(9)L_d=L_e\cup F_eSL_dB_e,\qquad R_d=R_e\cup B_eR_dTF_e. \tag*{(9)}

We spell out the two star rearrangements needed below, using the finite-path identities in (2.1).

Expanding RdR_d in Kd=(LdRd)∗K_d=(L_dR_d)^*, we obtain

Kd=(LdRe∪LdBeRdTFe)∗=S(LdBeRdTFeS)∗,FeKdFd=(FeSLdBeRdT)∗FeSFd=(FeSLdBeRdT)∗Fd⊆KdFd.\begin{aligned} K_d&=(L_dR_e\cup L_dB_eR_dTF_e)^*\\ &=S(L_dB_eR_dTF_eS)^*,\\ F_eK_dF_d&=(F_eSL_dB_eR_dT)^*F_eSF_d\\ &=(F_eSL_dB_eR_dT)^*F_d\subseteq K_dF_d. \end{aligned}

Indeed, FeSLdBe⊆LdF_eSL_dB_e\subseteq L_d by eq:3, so the relation inside the last star is contained in LdRdT⊆KdL_dR_dT\subseteq K_d. For the other side, expand LdL_d instead:

Kd=(LeRd∪FeSLdBeRd)∗=T(FeSLdBeRdT)∗,FdKdFe=FdTFe(SLdBeRdTFe)∗=Fd(SLdBeRdTFe)∗⊆FdKd.\begin{aligned} K_d&=(L_eR_d\cup F_eSL_dB_eR_d)^*\\ &=T(F_eSL_dB_eR_dT)^*,\\ F_dK_dF_e&=F_dTF_e(SL_dB_eR_dTF_e)^*\\ &=F_d(SL_dB_eR_dTF_e)^*\subseteq F_dK_d. \end{aligned}

Here BeRdTFe⊆RdB_eR_dT F_e \subseteq R_d, so the relation inside the star is contained in SLdRd⊆KdSL_dR_d \subseteq K_d. These inclusions, multiplied by the remaining KdK_d, prove (3.1) because Pd=KdFdKdP_d = K_dF_dK_d. Finally, KdPd=PdKd=PdK_dP_d = P_dK_d = P_d and Ke⊆KdK_e \subseteq K_d imply

PePd=KeFeKePd⊆Pd,PdPe=PdKeFeKe⊆Pd.P_eP_d = K_eF_eK_eP_d \subseteq P_d,\qquad P_dP_e = P_dK_eF_eK_e \subseteq P_d.

Reflection proves all negative-sign statements.

Lemma 3.2 (Containment of recurrent classes). Let d,e∈Tmd,e \in\mathcal{T}_m be idempotents with d≤ed \leq e. Every class in CdC_d contains either

  1. a whole class in Ce∖Me(d)C_e \setminus M_e(d); or

  2. two distinct whole classes in CeC_e.

All classes in either containment have the same sign.

Proof. Again work in the positive sign and omit its superscript. Fix a recurrent point xx of PdP_d. Using (8) twice, its recurrence gives

x(KdFeSFdTFeKd)x.x(K_dF_eSF_dTF_eK_d)x.

By the rectangle cover in Lemma 2.5, each of the two displayed FeF_e-edges can be factored through an ee-recurrent point. Denote the first point by pp and the second by qq. The resulting witness has the form

xαpβqγx(10)x\mathbin{\alpha}p\mathbin{\beta}q\mathbin{\gamma}x \tag*{(10)}

where

α=KdFeKe,β=KeFeSFdTFeKe=KeFdKe=Ue+(d),γ=KeFeKd.\begin{aligned} \alpha&= K_dF_eK_e,\\ \beta&= K_eF_eSF_dTF_eK_e = K_eF_dK_e = U_e^{+}(d),\\ \gamma&= K_eF_eK_d. \end{aligned}

Here β⊆Pd\beta\subseteq P_d because Ke⊆KdK_e \subseteq K_d. Moreover, Lemma 3.1 shows that multiplying PdP_d on either side by α\alpha or γ\gamma gives a subrelation of PdP_d. Thus all four endpoint relations needed for class membership follow from (10) and xPdxxP_dx:

xPdxαp⟹xPdp,pβqγx⟹pPdx,xαpβq⟹xPdq,qγxPdx⟹qPdx.\begin{aligned} xP_dx\mathbin{\alpha}p &\Longrightarrow xP_dp,\\ p\mathbin{\beta}q\mathbin{\gamma}x &\Longrightarrow pP_dx,\\ x\mathbin{\alpha}p\mathbin{\beta}q &\Longrightarrow xP_dq,\\ q\mathbin{\gamma}xP_dx &\Longrightarrow qP_dx. \end{aligned}

In particular pp and qq are recurrent for PdP_d and belong to the class of xx. In the first and last lines, inserting the recurrence at xx is essential: the shorter witness portion alone need not contain a dd-through edge.

The entire PeP_e-class of pp lies in the PdP_d-class of xx. Indeed, if rr is in the former class, then xPdpPerxP_dpP_er and rPepPdxrP_epP_dx, and the two mixed absorptions of Lemma 3.1 give xPdrxP_dr and rPdxrP_dx. The same argument applies to qq. If their PeP_e-classes are distinct, this proves the second alternative. If they coincide, then pUe+(d)qpU_e^{+}(d)q by (10) and qPepqP_ep. The corner absorption Ue+(d)Pe⊆Ue+(d)U_e^{+}(d)P_e \subseteq U_e^{+}(d) gives pUe+(d)ppU_e^{+}(d)p, so that class is not in Me(d)M_e(d). This proves the first alternative. Reflection handles the negative sign.

Proposition 3.3 (Chain bound). Let b0,b1,…,bk∈Tmb_0,b_1,\ldots,b_k \in\mathcal{T}_m be idempotents such that bj≤bj−1b_j \leq b_{j-1} for 1≤j≤k1 \leq j \leq k. Suppose a single set J0⊆Cb0J_0 \subseteq C_{b_0} satisfies

Mb0(bj)⊆J0(0≤j≤k).M_{b_0}(b_j) \subseteq J_0 \qquad(0 \leq j \leq k).

Then

∑j=1k∣Mbj−1(bj)∣≤2∣J0∣.(11)\sum_{j=1}^{k} \lvert\mathcal{M}_{b_{j-1}}(b_j) \rvert\le2\lvert J_0\rvert. \tag*{(11)}

Proof. Choose one protected label in every class of Cb0∖J0\mathcal{C}_{b_0} \setminus J_0, and keep these choices fixed. Every protected label xx of sign σ\sigma satisfies xUb0σ(bj)xxU^{\sigma}_{b_0}(b_j)x at every stage jj. By transitivity of nesting and Lemma 3.1, Kb0σ⊆KbjσK^{\sigma}_{b_0} \subseteq K^{\sigma}_{b_j}, so this loop also belongs to PbjσP^{\sigma}_{b_j}. Thus every protected label remains recurrent. Let sjs_j count the classes in Cbj\mathcal{C}_{b_j} containing no protected label. In particular s0=∣J0∣s_0 = \lvert J_0\rvert.

Write δj=∣Mbj−1(bj)∣\delta_j = \lvert\mathcal{M}_{b_{j-1}}(b_j)\rvert. Every class missing at step jj is unprotected. Otherwise it would contain a protected label xx of sign σ\sigma; the loop xUb0σ(bj)xxU^{\sigma}_{b_0}(b_j)x and the inclusion Kb0σ⊆Kbj−1σK^{\sigma}_{b_0} \subseteq K^{\sigma}_{b_{j-1}} would then give xUbj−1σ(bj)xxU^{\sigma}_{b_{j-1}}(b_j)x, contradicting missingness.

Assign weight 1/21/2 to each missing unprotected class of Cbj−1\mathcal{C}_{b_{j-1}}, and weight 11 to each other unprotected class there. Their total weight is sj−1−δj/2s_{j-1} - \delta_j/2. Figure 2 illustrates the two ways that an unprotected new class can obtain weight at least one from the previous stage.

Weighted containment argument showing one new unprotected class containing either one old nonmissing class of weight 1 or two old classes of weight at least 1/2 each

Figure 2. The weighted containment argument in the chain bound. All classes shown have one fixed sign and contain no protected label. Each new class contains either a whole nonmissing old class or two distinct whole old classes. A missing old class has weight 1/21/2; every other old class has weight 11. The displayed regions express set containment schematically. Distinct new classes cannot use the same whole old class, so their unit weight requirements add.

By Lemma 3.2, each unprotected class at stage jj contains previous classes of total weight at least 11: either one nonmissing class, or two distinct classes. Every contained previous class is unprotected, since a protected label in it would also protect the new class. Distinct new classes cannot use the same previous class, because classes of a fixed sign are disjoint and the two sign-label sets are disjoint. Consequently

sj≤sj−1−δj2.s_j \le s_{j-1} - \frac{\delta_j}{2}.

Summing and using sk≥0s_k \ge0 yields ∑j=1kδj≤2(s0−sk)≤2∣J0∣\sum_{j=1}^{k} \delta_j \le2(s_0 - s_k) \le2\lvert J_0\rvert.

An exponential bound for order-reversing images

We now prove Theorem 2.1, combining transport and the nested-chain inequality to bound order-reversing relation images. Write RH\mathcal{R}_H for the monoid of all binary relations on a finite set HH, with multiplication in path order. For F⊆HF \subseteq H, write IF={(x,x):x∈F}I_F = \{(x,x): x \in F\}; relations on FF are also regarded as relations on HH supported on F×FF \times F.

The proof amplifies one off-diagonal pair in the image into a family of pair additions. The chain inequality bounds their total cost in missing recurrent classes; restriction to smaller relation monoids bounds each cost from below. We first record two elementary facts that allow these restrictions without losing the hypotheses. The pattern of relation additions follows the matching-diagram argument in [6]; all loss estimates needed here are supplied by the path-diagram results just proved.

Corners and unit lifts

For an idempotent dd in a semigroup AA, its corner dAd={dad:a∈A}dAd = \{dad : a \in A\} is a monoid with identity dd. A unit means an element with a two-sided inverse relative to the specified monoid identity.

Lemma 4.1 (Minimal idempotent corners). Let AA be a finite semigroup, let MM be a monoid, and let θ:A→M\theta: A \to M be a surjective multiplicative map. For every idempotent q∈Mq \in M, there is an idempotent d∈Ad \in A with θ(d)=q\theta(d) = q that is minimal among such idempotents under ⊴\trianglelefteq. For every such minimal dd, restriction of θ\theta gives a unital surjection

dAd⟶qMq.dAd \longrightarrow qMq.

Every element of dAddAd whose image is a unit of qMqqMq is itself a unit of dAddAd. In particular, every unit of qMqqMq has a unit lift.

Proof. Every element ww of a finite semigroup has an idempotent positive power: the sequence of powers is eventually periodic, so a sufficiently large exponent divisible by its eventual period gives w2k=wkw^{2k} = w^k. Applying this to a preimage of qq gives an idempotent preimage of qq. Finiteness then gives one minimal in the nesting order.

For any y∈qMqy \in qMq, choose x∈Ax \in A with θ(x)=y\theta(x) = y. Then θ(dxd)=qyq=y\theta(dxd) = qyq = y, proving surjectivity on the corner; its identity dd maps to qq. Now let w∈dAdw \in dAd have unit image. An idempotent power wkw^k has an image that is both a unit and an idempotent in qMqqMq, hence equals qq. Since wk⊴dw^k \trianglelefteq d, minimality gives wk=dw^k = d. If k>1k > 1, the element wk−1w^{k-1} is a two-sided inverse of ww in dAddAd; if k=1k = 1, then w=dw = d is already the identity.

The next lemma identifies a smaller full relation monoid inside an idempotent corner. Its hypothesis says that the old relation restricts to the identity on the retained points.

Lemma 4.2 (Restriction of a relation corner). Let P∈RHP \in\mathcal{R}_H be idempotent, let F⊆HF \subseteq H, and put i=IFi = I_F. Suppose that iPi=iiPi = i, and define Q=PiPQ = PiP. Then QQ is idempotent, Q⊴PQ \trianglelefteq P, and restriction is a unital monoid isomorphism

ρ:QRHQ⟶RF,ρ(Z)=iZi.(12)\rho: Q\mathcal{R}_H Q \longrightarrow\mathcal{R}_F,\qquad\rho(Z) = iZi. \tag*{(12)}

Its inverse sends A∈RFA \in\mathcal{R}_F to PAPPAP.

Proof. Using P2=PP^2 = P and iPi=iiPi = i, we obtain

Q2=Q,PQ=QP=Q,Qi=Pi,iQ=iP,iQi=i.Q^2 = Q,\qquad PQ = QP = Q,\qquad Qi = Pi,\qquad iQ = iP,\qquad iQi = i.

If Z=QZQZ = QZQ, then PZP=ZPZP = Z, and therefore

Z=PiPZPiP=PiZiP.Z = PiPZPiP = PiZiP.

Thus restriction determines ZZ uniquely. Conversely, for a relation A=iAiA = iAi supported on FF, the relation PAPPAP belongs to QRHQQ\mathcal{R}_H Q, since PAP=QAQPAP = QAQ, and

i(PAP)i=(iPi)A(iPi)=A.i(PAP)i = (iPi)A(iPi) = A.

This proves bijectivity with the claimed inverse. For supported relations A,B∈RFA, B \in\mathcal{R}_F,

(PAP)(PBP)=PAPBP=PA(iPi)BP=PABP.(PAP)(PBP) = PAPBP = PA(iPi)BP = PABP.

Hence the inverse, and therefore restriction, preserves multiplication. Finally ρ(Q)=i\rho(Q) = i, the identity of RF\mathcal{R}_F.

Amplifying a single added pair

Set

t=64,D(h)=2⌊(h−2)/(2t−1)⌋(h≥2).(13)t = 64,\qquad D(h) = 2^{\left\lfloor(h-2)/(2t-1)\right\rfloor}\quad(h \ge2). \tag*{(13)}

The choice t=64t = 64 balances the two estimates proved below: t2t^2 pair additions each cost at least half the smaller-instance bound, while their total cost is at most 16t16t times the original loss. The resulting gain is t/32=2t/32 = 2, at a reduction of 2t−1=1272t - 1 = 127 points. We prove a missing-set bound strong enough to survive passage to any of the corners above. The additional unit-lifting hypothesis permits conjugation by arbitrary permutations of HH; Lemma 4.1 will supply it when we return to Theorem 2.1.

Proposition 4.3 (Cost of one added pair). Let m≥1m \ge1, let e∈Tme \in\mathcal{T}_m be idempotent, and let S⊆eTmeS \subseteq e\mathcal{T}_m e be a submonoid with identity ee. Let HH be a finite set of cardinality h≥2h \ge2. Suppose that ϕ:S→RH\phi: S \to\mathcal{R}_H is a unital surjective homomorphism such that

z⊑w⟹ϕ(w)⊆ϕ(z)(z,w∈S),z \sqsubseteq w \mathrel{\Longrightarrow} \phi(w) \subseteq\phi(z)\qquad(z,w \in S),

and suppose that each permutation of HH has a lift that is a unit of SS. If a∈Sa \in S is idempotent and, for distinct x,y∈Hx,y \in H,

ϕ(a)=IH∪{(x,y)},\phi(a) = I_H \cup\{(x,y)\},

then ∣Me(a)∣≥D(h)|\mathcal{M}_e(a)| \ge D(h).

Proof. We induct on hh, simultaneously over all the data in the statement, including mm, ee, SS, and ϕ\phi. For 2≤h≤2t2 \le h \le2t, we have D(h)=1D(h) = 1. If Me(a)\mathcal{M}_e(a) were empty, Lemma 2.5 would give e⊑ae \sqsubseteq a. Order reversal would then give IH∪{(x,y)}⊆IHI_H \cup\{(x,y)\} \subseteq I_H, a contradiction.

Assume henceforth that h≥2t+1h \ge2t + 1, and put c=∣Me(a)∣c = |\mathcal{M}_e(a)|. We will construct t2t^2 nested steps with total missing-set size at most 16tc16tc. Each step will contain a smaller instance of the Proposition, on h−2t+1h - 2t + 1 points.

Step 1: A common budget for all pair additions. Choose disjoint sets

U={u1,…,ut},V={v1,…,vt},{z}U = \{u_1,\ldots,u_t\},\qquad V = \{v_1,\ldots,v_t\},\qquad\{z\}

in HH. Conjugating aa by unit lifts of permutations gives elements si,sj′∈Ss_i,s'_j \in S with

ϕ(si)=IH∪{(ui,z)},ϕ(sj′)=IH∪{(z,vj)}.\phi(s_i) = I_H \cup\{(u_i,z)\},\qquad\phi(s'_j) = I_H \cup\{(z,v_j)\}.

Indeed, permutation conjugation acts transitively on ordered pairs of distinct points, and the inverse of a unit lift maps to the inverse permutation. Explicitly, a unit p∈Sp \in S gives the conjugate pap−1pap^{-1}, with pep−1=epep^{-1} = e. Applying Lemma 2.6 with J=Me(a)J = \mathcal{M}_e(a) therefore gives

∣Me(si)∣≤2c,∣Me(sj′)∣≤2c.|\mathcal{M}_e(s_i)| \le2c,\qquad|\mathcal{M}_e(s'_j)| \le2c.

Consequently the single set

J=⋃i=1tMe(si) ∪ ⋃j=1tMe(sj′)⊆CeJ = \bigcup_{i=1}^{t}\mathcal{M}_e(s_i)\ \cup\ \bigcup_{j=1}^{t}\mathcal{M}_e(s'_j) \subseteq C_e

has ∣J∣≤4tc|J| \le4tc, and the product inequality of Lemma 2.4 gives Me(sisj′)⊆J\mathcal{M}_e(s_i s'_j) \subseteq J for every i,ji,j. Let P0=IH∖{z}P_0 = I_H \setminus\{z\}. Choose an idempotent lift b0∈Sb_0 \in S of P0P_0, by taking an idempotent positive power of any lift, and define

gij=b0sisj′b0∈b0Sb0.g_{ij} = b_0s_i s'_j b_0 \in b_0Sb_0.

The image of sisj′s_i s'_j consists of the identity and the three pairs (ui,z)(u_i,z), (z,vj)(z,v_j), and (ui,vj)(u_i,v_j). The outer factors P0P_0 remove the first two, so

ϕ(qij)=P0∪{(ui,vj)}.(14)\phi(q_{ij}) = P_0 \cup\{(u_i,v_j)\}. \tag*{(14)}

Figure 3 illustrates this conversion of two generator families into a family indexed by U×VU \times V.

Relation images of the hub construction

Figure 3. The relation images of the hub construction, with identity pairs omitted. Composing the ui→zu_i \to z and z→vjz \to v_j additions creates ui→vju_i \to v_j; sandwiching by P0P_0 removes the two pairs incident to zz. The 2t2t generators yield all t2t^2 pair additions.

Since b0eb0=b0b_0 e b_0 = b_0, the common-set conclusion of Lemma 2.6 gives a single set J0⊆Cb0J_0 \subseteq C_{b_0} such that

∣J0∣≤8tc,Mb0(gij)⊆J0(1≤i,j≤t).(15)|J_0| \le8tc,\qquad\mathcal{M}_{b_0}(g_{ij}) \subseteq J_0 \quad(1 \le i,j \le t). \tag*{(15)}

Step 2: A nested chain spending that budget. List the t2t^2 pairs of U×VU \times V in any order, without repetitions. Let EℓE_\ell be the set of the first ℓ\ell pairs, and put Pℓ=P0∪EℓP_\ell= P_0 \cup E_\ell for 0≤ℓ≤t20 \le\ell\le t^2. For any E,E′⊆U×VE,E' \subseteq U \times V,

(P0∪E)(P0∪E′)=P0∪E∪E′.(P_0 \cup E)(P_0 \cup E') = P_0 \cup E \cup E'.

To check this, P0P_0 acts as the identity on all the endpoints in question, and no pair of EE can be followed by a pair of E′E', because U∩V=∅U \cap V = \varnothing. In particular, every PℓP_\ell is idempotent.

If the pair at position ℓ\ell is (ui,vj)(u_i,v_j), choose bℓb_\ell to be an idempotent positive power of bℓ−1gijbℓ−1b_{\ell-1}g_{ij}b_{\ell-1}. Inductively, Equation (4.6) gives ϕ(bℓ)=Pℓ\phi(b_\ell) = P_\ell. The sandwich, and hence all its positive powers, is absorbed on both sides by bℓ−1b_{\ell-1}. Thus

bℓ⊴bℓ−1(1≤ℓ≤t2).b_\ell\trianglelefteq b_{\ell-1}\qquad(1 \le\ell\le t^2).

All these elements lie in the b0b_0-corner. Starting with Mb0(b0)=∅\mathcal{M}_{b_0}(b_0) = \varnothing, repeated use of Lemma 2.4 and Equation (15) shows that

Mb0(bℓ)⊆J0(0≤ℓ≤t2).\mathcal{M}_{b_0}(b_\ell) \subseteq J_0\qquad(0 \le\ell\le t^2).

Here taking a positive power cannot enlarge the missing set: all factors have the same missing set, and their union is unchanged. Proposition 3.3 now yields

∑ℓ=1t2δℓ≤16tc,δℓ=∣Mbℓ−1(bℓ)∣.(16)\sum_{\ell=1}^{t^2}\delta_\ell\le16tc,\qquad\delta_\ell= |\mathcal{M}_{b_{\ell-1}}(b_\ell)|. \tag*{(16)}

We have bounded the total cost of the chain using only the 2t2t original conjugates. It remains to give an inductive lower bound for each of its t2t^2 steps.

Step 3: A smaller instance inside every step. Fix ℓ\ell, let (ui,vj)(u_i,v_j) be its newly added pair, and write b=bℓ−1b = b_{\ell-1} and P=Pℓ−1P = P_{\ell-1}. Retain the two endpoints of this pair and all points outside the construction:

F={ui,vj}∪(H∖(U∪V∪{z})),iF=IF,Q=PiFP.F = \{u_i,v_j\} \cup\bigl(H \setminus(U \cup V \cup\{z\})\bigr),\qquad i_F = I_F,\qquad Q = P i_F P.

Then ∣F∣=h−2t+1≥2|F| = h - 2t + 1 \ge2. Among the possible extra pairs of PP, only (ui,vj)(u_i,v_j) has both endpoints in FF, and this pair has not yet been added. Therefore iFPiF=iFi_F P i_F = i_F. By Lemma 4.2, Q≤PQ \leq P and restriction gives RHQ≅RF\mathcal{R}_H Q \cong\mathcal{R}_F. Moreover, Equation (4.6) gives PPℓP=PℓP P_\ell P = P_\ell. Using iFQ=iFPi_F Q = i_F P and QiF=PiFQ i_F = P i_F, we obtain

iF(QPℓQ)iF=iFPℓiF=IF∪{(ui,vj)}.i_F(QP_\ell Q)i_F = i_F P_\ell i_F = I_F \cup\{(u_i,v_j)\}.

Consider the finite monoid A=bSbA = bSb. The restriction of ϕ\phi maps it onto PRHPP\mathcal{R}_H P: sandwiching any preimage by bb gives a preimage of its PP-sandwich. Apply Lemma 4.1 inside AA to the idempotent QQ. We obtain an idempotent d∈Ad \in A with ϕ(d)=Q\phi(d) = Q, minimal there among idempotent lifts of QQ. Its corner dAddAd maps unitally onto

Q(PRHP)Q=QRHQ,Q(P\mathcal{R}_H P)Q = Q\mathcal{R}_H Q,

and all units of this image have unit lifts. Composing with restriction gives a unital surjective homomorphism

ψ:dAd⟶RF,ψ(w)=iFϕ(w)iF.(17)\psi: dAd \longrightarrow\mathcal{R}_F,\qquad\psi(w) = i_F\phi(w)i_F. \tag*{(17)}

This map is order-reversing because ϕ\phi is and restriction preserves inclusion. It has unit lifts of every permutation of FF, by the isomorphism in Lemma 4.2. Also dAddAd is a submonoid of dTmddT_m d with identity dd. These observations verify all the map and domain hypotheses needed for induction.

Because bℓ≤bb_\ell\leq b, we have bℓ∈Ab_\ell\in A. By Equation (4.8), the element dbℓd∈dAddb_\ell d \in dAd maps under ψ\psi to IF∪{(ui,vj)}I_F \cup\{(u_i,v_j)\}. This relation is idempotent, so an idempotent positive power vv of dbℓddb_\ell d has the same image. Since d∈Ad \in A is idempotent, dbd=ddbd = d. Apply Lemma 2.6 from the identity bb to the identity dd, with context (d,d)(d,d) and missing set Mb(bℓ)\mathcal{M}_b(b_\ell). Then apply the power consequence of Lemma 2.4 in the dd-corner. This gives

∣Md(v)∣≤∣Md(dbℓd)∣≤2δℓ.(18)|\mathcal{M}_d(v)| \leq|\mathcal{M}_d(db_\ell d)| \leq2\delta_\ell. \tag*{(18)}

The induction hypothesis applies to dd, dAddAd, ψ\psi, and vv, with the smaller parameter ∣F∣=h−2t+1|F| = h - 2t + 1. It follows that

2δℓ≥D(h−2t+1).2\delta_\ell\geq D(h - 2t + 1).

Summing this lower bound and using Equation (16), we conclude that

16tc≥t22D(h−2t+1),c≥t32D(h−2t+1).16tc \geq\frac{t^2}{2}D(h - 2t + 1),\qquad c \geq\frac{t}{32}D(h - 2t + 1).

For t=64t = 64, the last expression is 2D(h−127)=D(h)2D(h - 127) = D(h), by the definition of DD. This completes the induction.

Proof of Theorem 2.1. Apply Lemma 4.1 to ϕ0\phi_0 and the idempotent IHI_H. It supplies an idempotent e∈S0e \in S_0 such that S=eS0eS = eS_0e maps unitally onto RH\mathcal{R}_H and every permutation has a unit lift. The restricted map retains order reversal, and SS is a submonoid of eTmeeT_m e with identity ee.

Choose distinct x,y∈Hx,y \in H and any lift in SS of IH∪{(x,y)}I_H \cup\{(x,y)\}. An idempotent positive power aa of that lift has the same image. Proposition 4.3 therefore gives

D(h)≤∣Me(a)∣≤∣Ce∣≤2m,D(h) \leq|\mathcal{M}_e(a)| \leq|C_e| \leq2m,

as required.

Finite computations and the main lower bound

We complete the concrete obligations deferred in Section 2: constructing the small source automaton and proving the finite-computation representation. The order-reversing map has already been derived in Proposition 2.3; we then combine it with Theorem 2.1 to finish the main proof. Throughout, we use the automaton model fixed in the introduction, including stay moves, finite acceptance, and acceptance in the initial configuration.

The source automaton

Fix a set HH of size h≥2h \ge2. Recall that the alphabet is ΣH=RH\Sigma_H = \mathcal{R}_H, the word product is r(w)r(w) with r(ε)=IHr(\varepsilon) = I_H, and

LH={w∈ΣH∗:r(w)≠∅}.(19)L_H = \{w \in\Sigma_H^* : r(w) \ne\varnothing\}. \tag*{(19)}

Lemma 5.1. The language LHL_H is recognized by a 22NFA with exactly h+2h + 2 states.

Proof. Use one initial state qinq_{\mathrm{in}}, the hh states in HH, and one accepting state qaccq_{\mathrm{acc}}, all distinct. From qinq_{\mathrm{in}} on the left endmarker, the machine moves right into any chosen state of HH. On a letter R∈RHR \in\mathcal{R}_H, it may move right from p∈Hp \in H to q∈Hq \in H precisely when (p,q)∈R(p,q) \in R. At the right endmarker, every state in HH has a stay transition to qaccq_{\mathrm{acc}}. There are no other transitions, and qaccq_{\mathrm{acc}} is the only accepting state.

On R1⋯RkR_1 \cdots R_k, an accepting computation is exactly a sequence p0,…,pk∈Hp_0,\ldots,p_k \in H with (pi−1,pi)∈Ri(p_{i-1},p_i) \in R_i for 1≤i≤k1 \le i \le k. Such a sequence exists exactly when the relation product is nonempty. For k=0k = 0, the initial move reaches the right endmarker directly, and the machine accepts. This agrees with r(ε)=IH≠∅r(\varepsilon) = I_H \ne\varnothing.

Finite computations as diagram paths

We now prove the representation promised in Lemma 2.2. The construction records arbitrary finite computations, including stay moves and repeated crossings of the same cut. It does not require termination of every computation.

Proof of Lemma 2.2. Let BB be the ss-state automaton in the lemma, with state set QQ and initial state q0q_0. Introduce one new state q†q_{\dagger}. From every original accepting state, at every cell, add a stay transition to q†q_{\dagger}. In state q†q_{\dagger}, move right regardless of the scanned symbol, finally exiting past the right endmarker in state q†q_{\dagger}. This last exit is only a device for representing acceptance, not a transition of the original machine. All original transitions remain subject to the endmarker restrictions.

A finite augmented computation from the original initial configuration to the designated exit exists if and only if BB accepts. Indeed, an accepting original computation can be followed by the added stay and rightward sweep. Conversely, the first entry into q†q_{\dagger} must come from an original accepting configuration. This argument includes the case that q0q_0 itself is accepting. Infinite computations create no additional finite successful computation.

Put Q^=Q∪{q†}\widehat{Q} = Q \cup\{q_{\dagger}\} and m=s+1m = s + 1. Take the directional label sets to be two disjoint copies

D+={q+:q∈Q^},D−={q−:q∈Q^}.D^+ = \{q^+ : q \in\widehat{Q}\}, \qquad D^- = \{q^- : q \in\widehat{Q}\}.

For a cell symbol cc, including either endmarker with its boundary rules, let EcE_c be the relation on Q^\widehat{Q} given by the augmented stay transitions. Let Tc+T_c^+ and Tc−T_c^- be the relations given by the augmented rightward and leftward transitions, respectively; their second coordinates record the state after the move. At the right endmarker, Tc+T_c^+ includes only the designated augmented exit, and at the left endmarker Tc−T_c^- is empty. Define a diagram dcd_c by

(q+,p+)∈Fdc⟺(q−,p+)∈Rdc⟺(q,p)∈Ec∗Tc+,(q^+,p^+) \in F_{d_c} \Longleftrightarrow(q^-,p^+) \in R_{d_c} \Longleftrightarrow(q,p) \in E_c^*T_c^+,
(q−,p−)∈Bdc⟺(q+,p−)∈Ldc⟺(q,p)∈Ec∗Tc−.(q^-,p^-) \in B_{d_c} \Longleftrightarrow(q^+,p^-) \in L_{d_c} \Longleftrightarrow(q,p) \in E_c^*T_c^-.

Thus each local diagram edge represents a finite sequence of stays, possibly empty, followed by one move out of the cell. The incoming sign specifies the side of entry, not additional machine memory; the transition rules themselves depend only on the state and symbol.

Set λ=dleft\lambda=d_{\mathrm{left}} and ρ=dright\rho=d_{\mathrm{right}} for the two endmarkers, and set

τ(c1⋯ck)=dc1⋯dck,τ(ε)=1Tm.\tau(c_1\cdots c_k)=d_{c_1}\cdots d_{c_k}, \qquad\tau(\varepsilon)=1_{T_m}.

This is a monoid homomorphism. Every finite augmented computation ending in the designated exit decomposes into successive visits to individual cells, each consisting of finitely many stays and one exit move. These visits give a path through the product of the cell diagrams. In the opposite direction, each local edge in a finite diagram path has a finite transition witness. Expanding these witnesses and concatenating them gives an augmented computation, because the exit state from one cell is exactly the entry state to the next. Neither direction assumes that a cut is crossed at most once.

The fictitious entry into the left endmarker with label q0+q_0^+ represents the initial configuration; it is not an additional machine transition. No path can leave the tape to the left, and a path can leave to the right only through the designated exit. Hence (2.5) holds with a=q0+a=q_0^+ and b=q†+b=q_\dagger^+. For the empty word, the two endmarker cells are adjacent, and the identity τ(ε)\tau(\varepsilon) gives precisely their product. A stay cycle causes no difficulty: only its finite traversals are represented in Ec∗E_c^*.

Remark 5.2 (Other standard conventions). The exponential conclusion also survives the usual changes of starting position or acceptance convention, with possible changes to the additive state offsets. To use our representation for a machine whose convention requires a positive transition into an accepting state, add a fresh nonaccepting initial copy with the same outgoing transitions, keeping all original states and transition destinations. This prevents the initial configuration alone from accepting, while preserving every acceptance after a transition. Starting on the first input cell can be simulated from the left endmarker by one additional initial state. If success must occur at a designated marker or on a specified exit, enable the added success routine only at that local accepting event. These versions of the path representation use m=s+O(1)m=s+O(1) labels per sign, and the source automaton still uses h+O(1)h+O(1) states. The exact offsets in Theorem 1.1 refer to the convention fixed in the introduction.

Proof of Theorem 1.1. For any n≥4n \ge4, let h=n−2h=n-2, choose a set HH of size hh, and use the nn-state source automaton from Lemma 5.1. If an ss-state 2NFA recognizes its complement, then Proposition 2.3 supplies the order-reversing relation image required by Theorem 2.1. With m=s+1m=s+1, that bound gives

2(s+1)≥2⌊(h−2)/127⌋=2⌊(n−4)/127⌋.2(s+1) \ge2^{\lfloor(h-2)/127\rfloor}=2^{\lfloor(n-4)/127\rfloor}.

Rearranging proves the stated lower bound. Since its right-hand side grows exponentially with nn, no fixed polynomial can bound the complementation cost for all finite alphabets.

The determinization consequence

The lower bound also applies indirectly to deterministic simulation. Here we use one external automata transformation: deterministic two-way automata can be complemented with linear state overhead independent of the alphabet, even when the original computation may fail to halt [2]. The possible nonaccepting loops are the reason that exchanging accepting and rejecting states alone does not give this transformation.

Corollary 5.3. There are absolute constants c>0c > 0 and n0n_0 such that, for every n≥n0n \ge n_0, every 22DFA recognizing the language of the nn-state 22NFA AnA_n in Theorem 1.1 has at least

c2⌊(n−4)/127⌋c2^{\lfloor(n-4)/127 \rfloor}

states. Hence no polynomial state bound independent of the finite alphabet can determinize all 22NFAs.

Proof. We use only the linear-overhead conclusion of [2], allowing constant-factor changes for model conventions. The standard marker model and its normalization are described in the precursor [1]. Stay moves can be replaced by a two-step excursion that stores the destination state and the return direction in a fixed number of copies of the state set. The excursion goes left at the right endmarker and right elsewhere. Even on the empty word, the two distinct endmarker cells provide the needed adjacent cell. Auxiliary states are nonaccepting, and the destination state is entered only on returning to the original cell. A reached accepting configuration, including the initial configuration, can instead start a fixed marker sweep to a designated accepting halt. Missing transitions can halt and reject. These changes require O(s+1)O(s + 1) states for an ss-state 22DFA and preserve finite acceptance. The cited transformation supplies the substantive additional step of handling infinite nonaccepting computations.

Thus an ss-state deterministic recognizer for L(An)L(A_n) has a deterministic complement, also a 22NFA, with at most C(s+1)C(s + 1) states for an absolute constant CC. Theorem 1.1 gives

C(s+1)≥122⌊(n−4)/127⌋−1.C(s + 1) \ge\frac{1}{2}2^{\lfloor(n-4)/127 \rfloor} - 1.

For all sufficiently large nn this implies the asserted bound with an absolute c>0c > 0. Since the same alphabets are finite for every nn, it also excludes every polynomial bound uniform over alphabets.

For comparison, the companion theorem [6] gives

4(s+2)2≥2⌊(h−2)/31⌋4(s + 2)^2 \ge2^{\lfloor(h-2)/31 \rfloor}

for an ss-state deterministic recognizer of the same language LHL_H. That theorem also states the improvement from s+2s + 2 to s+1s + 1 when the initial configuration counts as acceptance, as it does here. Its exponent therefore grows as h/62h/62, compared with h/127h/127 in Corollary 5.3. The source constructions use h+3h + 3 and h+2h + 2 states, respectively: the companion includes a rejecting sink, which the partial source automaton above does not need. Its matching-diagram proof gives a stronger deterministic bound independently of the complementation theorem proved here.

References

  1. [1]Viliam Geffert, Carlo Mereghetti, and Giovanni Pighizzini. Complementing two-way finite automata. In Clelia De Felice and Antonio Restivo, editors, Developments in Language Theory, volume 3572 of Lecture Notes in Computer Science, pages 260–271. Springer, 2005. doi:10.1007/11505877_23.DOI
  2. [2]Viliam Geffert, Carlo Mereghetti, and Giovanni Pighizzini. Complementing two-way finite automata. Information and Computation, 205(8):1173–1187, 2007. doi:10.1016/j.ic.2007.01.008.DOI
  3. [4]Christos Kapoutsis. Small sweeping 2NFAs are not closed under complement. In Automata, Languages and Programming (ICALP 2006), volume 4051 of Lecture Notes in Computer Science, pages 144–156. Springer, 2006. doi:10.1007/11786986_14.DOI
  4. [5]Paul Martin and Volodymyr Mazorchuk. Partitioned binary relations. Mathematica Scandinavica, 113(1):30–52, 2013. doi:10.7146/math.scand.a-15480.DOI
  5. [6]OpenAI. An exponential two-way deterministic state lower bound for one-way liveness. OpenAI Math Release preprint OAI:An-exponential-two-way-deterministic-state-lower-bound-for-one-way-liveness-September-25-2026, 2026. Theorem 1.1 and Section 3.
  6. [7]William J. Sakoda and Michael Sipser. Nondeterminism and the size of two way finite automata. In Proceedings of the Tenth Annual ACM Symposium on Theory of Computing, STOC ’78, pages 275–286. Association for Computing Machinery, 1978. doi:10.1145/800133.804357.DOI

Paper details

Contents