Manuscript Offprint
arXiv:2610.39833Exact Avoid-or-Compress Extrema for Dense Reachable Images: Defects Four and Five
Abstract
Let be a reachable image of a strongly connected synchronizing automaton and . We determine the maximum shortest avoid-or-compress length over binary and arbitrary finite alphabets for and . The exact values are and , respectively. Uniform binary constructions attain both bounds. For the upper bounds, short-pair graphs and actual-image constraints reduce all parameters to finite necessary domains. Exhaustive checks exclude the domains, apart from a single relaxation eliminated by a multipartite overlap lemma. The largest calculation covers 3,206,988 domains.
1 Problem and results
All words act on the right and length counts original alphabet letters. A complete deterministic automaton is a triple , where and are finite and is total. It is strongly connected if every state reaches every other state, and synchronizing if for some word . Let , let be an actual reachable image with , and let , . The admissible parameters are and . Put
Thus avoidance means omitting at least one protected state, and . Let maximize over strongly connected synchronizing automata with arbitrary finite alphabets; restricts to binary alphabets. Write and . The avoid-or-compress lemma [5, 6] and the Frankl–Pin compression bound [2, 4] give
A proof of the bound appears in Appendix A. Open Problem 4 of the survey [6] asks for tight bounds depending on the set cardinalities. The two-state image case is already illustrated there, and related fixed-state avoiding-or-compressing sharpness is discussed in [1]. Our main contribution concerns entire dense-image parameter families.
Theorem 1 (Dense-image extrema; computer-assisted upper bounds). For all admissible parameters,
and
In every strongly connected synchronizing automaton, every -subset has when , and every -subset has when . These pure-compression assertions do not require reachability.
The lower bounds are established by explicit binary automata. For the upper bounds, Sections 3 and 4 present the short-pair reductions, exhaustive finite-domain coverage, and computational basis. The mathematical supplement is PROOF.md [8]. The universal bound handles the parameters below the pure-compression thresholds. The codimension-three bound , used in both upper proofs, has a paper proof in the supplement. The same two extrema hold if is allowed to be an arbitrary -subset: neither the universal bound nor the upper proofs requires reachability, while all matching lower witnesses are reachable.
Proposition 2 (Binary sharpness below the two-block threshold). Let and . For every admissible there is a binary strongly connected synchronizing automaton with a reachable -image and an -set such that .
Proof. Appendix A supplies all three required constructions, including their reaching and reset words. The first cardinality face covers ; the second covers . For , take and in Proposition 11. Then , , , , and .
2.1 Uniform construction and proof
Theorem 3. Put and . There is a binary strongly connected synchronizing automaton with reachable attaining . Consequently whenever . For larger the construction gives only a lower bound.
Proof. Write and . Take , , and one further state . Letter interchanges the last two -states, fixes the others, and cycles , . Letter sends to , to for , increments indices in , below , sends both to , and fixes . Put , and .
No compression before . For define a symmetric potential on unordered pairs, zero on singleton pairs, by the following table. Indices in run from 1 to , and indices in from 0 to .
(a) Letter

(b) Letter

Blue: initially occupied . Boxed : protected. Double circle: merger target.
Figure 1: The two original-letter actions for , , (). Both incoming arrows at are shown: the only nontrivial kernel of is . Letter is a permutation. The words and attain compression in 11 letters and avoidance of in 13 letters, respectively; optimality follows from the all-word arguments below.
| pair | potential |
|---|---|
| (distinct) | |
Substitution in the two letter actions gives
Here are the boundary checks. The last-two-P interchange preserves ; a downward -step decreases it by at most one. For pairs the -boundary decreases the second term from to . The -boundary with has source and target , since ; with its target is at least . For , crossing under gives with potential when ; crossing under gives of at least that potential. The kernel pair has potential one. Crossing in a pair under gives of potential . For , the -boundary is , with values ; for , every -image has potential . All remaining cases either retain potential, decrement an index by one, or enter a type whose potential is at least the source minus one. Clipping at cannot increase a positive difference. Thus the inequalities hold for every index, not just tested sizes. Every distinct pair in has potential . Telescoping along a merging word proves its length is at least ; every compression merges an initial pair, giving the claimed lower bound.
No avoidance before . Use singleton -cells and color cells, giving color and color 1.
Let swap the last two P-cells and cycle the colors, and let cycle . For the incidence matrix both letters satisfy
Here is the original-letter transition matrix, the -column, and the color row; the displayed discrepancy is a rank-one outer product. Since has one state in every cell, induction along each original word gives , where counts trajectories at immediately before the corresponding suffix . A trajectory from needs at least steps to reach ; any entrance from starts at after at least one step and then needs at least more. Thus the first nonzero correction has position at least . In the prescribed cell graph, color 2 needs letters to enter at and at least more to reach . The only interchange is between adjacent last -points and cannot shorten this descending path. A negative correction therefore reaches only at length at least . Before then every protected coordinate has multiplicity at least one.
Attainment. After , the missing P-point is ; after a further a it is . This is the unique -preimage of . Hence omits that protected point at length q. The portion after is . After it contains and , so compresses at length L. The existence of in the preceding set uses . Combining both upper witnesses with the lower bounds gives .
Structural requirements. Put , and . Letter cycles in the order , and . The -cycle connects all other states to , proving strong connectivity. On , fixes , cycles , and sends to . Thus fixes and sends to . Since , the original-letter word reaches . The word fixes and transposes the last two -points, adjacent on the -cycle. These words generate every permutation of , with inverses realized by positive powers. Moreover , , and . Permutations route any pair in a current image into the kernel of ; repeated compression synchronizes . Prepending synchronizes . For , the construction and the universal bound determine both maxima.
3 Short-pair graphs and the upper bounds
Let join distinct states if some original-letter word of length at most merges them. Write for its minimum vertex-cover size. A set survives compression through depth exactly when it is independent in . Thus
This is the short-pair viewpoint on subset compression; see also the computational compression framework in [3]. Let be the nonisolated core and the isolated-state reservoir. If is an independent -set, its complement is a vertex cover of size . As isolated vertices cover no edges, is also a vertex cover. Consequently
In particular, when , every such contains all of :
Thus, independently of how large is, all omitted states lie in the nonisolated core. Figure 2 depicts this finite named-state reduction, including the exceptional isolates in the lower-cover branches.
Early core
nonisolated states
Exceptional isolates
named
Common reservoir
in every later row
: finite named support
may grow with
| 0 | 1 | 1 | 1 | 1 | |||
| 1 | 0 | 1 | 1 | 1 | |||
| 1 | 1 | 0 | 1 | 1 | |||
Schematic row-incidence columns; a named state has the same identity in every row.
Figure 2: The finite reduction retains more than the early graph. For the complete maximum-independent-set family of , set and . The displayed pattern illustrates the at-most-one exceptional omission per row when ; it is not a classified domain. The support reductions give for and for in their lower-cover branches. Identical membership columns do not merge automaton states: finite letter signatures must retain reservoir cardinality constraints and consistent same-letter identities, including in square tests.
If , equation (3) allows at most one omitted isolated state in each row. The lower-cover branches retain these exceptional omissions by name, alongside the nonisolated early core; only the common, never-omitted isolated states form the unbounded reservoir. The short-image and row-rank reductions in PROOF.md bound this entire named support independently of .
Lemma 4 (Safety and union of actual short images). Suppose , , and . Every Sw with has size and is independent in . In a strongly connected automaton their union has at least states.
Proof. Compression in the prefix , or a merging suffix of length at most , would compress before length . Let . If is proper, strong connectivity gives an edge from to its complement, whence . Starting at proves the union bound.
For an early layer and a later layer , the reductions retain the complete later maximum-independent-set family . Every nonisolated early-core state and every early isolated state omitted by some row is named consistently across all rows. The other isolated states lie in the common reservoir. Finite letter signatures record their possible entrances and exits. The structural support bounds and row-rank restrictions in the supplement then reduce arbitrary to finitely many named domains.
Every original letter projects to an admissible signature. The finite domains enforce the one-step pair-distance inequalities, the existence of attaining letters, compatible row exits, and necessary strong connectivity. Where , the same original letter must also satisfy the safe-row condition for its square . These constraints hold for every automaton satisfying the proposed long-compression hypothesis, so excluding all compatible finite domains proves the corresponding upper bound.
The upper-bound exclusions use the short-pair cover number to split the finite search. Table 1 summarizes the complete branch coverage.
| Hypothesis | Branch | Finite scope | Exclusion |
|---|---|---|---|
| 91 cores | finite checks | ||
| 10,142 named domains | finite checks | ||
| 2,294 cores | finite checks | ||
| = | finite checks plus Lemma 5 for the lone historical relaxation |
Table 1: Coverage for , with for and for . The last row separates eleven-point early support from early support five to ten; the latter count is after 38,398 static exclusions. Each row is a necessary-domain contradiction, not an enumeration of all automata. The resulting bounds are and , respectively.
3.1 Defect four: excluding twelve steps
Assume , , and . The known codimension-two bound and codimension-three bound imply and , whereas (2) gives . Here denotes the maximum compression distance over all -sets in the same automaton. There are exactly two branches.
-
. The actual images of depth at most four are maximum independent sets of and cover by Lemma 4. The seven-layer reduction bounds the nonisolated core size by , its maximum degree by four, and its edge count by , with maximum-family row rank at least five. The complete classification has 91 isomorphism classes. The complete letter and distance checks leave 152 joint distance vectors, all excluded by the necessary exit from a proper core.
-
. Then . The named-state reduction gives 117 early graph classes with and at most ten named states in total. The complete later family has three to seven rows, row rank at least three, and union omitting at most two states. The closure-compatible families, modulo core automorphisms and consistent isolated-state renaming, give exactly 10,142 necessary domains. Every domain is excluded by the common distance, quotient connectivity, and, where needed, same-letter square conditions.
The proper-core conditions apply because exceeds the named support. The six disjoint computational ranges contain domains, with no survivors. Both complete letter-generation orders and both common-distance implementations were compared in these ranges. The two branches prove ; the full implication chain is in the codimension-four theorem. For , suffices. For all , matching binary witnesses come from Proposition 2 at and Theorem 3 at .
3.2 Defect five: excluding fifteen steps
Assume , , and . Since , (2) gives . The nine-layer reduction gives the following exhaustive split.
-
. The actual images of depth at most five are maximum independent sets and cover . The core has , maximum degree at most five, at least nine edges, and maximum-family row rank at least six. Exactly 2,294 classes survive the complete graph classification. The necessary original-letter defect is at most three. Indeed, the rank-descent bound (RD1), with , word length , and defect , gives ; larger defects give still shorter bounds. The row-exit threshold is six and fifth powers remain safe. The joint distance calculation excludes all 2,294 classes. Its 72 disjoint ranges are for , and , so .
-
. Take to be the complete maximum-independent-set family of . Here excludes an independent -set, while is independent, so . The family has row rank at least four and union omitting at most two states. The named support is at most eleven. The complete early-core classification has 4,658 classes: 90 with eleven nonisolated states and 4,568 with five to ten. Each later row is either an early maximum set with one point deleted, or a nonextendable near-maximum set; each early maximum set contributes at most two later rows. The finite closure enumeration retains the identities of all omitted early isolated states.
At eleven-point early support the auxiliary-source lemma forces and exactly two early maximum sets , differing in one state. Exactly one is independent in . That same choice must be preserved into by every original letter; allowing a separate choice for each letter would discard an essential constraint. The completed coverage of the 3,595 domains is
The 19-domain overlap is counted once. The 1,504 single-omission domains and the final 26-domain component were checked, including both common choices in the latter.
For early support five to ten, two cores are first excluded by the reservoir-to-core entrance bound (ENT). The remaining closure enumeration and checks give
These are the counts of the completed historical calculation, whose joint predicate did not yet require a nonedge to enter the proper early pair layer. Under that predicate, exactly 3,206,987 dynamic domains were unsatisfiable. The sole satisfying relaxation was core 447, domain 0: the ninth-layer core is with parts and , and the four later rows on that core are
All rows also contain the common isolated states. The current joint predicate additionally imposes the necessary proper-layer entrance condition and rejects this domain too. Thus a run of the current default is not expected to reproduce the historical survivor. Section 4 distinguishes the two predicates and gives a narrow reproduction path.
The following paper argument excludes this remaining domain.
Lemma 5 (Multipartite overlap exclusion). Let and . Suppose a noncomplete in a synchronizing automaton is a complete multipartite graph on and has isolated remaining states . Assume each admits a family of nonempty subsets whose union is , whose intersection graph is connected, and for which every with is independent in . Then this configuration is impossible.
Proof. A nonedge cannot be merged in one letter. Fix a letter . It is therefore injective on each part and on , and is disjoint from . Since every is -independent, if , then and is contained in some single part. Intersecting have intersecting images, so the connected intersection graph forces all of into one part. Every original nonedge remains a nonedge.
Otherwise meets some part . Independence of forces for every , hence and . Again every original nonedge remains a nonedge. This holds for every letter. But a synchronizing automaton with noncomplete must have some letter sending a nonedge to an edge of : follow the shortest merging word for a pair at distance greater than until the distance first drops from to . Contradiction.
The two pairs of intersecting triples above separately cover the two parts of , and their rows (with common isolates adjoined) are independent in , hence in . Lemma 5 with excludes the only relaxation survivor. Thus the combined complete finite exclusions establish . For , the original bound suffices. Matching binary witnesses are given by Theorem 3 for and Proposition 2: the first and second cardinality faces cover , and the cofinal construction covers .
4 Computational basis and reproducibility
The upper proof consists of the short-pair reductions, the complete finite-domain checks, and the overlap exclusion in Lemma 5. Definitions and generation procedures for the finite domains are in the version-pinned supplement PROOF.md [8]. The implementation revision [7] adds an explicit historical-predicate option without changing the stronger default. The principal implementation sources are:
| Component | Principal source files under scripts/problem4/ |
|---|---|
| Defect four, cover four | compression_fourteen_cores.cpp |
| Defect four, cover three | low_cover_core_domains.cpp; low_cover_actions.cpp |
| Defect five, cover five | rank_core_graph6.cpp; near_max_rank_cores.cpp; near_max_rank_actions.cpp |
| Defect five, cover four | fifteen_low_cover_domains.cpp |
| Joint necessary constraints | pair_sat_control.hpp |
| Binary construction controls | check_two_block.py; two_block_potential.py |
The largest historical finite calculation covered 3,206,988 necessary domains using 24 workers, paired letter-generation orders, and CaDiCaL 3.0.1 with joint SAT constraints (22,923.697 seconds). Of these, 3,206,987 were unsatisfiable under the checked relaxation. The remaining model is eliminated by Lemma 5. The historical joint predicate omitted the proper-layer entrance condition. The current implementation includes it by default; the optional --historical-no-pair-entrance flag, used with --distances and --joint-sat, restores the earlier joint predicate. For core 447, domain 0, both modes produce 1,768 letter signatures: the historical mode gives joint=1, whereas the current default gives joint=0. These are existence indicators for necessary relaxations, not counts of automata. The stronger condition does not invalidate any earlier UNSAT decision, and the historical survivor is independently excluded by Lemma 5.
For the cover-five branch, the graph6 driver is rank_core_graph6.cpp, with parameters 5 6 9 --actions START COUNT THREADS --sat-distances. Its input is the complete union of the nauty/Traces geng 2.9.3 streams for orders 6, ..., 10, each generated with -d1 -D5; no connectedness restriction is imposed. The ranges stated in Section 3.2 cover all 2,294 retained cores.
Exact commands, including the single-domain comparison of the two predicates, are given in docs/RUNNING.md in the source revision linked above. This comparison is not a rerun of the
3,206,988-domain calculation. The historical evidence comprises the reported completed enumeration records, the stated domain-reduction arguments, program implementations and SAT decisions; per-domain UNSAT proof traces were not retained. Independent finite controls compare generation orders, small-domain enumerations, and actual automata.
5 A conjectured extension
The binary lower-bound constructions give for every , and Theorem 1 establishes equality for .
Conjecture 6 (Linear defect formula). For every and all admissible ,
The remaining parameter region for exact avoid-or-compress extrema is and .
A Constructions for the smaller values of q
Theorem 7. The following bounds hold, and every lower bound has a binary witness.
-
for and .
-
for and .
-
For , and , one has
For , one has .
Thus the first two cardinality faces are determined, including their full-image boundary. For every fixed with , the bound is sharp at every , in particular at for .
We recall the upper bound with a proof, to make the argument self-contained. For a word let if , and 0 otherwise. Then . The characteristic vector is a row vector; counts trajectories from , with multiplicity, and its support is .
Lemma 8 (Szykula [5, 6]). If for some word , then .
Proof. Write , , and let be the span over of for . Suppose all words of length at most are safe. Safety gives , so is injective: no trajectories collide, and every image state has multiplicity 1. Their rows therefore have total and value 1 at every coordinate of . Hence lies in
The equations are independent since , so . Now , and implies invariance under every letter and stabilization forever. Therefore some equality must occur before index , or . Stabilization puts in , contradicting its zero coordinate in and total .
In a strongly connected synchronizing automaton with , a reset word followed by a path to a state outside A gives the required z. This proves every upper bound in Theorem 7. If , some letter must be nonpermutational and immediately compresses Q, while the empty word is safe. Thus .
We will also use the following elementary fact. If cycles and sends to while fixing the other points, then
maps this set to . Indeed, after the image is ; each deletes the last point of the remaining interval. This also covers .
A.1 The first two cardinality faces
Proposition 9. Part (1) of Theorem 7 holds.
Proof. Put and . Define
Let cycle in the displayed order and send every point outside to . Then . The -path from 0 to and the -cycle prove strong connectivity.
For , set . One has , and for ; . Induction shows that every word of length less than has image with , so is safe. The word compresses , proving .
On , is the unit . Formula (4) with shows that resets . It resets as well, since . This proves synchronization, also when or .
Proposition 10. Part (2) of Theorem 7 holds.
Proof. Put . Take disjoint sets and , and let . Letter fixes , while
For odd M, let a cycle and set
For even (necessarily ), set
In both cases . From the b-path reaches , whose a-orbit covers ; some state of returns to under . Every state therefore reaches and is reached from .
The two moving points of remain distinct for all . For , their b-images are and , so . At , the pair is for odd and for even ; both points map to . Thus compresses . Every word shorter than splits into a-runs followed by b, each run having length at most M - 2, and a trailing a-run. All these transitions are safe. Hence .
Set , and for odd , for even . On , cycles . If is the unit on , then there. Consequently
on S, and this is a reset by (4). Prepending b gives a reset of Q. The unit e is used only to verify the identity; the reset word uses the original letters.
A.2 Every larger fixed gap
Proposition 11. For , and , there is a binary strongly connected synchronizing automaton with
The subset S is an actual reachable image.
Proof. Take disjoint sets and . Set and . First suppose and put . Then and . Let fix , send to for , and send to . Define , for , and
The cases are disjoint. On , cycles . The segment is empty for . Ordinary outside states follow increasing indices to the next index congruent to , then enter . The exceptional path of length is
Its indices exist because . Thus . The a-path from covers , and the b-cycle covers , proving strong connectivity.
Safety. Use singleton P-cells and color cells , assigning color . Let be the state-to-cell incidence matrix. Let fix and cycle the colors, and let cycle . For a standard state column and cell row , one has
The last term is an outer product of an column and a row. These cells are bookkeeping devices, not a quotient automaton. For , iteration gives
This counts trajectories even after collisions, with products in word order. A trajectory from S needs at least M - g letters to reach : initial indices are at most g, every transition within
U increases an index by at most one, and entrances from P have index . Hence a nonzero correction has . In the cell graph, color g needs at least g - 1 letters to reach color g - 1, and color 1 needs at least g letters to reach A. The latter route traverses and then takes two letters b through . A detour through P cannot shorten either route.
For , correction suffixes have length at most , so no positive correction reaches color , whose trajectory count is at most one. Suppose a word of length at most has a first collision. For a colliding , the distinct source states must lie in its only non-singleton fiber, all of color , contradicting this count bound. For a colliding , the sources must be , its only non-singleton fiber. They are not both initially present. A preceding cannot give , which has no -preimage. A preceding requires sources one step earlier, both of color , again a contradiction; for , has no -preimage at all. Thus every word of length at most preserves states. For , every correction suffix has length at most , so no negative correction reaches . Its singleton cells retain multiplicity at least one. Every such word is safe.
The word has length . Exactly its first has a trajectory at , with multiplicity one. Its negative correction is , whereas its positive correction is . It therefore omits and attains equality, also when .
For synchronization put . The -run fixes the cyclic tail . For , it sends to , which has the same remaining -distance to as . For , it sends to , which reaches in letters . Consequently fixes and sends to its -predecessor . After , each extends the missing interval by one point in forward -order. Thus resets .
The boundary . Let a fix P and cycle U. Define , and
Now cycles and fixes ; . Put . It fixes and on has actions
Therefore , proving actual reachability. The two cycles prove strong connectivity. Assigning color gives exactly (5)–(6) again. The same delay and collision arguments apply, with a now a permutation. The word attains avoidance: only the first negative correction has a suffix of letters and reaches ; no positive correction reaches . Finally fixes and sends to . Each be removes one further point of while retaining . Hence resets .
Taking and proves part (3) of Theorem 7.
Acknowledgments
We thank Marek Szykuła for correspondence concerning Open Problem 4 and the theory of synchronizing automata.
Large language models, including OpenAI's ChatGPT, assisted with mathematical exploration, code development and checking, and manuscript drafting and editing. The authors directed and reviewed these contributions and take responsibility for the results presented here.
References
[1] Robert Ferens, Marek Szykuła, and Vojtěch Vorel, Lower bounds on avoiding thresholds, 46th International Symposium on Mathematical Foundations of Computer Science (MFCS 2021) (Filippo Bonchi and Simon J. Puglisi, eds.), Leibniz International Proceedings in Informatics (LIPIcs), vol. 202, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021, pp. 46:1–46:14.
[2] Péter Frankl, An extremal problem for two families of sets, European Journal of Combinatorics 3 (1982), no. 2, 125–127.
[3] Andrzej Kisielewicz, Jakub Kowalski, and Marek Szykuła, Experiments with synchronizing automata, Implementation and Application of Automata (CIAA 2016) (Cham) (Yo-Sub Han and Kai Salomaa, eds.), Lecture Notes in Computer Science, vol. 9705, Springer, 2016, pp. 176–188.
[4] Jean-Éric Pin, On two combinatorial problems arising from automata theory, Combinatorial Mathematics, North-Holland Mathematics Studies, vol. 75, North-Holland, 1983, pp. 535–548.
[5] Marek Szykuła, Improving the upper bound on the length of the shortest reset word, 35th Symposium on Theoretical Aspects of Computer Science (STACS 2018) (Rolf Niedermeier and Brigitte Vallée, eds.), Leibniz International Proceedings in Informatics (LIPIcs), vol. 96, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018, pp. 56:1–56:13.
[6] ___ , Synchronizing automata: Open problems, Electronic Proceedings in Theoretical Computer Science 451 (2026), 33–47, AFL 2026. arXiv:2608.24245v1 [cs.FL].
[7] Qichao Wang and Daoyu Dong, Avoid-or-compress implementation and reproduction instructions, Repository revision d951829, 2026, Includes the explicit historical joint-predicate option.
[8] ___ , Dense-subset avoid-or-compress: mathematical supplement and source code, Repository revision 8bd89de, 2026, Mathematical supplement and implementation sources.