Summary
For a cycle letter and single-state merge letters that move by either of two opposite steps, I compute the shortest word taking any specified subset to any feasible cardinality. With one merge letter in each direction, I obtain a sharp minimum-rank threshold for every step. For coprime steps the maximum reset length is at most $\lfloor(n+1)^2/4\rfloor-1$, with equality for every odd $n$.
Approach
The frozen Lean statement quantifies over every deterministic transition map on a finite state set. I tried to use the motion of the endpoints of each fiber of a shortest reset word to account for the entire word at once. The obstacle to using this method for unrestricted letters is below. In the class studied here, a rotating coordinate system makes the endpoint trajectories comparable even when individual trajectories can reverse direction. This extends the one-direction calculation in the previous scheduled attempt.
Claims
- [proved] On $\mathbb Z/n\mathbb Z$, let $a(x)=x+1$. Fix $1\le d<n$. A signed merge letter at $p\in P_\sigma$ moves $p$ to $p+\sigma d$, $\sigma\in\{+1,-1\}$, and fixes the other states. At least one of $P_+,P_-$ is nonempty. Given a nonempty subset $S$, write $g=\gcd(n,d)$, $m=n/g$, and let $c$ be the number of $+d$ orbits meeting $S$. Partition the occupied states in each orbit into consecutive cyclic blocks. For a block $B$, let $D_B$ be the number of $+d$ steps from its first state to its last state along the block. Let $R_B$ be the least number of rotations sufficient to move the two endpoints monotonically toward a common point in their arc, using the merge letters as defined below. The exact shortest length to rank $r$ is $$
\min_{\text{partitions into }r\text{ blocks}}
\left(\sum_B D_B+\max_B R_B\right).
$$ It is finite for $c\le r\le |S|$ and infinite otherwise. The formula gives a polynomial-time algorithm and constructs a shortest word.
- [proved] Let $P_+=\{p\}$ and $P_-=\{q\}$. If $g=1$, $n\ge3$ and $d<n/2$, put $e=n-d$, $\delta=(q-p+d)\bmod n$, and set $U=(d-1)e$, $V=(e-2)d$, $T=d(e-1)$. The reset threshold is $$
n-1+\min\bigl\{T,\ \max(U,V+\delta),\ \max(U+((-\delta)\bmod n),V)\bigr\}.
$$ Its maximum over $p,q$ is $n-1+T$, attained exactly when $d\le\delta\le 2d$. Exchanging the two directions replaces $d$ by $n-d$. The uniform bound $\lfloor(n+1)^2/4\rfloor-1$ remains valid for larger alphabets containing a cycle and this pair of letters with a coprime step.
- [proved] For arbitrary $g$ in the three-letter family of Claim 2 and $1\le d\le n/2$, the minimum rank is $g$. The largest shortest length to that rank over all $p,q$ is $$
n-1+\frac{d}{g}(n-d-g).
$$ A pair of merge letters with a common source $p=q$ attains it.
Details
1. Exact compression by inward moves
Label the states of each $+d$ orbit by $j$ modulo $m$, so that $j$ represents $x+jd\bmod n$ for an orbit representative $x$. Subtract the number $t$ of rotations read so far from every state before interpreting this label. In these coordinates a rotation leaves every label unchanged. A merge letter either leaves the entire orbit unchanged or moves one residue $j$ to $j+1$ or $j-1$. Its lift to $\mathbb Z$ changes all integers in that residue by the same unit step. This lift is weakly increasing and commutes with translation by $m$. Hence the lift $F$ of any word has these properties.
For a block with first and last lifted labels $\ell\le h<\ell+m$, put $D_B=h-\ell$. For each $z\in[\ell,h]\cap\mathbb Z$, prescribe the increasing path from $\ell$ to $z$ and the decreasing path from $h$ to $z$. To schedule a move out of a label $j$ in direction $\sigma$, given the previously scheduled rotation count $t$, use the first $t'\ge t$ for which $x+jd+t'\bmod n$ lies in $P_\sigma$. Start each path at count zero. An empty path finishes at zero, and any path requiring an absent direction has infinite completion time. The smallest maximum of the two path completion times over choices of $z$ is $R_B$.
For the lower bound, take a word whose image has cardinality $r$. In each occupied orbit, along the periodic list of occupied labels, the total increase of $F$ in one period is $m$. Cut immediately after a strict increase. The range of $F$ on the resulting period of occupied labels is strictly less than $m$. The equal-lift runs then give precisely the cyclic blocks of equal images modulo $m$. Distinct orbits still have disjoint relative images, so the total number of blocks is $r$.
Within one block, the endpoints have the same final lifted value $v$. Clamp $v$ to $[\ell,h]$ to obtain a point $z$. The trajectory from $\ell$ must make the upward first crossings of the edges from $\ell$ to $z$ in order. The trajectory from $h$ must make the downward first crossings from $h$ to $z$ in order. Each crossing is allowed by exactly the same phase condition as the corresponding prescribed move. Inductively, searching from an earlier rotation count can only give an earlier or equal first admissible count. Thus the greedy path schedules lower-bound the counts of the actual crossings, even if the actual trajectories reverse. The word uses at least $R_B$ rotations. The crossings account for $D_B$ letters, since the two directions use distinct letters. Crossings charged to different blocks also require distinct letters. Their trajectories cannot ever coincide, because they have different final states, and a merge letter moves at most one currently occupied state.
Conversely, fix the cuts and a minimizing $z$ for each block. Sort all prescribed moves by rotation count, retaining the internal order of each path at ties, and read just enough rotations between successive moves. The arcs of different blocks are disjoint in the relative coordinates. Within a block, the two moving endpoints stay on opposite sides of $z$ until reaching it, and neither path moves out of $z$. Each scheduled letter therefore advances the designated endpoint and collects any waiting trajectories at the next point. All trajectories in a block meet at $z$, and different blocks have distinct final states. This realizes the cost in the formula. A nonempty direction can compress any arc to its endpoint in that direction. Choosing at least one cut per occupied orbit realizes every rank from $c$ to $|S|$, while distinct orbits can never merge. When seeking rank at most $r$ in this range, the same optimum applies because a letter decreases rank by at most one.
For the algorithm, precompute directional completion times from every start for every path of at most $m-1$ steps by the displayed recurrence. Comparing the possible meeting points gives all $O(n^2)$ block costs in $O(n^3)$ arithmetic operations, using a table of the waiting time for each current state and direction. Try zero and every finite block completion time as a common rotation budget. At each budget and opening cut, unwrap the occupied states in an orbit into a list. Use a directed edge from index $i$ to $j>i$ for an admissible block from $i$ through $j-1$, with weight $D_B$. Computing the shortest path in the resulting acyclic graph for each number of edges gives the cheapest span sum at every block count. Minimize over the opening cuts and combine orbit tables by adding the costs at each allocation of the total count $r$. Adding the budget and minimizing gives the formula, since every optimum has a budget equal to a block completion time. There are at most $n$ opening cuts across all orbits and $O(n^2)$ budgets, so $O(n^6)$ arithmetic operations suffice. All finite completion times are at most $(n-1)^2$. The minimizing cuts and meeting points give the word.
2. Exact reset thresholds for coprime opposite steps
With the full state set and $g=1$, there is only one block of span $n-1$. For a cut with first state $u$, its last state is $u-d\bmod n$. Let $k$ be the number of steps taken by the increasing endpoint, so the other endpoint takes $n-1-k$. The first waits are $A=(p-u)\bmod n$ and $B=(A+\delta)\bmod n$. Subsequent waits are $e$ along the increasing path and $d$ along the decreasing path. For $1\le k\le n-2$, the rotation cost is $$
\max\{A+(k-1)e,\ B+(n-2-k)d\}.
$$ At $k=0$ the increasing path has cost zero, and at $k=n-1$ the decreasing path has cost zero. In either case the other term still applies.
For $k\le d-1$, the decreasing path alone costs at least $T$. For $k\ge d+1$, the increasing path alone costs at least $de>T$. For $k=d$, the costs after the initial waits are $U$ and $V$. As $u$ varies, the pair $(A,B)$ advances together except for the modular wrap of $B$. The minimum at this split is therefore attained at $A=0$ or $A=(-\delta)\bmod n$.
It remains to see that a rotation budget of $T$ always suffices. If $\delta\le d$, take $k=d$ and $A=0$. Then $U\le T$ and $V+\delta\le T$. If $\delta>d$ and $d\ge2$, take $k=d-1$ and $B=0$, so $A=n-\delta\le e-1$. The decreasing path costs $T$ and the increasing path costs at most $(e-1)+(d-2)e=(d-1)e-1<T$. If $d=1$, the decreasing path alone with $B=0$ costs $T$. This proves the pointwise formula.
A budget of $T-1$ forces $k=d$. At that split it permits $0\le A\le e-d-1$ and $0\le B\le d-1$. The feasible residues of $\delta=B-A$ are exactly the integer interval $[-(e-d-1),d-1]$ reduced modulo $n$. Its complement consists of the residues $d,d+1,\ldots,2d$. The additional $n-1$ letters counted in Claim 1 are the endpoint moves. Maximizing $d(n-1-d)$ over integer $d$ gives the uniform upper bound, and for odd $n$ the step $d=(n-1)/2$ is coprime to $n$ and attains it with $p=q$. For $n=2$ a merge letter resets in one step. Extra letters can only decrease the shortest reset length.
3. Minimum rank with noncoprime steps
Write $m=n/g$ and $h=d/g$. Consider the relative orbit of residue $s$ modulo $g$, using coordinates $s+gj$. Its increasing moves can occur only at rotation counts $\alpha_s+g\tau$, where $\alpha_s=(p-s)\bmod g$ and $\tau\ge0$. In the orbit coordinate $j$, the phase condition for such a move is $$
j+\tau\equiv (p-s-\alpha_s)/g\pmod m.
$$ The decreasing condition has the same form with $q$ and $\beta_s=(q-s)\bmod g$. Thus each orbit has the same path-scheduling problem as a coprime pair of opposite steps $\pm h$ on $m$ points. Each rotation count in that problem lifts to a count at most $g-1$ above $g$ times the original count. This lifting preserves order along each path, and Claim 1 permits the paths to be interleaved by their lifted counts.
By Claim 2, there is a schedule in every orbit with maximum original count at most $h(m-h-1)$. For $m=2$, this count is zero because a single merge suffices. Consequently all orbits can be merged to one point each after at most $g h(m-h-1)+g-1$ rotations and exactly $n-g$ merge letters. For equality, choose $p=q$. Then the two offsets agree in every orbit and the two sources in its reduced problem also agree. The exact original rotation count in every orbit is $h(m-h-1)$, by $\delta=h$ in Claim 2 or by the $m=2$ case. The optimal lifted count in orbit $s$ is therefore $g h(m-h-1)+\alpha_s$. As $s$ varies, the largest $\alpha_s$ is $g-1$. The rank cannot drop below $g$, and adding $n-g$ yields the asserted shortest length for this choice of sources.
Verification
The claims above are mathematical proofs. The integer-only checker independently searches the subset automaton by breadth-first search. It checks all nonempty starting subsets and ranks for every signed alphabet for $2\le n\le5$, and for every pair of singleton sources and step for $n=6,7$. The checker compared 519,684 subset-rank distances across 5,472 automata, including unreachable ranks, and applied 510,945 constructed witnesses. A separate full-state sweep through $n=13$ checked 385 minimum-rank distances, including 264 checks of the closed-form coprime reset threshold and its equality criterion.
Run from the repository root.
PYTHONDONTWRITEBYTECODE=1 python3 attempts/cerny-conjecture/code/verify_bidirectional_rank.py
This partial result has not undergone independent review or Lean formalization.
I checked Eppstein [1, Thm. 1] for exact subset synchronization into one state, Dubuc [2] for the general circular reset bound, and Rystsov [3, Thm. 3] for the quadratic bound with simple idempotents and a regular permutation group. Kari, Ryzhikov, and Varonka [4, Secs. 3.2 and 4.2] and Rystsov [5, Thm. 4.11 and Eq. (38)] address general minimum-rank bounds and constructions. I searched for “synchronizing automaton opposite jumps two simple idempotents,” “circular automata two simple idempotents ternary reset threshold,” and “orientable automata shortest word arbitrary rank.” The sources checked give the broader rank-one results and general rank bounds. I found no formula there for arbitrary subset ranks with opposite steps or for the exact extremum as a function of their size. The precise improvement over the known circular reset bound is for this pair-of-letters class. Eppstein's cyclic interval algorithm already finds optimal rank-one words in a broader orientable class. I also checked the December 2026 preprint [6, Sec. 8] for the scope of recent general progress.
Dead ends
For the full conjecture I tried to account for a shortest word via consecutive blocks of its kernel at each rank, looking for a common cyclic order in which successive rank reductions could be charged to boundary motion. Already in a synchronizing four-state automaton with a cycle letter $a(x)=x+1$ and a letter $b$ with images $(0,2,0,2)$, the fibers of $b$ interleave in the cyclic order preserved by $a$, although $b^2$ resets. Permitting a new order after each letter loses the fixed phase condition for the endpoint crossings. Even preserving cyclic order can allow simultaneous moves in disjoint arcs, which invalidates the separate letter costs, as in the previous scheduled attempt. The unrestricted quadratic bound in the frozen Lean statement remains open.
References
- [1] D. Eppstein, “Reset sequences for monotonic automata,” SIAM J. Comput. 19(3), 500–510, 1990. Author copy.
- [2] L. Dubuc, “Sur les automates circulaires et la conjecture de Černý,” RAIRO Inform. Théor. Appl. 32(1–3), 21–34, 1998. Journal copy.
- [3] I. K. Rystsov, “Cerny's conjecture for automata with simple idempotents,” Cybernet. Syst. Anal. 58, 1–7, 2022. Author-posted journal text.
- [4] J. Kari, A. Ryzhikov, and A. Varonka, “Words of minimum rank in deterministic finite automata,” DLT, LNCS 11647, 74–87, 2019. Institutional reprint.
- [5] I. Rystsov, “Černý type automata and rank conjecture,” 2025 preprint. arXiv:2501.19166.
- [6] E. Rodaro and R. Venturi, “On the structure of possible minimal counterexamples to the Černý conjecture,” December 2026 preprint. arXiv:2612.02285v1.
- Prior attempts: one-step compression, subset resets, and one-direction rank formula.
Source: attempts/cerny-conjecture/2026-12-03-codex-scheduled.md