Automata and formal languages

Bounded-period archives and recognition

Periods up to a fixed bound admit an exact finite algebra. The algebra needs linear information in the bound under arbitrary contexts, and that demand survives several natural transducer typings. For one-sided recognition, Fine–Wilf yields a different normal form after an exact finite delay.

Period convention

A positive integer pp is a period of w=w0⋯wn−1w=w_0\cdots w_{n-1}when

wi=wi+p(0≤i<n−p). w_i=w_{i+p}\qquad(0\le i<n-p).

Periods longer than the word are therefore vacuous. For a fixed capBB, writePB(w)={p≤B:p is a period of w}P_B(w)=\{p\le B:p\text{ is a period of }w\}andSmallPer⁡B={w:PB(w)≠∅}\operatorname{SmallPer}_B=\{w:P_B(w)\ne\varnothing\}.

FPRD-T82 · canonical quotient

The weakest monoid quotient for every bounded period

For words u,v∈Γ∗u,v\in\Gamma^*, define

u≡Bv  ⟺  ∀x,y∈Γ∗ ∀p≤B: xuy∈Per⁡p  ⟺  xvy∈Per⁡p. u\equiv_Bv \iff \forall x,y\in\Gamma^*\ \forall p\le B:\ xuy\in\operatorname{Per}_p \iff xvy\in\operatorname{Per}_p.

Each fixed-period language is regular, so this joint syntactic congruence has finite index. The quotientMB=Γ∗/≡BM_B=\Gamma^*/{\equiv_B}recognizes every period predicate throughBB. It is weakest in the exact algebraic sense: every monoid morphism recognizing all those languages factors onto MBM_B.

A direct compositional cover stores

σB(w)=(min⁡(∣w∣,B),pre⁡B(w),suf⁡B(w),PB(w)). \sigma_B(w)= \bigl(\min(|w|,B),\operatorname{pre}_B(w), \operatorname{suf}_B(w),P_B(w)\bigr).

The prefix and suffix resolve every distance-pp comparison crossing a concatenation boundary. The period vector alone is not compositional: at B=2B=2, the words 01 and 10 have the same vector, but appending 0 separates them.

If g=∣Γ∣≥2g=|\Gamma|\ge2, then

gB≤∣MB∣≤(B+1)(∑i=0Bgi)22B. g^B\le |M_B| \le (B+1)\left(\sum_{i=0}^B g^i\right)^2 2^B.

Distinct length-B words are separated by a length-B right context, so exact generic storage requiresΘ(B)\Theta(B) bits for every fixed non-unary alphabet. On a unary alphabet, every word has every positive period and the quotient is trivial.

FPRD-T83 · rooted-type saturation

One rooted crossing type realizes every generic context

Consider a deterministic three-sweep transducer: the first and third sweeps are silent, while the middle right-to-left sweep copies the input. Every nonempty internal interval has the same idempotent three-loop effect and the same rooted reverse component.

An interval with spatial blockzz has trace outputerase⁡□(zrev)\operatorname{erase}_{\square}(z^{\rm rev}), so every output word occurs in this one type. Three adjacent spatial blocks

yrev,urev,xrev y^{\rm rev},\quad u^{\rm rev},\quad x^{\rm rev}

produce the trace xuyxuy. Therefore legal same-type equivalence coincides with the generic two-sided congruence:

u≡BE,Cv  ⟺  u≡Bv. u\equiv_B^{E,C}v\iff u\equiv_Bv.

Fixing the crossing sequences, flow, direction, component, and rooted side need not remove a single class ofMBM_B.

The long productive intervals in this witness are not output-minimal anchors. The theorem concerns bare rooted typing.

FPRD-T84 · marked-anchor lower bound

Two fixed output-minimal anchors still leave a linear-bit archive

In the same reverse-copy machine overΔ={0,1,#}\Delta=\{0,1,\#\}, choose two named one-cell marker loops. They have the same rooted type, each emits #\#, and each is genuinely output-minimal. If the middle spatial word ismrevm^{\rm rev}, the complete output amid the anchors is

W(m)=##m#. W(m)=\#\#m\#.

Right insertion acts by Rm⋅k=RmkR_m\cdot k=R_{mk}. For K≥4K\ge4 andz∈{0,1}K−3z\in\{0,1\}^{K-3}, letWz=##z#W_z=\#\#z\#. The marker skeleton of WzWzW_zW_z has period K and, by Fine–Wilf, no smaller period. Consequently

SmallPer⁡K(Wz′Wz)  ⟺  z′=z. \operatorname{SmallPer}_K(W_{z'}W_z) \iff z'=z.

A legal insertion derived from z therefore distinguishesRzR_z from all other payloads. The marked quotient has at least2K−32^{K-3} classes and at most∣MK∣|M_K|, hence exactlyΘ(K)\Theta(K) bits of information.

FPRD-T85 · promise state complexity

Deterministic storage and existential mismatch certificates separate

Let K=n+3K=n+3,Wx=##x#W_x=\#\#x\#, and promise that the input lies in

Dn={WxWy:x,y∈{0,1}n}. D_n=\{W_xW_y:x,y\in\{0,1\}^n\}.

On this promise, having a period through K is exactly payload equality. Equality has a2n2^n-element NFA fooling set, and either deterministic polarity must distinguish all first payloads. Thus equality is exponentially nondeterministic and both equality and inequality are exponentially deterministic.

Inequality is different: an NFA guesses a bit of the first payload, counts the next n−1n-1 data symbols, and accepts when the corresponding bit of the second payload differs. This uses 2n+22n+2states. Conversely, the reachable state sets after the prefixesWxW_x form an antichain, so

2n≤(∣Q∣⌊∣Q∣/2⌋). 2^n\le\binom{|Q|}{\lfloor|Q|/2\rfloor}.

Hence promise-NFA complexity for inequality isΘ(n)\Theta(n). The same comparison matrix supports an exponential deterministic archive but only a linear existential mismatch certificate.

The NFA is promise-relative and may accept malformed inputs. This is not a linear-state exact recognizer for the standalone framed language.

FPRD-T86 · exact finite-delay normal form

After (2B-2) letters, all surviving periods move together

Suppose B≥2B\ge2,∣w∣≥2B−2|w|\ge2B-2, andPB(w)≠∅P_B(w)\ne\varnothing. Ifd=min⁡PB(w)d=\min P_B(w), Fine–Wilf gives

PB(w)={d,2d,…,⌊B/d⌋d}. P_B(w)=\{d,2d,\ldots,\lfloor B/d\rfloor d\}.

Every surviving period asks for the same next letter,a∗(w)=w∣w∣−da_*(w)=w_{|w|-d}. Appending that letter preserves the entire profile; any other letter destroys it, and an absent period never returns under further extension.

A complete DFA therefore stores a short word verbatim until the horizon, then either enters a sink or retains the least period d and a rotating length-d delay window. The same transition graph recognizes SmallPer⁡B\operatorname{SmallPer}_Band its complement by swapping final states, with at most

1+∑i=02B−3∣Γ∣i+∑d=1B∣Γ∣d 1+\sum_{i=0}^{2B-3}|\Gamma|^i +\sum_{d=1}^{B}|\Gamma|^d

states. Over a non-unary alphabet the delay is exact. ForB≥3B\ge3, the word0B−21 0B−20^{B-2}1\,0^{B-2} one step before the horizon has the nonprincipal profile{B−1,B}\{B-1,B\}, and its two next letters select different surviving branches. The caseB=2B=2 has a separate one-step transition witness; B=1B=1 is the ordinary constant-word language and is not covered by the theorem.

FPRD-T87 · exact-language state complexity

A fixed ternary alphabet gives a linear NFA lower bound for the complement

Let B≥2B\ge2 and set

n=⌊log⁡2B+22⌋,m=2n,L=m−1,t=B−2m+3. n=\left\lfloor\log_2\frac{B+2}{2}\right\rfloor, \qquad m=2^n, \qquad L=m-1, \qquad t=B-2m+3.

Over the single fixed alphabetΣ3={0,1,2}\Sigma_3=\{0,1,2\}, a recursive codeCn:{0,1}n→Σ3LC_n:\{0,1\}^n\to\Sigma_3^Lproduces

Ux=Cn(x)2t,Vy=Cn(τny),∣UxVy∣=B+1, U_x=C_n(x)2^t, \qquad V_y=C_n(\tau_ny), \qquad |U_xV_y|=B+1,

where τn\tau_n flips the last bit. The construction realizes the comparison matrix

UxVy∈SmallPer⁡B  ⟺  x≠y. U_xV_y\in\operatorname{SmallPer}_B \iff x\ne y.

Why the selector works

If x and y first differ at coordinate i, the recursive prefix and twisted-suffix towers agree for2i−12^i-1 symbols. This gives an off-diagonal border and therefore a period through B. On the diagonal, sibling codewords are mutually cross-bifix-free and have disjoint proper-period sets. Splitting possible borders into those contained in a codeword, those entering the separator, and those crossing the full separator excludes every nonempty proper border.

The length B+1B+1 is important: every candidate period p≤Bp\le Bis nonvacuous, so the argument uses the ordinary period convention without changing the language.

The polarity determines the NFA conclusion

For Bad⁡B=Σ3∗∖SmallPer⁡B\operatorname{Bad}_B=\Sigma_3^*\setminus \operatorname{SmallPer}_B, the matrix has identity polarity. Its m diagonal pairs form a standard NFA fooling set, so

nsc⁡(Bad⁡B)≥m=2⌊log⁡2((B+2)/2)⌋>B+24. \operatorname{nsc}(\operatorname{Bad}_B) \ge m =2^{\lfloor\log_2((B+2)/2)\rfloor} >\frac{B+2}{4}.

Every DFA for either polarity also needs at least m states. But the matrix for SmallPer⁡B\operatorname{SmallPer}_Bhas the complementary J−IJ-Ipolarity. If an NFA with state set Q recognizes that language, the reachable sets at this cut form an antichain, yielding only

m≤(∣Q∣⌊∣Q∣/2⌋). m\le\binom{|Q|}{\lfloor |Q|/2\rfloor}.

Thus the same selector gives a linear-in-B NFA lower bound for the complement, deterministic lower bounds for both languages, and a weaker Sperner bound for the original language. It does not give an m-state NFA lower bound forSmallPer⁡B\operatorname{SmallPer}_B.

This is an exact theorem about already exposed ternary words. It neither constructs legal transducer runs or inversions nor transfers the lower bound to the originating input language or device-size problem.

What the results do not imply

These results distinguish three tasks. The monoidMBM_B supports arbitrary two-sided composition and preserves every individual bounded-period predicate. The finite-delay DFA recognizes only Boolean period existence under one-sided input. The transducer constructions show how much information remains after a particular output word or marked record has already been exposed.

None of them locates a successful run, chooses legal anchors, removes the run/inversion quantifiers, or constructs an equivalent one-way transducer. The remaining problem is the projection from input and run structure to the exposed record, not further compression of that record in isolation.

Sources