Introduction
The arithmetic of the integer parts of rational powers presents difficulties even for simple nonintegral bases. A useful way to prove that a sequence contains infinitely many composite terms is to exhibit a fixed finite set of primes such that infinitely many terms have a divisor in that set. Once the terms exceed all those primes, divisibility implies compositeness. Following Dubickas (Dub06, §2), such a set is called unavoidable with respect to a base b b b if it has this property for ⌊ ξ b n ⌋ \lfloor\xi b^n \rfloor ⌊ ξ b n ⌋ and every ξ > 0 \xi> 0 ξ > 0 . Among integer bases, such sets exist for b ∈ { 2 , 3 , 4 , 6 } b \in\{2,3,4,6\} b ∈ { 2 , 3 , 4 , 6 } ; none exists for b = 5 b = 5 b = 5 (DN, as recalled in Dub06, §2) or for any b ≥ 3 b \ge3 b ≥ 3 with b − 1 b - 1 b − 1 not squarefree (Dub06, Theorem 4), and none is expected for the other integer bases (Dub06, Conjecture 3). In this terminology, the results recalled next give unavoidable sets for the rational bases 3 / 2 3/2 3/2 , 4 / 3 4/3 4/3 , and 5 / 4 5/4 5/4 , and Theorem 1 gives unavoidable sets for 7 / 5 7/5 7/5 , 5 / 2 5/2 5/2 , and 5 / 3 5/3 5/3 .
In 1967, Forman and Shapiro FS proved that the integer parts of the powers of 3 / 2 3/2 3/2 and 4 / 3 4/3 4/3 contain infinitely many composite numbers; see the historical account in DN, pp.635–636. As noted there, their proofs also apply after multiplication by any fixed positive coefficient ξ \xi ξ . Dubickas and Novikas treated the additional base 5 / 4 5/4 5/4 and stated explicit divisibility results for all three bases: for every ξ > 0 \xi> 0 ξ > 0 , infinitely many terms of each of
⌊ ξ ( 3 / 2 ) n ⌋ , ⌊ ξ ( 4 / 3 ) n ⌋ , ⌊ ξ ( 5 / 4 ) n ⌋ \lfloor\xi(3/2)^n \rfloor,\qquad\lfloor\xi(4/3)^n \rfloor,\qquad\lfloor\xi(5/4)^n \rfloor ⌊ ξ ( 3/2 ) n ⌋ , ⌊ ξ ( 4/3 ) n ⌋ , ⌊ ξ ( 5/4 ) n ⌋
have a divisor in the respective prime sets
{ 2 , 5 , 7 , 11 } , { 2 , 3 , 5 } , { 2 , 3 , 7 , 11 , 13 } ; \{2,5,7,11\},\qquad\{2,3,5\},\qquad\{2,3,7,11,13\}; { 2 , 5 , 7 , 11 } , { 2 , 3 , 5 } , { 2 , 3 , 7 , 11 , 13 } ;
see DN, Theorem 1, p.636 and N, Theorem 1.1, p.24. Dubickas and Novikas also proved the corresponding assertion with primes { 2 , 3 , 5 , 11 } \{2,3,5,11\} { 2 , 3 , 5 , 11 } for the nearest integers ⌊ ξ ( 7 / 5 ) n + 1 / 2 ⌋ \lfloor\xi(7/5)^n+1/2\rfloor ⌊ ξ ( 7/5 ) n + 1/2 ⌋ : this is the third assertion of DN, Theorem 4, p.637, also stated as N, Theorem 1.5(iii), p.26. For the ratio 5 / 2 5/2 5/2 they proved that, for every ξ > 0 \xi> 0 ξ > 0 , the shifted sequence ⌊ ξ ( 5 / 2 ) n ⌋ − 1 \lfloor\xi(5/2)^n\rfloor- 1 ⌊ ξ ( 5/2 ) n ⌋ − 1 has infinitely many terms divisible by 2, 3 or 5; see DN, Theorem 3, p.637 and N, Theorem 1.4, p.25; inside the proof, the same argument is noted to apply to ⌊ ξ ( 5 / 2 ) n ⌋ − 1 + 30 k \lfloor\xi(5/2)^n\rfloor- 1 + 30k ⌊ ξ ( 5/2 ) n ⌋ − 1 + 30 k for every fixed integer k k k (DN, p.646, N, p.26). For the ratio 5 / 3 5/3 5/3 , N, Theorem 1.5(ii), p.26 states that, for every ξ > 0 \xi> 0 ξ > 0 , the nearest integers ⌊ ξ ( 5 / 3 ) n + 1 / 2 ⌋ \lfloor\xi(5/3)^n+1/2\rfloor ⌊ ξ ( 5/3 ) n + 1/2 ⌋ include infinitely many terms divisible by 2 or 3. The rounding and shift conventions matter here. The present results concern the unshifted integer parts. For 5 / 2 5/2 5/2 the shift changes the alphabet of admissible carries, and our certificate uses a different prime set. For the unshifted integer parts with ratio 5 / 3 5/3 5/3 , avoiding 2 and 3 leaves the carry alphabet { − 2 , 2 , 4 } \{-2, 2, 4\} { − 2 , 2 , 4 } (Lemma 74 ), and our certificate uses the further primes 7, 11, . . . , 37; the nearest-integer result is not used.
Theorem 1 (Main Theorem). For every ξ ∈ R \xi\in\mathbb{R} ξ ∈ R with ξ > 0 \xi> 0 ξ > 0 and every N ∈ N N \in\mathbb{N} N ∈ N :
(i) there is an integer n ≥ max ( N , 1 ) n \ge\max(N,1) n ≥ max ( N , 1 ) such that
gcd ( ⌊ ξ ( 7 / 5 ) n ⌋ , 4290 ) > 1 , 4290 = 2 ⋅ 3 ⋅ 5 ⋅ 11 ⋅ 13 ; (1) \gcd(\lfloor\xi(7/5)^n\rfloor,4290)>1,\qquad4290=2\cdot3\cdot5\cdot11\cdot13; \tag*{(1)} g cd(⌊ ξ ( 7/5 ) n ⌋ , 4290 ) > 1 , 4290 = 2 ⋅ 3 ⋅ 5 ⋅ 11 ⋅ 13 ; (1) (ii) there is an integer n ≥ max ( N , 1 ) n \ge\max(N,1) n ≥ max ( N , 1 ) such that
gcd ( ⌊ ξ ( 5 / 2 ) n ⌋ , 40112098026 ) > 1 , \gcd(\lfloor\xi(5/2)^n\rfloor,40112098026)>1, g cd(⌊ ξ ( 5/2 ) n ⌋ , 40112098026 ) > 1 , 40112098026 = 2 ⋅ 3 ⋅ 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 ; (2) 40112098026=2\cdot3\cdot7\cdot11\cdot13\cdot17\cdot19\cdot23\cdot29\cdot31; \tag*{(2)} 40112098026 = 2 ⋅ 3 ⋅ 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 ; (2) (iii) there is an integer n ≥ max ( N , 1 ) n \ge\max(N,1) n ≥ max ( N , 1 ) such that
gcd ( ⌊ ξ ( 5 / 3 ) n ⌋ , 1484147626962 ) > 1 , \gcd(\lfloor\xi(5/3)^n\rfloor,1484147626962)>1, g cd(⌊ ξ ( 5/3 ) n ⌋ , 1484147626962 ) > 1 , 1484147626962 = 2 ⋅ 3 ⋅ 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 ⋅ 37. (3) 1484147626962=2\cdot3\cdot7\cdot11\cdot13\cdot17\cdot19\cdot23\cdot29\cdot31\cdot37. \tag*{(3)} 1484147626962 = 2 ⋅ 3 ⋅ 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 ⋅ 37. (3)
The indices in (i), (ii), and (iii) are quantified separately; no common index is asserted. The moduli in (2) and (2a) do not contain the prime 5. Here and below N = { 0 , 1 , 2 , … } \mathbb{N}=\{0,1,2,\ldots\} N = { 0 , 1 , 2 , … } , and for an integer q q q we use gcd ( q , M ) = gcd ( ∣ q ∣ , M ) \gcd(q,M)=\gcd(|q|,M) g cd( q , M ) = g cd( ∣ q ∣ , M ) . The formulation with arbitrary N N N states precisely that the qualifying positive indices form an infinite set. A positive integer is composite if it equals u v uv uv with integers u , v > 1 u,v>1 u , v > 1 .
Corollary 2. For every ξ > 0 \xi> 0 ξ > 0 , each of the sequences
( ⌊ ξ ( 7 / 5 ) n ⌋ ) n ≥ 1 , ( ⌊ ξ ( 5 / 2 ) n ⌋ ) n ≥ 1 , and ( ⌊ ξ ( 5 / 3 ) n ⌋ ) n ≥ 1 (\lfloor\xi(7/5)^n\rfloor)_{n\ge1},\qquad(\lfloor\xi(5/2)^n\rfloor)_{n\ge1},\qquad\text{and}\qquad(\lfloor\xi(5/3)^n\rfloor)_{n\ge1} (⌊ ξ ( 7/5 ) n ⌋ ) n ≥ 1 , (⌊ ξ ( 5/2 ) n ⌋ ) n ≥ 1 , and (⌊ ξ ( 5/3 ) n ⌋ ) n ≥ 1 contains infinitely many composite terms.
For the ratio 7 / 5 7/5 7/5 the certificate also yields an explicit waiting time. Write
L ( P ) = min { h ≥ 0 : 5 h ≥ P + 2 } . L(P)=\min\{h\ge0:5^h\ge P+2\}. L ( P ) = min { h ≥ 0 : 5 h ≥ P + 2 } .
Theorem 3 (Quantitative Theorem). Let ξ > 0 \xi> 0 ξ > 0 with P = ⌊ ξ ⌋ > 13 P = \lfloor\xi\rfloor> 13 P = ⌊ ξ ⌋ > 13 . Then there is an integer n n n with
0 ≤ n ≤ 428 + 12 L ( P ) 0 \le n \le428 + 12L(P) 0 ≤ n ≤ 428 + 12 L ( P ) and
gcd ( ⌊ ξ ( 7 / 5 ) n ⌋ , 4290 ) > 1 , (4) \gcd(\lfloor\xi(7/5)^n \rfloor,4290)>1, \tag*{(4)} g cd(⌊ ξ ( 7/5 ) n ⌋ , 4290 ) > 1 , (4) and this term is composite. Consequently, for every N ∈ N N \in\mathbb{N} N ∈ N with Q N = ⌊ ξ ( 7 / 5 ) N ⌋ > 13 Q_N = \lfloor\xi(7/5)^N \rfloor> 13 Q N = ⌊ ξ ( 7/5 ) N ⌋ > 13 , some ⌊ ξ ( 7 / 5 ) n ⌋ \lfloor\xi(7/5)^n \rfloor ⌊ ξ ( 7/5 ) n ⌋ with
N ≤ n ≤ N + 428 + 12 L ( Q N ) N \le n \le N + 428 + 12L(Q_N) N ≤ n ≤ N + 428 + 12 L ( Q N ) is composite.
The related study of fractional parts includes Mahler’s question M68, p.313 whether some ξ > 0 \xi> 0 ξ > 0 satisfies
0 ≤ { ξ ( 3 / 2 ) n } < 1 / 2 for all n ≥ 0. 0 \le\{\xi(3/2)^n\} < 1/2 \quad\text{for all } n \ge0. 0 ≤ { ξ ( 3/2 ) n } < 1/2 for all n ≥ 0.
Flatto, Lagarias, and Pollington FLP, Theorem 1.4, p.129 proved that, for coprime integers p > q ≥ 2 p > q \ge2 p > q ≥ 2 and every ξ > 0 \xi> 0 ξ > 0 ,
lim sup n → ∞ { ξ ( p / q ) n } − lim inf n → ∞ { ξ ( p / q ) n } ≥ 1 / p . \limsup_{n\to\infty}\{\xi(p/q)^n\}-\liminf_{n\to\infty}\{\xi(p/q)^n\}\ge1/p. n → ∞ lim sup { ξ ( p / q ) n } − n → ∞ lim inf { ξ ( p / q ) n } ≥ 1/ p .
Dubickas Dub08 obtained further results on whether all these fractional parts can lie in prescribed intervals or unions of intervals. These confinement questions provide a background for the use of fractional cells here. The range bound alone does not yield the infinitely many even terms that would suffice for compositeness, as explained in DN, p.636.
For other real bases, Alkauskas and Dubickas AD04 constructed Pisot numbers whose positive powers all have composite integer parts, as well as a transcendental number whose integer-part sequence meets every integer arithmetic progression infinitely often. Those results construct particular bases; here the base is a specified rational number and the coefficient ξ \xi ξ ranges over all positive reals.
Method. The proofs combine an existing nonperiodicity obstruction with explicit finite certificates. Nonperiodicity of the carry sequence c n = b Q n + 1 − a Q n c_n = bQ_{n+1} - aQ_n c n = b Q n + 1 − a Q n is already contained in DN, Lemma 2, p.638 and N, Lemma 1.7, pp.28–29, and the use of restrictions on operation words to force periodicity also has precedents in DN, pp.638–639 and 647. We include an integral proof of the obstruction and make the graph construction, the all-edge phase test, and the tail-preservation arguments explicit. The one-step construction (§ 3 ) records one carry per edge and refines the fractional cells; it proves (1). The word-labelled construction (§ 4 ) labels edges by finite carry words, contracts deterministic paths without changing their output, and lifts the graph by one new prime at a time while checking the residues at every intermediate time of each word; it proves (2) and gives a second proof of (1). With the additional exact contraction of in-degree-one chains (Appendix § 17 ) it proves (2a). A finite rank certificate on the complete one-step graph, combined with a finite version of the nonperiodicity lemma, gives Theorem 3 (§ 6 ).
Akiyama, Frougny, and Sakarovitch AFS08 developed rational-base representations with finite transducers for arithmetic. Their nonperiodicity results use divisibility by growing powers of the denominator (AFS08, Lemma 8, p.65 and Proposition 26, p.75). Their language of integer representations is nonregular (AFS08, Corollary 7, p.65). Our finite graphs instead record necessary residue and fractional-cell constraints on a prime-avoiding orbit: every such orbit gives a walk, while a walk need not represent an orbit. This distinction allows finite certificates without requiring a finite automaton for the full representation language.
Stephan’s preprint S26, dated August 15, 2026, proves the case b = 7 b = 7 b = 7 of Dub06, Conjecture 2: for every ξ > 0 \xi> 0 ξ > 0 , the sequence ⌊ ξ 7 m ⌋ \lfloor\xi7^m \rfloor ⌊ ξ 7 m ⌋ contains infinitely many composite terms; by the same certificate, there is no infinite right truncatable prime in base 7. Its method is closely related to the one used here. The vertices of its graph are the residues modulo M = ∏ p ≤ 31 p M = \prod_{p \le31} p M = ∏ p ≤ 31 p that are coprime to M M M , with an edge for each appended digit. The certificate states that, after the states not lying on bi-infinite paths are discarded, no strongly connected component contains two distinct cycles. Every infinite path is then ultimately periodic, and an ultimately periodic digit word gives infinitely many composite terms by a return theorem of Dubickas Dub09, Theorem 4, recalled after Theorem 46 below. The certificate is reached through a ladder of moduli that adjoins one prime at a time, using projections and rank functions, and it is verified in Lean, where the finite computation is evaluated by native_decide (S26, §§4–6 and Appendix A).
The present work shares several ingredients with S26: finite residue graphs in which every hypothetical prime-avoiding orbit gives an infinite walk, the lifting of a certified graph by one new prime at a time (§ 4.4 ), rank functions that a checker verifies in place of a formal proof of graph algorithms (§ 6.2 and § 9.4 ), and a Lean verification whose word-labelled finite evaluations are likewise accepted through native_decide (§ 9.4 ). The constructions differ in three respects. First, the graph of S26 consists of residues alone. For a nonintegral base not every carry word is realized by an orbit; the states here also record fractional cells, and the graphs are outer approximations: every orbit gives a walk, but a walk need not represent an orbit. Second, both certificates single out components in which every infinite walk has a periodic label sequence (simple cycles in S26; components passing the phase criterion of Lemma 7 here), but they treat them in opposite ways. In base 7, such components carry actual prime-avoiding orbits: the core of the graph of S26 at the modulus M M M still has 371702 states, and DJ22, Theorem 1.2, p.167 implies that every finite set of primes can be avoided by all terms for a suitable positive coefficient, so no unavoidable set exists; S26 keeps these components and applies the return theorem to their periodic words. For a nonintegral base, Lemma 4 shows that no orbit remains in such a component, so it is deleted; the certificates here reduce the graph to the empty graph and thereby yield the unavoidable sets of Theorem 1. The result of DJ22 does not apply to 7 / 5 7/5 7/5 , 5 / 2 5/2 5/2 , or 5 / 3 5/3 5/3 . Third, the word-labelled contraction with prime conditions imposed at every intermediate time, the waiting-time bound of Theorem 3 , and the normal-form and obstruction theorems of § 7 and § 8 are not part of S26. The computation of S26 is a methodological comparison, not a dependency of the proofs given here. The specific contributions here are the finite certificates for the unshifted 7 / 5 7/5 7/5 , 5 / 2 5/2 5/2 , and 5 / 3 5/3 5/3 sequences with their exact verification, the word-labelled contraction with prime conditions imposed at every intermediate time, the waiting-time bound, and the structural results described next.
Scope of the method. § 7 and § 8 study what this certificate method can and cannot do. With the operations fixed precisely (initial complete graph, phase removal, exact contraction, cell refinement, modulus enlargement, carry restriction), we prove a normal-form theorem: a finite certificate exists for some choice of parameters if and only if, for some cell count K K K and some finite set S S S of primes not dividing 2 a b 2ab 2 ab , every cyclic strongly connected component of one explicit graph passes the phase test. Contraction does not enlarge the certifiable class, prime powers in the modulus can be dropped, and the primes dividing 2 a b 2ab 2 ab reduce to a restriction of the carry alphabet; the normal form changes the prime set of the conclusion, which then contains all primes dividing 2 a b 2ab 2 ab . Two obstruction theorems then show that the method does not terminate when a ≥ 2 rad M a \ge2\operatorname{rad} M a ≥ 2 rad M , and that it does not terminate when a certain two-letter carry word admits unit residues modulo M M M . The second obstruction gives the necessary condition a ≤ 2 R J ( N 0 ) a \le2R J(N_0) a ≤ 2 R J ( N 0 ) , where R R R is the product of the primes of M M M not dividing 2 a b 2ab 2 ab , N 0 N_0 N 0 is the product of the odd primes dividing a b ab ab , and J J J is the Jacobsthal function; an elementary bound J ( N ) ≤ 3 ω ( N ) J(N) \le3^{\omega(N)} J ( N ) ≤ 3 ω ( N ) gives R ≥ a 1 − o ( 1 ) R \ge a^{1-o(1)} R ≥ a 1 − o ( 1 ) . These obstruction theorems are statements about the non-termination of a fixed procedure. They are not counterexamples to any arithmetic statement, and they do not assert that any base fails to have infinitely many composite terms. Appendix F shows that 5 / 3 5/3 5/3 belongs to the certifiable class and that every certificate of this kind for 5 / 3 5/3 5/3 uses a prime at least 29.
Verification. Every adopted finite computation was carried out by two implementations whose scientific cores (edge enumeration, component decomposition, certification, contraction, lifting) were written separately from the mathematical specification; their complete graph data were compared element by element. For 5 / 3 5/3 5/3 the two implementations are a C++ producer with an embedded checker and a separately written extension of the second word-labelled implementation. Section 9 describes their provenance and the comparison. Lean proofs establish all three parts of Theorem 1 and Corollary 2. The one-step proof for 7 / 5 7/5 7/5 uses a kernel-checked finite certificate; the word-labelled proofs use kernel-checked soundness theorems and native_decide finite evaluations. Section 9.4 gives the precise formalization coverage and the additional compiler and native-evaluation trust of the latter proofs.
Section 2 proves the nonperiodicity lemma. Section 3 presents the one-step outer graphs and finite certification, and Section 4 the word-labelled certificates. Section 5 gives the finite calculations for (1) and (2). Section 6 proves Theorem 3. Sections 7 and 8 contain the structural and obstruction results. Section 9 describes the verification and the exact scope of the formalization. Section 10 states further results whose proofs are given in the appendices, and Section 11 lists open problems. Appendix F proves (2a), the 5 / 3 5/3 5/3 part of Corollary 2, and the related structural statements for 5 / 3 5/3 5/3 .
The two finite certification procedures share the same tail-preservation argument, summarized below.
Carries and nonperiodicity
Throughout the general argument, let
a , b ∈ N , a > b ≥ 2 , gcd ( a , b ) = 1 , ξ > 0 , a,b \in\mathbb{N}, \qquad a>b\ge2, \qquad\gcd(a,b)=1, \qquad\xi>0, a , b ∈ N , a > b ≥ 2 , g cd( a , b ) = 1 , ξ > 0 ,
and put r = a / b r=a/b r = a / b , with division in R \mathbb{R} R . For n ≥ 0 n\ge0 n ≥ 0 , define
x n = ξ r n , Q n = ⌊ x n ⌋ ∈ Z , θ n = x n − Q n ∈ [ 0 , 1 ) , (5) x_n=\xi r^n, \qquad Q_n=\lfloor x_n\rfloor\in\mathbb{Z}, \qquad\theta_n=x_n-Q_n\in[0,1), \tag*{(5)} x n = ξ r n , Q n = ⌊ x n ⌋ ∈ Z , θ n = x n − Q n ∈ [ 0 , 1 ) , (5)
and the signed integer carry
c n = b Q n + 1 − a Q n = a θ n − b θ n + 1 . (6) c_n=bQ_{n+1}-aQ_n=a\theta_n-b\theta_{n+1}. \tag*{(6)} c n = b Q n + 1 − a Q n = a θ n − b θ n + 1 . (6)
Thus
1 − b ≤ c n ≤ a − 1 , b Q n + 1 = a Q n + c n . (7) 1-b\le c_n\le a-1, \qquad bQ_{n+1}=aQ_n+c_n. \tag*{(7)} 1 − b ≤ c n ≤ a − 1 , b Q n + 1 = a Q n + c n . (7)
The strict real bounds − b < c n < a -b<c_n<a − b < c n < a imply the integer bounds in (6). An alternative indexing writes e n + 1 = c n e_{n+1}=c_n e n + 1 = c n ; no value of e 0 e_0 e 0 is needed. Since x n + 1 = r x n > x n x_{n+1}=rx_n>x_n x n + 1 = r x n > x n , the sequence ( Q n ) (Q_n) ( Q n ) is nondecreasing, and Q n ≥ Q 0 Q_n\ge Q_0 Q n ≥ Q 0 for all n n n .
We shall also use Q n → + ∞ Q_n\to+\infty Q n → + ∞ in the explicit sense
∀ T ∈ Z ∃ N ∈ N ∀ n ≥ N , Q n > T . (8) \forall T\in\mathbb{Z}\ \exists N\in\mathbb{N}\ \forall n\ge N,\qquad Q_n>T. \tag*{(8)} ∀ T ∈ Z ∃ N ∈ N ∀ n ≥ N , Q n > T . (8)
Figure 1. Logical flow of the one-step and word methods. Arrows from an orbit to a graph express inclusion in an outer approximation. The two branches use different operations: cell refinement in the one-step method, and contraction followed by prime lifting at fixed cell count in the word method. Dashed arrows indicate iteration.
Indeed, writing r = 1 + δ r=1+\delta r = 1 + δ with δ > 0 \delta>0 δ > 0 , Bernoulli’s inequality gives r n ≥ 1 + n δ r^n\ge1+n\delta r n ≥ 1 + n δ , and Q n > ξ ( 1 + n δ ) − 1 Q_n>\xi(1+n\delta)-1 Q n > ξ ( 1 + n δ ) − 1 .
Lemma 4 (nonperiodicity). The carry sequence ( c n ) (c_n) ( c n ) is not eventually periodic: there do not exist N ≥ 0 N\ge0 N ≥ 0 and L ≥ 1 L\ge1 L ≥ 1 such that
c n + L = c n c_{n+L}=c_n c n + L = c n for all n ≥ N n\ge N n ≥ N .
Proof. First suppose an integer sequence ( D k ) k ≥ 0 (D_k)_{k\ge0} ( D k ) k ≥ 0 satisfies b D k + 1 = a D k bD_{k+1}=aD_k b D k + 1 = a D k . Induction gives
b k D k = a k D 0 . b^kD_k=a^kD_0. b k D k = a k D 0 . Since a k a^k a k and b k b^k b k are coprime, b k ∣ D 0 b^k\mid D_0 b k ∣ D 0 for every k k k . As b ≥ 2 b\ge2 b ≥ 2 , this forces D 0 = 0 D_0=0 D 0 = 0 , without any assumption on its sign.
Now assume that c c c has period L L L from N N N onward. For a fixed m ≥ N m\ge N m ≥ N , set
D k = Q m + k + L − Q m + k . D_k=Q_{m+k+L}-Q_{m+k}. D k = Q m + k + L − Q m + k . Subtracting the two recurrences in (7) and using periodicity gives b D k + 1 = a D k bD_{k+1}=aD_k b D k + 1 = a D k . The preceding observation yields Q m + L = Q m Q_{m+L}=Q_m Q m + L = Q m . This holds for every m ≥ N m\ge N m ≥ N , so in particular Q N + k L = Q N Q_{N+kL}=Q_N Q N + k L = Q N for every k k k , contrary to (8) . □
This proof uses only an integral recurrence and growth. The hypotheses b ≥ 2 b\ge2 b ≥ 2 and gcd ( a , b ) = 1 \gcd(a,b)=1 g cd( a , b ) = 1 are essential: integer ratios admit identically zero carries for suitable coefficients. The earlier nonperiodicity lemmas cited above also exclude eventual periodicity, since a tail can be absorbed into the new positive coefficient ξ r N \xi r^N ξ r N .
We also record the iterated form of (6): with C 0 = 0 C_0=0 C 0 = 0 and
C i + 1 = a C i + b i c u + i , b i Q u + i = a i Q u + C i ( i ≥ 0 ) , (9) \begin{aligned}
C_{i+1} &= aC_i+b^i c_{u+i},\\
b^i Q_{u+i} &= a^i Q_u+C_i \qquad(i\ge0), \tag*{(9)}
\end{aligned} C i + 1 b i Q u + i = a C i + b i c u + i , = a i Q u + C i ( i ≥ 0 ) , (9)
by induction, since
b i + 1 Q u + i + 1 = b i ( a Q u + i + c u + i ) = a ( a i Q u + C i ) + b i c u + i . b^{i+1}Q_{u+i+1}=b^i(aQ_{u+i}+c_{u+i})=a(a^iQ_u+C_i)+b^ic_{u+i}. b i + 1 Q u + i + 1 = b i ( a Q u + i + c u + i ) = a ( a i Q u + C i ) + b i c u + i .
One-step outer graphs and finite certification
The graphs
The graphs. Fix integers M ≥ 1 M\ge1 M ≥ 1 and K ≥ 1 K\ge1 K ≥ 1 . The states recording a residue coprime to M M M and a fractional cell are
V ( M , K ) = { ( q , j ) ∈ Z 2 : 0 ≤ q < M , gcd ( q , M ) = 1 , 0 ≤ j < K } . (10) V(M,K)=\{(q,j)\in\mathbb{Z}^2:0\le q<M,\ \gcd(q,M)=1,\ 0\le j<K\}. \tag*{(10)} V ( M , K ) = {( q , j ) ∈ Z 2 : 0 ≤ q < M , g cd( q , M ) = 1 , 0 ≤ j < K } . (10)
For M = 1 M=1 M = 1 the residue coordinate is q = 0 q=0 q = 0 . For W ⊆ V ( M , K ) W\subseteq V(M,K) W ⊆ V ( M , K ) , define a directed labelled graph G K ( W ) G_K(W) G K ( W ) on W W W . There is an edge ( q , j ) → e ( z , k ) (q,j)\xrightarrow{e}(z,k) ( q , j ) e ( z , k ) exactly when the endpoints lie in W W W and the following signed integer conditions hold:
1 − b ≤ e ≤ a − 1 , (11) 1-b\le e\le a-1, \tag*{(11)} 1 − b ≤ e ≤ a − 1 , (11)
b z ≡ a q + e ( m o d M ) , (12) bz\equiv aq+e\pmod M, \tag*{(12)} b z ≡ a q + e ( mod M ) , (12)
a j − b ( k + 1 ) < e K < a ( j + 1 ) − b k . (13) aj-b(k+1)<eK<a(j+1)-bk. \tag*{(13)} aj − b ( k + 1 ) < eK < a ( j + 1 ) − bk . (13)
Edges with the same endpoints and different labels are distinct. We write G ( M , K ) = G K ( V ( M , K ) ) G(M,K)=G_K(V(M,K)) G ( M , K ) = G K ( V ( M , K )) for the complete one-step graph.
Define the state of an actual orbit by
σ K ( n ) = ( Q n m o d M , ⌊ K θ n ⌋ ) , (14) \sigma_K(n)=(Q_n\bmod M,\lfloor K\theta_n\rfloor), \tag*{(14)} σ K ( n ) = ( Q n mod M , ⌊ K θ n ⌋) , (14)
where the residue is the representative in { 0 , … , M − 1 } \{0,\ldots,M-1\} { 0 , … , M − 1 } .
Proposition 5 (orbit inclusion). If σ K ( n ) , σ K ( n + 1 ) ∈ W \sigma_K(n),\sigma_K(n+1)\in W σ K ( n ) , σ K ( n + 1 ) ∈ W , then
σ K ( n ) → c n σ K ( n + 1 ) \sigma_K(n)\xrightarrow{c_n}\sigma_K(n+1) σ K ( n ) c n σ K ( n + 1 ) is an edge of G K ( W ) G_K(W) G K ( W ) .
Proof. Condition (E1) is (6), and reduction of (5) modulo M M M gives (E2). Write j = ⌊ K θ n ⌋ j=\lfloor K\theta_n\rfloor j = ⌊ K θ n ⌋ and k = ⌊ K θ n + 1 ⌋ k=\lfloor K\theta_{n+1}\rfloor k = ⌊ K θ n + 1 ⌋ . Then
j ≤ K θ n < j + 1 , k ≤ K θ n + 1 < k + 1 , j\le K\theta_n<j+1,\qquad k\le K\theta_{n+1}<k+1, j ≤ K θ n < j + 1 , k ≤ K θ n + 1 < k + 1 ,
so
a j − b ( k + 1 ) < a K θ n − b K θ n + 1 = K c n < a ( j + 1 ) − b k . aj-b(k+1)<aK\theta_n-bK\theta_{n+1}=Kc_n<a(j+1)-bk. aj − b ( k + 1 ) < a K θ n − b K θ n + 1 = K c n < a ( j + 1 ) − bk .
This is (E3). Both inequalities are strict, even though a fractional part may equal zero. □
The proof uses only the real identity (5) and the half-open cells; it does not use the integrality of Q n Q_n Q n . This observation is used in § 7 . The graph is an outer approximation. Each orbit that eventually avoids all prime divisors of M M M gives a walk in the graph, but no converse realizability assertion about graph walks is used. For real numbers u , v u,v u , v with j ≤ u < j + 1 j\le u<j+1 j ≤ u < j + 1 , k ≤ v < k + 1 k\le v<k+1 k ≤ v < k + 1 , and a u − b v = e K au-bv=eK a u − b v = eK , condition (E3) is necessary and sufficient for the existence of such a pair; it expresses the compatibility of two adjacent cells only.
The conditions allow complete integer enumeration. For a fixed j , e j,e j , e , (E3) and 0 ≤ k < K 0\le k<K 0 ≤ k < K are equivalent to
max ( 0 , ⌈ a j − e K b ⌉ ) ≤ k ≤ min ( K − 1 , ⌊ a ( j + 1 ) − e K − 1 b ⌋ ) . (15) \max\left(0,\left\lceil\frac{aj-eK}{b}\right\rceil\right)\le k\le\min\left(K-1,\left\lfloor\frac{a(j+1)-eK-1}{b}\right\rfloor\right). \tag*{(15)} max ( 0 , ⌈ b aj − eK ⌉ ) ≤ k ≤ min ( K − 1 , ⌊ b a ( j + 1 ) − eK − 1 ⌋ ) . (15)
For example, if A = a j − e K A = aj - eK A = aj − eK , then A < b ( k + 1 ) A < b(k + 1) A < b ( k + 1 ) is equivalent to ⌊ A / b ⌋ ≤ k \lfloor A/b \rfloor\le k ⌊ A / b ⌋ ≤ k . The other bound follows by replacing the strict integer inequality b k < B bk < B bk < B with b k ≤ B − 1 bk \le B - 1 bk ≤ B − 1 . All floors in (15) are mathematical floors, including for negative numerators. Truncation toward zero would give an incorrect enumeration. An empty integer interval contributes no edges.
No invertibility of b b b modulo M M M is assumed. To see explicitly how all solutions of (E2) can be found, put g = gcd ( b , M ) g = \gcd(b, M) g = g cd( b , M ) and t = a q + e t = aq + e t = a q + e . There are no solutions unless g ∣ t g \mid t g ∣ t . If this divisibility holds, solve the reduced congruence
( b / g ) z 0 ≡ t / g ( m o d M / g ) , 0 ≤ z 0 < M / g . (b/g)z_0 \equiv t/g \pmod{M/g}, \qquad0 \le z_0 < M/g. ( b / g ) z 0 ≡ t / g ( mod M / g ) , 0 ≤ z 0 < M / g .
For M / g = 1 M/g = 1 M / g = 1 , use z 0 = 0 z_0 = 0 z 0 = 0 . Otherwise the coefficient b / g b/g b / g is invertible modulo M / g M/g M / g . The full set of representatives is
z = z 0 + ℓ ( M / g ) , 0 ≤ ℓ < g . (16) z = z_0 + \ell(M/g), \qquad0 \le\ell< g. \tag*{(16)} z = z 0 + ℓ ( M / g ) , 0 ≤ ℓ < g . (16)
One then retains exactly those satisfying gcd ( z , M ) = 1 \gcd(z, M) = 1 g cd( z , M ) = 1 and ( z , k ) ∈ W (z, k) \in W ( z , k ) ∈ W . Equivalently, one can enumerate all unit residues z z z and group them by b z m o d M bz \bmod M b z mod M , as the one-step implementations do. In the case M = 4290 M = 4290 M = 4290 , gcd ( 5 , 4290 ) = 5 \gcd(5, 4290) = 5 g cd( 5 , 4290 ) = 5 , so division by 5 modulo 4290 is unavailable.
A single compatible cell pair illustrates why both inequalities in (E3) are strict.
Figure 2. Cell compatibility for a = 5 , b = 2 , K = 4 , j = k = 1 , e = 1 a = 5, b = 2, K = 4, j = k = 1, e = 1 a = 5 , b = 2 , K = 4 , j = k = 1 , e = 1 . The line meets the half-open square along u = ( 4 + 2 v ) / 5 u = (4 + 2v)/5 u = ( 4 + 2 v ) /5 , 1 ≤ v < 2 1 \le v < 2 1 ≤ v < 2 . The lower endpoint is included and the upper endpoint is excluded. The cell-pair test is local; it does not assert the existence of a full orbit.
Components with periodic output
A strongly connected component (SCC) is an equivalence class for mutual directed reachability, allowing paths of length zero. We call an SCC cyclic if it contains an internal edge. Thus a singleton is cyclic exactly when it has a self-loop.
Lemma 6. Every infinite walk in a finite directed graph eventually remains in one cyclic SCC.
Proof. After leaving one SCC for a different one, a walk cannot return: a return would make the two components mutually reachable. There can therefore be only finitely many changes of component. The final component contains the infinite tail and hence an internal edge.
Let C C C be a cyclic SCC of G K ( W ) G_K(W) G K ( W ) . Choose a root ρ ∈ C \rho\in C ρ ∈ C , and let h ( v ) h(v) h ( v ) be the shortest length of a path from ρ \rho ρ to v v v inside C C C . Define
d = gcd { ∣ h ( u ) + 1 − h ( v ) ∣ : u → e v is an internal edge of C } . (17) d = \gcd\{ \lvert h(u) + 1 - h(v) \rvert: u \xrightarrow{e} v \text{ is an internal edge of } C \}. \tag*{(17)} d = g cd{∣ h ( u ) + 1 − h ( v )∣ : u e v is an internal edge of C } . (17)
There is a nonempty closed walk in C C C . Summing the differences h ( u ) + 1 − h ( v ) h(u) + 1 - h(v) h ( u ) + 1 − h ( v ) along a closed walk of length ℓ > 0 \ell> 0 ℓ > 0 gives ℓ \ell ℓ . Consequently, the differences cannot all vanish, so d > 0 d > 0 d > 0 . Every internal edge satisfies
h ( v ) ≡ h ( u ) + 1 ( m o d d ) . (18) h(v) \equiv h(u) + 1 \pmod d. \tag*{(18)} h ( v ) ≡ h ( u ) + 1 ( mod d ) . (18)
The same summation shows that the length of every closed walk is divisible by d d d . Along any nonempty closed walk, the first d d d departure phases therefore realize all residues modulo d d d . In particular, each phase has at least one outgoing internal edge.
For each phase s ∈ { 0 , … , d − 1 } s \in\{0,\ldots,d-1\} s ∈ { 0 , … , d − 1 } , collect the labels on all internal edges whose source u u u satisfies h ( u ) ≡ s ( m o d d ) h(u) \equiv s \pmod d h ( u ) ≡ s ( mod d ) . We certify C C C if each such collection is a singleton, written { λ s } \{\lambda_s\} { λ s } .
Lemma 7 (phase criterion). Every infinite walk confined to a certified component has a periodic label sequence, with period d d d .
Proof. For a walk v 0 → ℓ 0 v 1 → ℓ 1 ⋯ v_0 \xrightarrow{\ell_0} v_1 \xrightarrow{\ell_1} \cdots v 0 ℓ 0 v 1 ℓ 1 ⋯ , (15) gives
h ( v i ) ≡ h ( v 0 ) + i ( m o d d ) . h(v_i) \equiv h(v_0) + i \pmod d. h ( v i ) ≡ h ( v 0 ) + i ( mod d ) .
Therefore
ℓ i = λ ( h ( v 0 ) + i ) m o d d , ℓ i + d = ℓ i . \ell_i = \lambda_{(h(v_0)+i)\bmod d}, \qquad\ell_{i+d} = \ell_i. ℓ i = λ ( h ( v 0 ) + i ) mod d , ℓ i + d = ℓ i .
The test includes parallel edges and every internal edge, not just tree edges or a selected cycle. Edges leaving C C C are irrelevant once a walk stays in C C C . Lemma 12 below proves soundness for any integer-valued h h h . For a complete test, h h h is chosen as the length of a path from a common root, as above; shortest paths are unnecessary. Theorem 21 and Corollary 22 show that the outcome is independent of the root and of these paths.
The integer d d d in (14) is kept separate from the primitive period p p p of the phase-label word. For reporting, we replace ( λ 0 , … , λ d − 1 ) (\lambda_0,\ldots,\lambda_{d-1}) ( λ 0 , … , λ d − 1 ) by its shortest repeating word and then by its lexicographically least cyclic rotation. This word has length p ∣ d p \mid d p ∣ d , possibly p < d p < d p < d . Such normalization is for comparison and display; Lemma 7 requires neither minimality of the period nor a particular starting phase.
Tail preservation and finite certification
Let R K ( W ) R_K(W) R K ( W ) be the union of all cyclic SCCs of G K ( W ) G_K(W) G K ( W ) that fail the phase criterion. The other vertices are removed.
Lemma 8 (retained tail). If σ K ( n ) ∈ W \sigma_K(n) \in W σ K ( n ) ∈ W for all sufficiently large n n n , then σ K ( n ) ∈ R K ( W ) \sigma_K(n) \in R_K(W) σ K ( n ) ∈ R K ( W ) for all sufficiently large n n n .
Proof. Proposition 5 turns the given tail into an infinite walk with labels c n c_n c n . By Lemma 6 it eventually stays in one cyclic SCC. If that component were certified, Lemma 7 would make c n c_n c n eventually periodic, contrary to Lemma 4. It must therefore be retained.
For an integer f ≥ 2 f \ge2 f ≥ 2 , define the refinement
Refine f ( U ) = { ( q , f j + i ) : ( q , j ) ∈ U , 0 ≤ i < f } . (19) \operatorname{Refine}_f(U) = \{(q,fj+i) : (q,j) \in U,\ 0 \le i < f\}. \tag*{(19)} Refine f ( U ) = {( q , f j + i ) : ( q , j ) ∈ U , 0 ≤ i < f } . (19)
Lemma 9 (refinement). If σ K ( n ) ∈ U \sigma_K(n) \in U σ K ( n ) ∈ U , then
σ f K ( n ) ∈ Refine f ( U ) . \sigma_{fK}(n) \in\operatorname{Refine}_f(U). σ f K ( n ) ∈ Refine f ( U ) .
Proof. From j = ⌊ K θ n ⌋ j=\lfloor K\theta_n\rfloor j = ⌊ K θ n ⌋ one obtains
f j ≤ f K θ n < f ( j + 1 ) . f j \leq fK\theta_n < f(j+1). f j ≤ f K θ n < f ( j + 1 ) .
Thus
⌊ f K θ n ⌋ = f j + i \lfloor fK\theta_n\rfloor= f j+i ⌊ f K θ n ⌋ = f j + i
for a unique integer 0 ≤ i < f 0\leq i<f 0 ≤ i < f . The residue coordinate is unchanged. □
Starting with K 0 ≥ 1 K_0\geq1 K 0 ≥ 1 and W 0 = V ( M , K 0 ) W_0=V(M,K_0) W 0 = V ( M , K 0 ) , compute
K t = K 0 f t , U t = R K t ( W t ) , W t + 1 = Refine f ( U t ) . (20) K_t=K_0f^t,\qquad U_t=R_{K_t}(W_t),\qquad W_{t+1}=\operatorname{Refine}_f(U_t). \tag*{(20)} K t = K 0 f t , U t = R K t ( W t ) , W t + 1 = Refine f ( U t ) . (20)
At each new stage the edges are recomputed from (13) .
Theorem 10 (finite certification). If U s = ∅ U_s=\varnothing U s = ∅ for some finite s s s , then for every ξ > 0 \xi>0 ξ > 0 and every N ∈ N N\in\mathbb{N} N ∈ N there is an n ≥ max ( N , 1 ) n\geq\max(N,1) n ≥ max ( N , 1 ) such that
gcd ( ⌊ ξ ( a / b ) n ⌋ , M ) > 1. (21) \gcd\left(\left\lfloor\xi(a/b)^n\right\rfloor,M\right)>1. \tag*{(21)} g cd( ⌊ ξ ( a / b ) n ⌋ , M ) > 1. (21)
Proof. Suppose instead that for some ξ > 0 \xi>0 ξ > 0 , the integers Q n Q_n Q n are coprime to M M M for all sufficiently large n n n . By (10) and (14) , the corresponding states lie in W 0 W_0 W 0 . Lemma 8 places a further tail in U 0 U_0 U 0 , and Lemma 9 places the same tail at the finer scale in W 1 W_1 W 1 . Iterating these two implications over the finitely many stages puts a tail in U s U_s U s , which is empty. This contradiction proves (21) . □
The beginning of the tail may increase at each stage and may depend on ξ \xi ξ . Neither a uniform starting time nor preservation of every finite prefix is needed. In particular, refinement is proved for true orbit states; it does not presume that every coarse graph walk has a finer lift. The graphs themselves have no ξ \xi ξ input. The passage to all positive real coefficients is supplied by these lemmas, rather than by sampling initial values or computing long numerical trajectories.
Theorem 10 assumes a finite successful calculation. It does not assert termination for arbitrary choices of a a a , b b b , M M M , K 0 K_0 K 0 , f f f .
The modulus may also grow from stage to stage. For U ⊆ V ( M , K ) U\subseteq V(M,K) U ⊆ V ( M , K ) and integers h , f ≥ 1 h,f\geq1 h , f ≥ 1 , put M ′ = h M M'=hM M ′ = h M , K ′ = f K K'=fK K ′ = f K , and
U ′ = { ( q + ℓ M , f j + i ) : ( q , j ) ∈ U , 0 ≤ ℓ < h , 0 ≤ i < f , gcd ( q + ℓ M , h M ) = 1 } ⊆ V ( M ′ , K ′ ) . U'=\{(q+\ell M,fj+i):(q,j)\in U,\ 0\leq\ell<h,\ 0\leq i<f,\ \gcd(q+\ell M,hM)=1\}\subseteq V(M',K'). U ′ = {( q + ℓ M , f j + i ) : ( q , j ) ∈ U , 0 ≤ ℓ < h , 0 ≤ i < f , g cd( q + ℓ M , h M ) = 1 } ⊆ V ( M ′ , K ′ ) .
Lemma 11 (joint enlargement). If σ K ( n ) ∈ U \sigma_K(n)\in U σ K ( n ) ∈ U as a state modulo M M M and gcd ( Q n , h M ) = 1 \gcd(Q_n,hM)=1 g cd( Q n , h M ) = 1 , then
σ K ′ ( n ) ∈ U ′ \sigma_{K'}(n)\in U' σ K ′ ( n ) ∈ U ′ as a state modulo M ′ M' M ′ .
Proof. Let q = Q n m o d M q=Q_n\bmod M q = Q n mod M and q ′ = Q n m o d h M q'=Q_n\bmod hM q ′ = Q n mod h M . Then q ′ ≡ q ( m o d M ) q'\equiv q\pmod M q ′ ≡ q ( mod M ) and 0 ≤ q ′ < h M 0\leq q'<hM 0 ≤ q ′ < h M , so q ′ = q + ℓ M q'=q+\ell M q ′ = q + ℓ M with 0 ≤ ℓ < h 0\leq\ell<h 0 ≤ ℓ < h , and
gcd ( q ′ , h M ) = gcd ( Q n , h M ) = 1. \gcd(q',hM)=\gcd(Q_n,hM)=1. g cd( q ′ , h M ) = g cd( Q n , h M ) = 1.
The cell coordinate is handled by Lemma 9. □
Since every intermediate modulus divides the final one, a tail coprime to the final modulus is coprime to each intermediate modulus, and the induction of Theorem 10 goes through with Lemma 11 in place of Lemma 9.
Cell refinement preserves the cell containing each true orbit point, as the following example shows.
Figure 3. The cell [ 1 / 4 , 1 / 2 ) [1/4,1/2) [ 1/4 , 1/2 ) at K = 4 K=4 K = 4 splits into cells 3, 4, 5 at f K = 12 fK=12 f K = 12 . The point θ = 2 / 5 \theta=2/5 θ = 2/5 belongs to cell 4. The residue coordinate is unchanged. This is an inclusion for true orbit states, not a lifting assertion for arbitrary graph walks.
Word-labelled certificates
Word-labelled graphs and coverings
Let C ⊆ [ 1 − b , a − 1 ] ∩ Z C \subseteq[1-b,a-1] \cap\mathbb{Z} C ⊆ [ 1 − b , a − 1 ] ∩ Z be a finite set of carries, the alphabet . A word-labelled graph G = ( V , E ) G=(V,E) G = ( V , E ) consists of a finite vertex set V V V and a finite set E E E of edges e = ( u , w , v ) e=(u,w,v) e = ( u , w , v ) with u , v ∈ V u,v \in V u , v ∈ V and w ∈ C + w \in C^+ w ∈ C + a nonempty finite word; ∣ w ∣ ≥ 1 |w| \ge1 ∣ w ∣ ≥ 1 is the length of the edge. Edges are identified as triples: the same triple is one edge, and edges with the same endpoints and different words are distinct. An infinite walk is
v 0 → w 0 v 1 → w 1 ⋯ v_0 \xrightarrow{w_0} v_1 \xrightarrow{w_1} \cdots v 0 w 0 v 1 w 1 ⋯
with each ( v i , w i , v i + 1 ) ∈ E (v_i,w_i,v_{i+1}) \in E ( v i , w i , v i + 1 ) ∈ E ; its output is the concatenation
w 0 w 1 w 2 ⋯ ∈ C N , w_0w_1w_2\cdots\in C^{\mathbb{N}}, w 0 w 1 w 2 ⋯ ∈ C N ,
an infinite word because no edge has length zero. A one-step graph of § 3 is the special case in which every word has length one.
Let ( c n ) (c_n) ( c n ) be the carry sequence of a true orbit and n 0 ≥ 0 n_0 \ge0 n 0 ≥ 0 . We say that G G G covers the tail from n 0 n_0 n 0 , written G ⊨ n 0 G \models n_0 G ⊨ n 0 , if there are an infinite walk ( v i , w i ) i ≥ 0 (v_i,w_i)_{i\ge0} ( v i , w i ) i ≥ 0 of G G G and times t 0 = n 0 < t 1 < t 2 < ⋯ t_0=n_0<t_1<t_2<\cdots t 0 = n 0 < t 1 < t 2 < ⋯ with
t i + 1 = t i + ∣ w i ∣ , w i = ( c t i , c t i + 1 , … , c t i + 1 − 1 ) ( i ≥ 0 ) ; t_{i+1}=t_i+|w_i|,\qquad w_i=(c_{t_i},c_{t_i+1},\ldots,c_{t_{i+1}-1})\qquad(i\ge0); t i + 1 = t i + ∣ w i ∣ , w i = ( c t i , c t i + 1 , … , c t i + 1 − 1 ) ( i ≥ 0 ) ;
that is, the output of the walk equals ( c n ) n ≥ n 0 (c_n)_{n\ge n_0} ( c n ) n ≥ n 0 . For each operation Φ \Phi Φ below (removal, contraction, lifting) we prove tail preservation : if G ⊨ n 0 G \models n_0 G ⊨ n 0 (together with an arithmetic hypothesis specific to the operation), then Φ ( G ) ⊨ n 1 \Phi(G) \models n_1 Φ ( G ) ⊨ n 1 for some n 1 ≥ n 0 n_1 \ge n_0 n 1 ≥ n 0 . The starting time may increase at each operation and may depend on ξ \xi ξ ; no finite prefix is preserved.
The weighted phase criterion and removal
Let C C C be a cyclic SCC of G G G , that is, an SCC containing at least one internal edge ( u , w , v ) (u,w,v) ( u , w , v ) with u , v ∈ C u,v \in C u , v ∈ C . Let h : C → Z h:C\to\mathbb{Z} h : C → Z be any integer-valued function, and for an internal edge e = ( u , w , v ) e=(u,w,v) e = ( u , w , v ) put
δ ( e ) = h ( u ) + ∣ w ∣ − h ( v ) , \delta(e)=h(u)+|w|-h(v), δ ( e ) = h ( u ) + ∣ w ∣ − h ( v ) ,
d = d C = gcd { ∣ δ ( e ) ∣ : e an internal edge of C } . (22) d=d_C=\gcd\{|\delta(e)|:e\text{ an internal edge of }C\}. \tag*{(22)} d = d C = g cd{ ∣ δ ( e ) ∣ : e an internal edge of C } . (22)
Lemma 12 (weighted phase criterion). (a) d ≥ 1 d \ge1 d ≥ 1 , and every internal edge satisfies
h ( v ) ≡ h ( u ) + ∣ w ∣ ( m o d d ) ; h(v) \equiv h(u) + |w| \pmod d; h ( v ) ≡ h ( u ) + ∣ w ∣ ( mod d ) ; the total word length of every nonempty closed walk in C C C is a positive multiple of d d d .
(b) Suppose there is a map λ : Z / d → C \lambda: \mathbb{Z}/d \to C λ : Z / d → C such that for every internal edge e = ( u , w , v ) e = (u,w,v) e = ( u , w , v ) and every letter position 0 ≤ i < ∣ w ∣ 0 \le i < |w| 0 ≤ i < ∣ w ∣ ,
w i = λ ( ( h ( u ) + i ) m o d d ) . (23) w_i = \lambda((h(u)+i) \bmod d). \tag*{(23)} w i = λ (( h ( u ) + i ) mod d ) . (23) Then every infinite walk ( v i , w i ) (v_i,w_i) ( v i , w i ) inside C C C has output y = w 0 w 1 ⋯ y = w_0w_1\cdots y = w 0 w 1 ⋯ with
y t = λ ( ( h ( v 0 ) + t ) m o d d ) y_t = \lambda((h(v_0)+t) \bmod d) y t = λ (( h ( v 0 ) + t ) mod d ) for all t ≥ 0 t \ge0 t ≥ 0 ; in particular y t + d = y t y_{t+d} = y_t y t + d = y t for all t t t .
We call C C C certified (with respect to h h h ) when (19) holds for some λ \lambda λ .
Proof. (a) Take an internal edge e 1 = ( u , w , v ) e_1 = (u,w,v) e 1 = ( u , w , v ) and, by strong connectivity, a path e 2 ⋯ e m e_2 \cdots e_m e 2 ⋯ e m from v v v to u u u inside C C C (empty if u = v u = v u = v ). Along the closed walk e 1 ⋯ e m e_1 \cdots e_m e 1 ⋯ e m the terms of h h h telescope, so
∑ k ≤ m δ ( e k ) = ∑ k ≤ m ∣ w k ∣ ≥ 1. \sum_{k \le m} \delta(e_k) = \sum_{k \le m} |w_k| \ge1. k ≤ m ∑ δ ( e k ) = k ≤ m ∑ ∣ w k ∣ ≥ 1.
Hence not all δ ( e ) \delta(e) δ ( e ) vanish and d ≥ 1 d \ge1 d ≥ 1 . The congruence is the definition of the gcd, and the total length of a nonempty closed walk equals the sum of its δ \delta δ , a positive multiple of d d d .
(b) Put τ i = ∑ k < i ∣ w k ∣ \tau_i = \sum_{k<i} |w_k| τ i = ∑ k < i ∣ w k ∣ . Induction along the walk with (a) gives
h ( v i ) ≡ h ( v 0 ) + τ i ( m o d d ) . h(v_i) \equiv h(v_0) + \tau_i \pmod d. h ( v i ) ≡ h ( v 0 ) + τ i ( mod d ) .
The output letter at position t = τ i + k t = \tau_i + k t = τ i + k with 0 ≤ k < ∣ w i ∣ 0 \le k < |w_i| 0 ≤ k < ∣ w i ∣ is
( w i ) k = λ ( ( h ( v i ) + k ) m o d d ) = λ ( ( h ( v 0 ) + t ) m o d d ) . (w_i)_k = \lambda((h(v_i)+k) \bmod d) = \lambda((h(v_0)+t) \bmod d). ( w i ) k = λ (( h ( v i ) + k ) mod d ) = λ (( h ( v 0 ) + t ) mod d ) .
□
Lemma 12 is a sufficient condition for any integer-valued h h h . For the algorithms below, choose a root ρ ∈ C \rho\in C ρ ∈ C and, for each v ∈ C v \in C v ∈ C , a path π v \pi_v π v from ρ \rho ρ to v v v inside C C C , and set
h ( v ) = ∣ out ( π v ) ∣ . h(v) = |\operatorname{out}(\pi_v)|. h ( v ) = ∣ out ( π v ) ∣.
Thus h ( v ) h(v) h ( v ) is the total word length, rather than the number of edges. The path to ρ \rho ρ may be empty, and the other paths need not be shortest. The implementations use the first root paths found by their graph traversals.
Unless an arbitrary h h h is explicitly specified, certified and uncertified below refer to the full test (19) with these root path lengths. With this convention the test is complete for eventual periodicity of all internal infinite outputs, and its outcome is independent of the root and paths (Theorem 21 and Corollary 22). A test left unfinished because of a resource limit is inconclusive.
By Lemma 12(a), every phase s ∈ Z / d s \in\mathbb{Z}/d s ∈ Z / d carries at least one letter of some internal edge, since a closed walk of total length ℓ ≥ d \ell\ge d ℓ ≥ d occupies the phases h ( v 0 ) , … , h ( v 0 ) + ℓ − 1 h(v_0), \ldots, h(v_0)+\ell-1 h ( v 0 ) , … , h ( v 0 ) + ℓ − 1 . With all words of length one, (19) is the phase criterion of § 3.2 .
Removal. Let U U U be the family of uncertified cyclic SCCs of G G G . Define
R ( G ) = ( ⋃ C ∈ U C , { ( u , w , v ) ∈ E : ∃ C ∈ U , u , v ∈ C } ) . R(G) = \left(\bigcup_{C \in U} C,\ \{(u,w,v) \in E : \exists C \in U,\ u,v \in C\}\right). R ( G ) = ( C ∈ U ⋃ C , {( u , w , v ) ∈ E : ∃ C ∈ U , u , v ∈ C } ) .
only the internal edges of uncertified components are kept; edges between components, acyclic components, and certified components are dropped.
Proposition 13 (tail preservation under removal). If G ⊨ n 0 G \models n_0 G ⊨ n 0 , then R ( G ) ⊨ n 1 R(G) \models n_1 R ( G ) ⊨ n 1 for some n 1 ≥ n 0 n_1 \ge n_0 n 1 ≥ n 0 .
Proof. The covering walk is an infinite walk in a finite graph, so by Lemma 6 there are i 1 i_1 i 1 and a cyclic SCC C C C with v i ∈ C v_i \in C v i ∈ C for all i ≥ i 1 i \ge i_1 i ≥ i 1 ; the edges ( v i , w i , v i + 1 ) (v_i,w_i,v_{i+1}) ( v i , w i , v i + 1 ) , i ≥ i 1 i \ge i_1 i ≥ i 1 , are internal to C C C . If C C C were certified, Lemma 12 (b) would give
c n + d = c n c_{n+d}=c_n c n + d = c n for all n ≥ t i 1 n \ge t_{i_1} n ≥ t i 1 , with d ≥ 1 d \ge1 d ≥ 1 , contrary to Lemma 4 . Hence C ∈ U C \in\mathcal{U} C ∈ U , and ( v i , w i ) i ≥ i 1 (v_i,w_i)_{i\ge i_1} ( v i , w i ) i ≥ i 1 is a walk of R ( G ) R(G) R ( G ) ; take n 1 = t i 1 n_1=t_{i_1} n 1 = t i 1 . □
Keeping only internal edges is sound because Lemma 6 makes every edge of the tail internal to one component. Dropping an internal edge of an uncertified component would not be sound; keeping more edges would be sound but would change the reported counts.
The phase test can be read as a consistency check on letters assigned to cyclic positions.
Figure 4. Two abstract word graphs with one-letter labels. In both panels, h ( u ) = 0 h(u)=0 h ( u ) = 0 , h ( v ) = 1 h(v)=1 h ( v ) = 1 are total word lengths of paths from root u u u , and d = 2 d=2 d = 2 . The left cycle is certified. Adding the dashed edge on the right creates two different letters at phase zero, so the full test fails. These examples illustrate the criterion, not the particular carry alphabet for 5 / 2 5/2 5/2 .
Exact contraction of deterministic paths
Let G ′ = R ( G ) G'=R(G) G ′ = R ( G ) . Identical triples are merged first; this does not change the set of walks. Out-degrees deg + ( u ) \deg^{+}(u) deg + ( u ) are counted in G ′ G' G ′ after merging.
Lemma 14. (a) Every vertex of G ′ G' G ′ has deg + ≥ 1 \deg^{+} \ge1 deg + ≥ 1 . (b) If every vertex of a component C C C of G ′ G' G ′ has deg + = 1 \deg^{+}=1 deg + = 1 , then C C C is a simple directed cycle (a single vertex with a self-loop included), and C C C is certified in the sense of Lemma 12 for the root path lengths along the cycle.
Proof. (a) If ∣ C ∣ ≥ 2 |C| \ge2 ∣ C ∣ ≥ 2 , strong connectivity gives every vertex an internal out-edge; if ∣ C ∣ = 1 |C|=1 ∣ C ∣ = 1 , cyclicity gives a self-loop. (b) With unique successors the internal edges form a functional graph, and a strongly connected functional graph is one cycle
v 1 → w 1 ⋯ → w m v 1 v_1 \xrightarrow{w_1} \cdots\xrightarrow{w_m} v_1 v 1 w 1 ⋯ w m v 1
Put L = ∑ ∣ w k ∣ L=\sum|w_k| L = ∑ ∣ w k ∣ , h ( v 1 ) = 0 h(v_1)=0 h ( v 1 ) = 0 ,
h ( v k + 1 ) = h ( v k ) + ∣ w k ∣ . h(v_{k+1})=h(v_k)+|w_k|. h ( v k + 1 ) = h ( v k ) + ∣ w k ∣.
Then δ ( e k ) = 0 \delta(e_k)=0 δ ( e k ) = 0 for k < m k<m k < m , δ ( e m ) = L \delta(e_m)=L δ ( e m ) = L , and d = L d=L d = L ; each phase 0 ≤ s < L 0\le s<L 0 ≤ s < L carries exactly one letter, the s s s -th letter of w 1 ⋯ w m w_1\cdots w_m w 1 ⋯ w m , so (19) holds. □
Hence, when removal uses the full test with root path lengths, no component consisting only of out-degree-one vertices reaches the contraction step. The implementations nevertheless keep one anchor vertex in such a component as a safeguard (used when a phase test is skipped because of a resource bound); in all computations of Section 5 this rule never fired.
Definition (macro vertices and contraction). Let B B B consist of all vertices of G ′ G' G ′ with deg + ≥ 2 \deg^+\ge2 deg + ≥ 2 , together with one anchor (the least vertex in the vertex order) in every component that contains no such vertex. For u ∈ B u\in B u ∈ B and each out-edge e = ( u , w , v ) e=(u,w,v) e = ( u , w , v ) of u u u : while v ∉ B v\notin B v ∈ / B , follow the unique out-edge ( v , w ′ , v ′ ) (v,w',v') ( v , w ′ , v ′ ) of v v v and replace w ← w w ′ w\leftarrow ww' w ← w w ′ , v ← v ′ v\leftarrow v' v ← v ′ . When first v ∈ B v\in B v ∈ B , record the macro edge ( u , w , v ) (u,w,v) ( u , w , v ) . The contraction P ( G ′ ) P(G') P ( G ′ ) has vertex set B B B and edge set the set of macro edges (identical triples merged).
Lemma 15. The iteration in the definition terminates, and every infinite walk of G ′ G' G ′ visits B B B infinitely often.
Proof. If the iteration did not terminate, the vertices visited would all have out-degree one and would be finitely many, so the iteration would enter a cycle Z Z Z of out-degree-one vertices. The unique out-edges of Z Z Z stay in Z Z Z , so Z Z Z has no edge to its complement in its component C C C ; strong connectivity gives C = Z C=Z C = Z , a component of out-degree-one vertices, whose anchor lies in B ∩ Z B\cap Z B ∩ Z , and the iteration stops there: a contradiction. The same argument applies to an infinite walk that avoids B B B from some point on. □
Proposition 16 (exactness of contraction). Every infinite walk of G ′ G' G ′ starting at a vertex of B B B determines an infinite walk of P ( G ′ ) P(G') P ( G ′ ) whose vertex sequence is the sequence of visits to B B B of the former, whose output is the same infinite word, and whose k k k -th macro edge has length equal to the total length of the corresponding segment; conversely, every infinite walk of P ( G ′ ) P(G') P ( G ′ ) arises in this way from at least one infinite walk of G ′ G' G ′ . Consequently, if G ′ ⊨ n 1 G'\models n_1 G ′ ⊨ n 1 then
P ( G ′ ) ⊨ n 2 , P(G')\models n_2, P ( G ′ ) ⊨ n 2 , where n 2 n_2 n 2 is the first time at or after n 1 n_1 n 1 at which the covering walk visits B B B .
Proof. At a vertex u ∈ B u\in B u ∈ B the walk chooses an edge e = ( u , w , v ) e=(u,w,v) e = ( u , w , v ) ; while v ∉ B v\notin B v ∈ / B it is forced through the unique out-edge, following the same vertices and words as the iteration in the definition, until it reaches the next vertex of B B B after finitely many steps (Lemma 15).
Thus each segment between consecutive visits to B B B is exactly one macro edge, and conversely each macro edge expands to at least one path of G ′ G' G ′ (after identical triples are merged, two segments with the same start, word, and end give the same macro edge, so the correspondence is surjective but need not be injective).
The correspondence is segment by segment, and outputs are concatenations of the same words; only the forward direction is used for tail preservation. The covering statement follows, the time n 2 n_2 n 2 existing by Lemma 15. □
Contraction is used here only between removal and lifting; the cell count K K K is fixed at the initial stage of the word method, and cell coordinates enter only through the initial edges. We do not use, and do not claim, any refinement of cells after a contraction. For the ratio 5 / 3 5/3 5/3 the in-direction counterpart of this contraction is also used; it is defined and proved exact in Appendix § 17 .§ 2 (Lemma 75 ).
Contraction changes the segmentation of the output word while preserving every letter and its order.
Figure 5. An exact contraction. The vertex x x x has one outgoing edge; u u u and v v v are macro vertices because each has two outgoing edges. The words ( − 1 ) (-1) ( − 1 ) and ( 1 , 3 ) (1,3) ( 1 , 3 ) concatenate to ( − 1 , 1 , 3 ) (-1,1,3) ( − 1 , 1 , 3 ) , whose length remains three. All other edges are retained. Line styles identify corresponding edges.
Lifting by a new prime
Let p p p be a prime with p ∤ b p \nmid b p ∤ b . The lift Lift p ( G ) \operatorname{Lift}_p(G) Lift p ( G ) has vertices ( u , q ) (u,q) ( u , q ) with u ∈ V ( G ) u \in V(G) u ∈ V ( G ) and q ∈ F p × q \in\mathbb{F}_p^{\times} q ∈ F p × . For an edge ( u , w , v ) ∈ E ( G ) (u,w,v) \in E(G) ( u , w , v ) ∈ E ( G ) with w = ( c 0 , … , c ℓ − 1 ) w=(c_0,\ldots,c_{\ell-1}) w = ( c 0 , … , c ℓ − 1 ) and q 0 = q q_0=q q 0 = q , compute
q i + 1 = b − 1 ( a q i + c i ) m o d p ( 0 ≤ i < ℓ ) . q_{i+1}=b^{-1}(a q_i+c_i)\bmod p \qquad(0\le i<\ell). q i + 1 = b − 1 ( a q i + c i ) mod p ( 0 ≤ i < ℓ ) .
There is an edge ( ( u , q 0 ) , w , ( v , q ℓ ) ) ((u,q_0),w,(v,q_\ell)) (( u , q 0 ) , w , ( v , q ℓ )) if and only if q 0 , q 1 , … , q ℓ q_0,q_1,\ldots,q_\ell q 0 , q 1 , … , q ℓ are all nonzero. The condition on the endpoint residue q ℓ q_\ell q ℓ is included, since q ℓ q_\ell q ℓ is the starting residue of the next edge. Vertices incident to no edge may be deleted: a vertex without out-edges never lies on an infinite walk, and a vertex without in-edges lies only at the start of one, so deleting them preserves coverings after shifting the start by one edge.
Proposition 17 (tail preservation under lifting). Let p ∤ b p\nmid b p ∤ b , G ⊨ n 0 G\models n_0 G ⊨ n 0 , and suppose p ∤ Q n p\nmid Q_n p ∤ Q n for all n ≥ n ′ n\ge n' n ≥ n ′ . Then
Lift p ( G ) ⊨ n 1 \operatorname{Lift}_p(G)\models n_1 Lift p ( G ) ⊨ n 1 for n 1 = t i 0 n_1=t_{i_0} n 1 = t i 0 , where i 0 i_0 i 0 is the least index with t i 0 ≥ max ( n 0 , n ′ ) t_{i_0}\ge\max(n_0,n') t i 0 ≥ max ( n 0 , n ′ ) .
Proof. For i ≥ i 0 i\ge i_0 i ≥ i 0 put
q ( i ) = Q t i m o d p ≠ 0. q^{(i)}=Q_{t_i}\bmod p\ne0. q ( i ) = Q t i mod p = 0.
Reducing b Q n + 1 = a Q n + c n bQ_{n+1}=aQ_n+c_n b Q n + 1 = a Q n + c n modulo p p p gives
Q n + 1 = b − 1 ( a Q n + c n ) . Q_{n+1}=b^{-1}(aQ_n+c_n). Q n + 1 = b − 1 ( a Q n + c n ) .
Hence the forward iteration along w i = ( c t i , … , c t i + 1 − 1 ) w_i=(c_{t_i},\ldots,c_{t_{i+1}-1}) w i = ( c t i , … , c t i + 1 − 1 ) starting at q ( i ) q^{(i)} q ( i ) produces the residues of Q t i , Q t i + 1 , … , Q t i + 1 Q_{t_i},Q_{t_i+1},\ldots,Q_{t_{i+1}} Q t i , Q t i + 1 , … , Q t i + 1 , all nonzero, ending at q ( i + 1 ) q^{(i+1)} q ( i + 1 ) .
Thus
( ( v i , q ( i ) ) , w i , ( v i + 1 , q ( i + 1 ) ) ) \left((v_i,q^{(i)}),w_i,(v_{i+1},q^{(i+1)})\right) ( ( v i , q ( i ) ) , w i , ( v i + 1 , q ( i + 1 ) ) )
is an edge of the lift, and ( v i , q ( i ) ) i ≥ i 0 (v_i,q^{(i)})_{i\geq i_0} ( v i , q ( i ) ) i ≥ i 0 is a covering walk. □
Enumerating all starting residues q ∈ F p × q\in\mathbb{F}_p^\times q ∈ F p × is what makes the argument independent of the size of the initial integer: whatever unit Q t i Q_{t_i} Q t i mod p p p is, the corresponding vertex exists.
Lemma 18 (root formula). Let p ∤ a b p\nmid ab p ∤ ab , and let
C 0 = 0 , C i + 1 = a C i + b i c i C_0=0,\qquad C_{i+1}=aC_i+b^ic_i C 0 = 0 , C i + 1 = a C i + b i c i for a word w = ( c 0 , … , c ℓ − 1 ) w=(c_0,\ldots,c_{\ell-1}) w = ( c 0 , … , c ℓ − 1 ) , so that (8) holds. Put
R i = − C i a − i ( m o d p ) , R_i=-C_ia^{-i}\pmod p, R i = − C i a − i ( mod p ) , so that R 0 = 0 R_0=0 R 0 = 0 and
R i + 1 = R i − c i b i a − i − 1 . R_{i+1}=R_i-c_i b^i a^{-i-1}. R i + 1 = R i − c i b i a − i − 1 . For a starting residue q q q , the forward iteration has q 0 , … , q ℓ q_0,\ldots,q_\ell q 0 , … , q ℓ all nonzero if and only if
q ∉ { R 0 , … , R ℓ } , q\notin\{R_0,\ldots,R_\ell\}, q ∈ / { R 0 , … , R ℓ } , and then
q ℓ = α q + β with α = ( a b − 1 ) ℓ , q_\ell=\alpha q+\beta\qquad\text{with}\qquad\alpha=(ab^{-1})^\ell, q ℓ = α q + β with α = ( a b − 1 ) ℓ , β 0 = 0 , β i + 1 = a b − 1 β i + b − 1 c i . \beta_0=0,\qquad\beta_{i+1}=ab^{-1}\beta_i+b^{-1}c_i. β 0 = 0 , β i + 1 = a b − 1 β i + b − 1 c i .
Proof. By (8) applied to any integer lift of q q q ,
b i q i = a i q + C i . b^i q_i=a^i q+C_i. b i q i = a i q + C i .
Since p ∤ b p\nmid b p ∤ b , q i ≡ 0 q_i\equiv0 q i ≡ 0 if and only if a i q + C i ≡ 0 a^i q+C_i\equiv0 a i q + C i ≡ 0 , that is, q ≡ − C i a − i = R i ( m o d p ) q\equiv-C_i a^{-i}=R_i\pmod p q ≡ − C i a − i = R i ( mod p ) (p ∤ a p\nmid a p ∤ a ). The recurrence for R i R_i R i is
− ( a C i + b i c i ) a − i − 1 = R i − c i b i a − i − 1 , -(aC_i+b^ic_i)a^{-i-1}=R_i-c_i b^i a^{-i-1}, − ( a C i + b i c i ) a − i − 1 = R i − c i b i a − i − 1 ,
and the affine form of q ℓ q_\ell q ℓ is the expansion of
q i + 1 = a b − 1 q i + b − 1 c i . q_{i+1}=ab^{-1}q_i+b^{-1}c_i. q i + 1 = a b − 1 q i + b − 1 c i .
□
Thus enumeration by forbidden starting residues and forward iteration give the same edge set; implementation A uses the former and implementation B the latter (§ 9 ). If p ∣ b p\mid b p ∣ b , no inverse of b b b exists and
0 ≡ a Q n + c n ( m o d p ) , 0\equiv aQ_n+c_n\pmod p, 0 ≡ a Q n + c n ( mod p ) ,
so Q n Q_n Q n mod p p p is determined by c n c_n c n alone and the condition p ∤ Q n p\nmid Q_n p ∤ Q n is equivalent to c n ≢ 0 ( m o d p ) c_n\not\equiv0\pmod p c n ≡ 0 ( mod p ) , a condition on the alphabet. If p ∣ a p\mid a p ∣ a , then
Q n + 1 ≡ b − 1 c n , Q_{n+1}\equiv b^{-1}c_n, Q n + 1 ≡ b − 1 c n ,
independent of the starting residue; provided every letter of the alphabet is coprime to p p p (as for the alphabets of Lemmas 23 and 24, whose letters are coprime to a b ab ab ), the lift multiplies vertices by p − 1 p-1 p − 1 without removing anything, while an edge whose word contains a letter divisible by p p p would be removed for every starting residue. This is how the primes 2 and 5 are handled in § 5 .
Checking an entire word under a prime lift requires every intermediate residue, not just its endpoints.
a = 5 , b = 2 , p = 7 , w = ( − 1 , 1 ) a=5,\quad b=2,\quad p=7,\quad w=(-1,1) a = 5 , b = 2 , p = 7 , w = ( − 1 , 1 )
q i + 1 = 4 ( 5 q i + c i ) ( m o d 7 ) q_{i+1}=4(5q_i+c_i)\pmod{7} q i + 1 = 4 ( 5 q i + c i ) ( mod 7 )
Figure 6. Two lifts of the same word ( − 1 , 1 ) (-1,1) ( − 1 , 1 ) for a = 5 a=5 a = 5 , b = 2 b=2 b = 2 , p = 7 p=7 p = 7 , where 2 − 1 = 4 ( m o d 7 ) 2^{-1}=4\pmod{7} 2 − 1 = 4 ( mod 7 ) . Starting at residue 1 gives 1, 2, 2, so the edge survives. Starting at 3 gives 3, 0, 4, so it is discarded even though both endpoints are nonzero. Every displayed residue follows from integer arithmetic modulo seven.
The finite success theorem
Hypothesis (H). A finite set S 0 S_0 S 0 of primes with
M 0 = ∏ p ∈ S 0 p M_0=\prod_{p\in S_0}p M 0 = p ∈ S 0 ∏ p
and an alphabet C C C satisfy: for every ξ > 0 \xi>0 ξ > 0 and every n n n ,
gcd ( Q n , M 0 ) = gcd ( Q n + 1 , M 0 ) = 1 \gcd(Q_n,M_0)=\gcd(Q_{n+1},M_0)=1 g cd( Q n , M 0 ) = g cd( Q n + 1 , M 0 ) = 1
implies c n ∈ C c_n\in C c n ∈ C .
Theorem 19 (word-labelled finite success). Let a > b ≥ 2 a>b\ge2 a > b ≥ 2 , gcd ( a , b ) = 1 \gcd(a,b)=1 g cd( a , b ) = 1 , K ≥ 1 K\ge1 K ≥ 1 , let S 0 , C S_0,C S 0 , C satisfy (H), and let p 1 , … , p s p_1,\ldots,p_s p 1 , … , p s be distinct primes with p k ∤ a b p_k\nmid ab p k ∤ ab and p k ∉ S 0 p_k\notin S_0 p k ∈ / S 0 . Let G 0 i n G_0^{\mathrm{in}} G 0 in be the graph with vertices { 0 , … , K − 1 } \{0,\ldots,K-1\} { 0 , … , K − 1 } and edges ( j , ( c ) , k ) (j,(c),k) ( j , ( c ) , k ) for all c ∈ C c\in C c ∈ C and 0 ≤ j , k < K 0\le j,k<K 0 ≤ j , k < K with
a j − b ( k + 1 ) < c K < a ( j + 1 ) − b k . aj-b(k+1)<cK<a(j+1)-bk. aj − b ( k + 1 ) < cK < a ( j + 1 ) − bk . Define
G k o u t = P ( R ( G k i n ) ) ( 0 ≤ k ≤ s ) , G_k^{\mathrm{out}}=P(R(G_k^{\mathrm{in}}))\quad(0\le k\le s), G k out = P ( R ( G k in )) ( 0 ≤ k ≤ s ) , G k i n = Lift p k ( G k − 1 o u t ) ( 1 ≤ k ≤ s ) . G_k^{\mathrm{in}}=\operatorname{Lift}_{p_k}(G_{k-1}^{\mathrm{out}})\quad(1\le k\le s). G k in = Lift p k ( G k − 1 out ) ( 1 ≤ k ≤ s ) . If G s o u t = ∅ G_s^{\mathrm{out}}=\varnothing G s out = ∅ , then for M = M 0 ∏ k = 1 s p k M=M_0\prod_{k=1}^{s}p_k M = M 0 ∏ k = 1 s p k ,
∀ ξ > 0 ∀ N ∈ N ∃ n ≥ max ( N , 1 ) : gcd ( Q n , M ) > 1. (24) \forall\xi>0\ \forall N\in\mathbb{N}\ \exists n\ge\max(N,1):\ \gcd(Q_n,M)>1. \tag*{(24)} ∀ ξ > 0 ∀ N ∈ N ∃ n ≥ max ( N , 1 ) : g cd( Q n , M ) > 1. (24)
Proof. Fix ξ > 0 \xi>0 ξ > 0 and suppose (20) fails: there is n 0 ≥ 1 n_0\ge1 n 0 ≥ 1 with
gcd ( Q n , M ) = 1 \gcd(Q_n,M)=1 g cd( Q n , M ) = 1
for all n ≥ n 0 n\ge n_0 n ≥ n 0 . By (H), c n ∈ C c_n\in C c n ∈ C for all $n\ge n_0. The cell j n = ⌊ K θ n ⌋ j_n=\lfloor K\theta_n\rfloor j n = ⌊ K θ n ⌋ lies in { 0 , … , K − 1 } \{0,\ldots,K-1\} { 0 , … , K − 1 } , and Proposition 5 with M = 1 M=1 M = 1 (where (E2) is trivial) shows that
j n → c n j n + 1 j_n \xrightarrow{c_n} j_{n+1} j n c n j n + 1
is an edge of G 0 i n G^{\mathrm{in}}_0 G 0 in . Hence
G 0 i n ⊨ n 0 G^{\mathrm{in}}_0 \models n_0 G 0 in ⊨ n 0
with all words of length one.
Proposition 13 and Proposition 16 give
G 0 o u t ⊨ n 1 . G^{\mathrm{out}}_0 \models n_1. G 0 out ⊨ n 1 .
For k ≥ 1 k\ge1 k ≥ 1 , since p k ∣ M p_k\mid M p k ∣ M we have p k ∤ Q n p_k\nmid Q_n p k ∤ Q n for n ≥ n 0 n\ge n_0 n ≥ n 0 , so Proposition 17 gives
G k i n ⊨ n k ′ , G^{\mathrm{in}}_k \models n'_k, G k in ⊨ n k ′ ,
and again Propositions 13 and 16 give
G k o u t ⊨ n k + 1 . G^{\mathrm{out}}_k \models n_{k+1}. G k out ⊨ n k + 1 .
After finitely many steps
G s o u t ⊨ n s + 1 , G^{\mathrm{out}}_s \models n_{s+1}, G s out ⊨ n s + 1 ,
but the empty graph has no infinite walk. □
The quantification in (24) is the same as in (21) ; the graphs take no ξ \xi ξ as input. The primes of S 0 S_0 S 0 are not lifted; they enter only through the alphabet, and (H) is an arithmetic statement to be verified by hand for each base (Lemmas 23 and 24).
Corollary 20. Under the hypotheses of Theorem 19, with
P max = max ( S 0 ∪ { p 1 , … , p s } ) , P_{\max}=\max(S_0\cup\{p_1,\ldots,p_s\}), P m a x = max ( S 0 ∪ { p 1 , … , p s }) , for every ξ > 0 \xi>0 ξ > 0 and every N N N there is n ≥ max ( N , 1 ) n\ge\max(N,1) n ≥ max ( N , 1 ) with Q n Q_n Q n composite.
Proof. By (8) , Q n > P max Q_n>P_{\max} Q n > P m a x for all large n n n . Apply (24) beyond that threshold and beyond N N N . A prime p p p dividing gcd ( Q n , M ) \gcd(Q_n,M) g cd( Q n , M ) satisfies
p ≤ P max < Q n , p\le P_{\max}<Q_n, p ≤ P m a x < Q n ,
so Q n = p v Q_n=pv Q n = p v with v > 1 v>1 v > 1 . □
The all-edge test and commuting closed words
Theorem 21. Let C C C be a cyclic SCC of a word-labelled graph and ρ ∈ C \rho\in C ρ ∈ C . The following are equivalent.
(a) There exist an integer-valued h h h on C C C and λ \lambda λ satisfying (23) ; moreover, if this holds for some h h h , then it holds when h ( v ) h(v) h ( v ) is the total word length of any chosen path from ρ \rho ρ to v v v inside C C C .
(b) Every infinite walk inside C C C has eventually periodic output.
(c) Any two nonempty closed output words at ρ \rho ρ (outputs of nonempty closed walks from ρ \rho ρ to ρ \rho ρ inside C C C ) commute.
Proof. (a)⇒(b) is Lemma 12(b).
(b)⇒(c). Suppose closed words u , v u,v u , v at ρ \rho ρ with u v ≠ v u uv\ne vu uv = v u . Let U , V U,V U , V be the corresponding closed walks; U V UV U V and V U VU V U are closed walks with outputs x 0 = u v x_0=uv x 0 = uv and x 1 = v u x_1=vu x 1 = v u of the same length L L L , x 0 ≠ x 1 x_0\ne x_1 x 0 = x 1 . For ε ∈ { 0 , 1 } N \varepsilon\in\{0,1\}^{\mathbb{N}} ε ∈ { 0 , 1 } N the walk X ε 0 X ε 1 ⋯ X_{\varepsilon_0}X_{\varepsilon_1}\cdots X ε 0 X ε 1 ⋯ stays in C C C and has output
z ε = x ε 0 x ε 1 ⋯ z_\varepsilon=x_{\varepsilon_0}x_{\varepsilon_1}\cdots z ε = x ε 0 x ε 1 ⋯
Reading z ε z\varepsilon z ε in blocks of length L L L recovers ε \varepsilon ε . If z ε z_\varepsilon z ε were eventually periodic with period P P P , it would have period P L PL P L , and block decoding would make ε \varepsilon ε eventually periodic. Choosing ε \varepsilon ε not eventually periodic (for instance 010010001 ⋯ 010010001\cdots 010010001 ⋯ ) contradicts (b).
(c)⇒ \Rightarrow ⇒ (a). Two commuting nonempty words are powers of a common word (induction on length, removing the shorter word from the front of the longer), and the primitive root of a nonempty word is unique, so all closed words at ρ \rho ρ are powers of one primitive word z z z ; put p = ∣ z ∣ p=|z| p = ∣ z ∣ . For each v ∈ C v\in C v ∈ C fix a path π v \pi_v π v from ρ \rho ρ to v v v with
h ( v ) = ∣ out ( π v ) ∣ h(v)=|\operatorname{out}(\pi_v)| h ( v ) = ∣ out ( π v ) ∣
and a return path σ v \sigma_v σ v from v v v to ρ \rho ρ . The paths at v = ρ v=\rho v = ρ are allowed to be empty.
For an internal edge e = ( u , w , v ) e=(u,w,v) e = ( u , w , v ) the words
ω 1 = out ( π u ) w out ( σ v ) and ω 2 = out ( π v ) out ( σ v ) \omega_1=\operatorname{out}(\pi_u)\,w\,\operatorname{out}(\sigma_v)
\qquad\text{and}\qquad
\omega_2=\operatorname{out}(\pi_v)\operatorname{out}(\sigma_v) ω 1 = out ( π u ) w out ( σ v ) and ω 2 = out ( π v ) out ( σ v )
are closed words, with ω 1 ≠ ε \omega_1\ne\varepsilon ω 1 = ε . Both are powers of z z z , allowing the zeroth power when ω 2 \omega_2 ω 2 is empty. Therefore p p p divides
∣ ω 1 ∣ − ∣ ω 2 ∣ = h ( u ) + ∣ w ∣ − h ( v ) ; |\omega_1|-|\omega_2|=h(u)+|w|-h(v); ∣ ω 1 ∣ − ∣ ω 2 ∣ = h ( u ) + ∣ w ∣ − h ( v ) ;
hence p ∣ δ ( e ) p\mid\delta(e) p ∣ δ ( e ) for every internal edge and p ∣ d p\mid d p ∣ d . Define
λ ( s ) = z s m o d p \lambda(s)=z_{s\bmod p} λ ( s ) = z s mod p
for s ∈ Z / d s\in\mathbb{Z}/d s ∈ Z / d , well defined since p ∣ d p\mid d p ∣ d .
As ω 1 = z k \omega_1=z^k ω 1 = z k , its letter at position t t t is z t m o d p z_{t\bmod p} z t mod p , and w i w_i w i sits at position h ( u ) + i h(u)+i h ( u ) + i of ω 1 \omega_1 ω 1 , so
w i = z ( h ( u ) + i ) m o d p = λ ( ( h ( u ) + i ) m o d d ) . w_i=z_{(h(u)+i)\bmod p}=\lambda\bigl((h(u)+i)\bmod d\bigr). w i = z ( h ( u ) + i ) mod p = λ ( ( h ( u ) + i ) mod d ) .
This is (19) for the root path lengths h h h .
Corollary 22. Choose a root ρ ∈ C \rho\in C ρ ∈ C and paths π v : ρ → v \pi_v:\rho\to v π v : ρ → v inside C C C , and put
h ( v ) = ∣ out ( π v ) ∣ . h(v)=|\operatorname{out}(\pi_v)|. h ( v ) = ∣ out ( π v ) ∣. Whether (19) holds is independent of the root and of these paths. For every such choice,
d = g C : = gcd { ∣ out ( γ ) ∣ : γ is a nonempty closed walk in C } . d=g_C:=\gcd\{|\operatorname{out}(\gamma)|:\gamma\text{ is a nonempty closed walk in }C\}. d = g C := g cd{ ∣ out ( γ ) ∣ : γ is a nonempty closed walk in C } . In particular, two complete tests using root path lengths agree on which components are certified and on the value of d d d .
Proof. By Theorem 21, the test holds for any such choice exactly when every internal infinite walk has eventually periodic output. This property does not involve the root or paths.
For the equality of gcds, summing δ ( e ) \delta(e) δ ( e ) around a closed walk gives its total word length. Hence d ∣ g C d\mid g_C d ∣ g C . Conversely, for e = ( u , w , v ) e=(u,w,v) e = ( u , w , v ) , choose a return path σ v : v → ρ \sigma_v:v\to\rho σ v : v → ρ . Then
δ ( e ) = ∣ out ( π u e σ v ) ∣ − ∣ out ( π v σ v ) ∣ . \delta(e)=|\operatorname{out}(\pi_u e\sigma_v)|-|\operatorname{out}(\pi_v\sigma_v)|. δ ( e ) = ∣ out ( π u e σ v ) ∣ − ∣ out ( π v σ v ) ∣.
Both terms are lengths of closed walks at ρ \rho ρ . Each is divisible by g C g_C g C , including a zero length if the second walk is empty. Thus g C ∣ δ ( e ) g_C\mid\delta(e) g C ∣ δ ( e ) for every internal edge, so g C ∣ d g_C\mid d g C ∣ d . This proves d = g C d=g_C d = g C , whether or not the component is certified.
The restriction on h h h is essential. Consider the two-edge cycle
u → 2 v , v → 4 u . u\xrightarrow{2}v,\qquad v\xrightarrow{4}u. u 2 v , v 4 u .
Its infinite outputs are the two rotations of ( 2 , 4 ) ∞ (2,4)^\infty ( 2 , 4 ) ∞ . The root path lengths h ( u ) = 0 h(u)=0 h ( u ) = 0 , h ( v ) = 1 h(v)=1 h ( v ) = 1 give
( δ ( u → v ) , δ ( v → u ) ) = ( 0 , 2 ) , d = 2 , (\delta(u \to v),\delta(v \to u))=(0,2), \qquad d=2, ( δ ( u → v ) , δ ( v → u )) = ( 0 , 2 ) , d = 2 ,
and (19) holds with λ ( 0 ) = 2 \lambda(0)=2 λ ( 0 ) = 2 , λ ( 1 ) = 4 \lambda(1)=4 λ ( 1 ) = 4 . The arbitrary choice h ( u ) = h ( v ) = 0 h(u)=h(v)=0 h ( u ) = h ( v ) = 0 instead gives
( δ ( u → v ) , δ ( v → u ) ) = ( 1 , 1 ) , d = 1. (\delta(u \to v),\delta(v \to u))=(1,1), \qquad d=1. ( δ ( u → v ) , δ ( v → u )) = ( 1 , 1 ) , d = 1.
Both letters would then occupy phase zero, so (19) fails. For a general integer-valued h h h , the telescoping argument gives only d ∣ g C d \mid g_C d ∣ g C ; Lemma 12 still guarantees soundness, but failure of that test need not imply a nonperiodic output.
With root path lengths, Theorem 21 does give the converse: if the full test (19) fails, the component contains an internal infinite walk whose output is not eventually periodic. No sound test that removes a component solely because all its infinite outputs are eventually periodic can remove such a component from the same finite graph. Further removal requires additional arithmetic or realizability information.
The rational bases
This section treats 7 / 5 7/5 7/5 and 5 / 2 5/2 5/2 . The certificate for 5 / 3 5/3 5/3 , which also uses the contraction of in-degree-one chains, is given in Appendix § 17 .
The ratio 7 / 5 7/5 7/5 by the one-step method
Use
( a , b , M , K 0 , f ) = ( 7 , 5 , 4290 , 32 , 4 ) . (25) (a,b,M,K_0,f)=(7,5,4290,32,4). \tag*{(25)} ( a , b , M , K 0 , f ) = ( 7 , 5 , 4290 , 32 , 4 ) . (25)
The initial graph has φ ( 4290 ) K 0 = 960 ⋅ 32 = 30720 \varphi(4290)K_0=960\cdot32=30720 φ ( 4290 ) K 0 = 960 ⋅ 32 = 30720 vertices. The two one-step implementations described in § 9.2 produce the four stages in Table 1 . The retained set is empty at K = 2048 K=2048 K = 2048 .
Table 1: The complete stages for (21). Edges are counted with their labels. The certified column counts certified cyclic SCCs, and the final column is ∣ U t ∣ |U_t| ∣ U t ∣ .
Table 1.
The numbers of all SCCs, including noncyclic singletons, are respectively 29312, 4440, 2865, and 3658. At the first three stages there is one uncertified cyclic SCC, of respective size 1363, 952, and 944. Their internal edge counts are 2332, 1550, and 1505, and all three have d = 1 d=1 d = 1 . Their removal is not justified by the phase test; they are carried into the next subdivision. In particular, the vertex counts of the next stages are exactly four times these retained sizes.
Table 2 groups certified components by K K K , d d d , and normalized primitive word. Component sizes are listed with multiplicity. There are no certified components at K = 512 K=512 K = 512 .
Table 2. All nine groups of certified components. The parameter d d d is (17) , and p p p is the length of the displayed primitive word.
Thus five distinct primitive words occur. The rows with d = 6 d = 6 d = 6 , p = 1 p = 1 p = 1 and d = 12 d = 12 d = 12 , p = 4 p = 4 p = 4 , for example, show why d d d must not be reported as the primitive word length. The words describe possible output within the outer graph components; an infinite true orbit cannot remain in any of these components, by Lemma 4.
As additional checks of the procedure, Table 3 applies the same construction at K 0 = 32 K_0 = 32 K 0 = 32 to the three floor results of DN, Theorem 1. Each stops after its first stage. These are reproductions of the stated divisibility conclusions, not new claims about those three bases.
Table 3. Known cases reproduced by both one-step implementations; all retained sets are empty.
The ratio 7/5 by the word method
Lemma 23. Let a = 7 a = 7 a = 7 , b = 5 b = 5 b = 5 . If Q n Q_n Q n and Q n + 1 Q_{n+1} Q n + 1 are odd and 5 ∤ Q n 5 \nmid Q_n 5 ∤ Q n , then
c n ∈ { − 4 , − 2 , 2 , 4 , 6 } . c_n \in\{-4, -2, 2, 4, 6\}. c n ∈ { − 4 , − 2 , 2 , 4 , 6 } . Hence ( H ) (H) ( H ) holds with
S 0 = { 2 , 5 } and C = { − 4 , − 2 , 2 , 4 , 6 } . S_0 = \{2, 5\} \qquad\text{and} \qquad C = \{-4, -2, 2, 4, 6\}. S 0 = { 2 , 5 } and C = { − 4 , − 2 , 2 , 4 , 6 } .
Proof. By (7) , − 4 ≤ c n ≤ 6 -4 \le c_n \le6 − 4 ≤ c n ≤ 6 . Since 5 ≡ 7 ≡ 1 ( m o d 2 ) 5 \equiv7 \equiv1 \pmod{2} 5 ≡ 7 ≡ 1 ( mod 2 ) ,
c n = 5 Q n + 1 − 7 Q n ≡ Q n + 1 − Q n ( m o d 2 ) , c_n = 5Q_{n+1} - 7Q_n \equiv Q_{n+1} - Q_n \pmod{2}, c n = 5 Q n + 1 − 7 Q n ≡ Q n + 1 − Q n ( mod 2 ) ,
which is even when both terms are odd; so
c n ∈ { − 4 , − 2 , 0 , 2 , 4 , 6 } . c_n \in\{-4, -2, 0, 2, 4, 6\}. c n ∈ { − 4 , − 2 , 0 , 2 , 4 , 6 } .
If c n = 0 c_n=0 c n = 0 then 5 Q n + 1 = 7 Q n 5Q_{n+1}=7Q_n 5 Q n + 1 = 7 Q n and, as gcd ( 5 , 7 ) = 1 \operatorname{gcd}(5,7)=1 gcd ( 5 , 7 ) = 1 , 5 ∣ Q n 5\mid Q_n 5 ∣ Q n . □
The prime 2 could also be lifted by Proposition 17, but F 2 × = { 1 } \mathbb{F}_2^\times=\{1\} F 2 × = { 1 } and the lift condition reduces to “all letters even”, already contained in the alphabet. The prime 5 divides b b b and cannot be lifted; by the remark after Lemma 18, 5 ∤ Q n 5\nmid Q_n 5 ∤ Q n is equivalent to c n ≢ 0 ( m o d 5 ) c_n\not\equiv0\pmod{5} c n ≡ 0 ( mod 5 ) , which within the range [ − 4 , 6 ] [-4,6] [ − 4 , 6 ] and with even letters means c n ≠ 0 c_n\ne0 c n = 0 . Thus the alphabet expresses the avoidance of 2 and 5 as a necessary condition, which is all that Theorem 19 requires.
Apply Theorem 19 with K = 2048 K=2048 K = 2048 , the alphabet of Lemma 23, and the primes p 1 , p 2 , p 3 = 3 , 11 , 13 p_1,p_2,p_3=3,11,13 p 1 , p 2 , p 3 = 3 , 11 , 13 . The value K = 2048 K=2048 K = 2048 is a free parameter, chosen to match the final cell count of Table 1 ; soundness does not depend on it. Table 4 lists the four stages. Both implementations of Section 9.3 agree on every vertex and every word-labelled edge of the eight graphs; the output graph of the last stage is empty. In these four stages no macro edge is produced by more than one contracted chain, so the number of distinct edges equals the number counted with multiplicity.
Table 4. The word method for 7/5 with K = 2048 K=2048 K = 2048 , C = { − 4 , − 2 , 2 , 4 , 6 } C=\{-4,-2,2,4,6\} C = { − 4 , − 2 , 2 , 4 , 6 } , primes 3, 11, 13. Input graphs are G k i n G_k^{\mathrm{in}} G k in and output graphs G k o u t G_k^{\mathrm{out}} G k out of Theorem 19. “Uncertified vertices” counts the vertices of uncertified cyclic SCCs.
The total numbers of SCCs at the four stages are 1, 3387, 5840, and 704. The final prime set is { 2 , 3 , 5 , 11 , 13 } \{2,3,5,11,13\} { 2 , 3 , 5 , 11 , 13 } , as in (25) . This is not a theorem about a new base but a second proof of (1) by the method of Section 4, and a consistency check between the two methods.
The ratio 5/2
Lemma 24. Let a = 5 a=5 a = 5 , b = 2 b=2 b = 2 . If Q n Q_n Q n is odd, then
c n ∈ { − 1 , 1 , 3 } . c_n\in\{-1,1,3\}. c n ∈ { − 1 , 1 , 3 } . Hence ( H ) (H) ( H ) holds with
S 0 = { 2 } and C = { − 1 , 1 , 3 } . S_0=\{2\}\qquad\text{and}\qquad C=\{-1,1,3\}. S 0 = { 2 } and C = { − 1 , 1 , 3 } .
Proof. By (7) , − 1 ≤ c n ≤ 4 -1\le c_n\le4 − 1 ≤ c n ≤ 4 , and
c n = 2 Q n + 1 − 5 Q n ≡ Q n ( m o d 2 ) . c_n=2Q_{n+1}-5Q_n\equiv Q_n\pmod{2}. c n = 2 Q n + 1 − 5 Q n ≡ Q n ( mod 2 ) .
Only the oddness of Q n Q_n Q n is used; neither the oddness of Q n + 1 Q_{n+1} Q n + 1 nor avoidance of 5 is needed. The prime 5 is not included in the modulus of (2) , for three independent reasons: 5 ∣ a 5\mid a 5 ∣ a , so Lemma 18 does not apply; by the remark after Lemma 18, a lift by 5 would give
Q n + 1 ≡ 2 − 1 c n = 3 c n ( m o d 5 ) , (26) Q_{n+1}\equiv2^{-1}c_n=3c_n\pmod{5}, \tag*{(26)} Q n + 1 ≡ 2 − 1 c n = 3 c n ( mod 5 ) , (26)
which is nonzero for c n ∈ { − 1 , 1 , 3 } c_n \in\{-1,1,3\} c n ∈ { − 1 , 1 , 3 } (residues 2, 3, 4), so on a tail with odd carries 5 ∤ Q n + 1 5 \nmid Q_{n+1} 5 ∤ Q n + 1 holds automatically and the lift would remove nothing; and the statement without 5 is stronger.
With K = 4 K = 4 K = 4 , the initial graph G 0 i n G^{\mathrm{in}}_0 G 0 in has the four vertices j ∈ { 0 , 1 , 2 , 3 } j \in\{0,1,2,3\} j ∈ { 0 , 1 , 2 , 3 } and the twelve edges ( j , ( c ) , k ) (j,(c),k) ( j , ( c ) , k ) with c ∈ { − 1 , 1 , 3 } c \in\{-1,1,3\} c ∈ { − 1 , 1 , 3 } and
5 j − 2 ( k + 1 ) < 4 c < 5 ( j + 1 ) − 2 k , 5j - 2(k+1) < 4c < 5(j+1) - 2k, 5 j − 2 ( k + 1 ) < 4 c < 5 ( j + 1 ) − 2 k ,
listed in Table 5 . By Theorem 19 every tail avoiding the primes of (2) walks in this graph; this is a covering of all cells, not a sampling of initial values, and no converse realizability is asserted.
Table 5. The twelve initial edges for 5 / 2 5/2 5/2 , K = 4 K = 4 K = 4 , as pairs (carry, target cell).
The initial four-cell graph is small enough to display completely, grouped by carry label.
Figure 7. All twelve edges of the initial 5 / 2 5/2 5/2 graph at K = 4 K = 4 K = 4 , separated into three panels by carry c c c . Each panel uses the same four vertices; the panels are overlaid to recover the full graph. The edges are enumerated by the strict integer inequality shown below them and agree with Table 5 .
Apply Theorem 19 with K = 4 K = 4 K = 4 , the alphabet of Lemma 24 , and the nine primes
p 1 , … , p 9 = 3 , 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31. p_1,\ldots,p_9 = 3,7,11,13,17,19,23,29,31. p 1 , … , p 9 = 3 , 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31.
Table 6 lists the ten stages. Both implementations of § 9.3 agree on every vertex and every word-labelled edge of the twenty graphs, and the output graph of stage 9 is empty: all 1084 cyclic SCCs of G 9 i n G^{\mathrm{in}}_9 G 9 in are certified. Edges are counted as sets of triples (§ 4.1 ); the multiplicities with which contracted chains produce the same triple carry no proof content and are recorded in Appendix A for comparison with the original research notes.
Table 6. The word method for 5 / 2 5/2 5/2 with K = 4 K = 4 K = 4 , C = { − 1 , 1 , 3 } \mathcal{C} = \{-1,1,3\} C = { − 1 , 1 , 3 } . Columns as in Table 4 .
The total numbers of SCCs at the ten stages are 1, 2, 16, 25, 123, 1060, 20800, 109409, 832175, and 2850774. The maximal word length of an input graph can be smaller than that of the preceding output graph (207 at stage 9 against 210 at stage 8), because a lift discards every edge whose word forces a zero residue for all starting residues. The anchor rule of § 4.3 never fired. A direct product of all residues modulo the modulus of (2) with four cells would have
4 φ ( 40112098026 ) = 30656102400 4\varphi(40112098026) = 30656102400 4 φ ( 40112098026 ) = 30656102400
vertices; the staged construction never forms it.
The vertex counts show how growth under lifting alternates with reduction inside each stage.
Proofs of Theorem 1 and Corollary 2
Proof of Theorem 1. (i) The finite calculation verifies the graphs, retained sets, and refinements in (20) for the parameters (25) , with s = 3 s = 3 s = 3 and U 3 = ∅ U_3 = \varnothing U 3 = ∅ . Verification includes the full edge sets and component conditions, as detailed in § 9 ; the summary counts alone are not the certificate. Theorem 10 gives (1) .
Alternatively, Table 4 verifies the hypotheses of Theorem 19 with S 0 = { 2 , 5 } S_0 = \{2,5\} S 0 = { 2 , 5 } , C = { − 4 , − 2 , 2 , 4 , 6 } \mathcal{C} = \{-4,-2,2,4,6\} C = { − 4 , − 2 , 2 , 4 , 6 } (Lemma 23 ), K = 2048 K = 2048 K = 2048 , primes 3, 11, 13, and G 3 o u t = ∅ G^{\mathrm{out}}_3 = \varnothing G 3 out = ∅ ; then (24) with
M = 10 ⋅ 3 ⋅ 11 ⋅ 13 = 4290 M = 10 \cdot3 \cdot11 \cdot13 = 4290 M = 10 ⋅ 3 ⋅ 11 ⋅ 13 = 4290
is (1) .
(ii) Table 6 verifies the hypotheses of Theorem 19 with S 0 = { 2 } S_0 = \{2\} S 0 = { 2 } , C = { − 1 , 1 , 3 } \mathcal{C} = \{-1,1,3\} C = { − 1 , 1 , 3 } (Lemma 24 ), K = 4 K = 4 K = 4 , the nine primes 3, 7, 11, 13, 17, 19, 23, 29, 31, each distinct, coprime to 10, and not in S 0 S_0 S 0 , and G 9 o u t = ∅ G^{\mathrm{out}}_9 = \varnothing G 9 out = ∅ . Then (24) with
M = 2 ⋅ 3 ⋅ 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 = 40112098026 M = 2 \cdot3 \cdot7 \cdot11 \cdot13 \cdot17 \cdot19 \cdot23 \cdot29 \cdot31 = 40112098026 M = 2 ⋅ 3 ⋅ 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 = 40112098026
is (2) .
(iii) Part (iii) is proved in Appendix § 17 .§ 3 from Theorem 76 and Table 17 . □
Table 17.
Figure 8. Vertex counts from Table 6 . The ordinate is log 10 ( N + 1 ) \log_{10}(N+1) log 10 ( N + 1 ) , so the final empty output N = 0 N=0 N = 0 is visible at height zero. Solid circles show input counts, dashed squares counts after removal, and dotted diamonds counts after contraction. Connecting segments guide the eye; they do not assert monotone decay across stages. All input cyclic SCCs are certified at stage nine.
Proof of Corollary 2. By (7), eventually Q n > 13 Q_n>13 Q n > 13 for the sequence with ratio 7 / 5 7/5 7/5 , Q n > 31 Q_n>31 Q n > 31 for the sequence with ratio 5 / 2 5/2 5/2 , and Q n > 37 Q_n>37 Q n > 37 for the sequence with ratio 5 / 3 5/3 5/3 . Given any lower bound on the index, apply Theorem 1 beyond both that bound and the growth threshold. A prime divisor of the gcd in (1) lies in { 2 , 3 , 5 , 11 , 13 } \{2,3,5,11,13\} { 2 , 3 , 5 , 11 , 13 } , one of the gcd in (2) lies in { 2 , 3 , 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31 } \{2,3,7,11,13,17,19,23,29,31\} { 2 , 3 , 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31 } , and one of the gcd in (2a) lies in { 2 , 3 , 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31 , 37 } \{2,3,7,11,13,17,19,23,29,31,37\} { 2 , 3 , 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31 , 37 } ; in each case it is a proper divisor of Q n Q_n Q n . Hence Q n Q_n Q n is composite, at arbitrarily large indices. This is Corollary 20 in the first two cases, and the same argument with Theorem 76 in the third. □
Quantitative waiting time for 7/5
A finite version of nonperiodicity
Lemma 25. Let u ∈ N u\in\mathbb{N} u ∈ N , 1 ≤ d ≤ ℓ 1\le d\le\ell 1 ≤ d ≤ ℓ , and suppose
c u + i + d = c u + i c_{u+i+d}=c_{u+i} c u + i + d = c u + i for 0 ≤ i < ℓ − d 0\le i<\ell-d 0 ≤ i < ℓ − d . Put
D i = Q u + i + d − Q u + i . D_i=Q_{u+i+d}-Q_{u+i}. D i = Q u + i + d − Q u + i . Then
b ℓ − d ∣ D 0 . (27) b^{\ell-d}\mid D_0. \tag*{(27)} b ℓ − d ∣ D 0 . (27) If D 0 > 0 D_0>0 D 0 > 0 , then with ν b ( D 0 ) = max { k ≥ 0 : b k ∣ D 0 } \nu_b(D_0)=\max\{k\ge0:b^k\mid D_0\} ν b ( D 0 ) = max { k ≥ 0 : b k ∣ D 0 } ,
ℓ ≤ d + ν b ( D 0 ) , \ell\le d+\nu_b(D_0), ℓ ≤ d + ν b ( D 0 ) , b ℓ − d ≤ D 0 < r d ( Q u + 1 ) − Q u . (28) b^{\ell-d}\le D_0<r^d(Q_{u}+1)-Q_{u}. \tag*{(28)} b ℓ − d ≤ D 0 < r d ( Q u + 1 ) − Q u . (28)
Proof. For 0 ≤ i < ℓ − d 0\le i<\ell-d 0 ≤ i < ℓ − d , subtracting the recurrences (6) gives
b D i + 1 = ( a Q u + i + d + c u + i + d ) − ( a Q u + i + c u + i ) = a D i . bD_{i+1}=(aQ_{u+i+d}+c_{u+i+d})-(aQ_{u+i}+c_{u+i})=aD_i. b D i + 1 = ( a Q u + i + d + c u + i + d ) − ( a Q u + i + c u + i ) = a D i .
Induction gives
b k D k = a k D 0 b^k D_k = a^k D_0 b k D k = a k D 0
for 0 ≤ k ≤ ℓ − d 0 \le k \le\ell-d 0 ≤ k ≤ ℓ − d , and gcd ( a k , b k ) = 1 \gcd(a^k,b^k)=1 g cd( a k , b k ) = 1 gives (22).
If D 0 > 0 D_0>0 D 0 > 0 , the positive divisor b ℓ − d b^{\ell-d} b ℓ − d is at most D 0 D_0 D 0 , so ℓ − d ≤ ν b ( D 0 ) \ell-d \le\nu_b(D_0) ℓ − d ≤ ν b ( D 0 ) . Finally
Q u + d ≤ x u + d = r d x u < r d ( Q u + 1 ) . Q_{u+d} \le x_{u+d}=r^d x_u < r^d(Q_u+1). Q u + d ≤ x u + d = r d x u < r d ( Q u + 1 ) .
The integer b b b need not be prime.
Lemma 26. If x n ≥ b / ( a − b ) x_n \ge b/(a-b) x n ≥ b / ( a − b ) , then Q n + 1 ≥ Q n + 1 Q_{n+1} \ge Q_n+1 Q n + 1 ≥ Q n + 1 . In particular, if Q u ≥ b / ( a − b ) Q_u \ge b/(a-b) Q u ≥ b / ( a − b ) , then Q n Q_n Q n is strictly increasing for n ≥ u n \ge u n ≥ u , and
D 0 = Q u + d − Q u ≥ d ≥ 1 D_0=Q_{u+d}-Q_u \ge d \ge1 D 0 = Q u + d − Q u ≥ d ≥ 1 in Lemma 25 .
Proof.
r x n − x n = x n ( a − b ) / b ≥ 1 , r x_n-x_n=x_n(a-b)/b \ge1, r x n − x n = x n ( a − b ) / b ≥ 1 , so
⌊ r x n ⌋ ≥ ⌊ x n + 1 ⌋ = Q n + 1. \lfloor r x_n\rfloor\ge\lfloor x_n+1\rfloor=Q_n+1. ⌊ r x n ⌋ ≥ ⌊ x n + 1 ⌋ = Q n + 1.
For 7 / 5 7/5 7/5 , b / ( a − b ) = 5 / 2 b/(a-b)=5/2 b / ( a − b ) = 5/2 , so Q u ≥ 3 Q_u \ge3 Q u ≥ 3 suffices. A positive difference must not be assumed when the integer parts stay at 0 or 1.
From a rank certificate to a waiting time
Let H H H be a finite labelled graph with edges of length one, together with a partition of V ( H ) V(H) V ( H ) into blocks and the following data.
(Q-rank) An integer ρ ( B ) ∈ [ 1 , ρ max ] \rho(B) \in[1,\rho_{\max}] ρ ( B ) ∈ [ 1 , ρ m a x ] for every block B B B such that every edge u → v u \to v u → v between distinct blocks satisfies
ρ ( B ( v ) ) ≥ ρ ( B ( u ) ) + 1. \rho(B(v)) \ge\rho(B(u))+1. ρ ( B ( v )) ≥ ρ ( B ( u )) + 1.
Put R = ρ max − 1 R=\rho_{\max}-1 R = ρ m a x − 1 .
(Q-block) Every block either has no internal edge, or is periodic : there are d B ∈ [ 1 , D ] d_B \in[1,D] d B ∈ [ 1 , D ] , h B : B → Z h_B:B \to\mathbb{Z} h B : B → Z , and λ B : Z / d B → C \lambda_B:\mathbb{Z}/d_B \to\mathbb{C} λ B : Z / d B → C such that every internal edge u → c v u \xrightarrow{c} v u c v satisfies
h B ( v ) ≡ h B ( u ) + 1 ( m o d d B ) h_B(v) \equiv h_B(u)+1 \pmod{d_B} h B ( v ) ≡ h B ( u ) + 1 ( mod d B )
and
c = λ B ( h B ( u ) m o d d B ) . c=\lambda_B(h_B(u)\bmod d_B). c = λ B ( h B ( u ) mod d B ) .
η ( B ) ≥ 1 [ B periodic ] , \eta(B) \ge1[B\text{ periodic}], η ( B ) ≥ 1 [ B periodic ] ,
and
η ( B ( v ) ) ≥ η ( B ( u ) ) + 1 [ B ( v ) periodic ] \eta(B(v)) \ge\eta(B(u))+1[B(v)\text{ periodic}] η ( B ( v )) ≥ η ( B ( u )) + 1 [ B ( v ) periodic ]
for every edge between distinct blocks.
No block with internal edges may remain uncertified; blocks need not be SCCs. An SCC decomposition supplies such data through its acyclic quotient, with ρ \rho ρ the length of a longest block sequence ending at the block and η \eta η the largest number of periodic blocks on such a sequence.
By (Q-rank), every finite walk in H H H has at most R R R edges between distinct blocks, visits each block during one contiguous interval, and by (Q-cyc) visits at most m m m periodic blocks.
An orbit segment of length T T T lies in H H H if the states σ ( 0 ) , … , σ ( T ) \sigma(0),\ldots,\sigma(T) σ ( 0 ) , … , σ ( T ) of the orbit (in the coordinates of H H H ) are vertices of H H H and σ ( n ) → c n σ ( n + 1 ) \sigma(n) \xrightarrow{c_n} \sigma(n+1) σ ( n ) c n σ ( n + 1 ) is an edge of H H H for 0 ≤ n < T 0 \le n < T 0 ≤ n < T .
Theorem 27 (waiting time from a rank certificate). Let
κ = log b r > 0 , γ ≥ 1 + κ , \kappa=\log_b r>0,\qquad\gamma\ge1+\kappa, κ = log b r > 0 , γ ≥ 1 + κ , P = Q 0 ≥ b a − b , and A ≥ log b ( P + 2 ) . P=Q_0\ge\frac{b}{a-b},\qquad\text{and}\qquad A\ge\log_b(P+2). P = Q 0 ≥ a − b b , and A ≥ log b ( P + 2 ) . If an orbit segment of length T T T lies in H H H , then
T ≤ R γ m + ( A + γ D ) ∑ j = 0 m − 1 γ j . (29) T\le R\gamma^m+(A+\gamma D)\sum_{j=0}^{m-1}\gamma^j. \tag*{(29)} T ≤ R γ m + ( A + γ D ) j = 0 ∑ m − 1 γ j . (29) For m = 0 m=0 m = 0 the sum is empty and T ≤ R T\le R T ≤ R .
Proof. Step 1: stay in one periodic block. Suppose the segment enters a periodic block B B B at time u u u and the states at times u , … , u + ℓ u,\ldots,u+\ell u , … , u + ℓ lie in B B B , so the edges at times u , … , u + ℓ − 1 u,\ldots,u+\ell-1 u , … , u + ℓ − 1 are internal. Induction with (Q-block) gives
c u + i = λ B ( ( h B ( σ ( u ) ) + i ) mod d B ) , c_{u+i}=\lambda_B\bigl((h_B(\sigma(u))+i)\mathbin{\operatorname{mod}}d_B\bigr), c u + i = λ B ( ( h B ( σ ( u )) + i ) mod d B ) ,
hence
c u + i + d B = c u + i c_{u+i+d_B}=c_{u+i} c u + i + d B = c u + i
for 0 ≤ i < ℓ − d B 0\le i<\ell-d_B 0 ≤ i < ℓ − d B .
If ℓ ≥ d B \ell\ge d_B ℓ ≥ d B , Lemma 25 applies, and Lemma 26 (with Q u ≥ P ≥ b / ( a − b ) Q_u\ge P\ge b/(a-b) Q u ≥ P ≥ b / ( a − b ) ) gives D 0 > 0 D_0>0 D 0 > 0 ; so
b ℓ − d B ≤ D 0 < r d B ( Q u + 1 ) and b^{\ell-d_B}\le D_0<r^{d_B}(Q_u+1)\qquad\text{and} b ℓ − d B ≤ D 0 < r d B ( Q u + 1 ) and
ℓ − d B < log b ( Q u + 1 ) + d B κ . \ell-d_B<\log_b(Q_u+1)+d_B\kappa. ℓ − d B < log b ( Q u + 1 ) + d B κ .
Since
Q u ≤ x u = r u ξ < r u ( P + 1 ) , Q_u\le x_u=r^{u}\xi<r^{u}(P+1), Q u ≤ x u = r u ξ < r u ( P + 1 ) ,
we have
Q u + 1 < r u ( P + 1 ) + 1 ≤ r u ( P + 2 ) , Q_u+1<r^{u}(P+1)+1\le r^{u}(P+2), Q u + 1 < r u ( P + 1 ) + 1 ≤ r u ( P + 2 ) ,
so
log b ( Q u + 1 ) < u κ + A . \log_b(Q_u+1)<u\kappa+A. log b ( Q u + 1 ) < u κ + A .
Together,
ℓ < A + κ u + ( 1 + κ ) d B ≤ A + ( γ − 1 ) u + γ D . \ell<A+\kappa u+(1+\kappa)d_B\le A+(\gamma-1)u+\gamma D. ℓ < A + κ u + ( 1 + κ ) d B ≤ A + ( γ − 1 ) u + γ D .
If ℓ < d B \ell<d_B ℓ < d B the same bound holds trivially, since
ℓ < d B ≤ D ≤ γ D . \ell<d_B\le D\le\gamma D. ℓ < d B ≤ D ≤ γ D .
Thus the exit time (or the end of the segment) satisfies
u + ℓ < γ u + A + γ D . u+\ell<\gamma u+A+\gamma D. u + ℓ < γ u + A + γ D .
Step 2: bookkeeping. Let B 0 , … , B s B_0,\ldots,B_s B 0 , … , B s (s ≤ R s\le R s ≤ R ) be the blocks visited, with entry times
u 0 = 0 < u 1 < ⋯ < u s , u_0=0<u_1<\cdots<u_s, u 0 = 0 < u 1 < ⋯ < u s ,
let ℓ k \ell_k ℓ k be the number of internal edges traversed in B k B_k B k , so that
u k + 1 = u k + ℓ k + 1 and T = u s + ℓ s ; u_{k+1}=u_k+\ell_k+1\qquad\text{and}\qquad T=u_s+\ell_s; u k + 1 = u k + ℓ k + 1 and T = u s + ℓ s ;
edgeless blocks have ℓ k = 0 \ell_k=0 ℓ k = 0 .
Let k 1 < ⋯ < k m ′ k_1<\cdots<k_{m'} k 1 < ⋯ < k m ′ (m ′ ≤ m m'\le m m ′ ≤ m ) be the indices of the periodic blocks, k 0 = 0 k_0=0 k 0 = 0 , x 0 = 0 x_0=0 x 0 = 0 ,
x j = u k j + ℓ k j x_j=u_{k_j}+\ell_{k_j} x j = u k j + ℓ k j
the exit time from the j j j -th periodic block,
δ j = k j − k j − 1 for 1 ≤ j ≤ m ′ , \delta_j = k_j-k_{j-1}\qquad\text{for}\qquad1\leq j\leq m', δ j = k j − k j − 1 for 1 ≤ j ≤ m ′ ,
and
δ m ′ + 1 = s − k m ′ . \delta_{m'+1}=s-k_{m'}. δ m ′ + 1 = s − k m ′ .
Between periodic blocks only edgeless blocks occur, so time advances by one per inter-block edge:
u k j = x j − 1 + δ j , T = x m ′ + δ m ′ + 1 , u_{k_j}=x_{j-1}+\delta_j,\qquad T=x_{m'}+\delta_{m'+1}, u k j = x j − 1 + δ j , T = x m ′ + δ m ′ + 1 ,
and
∑ j = 1 m ′ + 1 δ j = s ≤ R . \sum_{j=1}^{m'+1}\delta_j=s\leq R. j = 1 ∑ m ′ + 1 δ j = s ≤ R .
Step 3: expansion. By Step 1,
x j < γ u k j + A + γ D = γ ( x j − 1 + δ j ) + A + γ D . x_j<\gamma u_{k_j}+A+\gamma D=\gamma(x_{j-1}+\delta_j)+A+\gamma D. x j < γ u k j + A + γ D = γ ( x j − 1 + δ j ) + A + γ D .
Induction gives
x m ′ < ∑ j = 1 m ′ γ m ′ − j + 1 δ j + ( A + γ D ) ∑ j = 0 m ′ − 1 γ j . x_{m'}<\sum_{j=1}^{m'}\gamma^{m'-j+1}\delta_j+(A+\gamma D)\sum_{j=0}^{m'-1}\gamma^j. x m ′ < j = 1 ∑ m ′ γ m ′ − j + 1 δ j + ( A + γ D ) j = 0 ∑ m ′ − 1 γ j .
Since γ ≥ 1 \gamma\geq1 γ ≥ 1 , γ m ′ − j + 1 ≤ γ m ′ \gamma^{m'-j+1}\leq\gamma^{m'} γ m ′ − j + 1 ≤ γ m ′ and 1 ≤ γ m ′ 1\leq\gamma^{m'} 1 ≤ γ m ′ , so
T = x m ′ + δ m ′ + 1 < γ m ′ ∑ j = 1 m ′ + 1 δ j + ( A + γ D ) ∑ j < m ′ γ j ≤ R γ m + ( A + γ D ) ∑ j < m γ j . \begin{aligned}
T=x_{m'}+\delta_{m'+1} \\
&<\gamma^{m'}\sum_{j=1}^{m'+1}\delta_j+(A+\gamma D)\sum_{j<m'}\gamma^j \\
&\leq R\gamma^m+(A+\gamma D)\sum_{j<m}\gamma^j.
\end{aligned} T = x m ′ + δ m ′ + 1 < γ m ′ j = 1 ∑ m ′ + 1 δ j + ( A + γ D ) j < m ′ ∑ γ j ≤ R γ m + ( A + γ D ) j < m ∑ γ j .
If m ′ = 0 m'=0 m ′ = 0 then
Each inter-block edge is amplified by a factor of at most γ m \gamma^m γ m , once for every periodic block visited afterwards. The proof handles finite walks only and uses neither infinite walks nor samples of ξ \xi ξ . If any cyclic block is uncertified the theorem does not apply, since a walk may stay in it forever.
The ranks count blocks and periodic blocks along paths, whereas the period records the output inside a block.
The certificate for 7/5
Lemma 28 (reduction of the modulus). Suppose gcd ( Q n , 4290 ) = 1 \gcd(Q_n,4290)=1 g cd( Q n , 4290 ) = 1 for 0 ≤ n ≤ T 0\leq n\leq T 0 ≤ n ≤ T . Then c n ∈ C = { − 4 , − 2 , 2 , 4 , 6 } c_n\in C=\{-4,-2,2,4,6\} c n ∈ C = { − 4 , − 2 , 2 , 4 , 6 } for 0 ≤ n < T 0\leq n<T 0 ≤ n < T , and with M = 429 = 3 ⋅ 11 ⋅ 13 M=429=3\cdot11\cdot13 M = 429 = 3 ⋅ 11 ⋅ 13 and K = 2048 K=2048 K = 2048 , the orbit segment of length T T T lies in the graph
H = G ( 429 , 2048 ) restricted to labels in C . H=G(429,2048)\text{ restricted to labels in }C. H = G ( 429 , 2048 ) restricted to labels in C .
Proof. Lemma 23 gives the alphabet. Since gcd ( Q n , 429 ) = 1 \gcd(Q_n,429)=1 g cd( Q n , 429 ) = 1 , the states ( Q n m o d 429 , ⌊ 2048 θ n ⌋ ) (Q_n\bmod429,\lfloor2048\theta_n\rfloor) ( Q n mod 429 , ⌊ 2048 θ n ⌋) lie in V ( 429 , 2048 ) V(429,2048) V ( 429 , 2048 ) , and Proposition 5 makes consecutive states adjacent with label c n c_n c n .
Figure 9. Illustrative condensation DAG (not the full computed graph). A A A : ρ = 1 \rho= 1 ρ = 1 , η = 0 \eta= 0 η = 0 ; B B B : ρ = 2 \rho= 2 ρ = 2 , η = 1 \eta= 1 η = 1 , d B = 2 d_B = 2 d B = 2 ; C C C : ρ = 2 \rho= 2 ρ = 2 , η = 0 \eta= 0 η = 0 ; D D D : ρ = 3 \rho= 3 ρ = 3 , η = 2 \eta= 2 η = 2 , d D = 3 d_D = 3 d D = 3 ; E E E : ρ = 4 \rho= 4 ρ = 4 , η = 2 \eta= 2 η = 2 . Double border: periodic block. Single border: no internal edge. ρ \rho ρ : maximum number of blocks; η \eta η : maximum number of periodic blocks; d B d_B d B : internal output period. Computed 7/5 certificate (Table 7 ): 491 275 blocks, 35 cyclic blocks; max ρ = 65 \max\rho= 65 max ρ = 65 , max η = 6 \max\eta= 6 max η = 6 , max d B = 13 \max d_B = 13 max d B = 13 . An illustrative condensation DAG distinguishes three quantities: ρ \rho ρ is the maximum number of blocks on a path ending at a block, η \eta η is the maximum number of periodic blocks on such a path, and d B d_B d B is an internal output period. The five-block diagram is schematic. The separate box records the actual 7/5 certificate values from Table 7 ; those values do not describe the five-block example.
Because gcd ( 5 , 429 ) = 1 \gcd(5, 429) = 1 g cd( 5 , 429 ) = 1 , the congruence (E2) has the unique solution
z ≡ 5 − 1 ( 7 q + c ) ( m o d 429 ) ; z \equiv5^{-1}(7q+c) \pmod{429}; z ≡ 5 − 1 ( 7 q + c ) ( mod 429 ) ;
this is a consequence of reducing the modulus from 4290 to 429, where 5 is a non-unit. The avoidance of 2 and 5 is carried by the alphabet, and the prime 7 is not assumed.
The graph H H H has
φ ( 429 ) ⋅ 2048 = 240 ⋅ 2048 = 491520 \varphi(429) \cdot2048 = 240 \cdot2048 = 491520 φ ( 429 ) ⋅ 2048 = 240 ⋅ 2048 = 491520
vertices. Its SCC decomposition and the ranks ρ , η \rho, \eta ρ , η computed on the acyclic quotient give the data of Table 7 . Both implementations of § 9.3 enumerate all vertices and edges of H H H , agree on the block partition, on the attributes of every block, and on the phase labels of every periodic block, and verify the inequalities of (Q-rank), (Q-block), (Q-cyc) on every edge.
Table 7. The rank certificate for 7/5 at M = 429 M = 429 M = 429 , K = 2048 K = 2048 K = 2048 .
Thus (Q-rank) holds with ρ max = 65 \rho_{\max}=65 ρ m a x = 65 , R = 64 R=64 R = 64 ; (Q-cyc) with m = 6 m=6 m = 6 ; (Q-block) with D = 13 D=13 D = 13 . Since 7 4 = 2401 < 3125 = 5 5 7^4=2401<3125=5^5 7 4 = 2401 < 3125 = 5 5 , we have ( 7 / 5 ) 4 < 5 (7/5)^4<5 ( 7/5 ) 4 < 5 , κ = log 5 ( 7 / 5 ) < 1 / 4 \kappa=\log_5(7/5)<1/4 κ = log 5 ( 7/5 ) < 1/4 , and γ = 5 / 4 \gamma=5/4 γ = 5/4 is admissible. With
A = L ( P ) = min { h ≥ 0 : 5 h ≥ P + 2 } ≥ log 5 ( P + 2 ) , A=L(P)=\min\{h\geq0:5^h\geq P+2\}\geq\log_5(P+2), A = L ( P ) = min { h ≥ 0 : 5 h ≥ P + 2 } ≥ log 5 ( P + 2 ) ,
the constants in (29) are, exactly in rational arithmetic,
∑ j = 0 5 ( 5 4 ) j = 11529 1024 , \sum_{j=0}^{5}\left(\frac{5}{4}\right)^j=\frac{11529}{1024}, j = 0 ∑ 5 ( 4 5 ) j = 1024 11529 ,
64 ( 5 4 ) 6 + 5 4 ⋅ 13 ⋅ 11529 1024 = 15625 64 + 749385 4096 = 1749385 4096 , 64\left(\frac{5}{4}\right)^6+\frac{5}{4}\cdot13\cdot\frac{11529}{1024}
=\frac{15625}{64}+\frac{749385}{4096}
=\frac{1749385}{4096}, 64 ( 4 5 ) 6 + 4 5 ⋅ 13 ⋅ 1024 11529 = 64 15625 + 4096 749385 = 4096 1749385 ,
and 1749385 < 428 ⋅ 4096 = 1753088 1749385<428\cdot4096=1753088 1749385 < 428 ⋅ 4096 = 1753088 , 11529 < 12 ⋅ 1024 = 12288 11529<12\cdot1024=12288 11529 < 12 ⋅ 1024 = 12288 . Hence, for an orbit segment of length T T T lying in H H H with P ≥ 3 P\geq3 P ≥ 3 ,
T ≤ 1749385 4096 + 11529 1024 L ( P ) < 428 + 12 L ( P ) . (30) T\leq\frac{1749385}{4096}+\frac{11529}{1024}L(P)<428+12L(P). \tag*{(30)} T ≤ 4096 1749385 + 1024 11529 L ( P ) < 428 + 12 L ( P ) . (30)
Proof of Theorem 3. Let P = ⌊ ξ ⌋ > 13 P=\lfloor\xi\rfloor>13 P = ⌊ ξ ⌋ > 13 and T 0 = 428 + 12 L ( P ) T_0=428+12L(P) T 0 = 428 + 12 L ( P ) . If gcd ( Q n , 4290 ) = 1 \gcd(Q_n,4290)=1 g cd( Q n , 4290 ) = 1 for all 0 ≤ n ≤ T 0 0\leq n\leq T_0 0 ≤ n ≤ T 0 , then by Lemma 28 the orbit segment of length T 0 T_0 T 0 lies in H H H , and Theorem 27 with the certificate of Table 7 (Lemma 26 applies since P > 13 ≥ 3 P>13\geq3 P > 13 ≥ 3 ) gives
T 0 < 428 + 12 L ( P ) = T 0 , T_0<428+12L(P)=T_0, T 0 < 428 + 12 L ( P ) = T 0 ,
a contradiction.
Hence some 0 ≤ n ≤ T 0 0\leq n\leq T_0 0 ≤ n ≤ T 0 has gcd ( Q n , 4290 ) > 1 \gcd(Q_n,4290)>1 g cd( Q n , 4290 ) > 1 . For such n n n , a prime p ∈ { 2 , 3 , 5 , 11 , 13 } p\in\{2,3,5,11,13\} p ∈ { 2 , 3 , 5 , 11 , 13 } divides
Q n ≥ Q 0 = P > 13 ≥ p , Q_n\geq Q_0=P>13\geq p, Q n ≥ Q 0 = P > 13 ≥ p ,
so Q n = p v Q_n=pv Q n = p v with v > 1 v>1 v > 1 is composite.
For the last assertion, apply the result to ξ ′ = ξ ( 7 / 5 ) N \xi'=\xi(7/5)^N ξ ′ = ξ ( 7/5 ) N , for which
⌊ ξ ′ ( 7 / 5 ) n ⌋ = Q N + n \left\lfloor\xi'(7/5)^n\right\rfloor=Q_{N+n} ⌊ ξ ′ ( 7/5 ) n ⌋ = Q N + n
and ⌊ ξ ′ ⌋ = Q N \lfloor\xi'\rfloor=Q_N ⌊ ξ ′ ⌋ = Q N ; the graph H H H does not depend on ξ \xi ξ , and P P P enters only through the bound Q u < r u ( P + 1 ) Q_u<r^u(P+1) Q u < r u ( P + 1 ) . □
The bound (30) itself holds for P ≥ 3 P\geq3 P ≥ 3 ; the hypothesis P > 13 P>13 P > 13 is used only to conclude compositeness. The integer definition of L ( P ) L(P) L ( P ) avoids rounding questions; it equals ⌈ log 5 ( P + 2 ) ⌉ \lceil\log_5(P+2)\rceil ⌈ log 5 ( P + 2 )⌉ for every P ≥ 0 P\geq0 P ≥ 0 .
Scope of the certificate method
This section and the next study the reach of the procedure of § 3 –§ 4 when its operations are fixed precisely. Throughout,
Σ = { 1 − b , … , a − 1 } , \Sigma=\{1-b,\ldots,a-1\}, Σ = { 1 − b , … , a − 1 } ,
and rad M \operatorname{rad} M rad M is the product of the distinct primes dividing M M M .
The general carry alphabet
For a reduced base a / b a/b a / b define
C ( a , b ) = { c ∈ Z : 1 − b ≤ c ≤ a − 1 , c ≡ b − a ( m o d 2 ) , gcd ( c , a b ) = 1 } . (31) C(a,b)=\{c\in\mathbb{Z}:1-b\le c\le a-1,\ c\equiv b-a\pmod{2},\ \gcd(c,ab)=1\}. \tag*{(31)} C ( a , b ) = { c ∈ Z : 1 − b ≤ c ≤ a − 1 , c ≡ b − a ( mod 2 ) , g cd( c , ab ) = 1 } . (31)
Lemma 29. Let rad ( 2 a b ) ∣ M \operatorname{rad}(2ab)\mid M rad ( 2 ab ) ∣ M . Every edge ( q , j ) → e ( z , k ) (q,j)\xrightarrow{e}(z,k) ( q , j ) e ( z , k ) of G ( M , K ) G(M,K) G ( M , K ) has e ∈ C ( a , b ) e\in C(a,b) e ∈ C ( a , b ) . In particular c n ∈ C ( a , b ) c_n\in C(a,b) c n ∈ C ( a , b ) whenever gcd ( Q n Q n + 1 , 2 a b ) = 1 \gcd(Q_nQ_{n+1},2ab)=1 g cd( Q n Q n + 1 , 2 ab ) = 1 . Conversely, for such M M M , the label conditions imposed by the primes dividing 2 a b 2ab 2 ab are exactly e ∈ C ( a , b ) e\in C(a,b) e ∈ C ( a , b ) .
Proof. Let p ∣ a p\mid a p ∣ a ; then p ∤ b p\nmid b p ∤ b and (E2) gives
b z ≡ e ( m o d p ) , bz\equiv e\pmod p, b z ≡ e ( mod p ) ,
so p ∣ e p\mid e p ∣ e if and only if p ∣ z p\mid z p ∣ z , which is excluded as z z z is a unit.
Let p ∣ b p\mid b p ∣ b ; then
0 ≡ a q + e ( m o d p ) , 0\equiv aq+e\pmod p, 0 ≡ a q + e ( mod p ) ,
so p ∣ e p\mid e p ∣ e if and only if p ∣ q p\mid q p ∣ q , excluded.
If a , b a,b a , b are odd and 2 ∣ M 2\mid M 2 ∣ M , then
z ≡ q + e ( m o d 2 ) z\equiv q+e\pmod2 z ≡ q + e ( mod 2 )
with q , z q,z q , z odd, so e e e is even, that is, e ≡ b − a ( m o d 2 ) e\equiv b-a\pmod2 e ≡ b − a ( mod 2 ) ; if one of a , b a,b a , b is even the parity condition e ≡ b − a ( m o d 2 ) e\equiv b-a\pmod2 e ≡ b − a ( mod 2 ) is the same as gcd ( e , a b ) \gcd(e,ab) g cd( e , ab ) being odd, which was shown. The converse is the same computation read backwards. □
For 7 / 5 7/5 7/5 ,
C ( 7 , 5 ) = { − 4 , − 2 , 2 , 4 , 6 } , C(7,5)=\{-4,-2,2,4,6\}, C ( 7 , 5 ) = { − 4 , − 2 , 2 , 4 , 6 } ,
and for 5 / 2 5/2 5/2 ,
C ( 5 , 2 ) = { − 1 , 1 , 3 } : C(5,2)=\{-1,1,3\}: C ( 5 , 2 ) = { − 1 , 1 , 3 } :
the alphabets of Lemmas 23 and 24 are exactly the general ones. When C ( a , b ) C(a,b) C ( a , b ) is used to express avoidance of all primes dividing 2 a b 2ab 2 ab , the conclusion of a certificate is a divisibility statement whose prime set contains all primes dividing 2 a b 2ab 2 ab ; the individual reductions of Section 5 avoid some of these primes (the prime 7 for 7 / 5 7/5 7/5 , the prime 5 for 5 / 2 5/2 5/2 ).
The procedure and its three soundness notions
Word-labelled graphs with expansions. In this section a word-labelled graph has vertex set contained in some V ( M , K ) V(M,K) V ( M , K ) , and each edge u → w v u\xrightarrow{w}v u w v records an expansion path
u = u 0 → w 0 u 1 ⋯ → w ∣ w ∣ − 1 u ∣ w ∣ = v u=u_0\xrightarrow{w_0}u_1\cdots\xrightarrow{w_{|w|-1}}u_{|w|}=v u = u 0 w 0 u 1 ⋯ w ∣ w ∣ − 1 u ∣ w ∣ = v
of edges of G ( M , K ) G(M,K) G ( M , K ) . One-step graphs are the case of length one. For M ∣ M ′ M\mid M' M ∣ M ′ and K ′ = f K K'=fK K ′ = f K , the projection is
π ( q , J ) = ( q m o d M , ⌊ J / f ⌋ ) . \pi(q,J)=(q\bmod M,\lfloor J/f\rfloor). π ( q , J ) = ( q mod M , ⌊ J / f ⌋) .
Pseudo-orbits. A right-directed M M M -pseudo-orbit is a sequence ( q n , θ n , c n ) n ≥ n 0 (q_n,\theta_n,c_n)_{n\ge n_0} ( q n , θ n , c n ) n ≥ n 0 with q n ∈ ( Z / M ) × q_n\in(\mathbb{Z}/M)^\times q n ∈ ( Z / M ) × , θ n ∈ [ 0 , 1 ) \theta_n\in[0,1) θ n ∈ [ 0 , 1 ) , c n ∈ Z c_n\in\mathbb{Z} c n ∈ Z , and
a θ n − b θ n + 1 = c n (exactly, in R ) , b q n + 1 ≡ a q n + c n ( m o d M ) . a\theta_n-b\theta_{n+1}=c_n\quad\text{(exactly, in }\mathbb{R}\text{)},\qquad bq_{n+1}\equiv aq_n+c_n\pmod M. a θ n − b θ n + 1 = c n (exactly, in R ) , b q n + 1 ≡ a q n + c n ( mod M ) .
A left-directed pseudo-orbit satisfies the same conditions for n ≤ n 0 n\le n_0 n ≤ n 0 . A true orbit whose tail avoids the primes of M M M gives a right-directed pseudo-orbit with q n = Q n m o d M q_n=Q_n\bmod M q n = Q n mod M ; a pseudo-orbit gives, for every K K K , a walk ( q n , ⌊ K θ n ⌋ ) (q_n,\lfloor K\theta_n\rfloor) ( q n , ⌊ K θ n ⌋) of G ( M , K ) G(M,K) G ( M , K ) , by the proof of Proposition 5, which uses only the real identity and the half-open cells. A pseudo-orbit modulo M M M reduces to one modulo any divisor of M M M . What a true orbit has and a pseudo-orbit lacks is a single integer sequence Q n Q_n Q n linking residues and fractional parts.
Operations. An execution is a finite sequence Γ 0 , … , Γ s \Gamma_0,\ldots,\Gamma_s Γ 0 , … , Γ s of word-labelled graphs with parameters ( M t , K t ) (M_t,K_t) ( M t , K t ) , M t ∣ M t + 1 M_t\mid M_{t+1} M t ∣ M t + 1 , K t ∣ K t + 1 K_t\mid K_{t+1} K t ∣ K t + 1 , built by the following operations.
(I) Initial graph. Either Γ 0 = G ( M 0 , K 0 ) \Gamma_0 = G(M_0, K_0) Γ 0 = G ( M 0 , K 0 ) on all legal states, with all labels in Σ \Sigma Σ ; or, when the final modulus is to contain rad ( 2 a b ) \operatorname{rad}(2ab) rad ( 2 ab ) , Γ 0 = G ′ ( R 0 , K 0 ) \Gamma_0 = G'(R_0, K_0) Γ 0 = G ′ ( R 0 , K 0 ) , the graph with vertices ( q , j ) (q,j) ( q , j ) , q ∈ ( Z / R 0 ) × q \in(\mathbb{Z}/R_0)^{\times} q ∈ ( Z / R 0 ) × (R 0 = 1 R_0 = 1 R 0 = 1 allowed, gcd ( R 0 , 2 a b ) = 1 \gcd(R_0,2ab) = 1 g cd( R 0 , 2 ab ) = 1 ), edges labelled by e ∈ C ( a , b ) e \in\mathcal{C}(a,b) e ∈ C ( a , b ) with
b z ≡ a q + e ( m o d R 0 ) bz \equiv aq + e \pmod{R_0} b z ≡ a q + e ( mod R 0 ) and (E3); in this form we set M 0 = rad ( 2 a b ) R 0 M_0 = \operatorname{rad}(2ab)R_0 M 0 = rad ( 2 ab ) R 0 , and the residues modulo the primes of 2 a b 2ab 2 ab are represented by the alphabet (Lemma 29 and Proposition 36 ).
(P) Phase removal. Replace Γ t \Gamma_t Γ t by the union of its uncertified cyclic SCCs with their internal edges. In each component, use the total word lengths of paths from a common root and apply (23) to every internal edge and letter (§ 4.2 ; Lemma 7 for length one). The outcome is independent of these choices by Corollary 22.
(C) Contraction. The operation P P P of § 4.3 ; expansion paths are concatenated.
(R) Cell refinement. K t + 1 = f K t K_{t+1} = fK_t K t + 1 = f K t ; a vertex ( q , j ) (q,j) ( q , j ) is replaced by ( q , f j + i ) (q,fj+i) ( q , f j + i ) , 0 ≤ i < f 0 \le i < f 0 ≤ i < f , and each edge by all refinements of its expansion path that satisfy the edge conditions of G ( M t , K t + 1 ) G(M_t,K_{t+1}) G ( M t , K t + 1 ) at every step.
(L) Modulus enlargement. M t + 1 = h M t M_{t+1} = hM_t M t + 1 = h M t ; each edge is replaced by all sequences of residues modulo M t + 1 M_{t+1} M t + 1 along its expansion path that are units and satisfy (E2) at every step (all solutions, with no inverse of b b b assumed). Lifting by a prime p ∤ a b p \nmid ab p ∤ ab (§ 4.4 ) is the case h = p h=p h = p , and in the second form of (I) the new primes do not divide 2 a b 2ab 2 ab .
(A) Carry restriction. If rad ( 2 a b ) ∣ M t \operatorname{rad}(2ab) \mid M_t rad ( 2 ab ) ∣ M t , restrict labels to C ( a , b ) \mathcal{C}(a,b) C ( a , b ) .
Let M 0 \mathfrak{M}_0 M 0 be the procedure allowing exactly these operations. An execution succeeds if Γ s = ∅ \Gamma_s = \varnothing Γ s = ∅ . The executions of § 5 are instances: Table 1 uses (I), (P), (R); Table 4 and Table 6 use the second form of (I) with R 0 = 1 R_0 = 1 R 0 = 1 , then (P), (C), (L).
Soundness. Let ω \omega ω be an infinite walk (right- or left-directed) of G ( M ∗ , K ∗ ) G(M_*,K_*) G ( M ∗ , K ∗ ) with M t ∣ M ∗ M_t \mid M_* M t ∣ M ∗ and K t ∣ K ∗ K_t \mid K_* K t ∣ K ∗ , whose output is not eventually periodic (in the direction of the walk). We say that a tail of ω \omega ω becomes a walk of Γ t \Gamma_t Γ t if there is an infinite walk of Γ t \Gamma_t Γ t whose successive expansion paths coincide with the projection of the state sequence of ω \omega ω to ( M t , K t ) (M_t,K_t) ( M t , K t ) , and whose output is a tail of the carry sequence of ω \omega ω . An operation is
walk-sound if it preserves this property for every such ω \omega ω ;
pseudo-orbit-sound if it preserves it for every M M M -pseudo-orbit with non-eventually-periodic carries, M t ∣ M M_t \mid M M t ∣ M , in place of ω \omega ω ;
orbit-sound if it preserves it for every true orbit tail avoiding the primes of the final modulus.
Walk-soundness implies pseudo-orbit-soundness, which implies orbit-soundness, by the inclusions above. Orbit-soundness of the operations is the content of Theorems 10 and 19 .
Lemma 30 (preservation). The operations (P), (C), (R), (L), (A) are walk-sound, for right- and for left-directed walks.
Proof. (R) By Lemma 31 below, the projection of ω \omega ω to ( M t , K t + 1 ) (M_t,K_{t+1}) ( M t , K t + 1 ) is a walk of G ( M t , K t + 1 ) G(M_t,K_{t+1}) G ( M t , K t + 1 ) whose further projection to ( M t , K t ) (M_t,K_t) ( M t , K t ) is the current expansion path; so it is one of the refined edges.
(L) Likewise, the residues of ω \omega ω modulo M t + 1 M_{t+1} M t + 1 are units satisfying (E2), hence among all solutions.
(A) By Lemma 29 , every label of ω \omega ω lies in C ( a , b ) \mathcal{C}(a,b) C ( a , b ) once rad ( 2 a b ) ∣ M t ∣ M ∗ \operatorname{rad}(2ab) \mid M_t \mid M_* rad ( 2 ab ) ∣ M t ∣ M ∗ . (P) A right-directed infinite walk of Γ t \Gamma_t Γ t eventually stays in one cyclic SCC C C C (Lemma 6 ). For a left-directed walk, the set of times spent in each SCC is an interval, since an SCC cannot be re-entered; finitely many intervals cover Z ≤ n 0 \mathbb{Z}_{\le n_0} Z ≤ n 0 , so the leftmost is unbounded below, and that SCC contains an internal edge. If C C C were certified, the output of the tail would be periodic: for right-directed walks by Lemma 12 (b); for left-directed walks, the congruence of Lemma 12 (a) propagated backwards shows that the letter at time t ≤ − 1 t \le-1 t ≤ − 1 (relative to the last vertex v 0 v_0 v 0 ) equals λ ( ( h ( v 0 ) + t ) m o d d ) \lambda((h(v_0)+t)\mathbin{\bmod} d) λ (( h ( v 0 ) + t ) mod d ) . This contradicts the non-periodicity of the tail of ω \omega ω . Hence C C C is retained and the tail is a walk of the retained subgraph.
(C) For right-directed walks this is Proposition 16 . For a left-directed walk, if it avoided the macro vertex set B B B from some point to the left, all its vertices there would have out-degree one; by finiteness some vertex repeats, v m = v m ′ v_m=v_{m'} v m = v m ′ with m < m ′ m<m' m < m ′ , and Z = { v m , … , v m ′ − 1 } Z=\{v_m,\ldots,v_{m'-1}\} Z = { v m , … , v m ′ − 1 } is a cycle of out-degree-one vertices closed under successors. Its SCC is then Z Z Z itself, all of whose vertices have out-degree one, so its anchor lies in B ∩ Z B\cap Z B ∩ Z , contradicting avoidance of B B B . Hence the walk visits B B B infinitely often to the left, and its segments between visits are macro edges, as in Proposition 16 . □
Any further operation that is pseudo-orbit-sound in both directions may be adjoined to M 0 \mathcal{M}_0 M 0 without affecting the obstruction theorems of § 8 . An example, the whole-word interval test, is treated in Appendix E.§ 4 (Proposition 73 ); it is pseudo-orbit-sound but not walk-sound, and it is excluded from Theorem 33 .
Projection and inheritance of certification
Lemma 31 (projection). Let M ∣ M ′ M\mid M' M ∣ M ′ and K ′ = f K K'=fK K ′ = f K . The projection π \pi π maps every edge ( q , J ) → e ( z , H ) (q,J)\xrightarrow{e}(z,H) ( q , J ) e ( z , H ) of G ( M ′ , K ′ ) G(M',K') G ( M ′ , K ′ ) to an edge of G ( M , K ) G(M,K) G ( M , K ) with the same label.
Proof. (E1) is unchanged and (E2) reduces modulo M M M . For (E3), write J = f j + i J=fj+i J = f j + i , H = f k + ℓ H=fk+\ell H = f k + ℓ with 0 ≤ i , ℓ < f 0\le i,\ell<f 0 ≤ i , ℓ < f . Then e K ′ = e f K eK'=efK e K ′ = e f K and
f ( a j − b ( k + 1 ) ) ≤ a f j + a i − b f k − b ( ℓ + 1 ) < e f K < a f j + a ( i + 1 ) − b f k − b ℓ ≤ f ( a ( j + 1 ) − b k ) , \begin{aligned}
f(aj-b(k+1))\le afj+ai-bfk-b(\ell+1) \\
&<efK<afj+a(i+1)-bfk-b\ell\\
&\le f(a(j+1)-bk),
\end{aligned} f ( aj − b ( k + 1 )) ≤ a f j + ai − b f k − b ( ℓ + 1 ) < e f K < a f j + a ( i + 1 ) − b f k − b ℓ ≤ f ( a ( j + 1 ) − bk ) ,
the outer inequalities using i ≥ 0 i\ge0 i ≥ 0 , ℓ + 1 ≤ f \ell+1\le f ℓ + 1 ≤ f and i + 1 ≤ f i+1\le f i + 1 ≤ f , ℓ ≥ 0 \ell\ge0 ℓ ≥ 0 . Dividing by f f f gives (E3) for ( j , k ) (j,k) ( j , k ) . □
Lemma 32 (inheritance). In the setting of Lemma 31 , let W ⊆ V ( M , K ) W\subseteq V(M,K) W ⊆ V ( M , K ) and W ′ ⊆ V ( M ′ , K ′ ) W'\subseteq V(M',K') W ′ ⊆ V ( M ′ , K ′ ) with π ( W ′ ) ⊆ W \pi(W')\subseteq W π ( W ′ ) ⊆ W , and let C ′ C' C ′ be a cyclic SCC of G K ′ ( W ′ ) G_{K'}(W') G K ′ ( W ′ ) with root ρ ′ \rho' ρ ′ and root path lengths h ′ h' h ′ . Then π ( C ′ ) \pi(C') π ( C ′ ) lies in one cyclic SCC C C C of G K ( W ) G_K(W) G K ( W ) , with root path lengths h h h and gcd d d d ; d ∣ d ′ d\mid d' d ∣ d ′ ; and if C C C is certified then so is C ′ C' C ′ .
Proof. By Lemma 31 and π ( W ′ ) ⊆ W \pi(W')\subseteq W π ( W ′ ) ⊆ W , the projection of every internal edge of C ′ C' C ′ is an edge of the induced subgraph G K ( W ) G_K(W) G K ( W ) ; hence the image of C ′ C' C ′ is strongly connected in G K ( W ) G_K(W) G K ( W ) and contains an internal edge, so it lies in a cyclic SCC C C C .
Projecting the chosen path from ρ ′ \rho' ρ ′ to x x x and using (15) along it gives
h ( π x ) ≡ h ( π ρ ′ ) + h ′ ( x ) ( m o d d ) . h(\pi x)\equiv h(\pi\rho')+h'(x)\pmod d. h ( π x ) ≡ h ( π ρ ′ ) + h ′ ( x ) ( mod d ) .
For an internal edge u ′ → v ′ u'\to v' u ′ → v ′ of C ′ C' C ′ ,
h ′ ( u ′ ) + 1 − h ′ ( v ′ ) ≡ h ( π u ′ ) + 1 − h ( π v ′ ) ≡ 0 ( m o d d ) , h'(u')+1-h'(v')\equiv h(\pi u')+1-h(\pi v')\equiv0\pmod d, h ′ ( u ′ ) + 1 − h ′ ( v ′ ) ≡ h ( π u ′ ) + 1 − h ( π v ′ ) ≡ 0 ( mod d ) ,
so d ∣ d ′ d\mid d' d ∣ d ′ . If C C C is certified, the label of u ′ → v ′ u' \to v' u ′ → v ′ is
λ h ( π u ′ ) m o d d = λ ( h ( π ρ ′ ) + h ′ ( u ′ ) ) m o d d , \lambda_h(\pi u') \bmod d = \lambda(h(\pi\rho')+h'(u')) \bmod d, λ h ( π u ′ ) mod d = λ ( h ( π ρ ′ ) + h ′ ( u ′ )) mod d ,
which depends only on h ′ ( u ′ ) m o d d ′ h'(u') \bmod d' h ′ ( u ′ ) mod d ′ ; hence C ′ C' C ′ is certified. □
Normal form of finite certificates
Theorem 33 (contraction does not enlarge the class). Let Γ 0 , … , Γ s \Gamma_0,\ldots,\Gamma_s Γ 0 , … , Γ s be a successful execution of M 0 \mathcal{M}_0 M 0 , and let M ∗ = M s M_\ast=M_s M ∗ = M s (with rad ( 2 a b ) ∣ M ∗ \operatorname{rad}(2ab)\mid M_\ast rad ( 2 ab ) ∣ M ∗ in the second form of (I)) and K ∗ = K s K_\ast=K_s K ∗ = K s . Then every cyclic SCC of the complete one-step graph G ( M ∗ , K ∗ ) G(M_\ast,K_\ast) G ( M ∗ , K ∗ ) passes the phase test of § 3.2 . Conversely, a one-step certificate as in Theorem 10 (or Lemma 11) is an execution of M 0 \mathcal{M}_0 M 0 without (C).
Proof. Suppose G ( M ∗ , K ∗ ) G(M_\ast,K_\ast) G ( M ∗ , K ∗ ) has an infinite walk ω \omega ω with non-eventually-periodic output. Its projection to ( M 0 , K 0 ) (M_0,K_0) ( M 0 , K 0 ) is a walk of Γ 0 \Gamma_0 Γ 0 : in the first form of (I) by Lemma 31 ; in the second form, its labels lie in C ( a , b ) C(a,b) C ( a , b ) by Lemma 29 and its residues modulo R 0 R_0 R 0 satisfy (E2).
By Lemma 30, inductively, a tail of ω \omega ω becomes a walk of every Γ t \Gamma_t Γ t , including Γ s = ∅ \Gamma_s=\varnothing Γ s = ∅ : a contradiction.
Hence every infinite walk of G ( M ∗ , K ∗ ) G(M_\ast,K_\ast) G ( M ∗ , K ∗ ) has eventually periodic output, in particular every infinite walk inside a cyclic SCC, and Theorem 21 ((b)⇒(a)) shows that every cyclic SCC is certified. The converse is clear. □
Consequently, for a fixed K K K and a fixed set of primes, the order in which primes are added does not affect whether an execution can succeed; it affects only the intermediate sizes. The conclusion “no walk of G ( M ∗ , K ∗ ) G(M_\ast,K_\ast) G ( M ∗ , K ∗ ) has non-eventually-periodic output” does not use Theorem 21 ; only its restatement as a phase test does.
Theorem 34 (projection monotonicity). Let a one-step execution with operations (P), (R), (L) start from W 0 = V ( M 0 , K 0 ) W_0=V(M_0,K_0) W 0 = V ( M 0 , K 0 ) , with U t = R K t ( W t ) U_t=R_{K_t}(W_t) U t = R K t ( W t ) and W t + 1 W_{t+1} W t + 1 the full enlargement of U t U_t U t (Lemmas 9 and 11), and suppose U s = ∅ U_s=\varnothing U s = ∅ . Then
R K s ( V ( M s , K s ) ) = ∅ : R_{K_s}(V(M_s,K_s))=\varnothing: R K s ( V ( M s , K s )) = ∅ : the complete graph at the final parameters certifies in one stage. Consequently, if M s ∣ M ′ M_s\mid M' M s ∣ M ′ and K s ∣ K ′ K_s\mid K' K s ∣ K ′ , then
R K ′ ( V ( M ′ , K ′ ) ) = ∅ R_{K'}(V(M',K'))=\varnothing R K ′ ( V ( M ′ , K ′ )) = ∅ as well; in particular the pairs ( s ! , s ! ) (s!,s!) ( s ! , s !) , s = 1 , 2 , … s=1,2,\ldots s = 1 , 2 , … , miss no one-step certificate. The certificate at ( M ′ , K ′ ) (M',K') ( M ′ , K ′ ) proves only gcd ( Q n , M ′ ) > 1 \gcd(Q_n,M')>1 g cd( Q n , M ′ ) > 1 infinitely often; it does not recover the conclusion for the original prime set.
Proof. We show
π t ( R K s ( V ( M s , K s ) ) ) ⊆ U t \pi_t(R_{K_s}(V(M_s,K_s)))\subseteq U_t π t ( R K s ( V ( M s , K s ))) ⊆ U t
by induction on t t t , where π t \pi_t π t projects to ( M t , K t ) (M_t,K_t) ( M t , K t ) . For t = 0 t=0 t = 0 , Lemma 32 applies since W 0 W_0 W 0 is the full vertex set.
For the step, let v v v lie in an uncertified cyclic SCC C ′ C' C ′ of the final graph. By induction
π t ( C ′ ) ⊆ U t , \pi_t(C')\subseteq U_t, π t ( C ′ ) ⊆ U t ,
hence
π t + 1 ( C ′ ) ⊆ W t + 1 . \pi_{t+1}(C')\subseteq W_{t+1}. π t + 1 ( C ′ ) ⊆ W t + 1 .
The set π t + 1 ( C ′ ) \pi_{t+1}(C') π t + 1 ( C ′ ) is strongly connected inside G K t + 1 ( W t + 1 ) G_{K_{t+1}}(W_{t+1}) G K t + 1 ( W t + 1 ) (an induced subgraph keeps the edges) and lies in one cyclic SCC C C C ; if C C C were certified, Lemma 32 would certify C ′ C' C ′ . So C ⊆ U t + 1 C\subseteq U_{t+1} C ⊆ U t + 1 and π t + 1 ( v ) ∈ U t + 1 \pi_{t+1}(v)\in U_{t+1} π t + 1 ( v ) ∈ U t + 1 .
At t = s t=s t = s , π s \pi_s π s is the identity. The last assertion follows from Lemma 32 applied to the projection from ( M ′ , K ′ ) (M', K') ( M ′ , K ′ ) to ( M s , K s ) (M_s, K_s) ( M s , K s ) with W = V ( M s , K s ) W = V(M_s, K_s) W = V ( M s , K s ) , W ′ = V ( M ′ , K ′ ) W' = V(M', K') W ′ = V ( M ′ , K ′ ) . □
This is relative completeness only: a search over the pairs ( s ! , s ! ) (s!,s!) ( s ! , s !) finds a certificate whenever one exists at some parameters, but with the weaker conclusion gcd ( Q n , s ! ) > 1 \gcd(Q_n,s!) > 1 g cd( Q n , s !) > 1 , and no termination is asserted.
Proposition 35 (prime powers). For every M M M and K K K , the sets of infinite output words (together with their cell sequences) of G ( M , K ) G(M,K) G ( M , K ) and of G ( rad M , K ) G(\operatorname{rad} M,K) G ( rad M , K ) coincide. Proof. One inclusion is Lemma 31 . Conversely, let ( q ˉ n , j n ) n ≥ 0 (\bar q_n,j_n)_{n\ge0} ( q ˉ n , j n ) n ≥ 0 be an infinite walk of G ( rad M , K ) G(\operatorname{rad} M,K) G ( rad M , K ) with output ( c n ) (c_n) ( c n ) . For each p e ∥ M p^e \mathrel{\|} M p e ∥ M we construct units q n q_n q n modulo p e p^e p e with
q n ≡ q ˉ n ( m o d p ) and b q n + 1 ≡ a q n + c n ( m o d p e ) . q_n \equiv\bar q_n \pmod p \qquad\text{and}\qquad bq_{n+1} \equiv aq_n+c_n \pmod{p^e}. q n ≡ q ˉ n ( mod p ) and b q n + 1 ≡ a q n + c n ( mod p e ) . If p ∤ b p \nmid b p ∤ b : take any lift q 0 q_0 q 0 of q ˉ 0 \bar q_0 q ˉ 0 and
q n + 1 = b − 1 ( a q n + c n ) ( m o d p e ) ; q_{n+1}=b^{-1}(aq_n+c_n)\pmod{p^e}; q n + 1 = b − 1 ( a q n + c n ) ( mod p e ) ; modulo p p p this is the same recurrence with the same initial value, so q n ≡ q ˉ n q_n\equiv\bar q_n q n ≡ q ˉ n .
If p ∣ b p\mid b p ∣ b (so p ∤ a p\nmid a p ∤ a ): put
q n = − ∑ j = 0 e − 1 b j a − j − 1 c n + j ( m o d p e ) . q_n=-\sum_{j=0}^{e-1}b^j a^{-j-1}c_{n+j}\pmod{p^e}. q n = − j = 0 ∑ e − 1 b j a − j − 1 c n + j ( mod p e ) . Then
b q n + 1 − a q n = − ∑ j = 1 e b j a − j c n + j + ∑ j = 0 e − 1 b j a − j c n + j bq_{n+1}-aq_n=-\sum_{j=1}^{e}b^j a^{-j}c_{n+j}+\sum_{j=0}^{e-1}b^j a^{-j}c_{n+j} b q n + 1 − a q n = − j = 1 ∑ e b j a − j c n + j + j = 0 ∑ e − 1 b j a − j c n + j = c n − b e a − e c n + e = c_n-b^e a^{-e}c_{n+e} = c n − b e a − e c n + e ≡ c n ( m o d p e ) , \equiv c_n \pmod{p^e}, ≡ c n ( mod p e ) , and modulo p p p ,
q n ≡ − a − 1 c n ≡ q ˉ n q_n\equiv-a^{-1}c_n\equiv\bar q_n q n ≡ − a − 1 c n ≡ q ˉ n because the original walk satisfies 0 ≡ a q ˉ n + c n ( m o d p ) 0\equiv a\bar q_n+c_n\pmod p 0 ≡ a q ˉ n + c n ( mod p ) .
Combine by the Chinese remainder theorem; (E3) involves only cells and labels. □
Proposition 36 (primes dividing 2 a b 2ab 2 ab ). Let M 0 = rad ( 2 a b ) M_0=\operatorname{rad}(2ab) M 0 = rad ( 2 ab ) and gcd ( R , M 0 ) = 1 \gcd(R,M_0)=1 g cd( R , M 0 ) = 1 . The sets of infinite output words (with cell sequences) of G ( M 0 R , K ) G(M_0R,K) G ( M 0 R , K ) and of G ′ ( R , K ) G'(R,K) G ′ ( R , K ) (defined in (I)) coincide. Proof. A walk of G ( M 0 R , K ) G(M_0R,K) G ( M 0 R , K ) has labels in C ( a , b ) C(a,b) C ( a , b ) by Lemma 29 and residues modulo R R R satisfying (E2); this gives a walk of G ′ ( R , K ) G'(R,K) G ′ ( R , K ) .
Conversely, given a walk ( q ˉ n , j n ) (\bar q_n,j_n) ( q ˉ n , j n ) of G ′ ( R , K ) G'(R,K) G ′ ( R , K ) with output c n ∈ C ( a , b ) c_n\in C(a,b) c n ∈ C ( a , b ) , define residues for each prime p ∣ M 0 p\mid M_0 p ∣ M 0 : if p ∣ a p\mid a p ∣ a , let q 0 q_0 q 0 be any unit and
q n + 1 ≡ b − 1 c n q_{n+1}\equiv b^{-1}c_n q n + 1 ≡ b − 1 c n (then b q n + 1 ≡ c n ≡ a q n + c n bq_{n+1}\equiv c_n\equiv aq_n+c_n b q n + 1 ≡ c n ≡ a q n + c n ); if p ∣ b p\mid b p ∣ b , let
q n ≡ − a − 1 c n q_n\equiv-a^{-1}c_n q n ≡ − a − 1 c n (then b q n + 1 − a q n ≡ c n bq_{n+1}-aq_n\equiv c_n b q n + 1 − a q n ≡ c n ); if p = 2 p=2 p = 2 and a , b a,b a , b are odd, let q n = 1 q_n=1 q n = 1 (then b ≡ a + c n ( m o d 2 ) b\equiv a+c_n\pmod2 b ≡ a + c n ( mod 2 ) since c n c_n c n is even). All are units since p ∤ c n p\nmid c_n p ∤ c n . Combine with q ˉ n \bar q_n q ˉ n by the Chinese remainder theorem. □
Define the class of finitely certifiable bases
F c e r t = { a b : a > b ≥ 2 , gcd ( a , b ) = 1 , ∃ K ∃ S finite , p ∤ 2 a b ( p ∈ S ) : every cyclic SCC of G ′ ( ∏ p ∈ S p , K ) satisfies Theorem 21(c) } . \mathcal{F}_{\mathrm{cert}}=\left\{\frac{a}{b}: a>b\ge2,\ \gcd(a,b)=1,\ \exists K\ \exists S\ \text{finite},\ p\nmid2ab\ (p\in S):\ \text{every cyclic SCC of }G'\left(\prod_{p\in S}p,K\right)\text{ satisfies Theorem 21(c)}\right\}. F cert = ⎩ ⎨ ⎧ b a : a > b ≥ 2 , g cd( a , b ) = 1 , ∃ K ∃ S finite , p ∤ 2 ab ( p ∈ S ) : every cyclic SCC of G ′ p ∈ S ∏ p , K satisfies Theorem 21(c) ⎭ ⎬ ⎫ .
Theorem 37 (normal form). For a reduced base a / b a/b a / b the following are equivalent.
Some execution of M 0 \mathcal{M}_0 M 0 succeeds.
Some one-step execution (operations ( I ) (I) ( I ) , ( P ) (P) ( P ) , ( R ) (R) ( R ) , ( L ) (L) ( L ) , first form) succeeds for some modulus M M M and some sequence of cell counts.
There are K K K and a finite set S S S of primes not dividing 2 a b 2ab 2 ab such that every cyclic SCC of G ′ ( ∏ p ∈ S p , K ) G'\left(\prod_{p\in S}p,K\right) G ′ ( ∏ p ∈ S p , K ) passes the phase test.
a / b ∈ F c e r t a/b\in\mathcal{F}_{\mathrm{cert}} a / b ∈ F cert .
Proof. (3)⇔ \Leftrightarrow ⇔ (4) is Theorem 21 .
(3)⇒ \Rightarrow ⇒ (2): by Proposition 36 and Theorem 21 , every cyclic SCC of G ( M 0 R , K ) G(M_0R,K) G ( M 0 R , K ) is certified, which is a one-step execution with s = 0 s=0 s = 0 .
(2)⇒ \Rightarrow ⇒ (1) is clear.
(1)⇒ \Rightarrow ⇒ (3): by Theorem 33 every cyclic SCC of G ( M ∗ , K ∗ ) G(M_\ast,K_\ast) G ( M ∗ , K ∗ ) is certified. By Lemma 31 and Theorem 21 , the same holds for G ( M 0 M ∗ , K ∗ ) G(M_0M_\ast,K_\ast) G ( M 0 M ∗ , K ∗ ) with M 0 = rad ( 2 a b ) M_0=\operatorname{rad}(2ab) M 0 = rad ( 2 ab ) : every infinite walk of the finer graph projects to one with eventually periodic output.
By Proposition 35 it holds for
G ( rad ( M 0 M ∗ ) , K ∗ ) = G ( M 0 R , K ∗ ) , G(\operatorname{rad}(M_0M_\ast),K_\ast)=G(M_0R,K_\ast), G ( rad ( M 0 M ∗ ) , K ∗ ) = G ( M 0 R , K ∗ ) ,
where R R R is the product of the primes of M ∗ M_\ast M ∗ not dividing 2 a b 2ab 2 ab ; by Proposition 36 and Theorem 21 it holds for G ′ ( R , K ∗ ) G'(R,K_\ast) G ′ ( R , K ∗ ) . □
The equivalence concerns the existence of some certificate, not the prime set of the conclusion. A certificate in (2) proves gcd ( Q n , M ) > 1 \gcd(Q_n,M)>1 g cd( Q n , M ) > 1 infinitely often; a certificate in (3) proves gcd ( Q n , 2 a b R ) > 1 \gcd(Q_n,2abR)>1 g cd( Q n , 2 ab R ) > 1 infinitely often, a conclusion whose prime set contains every prime dividing 2 a b 2ab 2 ab . For example, (1) uses M = 4290 M=4290 M = 4290 , which does not contain 7, while the normal form for 7 / 5 7/5 7/5 uses { 2 , 5 , 7 } ∪ { 3 , 11 , 13 } \{2,5,7\}\cup\{3,11,13\} { 2 , 5 , 7 } ∪ { 3 , 11 , 13 } . Membership of 3 / 2 3/2 3/2 , 4 / 3 4/3 4/3 , 5 / 4 5/4 5/4 , 7 / 5 7/5 7/5 , 5 / 2 5/2 5/2 in F c e r t \mathcal{F}_{\mathrm{cert}} F cert follows from the certificates of Section 5 (Tables 1, 3, 4, 6), and membership of 5 / 3 5/3 5/3 is Corollary 77 in Appendix § 17 ; no other base is claimed to belong to it, and no simple inequality or congruence in a , b a,b a , b characterizes the class.
Obstructions and the external-prime budget
The results of this section have the following common form: for a given modulus M M M , no execution of M 0 \mathcal{M}_0 M 0 all of whose moduli M t M_t M t divide M M M succeeds ; the same holds when M 0 \mathcal{M}_0 M 0 is extended by operations that are pseudo-orbit-sound in both directions. They are statements about the non-termination of a procedure. They do not imply
∃ ξ > 0 ∃ n 0 ∀ n ≥ n 0 : gcd ( ⌊ ξ r n ⌋ , M ) = 1 , \exists\xi>0\ \exists n_0\ \forall n\ge n_0:\ \gcd(\lfloor\xi r^n\rfloor,M)=1, ∃ ξ > 0 ∃ n 0 ∀ n ≥ n 0 : g cd(⌊ ξ r n ⌋ , M ) = 1 ,
and they are not counterexamples to any statement about composite terms. The witnesses are pseudo-orbits, which lack an integer sequence linking residues and fractional parts; Lemma 41 shows that every finite window of such a witness is realized by a true orbit, in the form ∀ N ∃ ξ N \forall N\ \exists\xi_N ∀ N ∃ ξ N , which cannot be exchanged for ∃ ξ ∀ N \exists\xi\ \forall N ∃ ξ ∀ N . Procedures that use information available only for true orbits (integrality of Q n Q_n Q n , forward realizability, or the recurrence hypothesis of § 10 ) are not covered by these theorems. Corollary 78 in Appendix § 17 .§ 5 applies Lemma 69 to 5 / 3 5/3 5/3 with the primes up to 23.
Lemma 38 (type of the obstruction). Let M ≥ 2 M \ge2 M ≥ 2 . If there is a right- or left-directed M M M -pseudo-orbit whose carry sequence is not eventually periodic (in its direction), and whose carries lie in C ( a , b ) C(a,b) C ( a , b ) whenever the second form of (I) is used, then no execution of M 0 \mathcal{M}_0 M 0 (or of an extension by pseudo-orbit-sound operations) with all M t ∣ M M_t \mid M M t ∣ M succeeds.
Proof. The pseudo-orbit yields, for every K K K , a walk of G ( M , K ) G(M,K) G ( M , K ) with the same carries; its projection to ( M 0 , K 0 ) (M_0,K_0) ( M 0 , K 0 ) is a walk of Γ 0 \Gamma_0 Γ 0 (in the second form of (I), the labels lie in C ( a , b ) C(a,b) C ( a , b ) by hypothesis and the residues modulo R 0 R_0 R 0 satisfy (E2)). By Lemma 30, applied inductively, a tail of it becomes a walk of every Γ t \Gamma_t Γ t ; hence Γ s ≠ ∅ \Gamma_s \ne\varnothing Γ s = ∅ . □
Large numerators
Theorem 39. Let M ≥ 2 M \ge2 M ≥ 2 , R = rad M R = \operatorname{rad} M R = rad M , and
Then no execution of M 0 \mathcal{M}_0 M 0 (or of an extension by pseudo-orbit-sound operations) with all M t ∣ M M_t \mid M M t ∣ M and Γ 0 \Gamma_0 Γ 0 as in (I) succeeds. Hence a successful execution requires
a < 2 rad ( M ) . (32) a < 2\operatorname{rad}(M). \tag*{(32)} a < 2 rad ( M ) . (32)
Proof. Step 1: a left-directed nonperiodic carry sequence. Put θ 0 = 0 \theta_0 = 0 θ 0 = 0 . Given θ n + 1 ∈ [ 0 , 1 ) \theta_{n+1} \in[0,1) θ n + 1 ∈ [ 0 , 1 ) , choose
c n ∈ [ − b θ n + 1 , a − b θ n + 1 ) ∩ ( b − a + R Z ) , c_n \in[-b\theta_{n+1}, a-b\theta_{n+1}) \cap(b-a+R\mathbb{Z}), c n ∈ [ − b θ n + 1 , a − b θ n + 1 ) ∩ ( b − a + R Z ) ,
θ n = b θ n + 1 + c n a . \theta_n = \frac{b\theta_{n+1}+c_n}{a}. θ n = a b θ n + 1 + c n .
The half-open interval has length a ≥ 2 R a \ge2R a ≥ 2 R , so it contains at least ⌊ a / R ⌋ ≥ 2 \lfloor a/R \rfloor\ge2 ⌊ a / R ⌋ ≥ 2 terms of the progression. Then
0 ≤ b θ n + 1 + c n < a 0 \le b\theta_{n+1}+c_n < a 0 ≤ b θ n + 1 + c n < a
gives θ n ∈ [ 0 , 1 ) \theta_n \in[0,1) θ n ∈ [ 0 , 1 ) , the identity
a θ n − b θ n + 1 = c n a\theta_n-b\theta_{n+1}=c_n a θ n − b θ n + 1 = c n
is exact, and − b < c n < a -b<c_n<a − b < c n < a gives $1-b\le c_n\le a-1$. Using only two ordered choices at each step, the map { 0 , 1 } N → Σ Z ≤ 0 \{0,1\}^{\mathbb{N}} \to\Sigma^{\mathbb{Z}_{\le0}} { 0 , 1 } N → Σ Z ≤ 0 is injective (at the first index where two choice sequences differ, the values θ n + 1 \theta_{n+1} θ n + 1 agree and the c n c_n c n differ), so uncountably many sequences arise. A sequence ( c n ) n ≤ 0 (c_n)_{n\le0} ( c n ) n ≤ 0 that is left-eventually periodic (there are N ≤ 0 N\le0 N ≤ 0 and L ≥ 1 L\ge1 L ≥ 1 with c n − L = c n c_{n-L}=c_n c n − L = c n for all n ≤ N ) i s d e t e r m i n e d b y n\le N) is determined by n ≤ N ) i s d e t er min e d b y (N,L,c_{N-L+1},\ldots,c_0)$, so there are only countably many. Choose a sequence that is not left-eventually periodic. Modulo R R R , q n = 1 q_n=1 q n = 1 satisfies b q n + 1 ≡ a q n + c n bq_{n+1}\equiv aq_n+c_n b q n + 1 ≡ a q n + c n because c n ≡ b − a ( m o d R ) c_n\equiv b-a\pmod R c n ≡ b − a ( mod R ) .
Step 2: units modulo prime powers. For each p k ∥ M p^k\mathrel{\|}M p k ∥ M we define q n ≡ 1 ( m o d p ) q_n\equiv1\pmod p q n ≡ 1 ( mod p ) with
b q n + 1 ≡ a q n + c n ( m o d p k ) . bq_{n+1}\equiv aq_n+c_n\pmod{p^k}. b q n + 1 ≡ a q n + c n ( mod p k ) .
If p ∤ a p\nmid a p ∤ a : q 0 = 1 q_0=1 q 0 = 1 and
q n ≡ a − 1 ( b q n + 1 − c n ) ( m o d p k ) q_n\equiv a^{-1}(bq_{n+1}-c_n)\pmod{p^k} q n ≡ a − 1 ( b q n + 1 − c n ) ( mod p k )
for n < 0 n<0 n < 0 ; since c n ≡ b − a ( m o d p ) c_n\equiv b-a\pmod p c n ≡ b − a ( mod p ) , q n + 1 ≡ 1 q_{n+1}\equiv1 q n + 1 ≡ 1 gives
q n ≡ a − 1 ( b − ( b − a ) ) = 1. q_n\equiv a^{-1}(b-(b-a))=1. q n ≡ a − 1 ( b − ( b − a )) = 1.
If p ∣ a p \mid a p ∣ a (so b b b is invertible modulo p k p^k p k ): choose L L L with p k ∣ a L p^k \mid a^L p k ∣ a L and put
q n = ∑ j = 0 L − 1 a j b − j − 1 c n − 1 − j ( m o d p k ) . q_n=\sum_{j=0}^{L-1}a^j b^{-j-1}c_{n-1-j}\pmod{p^k}. q n = j = 0 ∑ L − 1 a j b − j − 1 c n − 1 − j ( mod p k ) .
Then
b q n + 1 − a q n = ∑ j = 0 L − 1 a j b − j c n − j − ∑ j = 1 L a j b − j c n − j = c n − a L b − L c n − L ≡ c n ( m o d p k ) , \begin{aligned}
bq_{n+1}-aq_n=\sum_{j=0}^{L-1}a^j b^{-j}c_{n-j}-\sum_{j=1}^{L}a^j b^{-j}c_{n-j} \\
&=c_n-a^L b^{-L}c_{n-L} \\
&\equiv c_n\pmod{p^k},
\end{aligned} b q n + 1 − a q n = j = 0 ∑ L − 1 a j b − j c n − j − j = 1 ∑ L a j b − j c n − j = c n − a L b − L c n − L ≡ c n ( mod p k ) ,
and modulo p p p ,
q n ≡ b − 1 c n − 1 ≡ b − 1 ( b − a ) ≡ 1. q_n\equiv b^{-1}c_{n-1}\equiv b^{-1}(b-a)\equiv1. q n ≡ b − 1 c n − 1 ≡ b − 1 ( b − a ) ≡ 1.
All indices used are ≤ − 1 \leq-1 ≤ − 1 .
The Chinese remainder theorem gives gcd ( q n , M ) = 1 \gcd(q_n,M)=1 g cd( q n , M ) = 1 and
b q n + 1 ≡ a q n + c n ( m o d M ) . bq_{n+1}\equiv aq_n+c_n\pmod M. b q n + 1 ≡ a q n + c n ( mod M ) .
Step 3. ( q n , θ n , c n ) n ≤ 0 (q_n,\theta_n,c_n)_{n\leq0} ( q n , θ n , c n ) n ≤ 0 is a left-directed M M M -pseudo-orbit with non-left-eventually-periodic carries. If rad ( 2 a b ) ∣ M \operatorname{rad}(2ab)\mid M rad ( 2 ab ) ∣ M , then c n ≡ b − a ( m o d p ) c_n\equiv b-a\pmod p c n ≡ b − a ( mod p ) for every p ∣ 2 a b p\mid2ab p ∣ 2 ab gives c n ∈ C ( a , b ) c_n\in C(a,b) c n ∈ C ( a , b ) (for p ∣ a p\mid a p ∣ a , c n ≡ b c_n\equiv b c n ≡ b ; for p ∣ b p\mid b p ∣ b , c n ≡ − a c_n\equiv-a c n ≡ − a ; for p = 2 p=2 p = 2 with a , b a,b a , b odd, c n c_n c n is even). Lemma 38 applies. □
The hypothesis on the initial graph is essential: a procedure that starts from a different sound initial restriction derived from properties of true orbits does not belong to M 0 \mathcal{M}_0 M 0 , and the witness need not pass it.
Corollary 40. (a) For a fixed finite set P \mathcal{P} P of primes, the reduced bases a / b a/b a / b for which some execution of M 0 \mathcal{M}_0 M 0 with moduli composed of primes in P \mathcal{P} P (with any exponents) succeeds are finitely many:
a < 2 ∏ p ∈ P p a<2\prod_{p\in\mathcal{P}}p a < 2 p ∈ P ∏ p and b < a b<a b < a .
(b) The bases r t = ( 2 t + 7 ) / ( 2 t + 5 ) r_t=(2t+7)/(2t+5) r t = ( 2 t + 7 ) / ( 2 t + 5 ) , t ≥ 0 t\geq0 t ≥ 0 , are reduced. A successful execution for r t r_t r t with final modulus M t M_t M t requires
rad ( M t ) > ( 2 t + 7 ) / 2 , \operatorname{rad}(M_t)>(2t+7)/2, rad ( M t ) > ( 2 t + 7 ) /2 , that is,
rad ( M t ) ≥ t + 4. \operatorname{rad}(M_t)\geq t+4. rad ( M t ) ≥ t + 4. With the primes { 2 , 3 , 5 , 11 , 13 } \{2,3,5,11,13\} { 2 , 3 , 5 , 11 , 13 } of (1) alone, no execution succeeds for t ≥ 4287 t\geq4287 t ≥ 4287 . The same holds for ( 14 k + 1 ) / ( 10 k + 1 ) (14k+1)/(10k+1) ( 14 k + 1 ) / ( 10 k + 1 ) , which tend to 7 / 5 7/5 7/5 , for k ≥ 613 k\geq613 k ≥ 613 .
Proof. (a) is (27). (b) The pairs are coprime: their differences are 2 and their members are odd for the first family; for the second, a common divisor divides
5 ( 14 k + 1 ) − 7 ( 10 k + 1 ) = − 2 5(14k+1)-7(10k+1)=-2 5 ( 14 k + 1 ) − 7 ( 10 k + 1 ) = − 2
and both members are odd. The thresholds are
2 t + 7 ≥ 8580 ⟺ t ≥ 4287 2t+7\geq8580\Longleftrightarrow t\geq4287 2 t + 7 ≥ 8580 ⟺ t ≥ 4287
(as 2 ⋅ 4286 + 7 = 8579 2\cdot4286+7=8579 2 ⋅ 4286 + 7 = 8579 ) and
14 k + 1 ≥ 8580 ⟺ k ≥ 613. 14k+1\geq8580\Longleftrightarrow k\geq613. 14 k + 1 ≥ 8580 ⟺ k ≥ 613.
Part (b) says that the certificate for 7 / 5 7/5 7/5 does not transfer to nearby bases by the same prime set; it says nothing about composite terms for those bases.
Finite windows are realized by true orbits
Lemma 41. Let integers q i q_i q i with gcd ( q i , M ) = 1 \gcd(q_i,M)=1 g cd( q i , M ) = 1 , reals θ i ∈ [ 0 , 1 ) \theta_i \in[0,1) θ i ∈ [ 0 , 1 ) (0 ≤ i ≤ L 0 \le i \le L 0 ≤ i ≤ L ), and integers c i c_i c i (0 ≤ i < L 0 \le i < L 0 ≤ i < L ) satisfy
a θ i − b θ i + 1 = c i a\theta_i-b\theta_{i+1}=c_i a θ i − b θ i + 1 = c i and
b q i + 1 ≡ a q i + c i ( m o d M ) . bq_{i+1}\equiv aq_i+c_i \pmod{M}. b q i + 1 ≡ a q i + c i ( mod M ) . Then for every T 0 T_0 T 0 there is ξ > T 0 \xi>T_0 ξ > T 0 with ⌊ ξ r i ⌋ ≡ q i ( m o d M ) \lfloor\xi r^i\rfloor\equiv q_i \pmod{M} ⌊ ξ r i ⌋ ≡ q i ( mod M ) and { ξ r i } = θ i \{\xi r^i\}=\theta_i { ξ r i } = θ i for 0 ≤ i ≤ L 0\le i\le L 0 ≤ i ≤ L .
Proof. Write Q i = q i + M t i Q_i=q_i+Mt_i Q i = q i + M t i with integers t i t_i t i to be found, and
d i = ( a q i + c i − b q i + 1 ) / M ∈ Z . d_i=(aq_i+c_i-bq_{i+1})/M\in\mathbb{Z}. d i = ( a q i + c i − b q i + 1 ) / M ∈ Z . The requirement b Q i + 1 = a Q i + c i bQ_{i+1}=aQ_i+c_i b Q i + 1 = a Q i + c i is
b t i + 1 = a t i + d i . bt_{i+1}=at_i+d_i. b t i + 1 = a t i + d i . Put S 0 = 0 S_0=0 S 0 = 0 , S j + 1 = a S j + b j d j S_{j+1}=aS_j+b^j d_j S j + 1 = a S j + b j d j , so that
b j t j = a j t 0 + S j b^j t_j=a^j t_0+S_j b j t j = a j t 0 + S j by induction.
Since gcd ( a , b L ) = 1 \gcd(a,b^L)=1 g cd( a , b L ) = 1 , choose
t 0 ≡ − a − L S L ( m o d b L ) . t_0\equiv-a^{-L}S_L\pmod{b^L}. t 0 ≡ − a − L S L ( mod b L ) . For j ≤ L j\le L j ≤ L ,
S L ≡ a L − j S j ( m o d b j ) , S_L\equiv a^{L-j}S_j\pmod{b^j}, S L ≡ a L − j S j ( mod b j ) , hence
a j t 0 + S j ≡ − a j a − L a L − j S j + S j ≡ 0 ( m o d b j ) , a^j t_0+S_j\equiv-a^j a^{-L}a^{L-j}S_j+S_j\equiv0\pmod{b^j}, a j t 0 + S j ≡ − a j a − L a L − j S j + S j ≡ 0 ( mod b j ) , so
t j = ( a j t 0 + S j ) / b j t_j=(a^j t_0+S_j)/b^j t j = ( a j t 0 + S j ) / b j is an integer, and b t j + 1 = a t j + d j bt_{j+1}=at_j+d_j b t j + 1 = a t j + d j holds as an identity of rationals, hence of integers.
Adding b L T b^LT b L T to t 0 t_0 t 0 adds a j b L − j T a^jb^{L-j}T a j b L − j T to t j t_j t j ; taking T T T large makes all Q i Q_i Q i positive and as large as desired.
Finally x i = Q i + θ i x_i=Q_i+\theta_i x i = Q i + θ i satisfies
b x i + 1 = a Q i + c i + b θ i + 1 = a x i , bx_{i+1}=aQ_i+c_i+b\theta_{i+1}=ax_i, b x i + 1 = a Q i + c i + b θ i + 1 = a x i , so with ξ = x 0 \xi=x_0 ξ = x 0 we get x i = ξ r i x_i=\xi r^i x i = ξ r i and ⌊ x i ⌋ = Q i \lfloor x_i\rfloor=Q_i ⌊ x i ⌋ = Q i . □
The two-carry obstruction
Let Δ = a − b \Delta=a-b Δ = a − b (not to be confused with the phase gcd d d d ).
Theorem 42. Let M ≥ 2 M\ge2 M ≥ 2 and let R R R be the product of the primes dividing M M M that do not divide 2 a b 2ab 2 ab (R = 1 R=1 R = 1 allowed). Suppose there is an integer m ≥ 1 m\ge1 m ≥ 1 with
h = 2 R m ≤ a − 1 , c = Δ − h , gcd ( c , a b ) = 1. (33) h=2Rm\le a-1,\qquad c=\Delta-h,\qquad\gcd(c,ab)=1. \tag*{(33)} h = 2 R m ≤ a − 1 , c = Δ − h , g cd( c , ab ) = 1. (33) Then no execution of M 0 \mathcal{M}_0 M 0 (or of an extension by pseudo-orbit-sound operations) with all M t ∣ M M_t\mid M M t ∣ M succeeds.
Proof. Carry conditions. We have
1 − b ≤ c < Δ ≤ a − 1 , c ≡ Δ ( m o d 2 ) ( h is even ) , 1-b\le c<\Delta\le a-1,\qquad c\equiv\Delta\pmod{2}\quad(h\text{ is even}), 1 − b ≤ c < Δ ≤ a − 1 , c ≡ Δ ( mod 2 ) ( h is even ) ,
c ≡ Δ ( m o d R ) , c\equiv\Delta\pmod{R}, c ≡ Δ ( mod R ) ,
and
gcd ( Δ , a b ) = gcd ( a − b , a ) gcd ( a − b , b ) = 1 ; \gcd(\Delta,ab)=\gcd(a-b,a)\gcd(a-b,b)=1; g cd( Δ , ab ) = g cd( a − b , a ) g cd( a − b , b ) = 1 ;
so both c c c and Δ \Delta Δ lie in C ( a , b ) C(a,b) C ( a , b ) . (The value c = 0 c=0 c = 0 is excluded by gcd ( c , a b ) = 1 \gcd(c,ab)=1 g cd( c , ab ) = 1 .)
Fixed points and an invariant interval. Put
ψ Δ ( x ) = ( b x + Δ ) / a = 1 + b a ( x − 1 ) \psi_{\Delta}(x)=(bx+\Delta)/a=1+\frac{b}{a}(x-1) ψ Δ ( x ) = ( b x + Δ ) / a = 1 + a b ( x − 1 )
and
ψ c ( x ) = ( b x + c ) / a = ψ Δ ( x ) − h / a ; \psi_c(x)=(bx+c)/a=\psi_{\Delta}(x)-h/a; ψ c ( x ) = ( b x + c ) / a = ψ Δ ( x ) − h / a ;
these are the backward maps θ n + 1 ↦ θ n \theta_{n+1}\mapsto\theta_n θ n + 1 ↦ θ n for the carries Δ \Delta Δ and c c c .
For the word W L = Δ L c W_L=\Delta^Lc W L = Δ L c (in forward time order), the backward composition is
Φ L = ψ Δ L ∘ ψ c , \Phi_L=\psi_{\Delta}^{L}\circ\psi_c, Φ L = ψ Δ L ∘ ψ c ,
Φ L ( x ) = 1 + ( b a ) L + 1 ( x − 1 ) − h a ( b a ) L , \Phi_L(x)=1+\left(\frac{b}{a}\right)^{L+1}(x-1)-\frac{h}{a}\left(\frac{b}{a}\right)^L, Φ L ( x ) = 1 + ( a b ) L + 1 ( x − 1 ) − a h ( a b ) L ,
with fixed point
x L = 1 − h b L a L + 1 − b L + 1 . x_L=1-\frac{hb^L}{a^{L+1}-b^{L+1}}. x L = 1 − a L + 1 − b L + 1 h b L .
Since a > b a>b a > b , x L < x L + 1 x_L<x_{L+1} x L < x L + 1 , and x L ↑ 1 x_L\uparrow1 x L ↑ 1 with x L < 1 x_L<1 x L < 1 . As c ≥ 1 − b c\ge1-b c ≥ 1 − b , max ( 0 , − c / b ) < 1 \max(0,-c/b)<1 max ( 0 , − c / b ) < 1 , so there is a least L L L with
max ( 0 , − c / b ) < x L ; \max(0,-c/b)<x_L; max ( 0 , − c / b ) < x L ;
put I = [ x L , x L + 1 ] I=[x_L,x_{L+1}] I = [ x L , x L + 1 ] . The maps Φ L , Φ L + 1 \Phi_L,\Phi_{L+1} Φ L , Φ L + 1 are increasing affine maps with slopes in ( 0 , 1 ) (0,1) ( 0 , 1 ) and fixed points at the left and right endpoints of I I I respectively, so both map I I I into I I I .
For x ∈ I x\in I x ∈ I , ψ c ( x ) > 0 \psi_c(x)>0 ψ c ( x ) > 0 because x > − c / b x>-c/b x > − c / b , and
ψ c ( x ) < ψ Δ ( x ) < 1 \psi_c(x)<\psi_{\Delta}(x)<1 ψ c ( x ) < ψ Δ ( x ) < 1
because c < Δ c<\Delta c < Δ and x < 1 x<1 x < 1 ; ψ Δ \psi_{\Delta} ψ Δ maps ( 0 , 1 ) (0,1) ( 0 , 1 ) into ( Δ / a , 1 ) (\Delta/a,1) ( Δ/ a , 1 ) . Hence all intermediate values of a backward application of W L W_L W L or W L + 1 W_{L+1} W L + 1 starting in I I I lie in ( 0 , 1 ) (0,1) ( 0 , 1 ) .
Infinite concatenation. Let U = W L U=W_L U = W L , V = W L + 1 V=W_{L+1} V = W L + 1 , and let B 1 B 2 ⋯ B_1B_2\cdots B 1 B 2 ⋯ be any sequence of blocks in { U , V } \{U,V\} { U , V } , block i i i starting at time n i n_i n i (n 1 = 0 n_1=0 n 1 = 0 ). For k ≥ i k\ge i k ≥ i the sets
I i ( k ) = Φ B i ∘ ⋯ ∘ Φ B k ( I ) I_i^{(k)}=\Phi_{B_i}\circ\cdots\circ\Phi_{B_k}(I) I i ( k ) = Φ B i ∘ ⋯ ∘ Φ B k ( I )
are closed subintervals of I I I , decreasing in k k k , of length at most
( b / a ) ( L + 1 ) ( k − i + 1 ) ∣ I ∣ → 0 ; (b/a)^{(L+1)(k-i+1)}|I|\to0; ( b / a ) ( L + 1 ) ( k − i + 1 ) ∣ I ∣ → 0 ;
their intersection is a single point θ n i ∈ I \theta_{n_i}\in I θ n i ∈ I , and
Φ B i ( θ n i + 1 ) = θ n i \Phi_{B_i}(\theta_{n_{i+1}})=\theta_{n_i} Φ B i ( θ n i + 1 ) = θ n i
by construction.
Inside each block the values θ n \theta_n θ n are defined by the backward recursion from θ n i + 1 \theta_{n_{i+1}} θ n i + 1 , whose composition is Φ B i \Phi_{B_i} Φ B i . Thus 0 < θ n < 1 0<\theta_n<1 0 < θ n < 1 and
a θ n − b θ n + 1 = c n a\theta_n-b\theta_{n+1}=c_n a θ n − b θ n + 1 = c n
exactly for all n ≥ 0 n\ge0 n ≥ 0 .
Nonperiodic coding. The words U V UV U V and V U VU V U have the same length 2 L + 3 2L+3 2 L + 3 and differ at position L L L (letters c c c and Δ \Delta Δ ). Encode a binary sequence that is not eventually periodic (for instance 101001000 ⋯ 101001000\cdots 101001000 ⋯ ) by 0 ↦ U V 0\mapsto UV 0 ↦ U V , 1 ↦ V U 1\mapsto VU 1 ↦ V U . If the carry sequence were eventually periodic with period P P P , it would have period P ( 2 L + 3 ) P(2L+3) P ( 2 L + 3 ) and block decoding would make the binary sequence eventually periodic.
Unit residues modulo M M M . Every prime of M M M divides 2 a b R 2abR 2 ab R . For p e ∥ M p^e \mathbin{\Vert} M p e ∥ M : if p ∣ a p \mid a p ∣ a , take q 0 = 1 q_0=1 q 0 = 1 and
q n + 1 = b − 1 ( a q n + c n ) m o d p e ; q_{n+1}=b^{-1}(aq_n+c_n)\bmod p^e; q n + 1 = b − 1 ( a q n + c n ) mod p e ;
modulo p p p ,
q n + 1 ≡ b − 1 c n ≠ 0 q_{n+1}\equiv b^{-1}c_n\ne0 q n + 1 ≡ b − 1 c n = 0
since c n ∈ { c , Δ } c_n\in\{c,\Delta\} c n ∈ { c , Δ } is coprime to a a a .
If p ∣ b p\mid b p ∣ b , take
q n = − ∑ j = 0 e − 1 b j a − j − 1 c n + j m o d p e ; q_n=-\sum_{j=0}^{e-1}b^j a^{-j-1}c_{n+j}\bmod p^e; q n = − j = 0 ∑ e − 1 b j a − j − 1 c n + j mod p e ;
as in the proof of Proposition 35 ,
b q n + 1 − a q n ≡ c n ( m o d p e ) , and bq_{n+1}-aq_n\equiv c_n\pmod{p^e},\qquad\text{and} b q n + 1 − a q n ≡ c n ( mod p e ) , and
q n ≡ − a − 1 c n ≠ 0 ( m o d p ) . q_n\equiv-a^{-1}c_n\ne0\pmod p. q n ≡ − a − 1 c n = 0 ( mod p ) .
If p ∣ R p\mid R p ∣ R , take q 0 ≡ − 1 ( m o d p e ) q_0\equiv-1\pmod{p^e} q 0 ≡ − 1 ( mod p e ) and
q n + 1 = b − 1 ( a q n + c n ) m o d p e q_{n+1}=b^{-1}(aq_n+c_n)\bmod p^e q n + 1 = b − 1 ( a q n + c n ) mod p e
(b b b is a unit modulo p e p^e p e since p ∤ 2 a b p\nmid2ab p ∤ 2 ab ); reducing modulo p p p , c n ≡ Δ c_n\equiv\Delta c n ≡ Δ gives
q n + 1 ≡ b − 1 ( − a + a − b ) = − 1 , q_{n+1}\equiv b^{-1}(-a+a-b)=-1, q n + 1 ≡ b − 1 ( − a + a − b ) = − 1 ,
so every q n q_n q n is a unit.
If p = 2 p=2 p = 2 and a , b a,b a , b are odd, then c n c_n c n is even; take q 0 q_0 q 0 odd, and
q n + 1 ≡ q n + c n ≡ q n ( m o d 2 ) . q_{n+1}\equiv q_n+c_n\equiv q_n\pmod2. q n + 1 ≡ q n + c n ≡ q n ( mod 2 ) .
Combine by the Chinese remainder theorem.
The result is a right-directed M M M -pseudo-orbit with carries in C ( a , b ) \mathcal{C}(a,b) C ( a , b ) that are not eventually periodic. Lemma 38 applies. □ \square □
Corollary 43 (external primes are necessary). For every reduced base a > b ≥ 2 a>b\ge2 a > b ≥ 2 , no execution of M 0 \mathcal{M}_0 M 0 whose moduli involve only primes dividing 2 a b 2ab 2 ab succeeds.
Proof. Take R = 1 R=1 R = 1 in Theorem 42 . If Δ \Delta Δ is odd and ≥ 3 \ge3 ≥ 3 , take
c = 1 , h = Δ − 1 ≥ 2. c=1,\qquad h=\Delta-1\ge2. c = 1 , h = Δ − 1 ≥ 2. If Δ \Delta Δ is even and ≥ 4 \ge4 ≥ 4 , then a , b a,b a , b are odd, c = 2 c=2 c = 2 is coprime to a b ab ab , and
h = Δ − 2 ≥ 2. h=\Delta-2\ge2. h = Δ − 2 ≥ 2. If Δ = 1 \Delta=1 Δ = 1 , take
c = − 1 ≥ 1 − b , h = 2 ≤ a − 1 c=-1\ge1-b,\qquad h=2\le a-1 c = − 1 ≥ 1 − b , h = 2 ≤ a − 1 (as a ≥ 3 a\ge3 a ≥ 3 ).
If Δ = 2 \Delta=2 Δ = 2 , then a , b a,b a , b are odd, b ≥ 3 b\ge3 b ≥ 3 , a ≥ 5 a\ge5 a ≥ 5 , and
c = − 2 ≥ 1 − b , h = 4 ≤ a − 1. c=-2\ge1-b,\qquad h=4\le a-1. c = − 2 ≥ 1 − b , h = 4 ≤ a − 1. In every case h ≤ a − 1 h\le a-1 h ≤ a − 1 is even and positive, so (33) holds with m = h / 2 m=h/2 m = h /2 . □ \square □
For 7 / 5 7/5 7/5 with M = 4290 M=4290 M = 4290 we have R = 3 ⋅ 11 ⋅ 13 = 429 R=3\cdot11\cdot13=429 R = 3 ⋅ 11 ⋅ 13 = 429 and h = 858 m ≤ 6 h=858m\le6 h = 858 m ≤ 6 is impossible, consistent with Theorem 1(i).
The external-prime budget
Let J ( N ) J(N) J ( N ) denote the Jacobsthal function: the least positive integer J J J such that every J J J consecutive integers contain one coprime to N N N ; J ( 1 ) = 1 J(1)=1 J ( 1 ) = 1 . Equivalently, J ( N ) J(N) J ( N ) is the largest gap between consecutive integers coprime to N N N . Let
N 0 = ∏ { p ∣ a b : p odd } N_0=\prod\{p\mid ab:p\ \text{odd}\} N 0 = ∏ { p ∣ ab : p odd }
and k = ω ( N 0 ) k=\omega(N_0) k = ω ( N 0 ) its number of prime factors; since a > b ≥ 2 a>b\geq2 a > b ≥ 2 are coprime, N 0 ≥ 3 N_0\geq3 N 0 ≥ 3 .
Theorem 44. Let R R R be as in Theorem 42 . If some execution of M 0 \mathcal{M}_0 M 0 with all M t ∣ M M_t\mid M M t ∣ M succeeds, then
a ≤ 2 R J ( N 0 ) . (34) a\leq2R\,J(N_0). \tag*{(34)} a ≤ 2 R J ( N 0 ) . (34) Moreover, for every odd squarefree N N N with ω ( N ) = k \omega(N)=k ω ( N ) = k ,
J ( N ) ≤ 3 k ; J(N)\leq3^k; J ( N ) ≤ 3 k ; hence
R ≥ a 2 ⋅ 3 k , 2 k k ! ≤ N 0 < a 2 , (35) R\geq\frac{a}{2\cdot3^k},\qquad2^k k!\leq N_0<a^2, \tag*{(35)} R ≥ 2 ⋅ 3 k a , 2 k k ! ≤ N 0 < a 2 , (35) so that 3 k = a o ( 1 ) 3^k=a^{o(1)} 3 k = a o ( 1 ) and
lim inf log R log a ≥ 1 \liminf\frac{\log R}{\log a}\geq1 lim inf log a log R ≥ 1 along any sequence of successful certificates with a → ∞ a\to\infty a → ∞ . If the primes available for R R R are restricted to a fixed finite set with product R 0 R_0 R 0 , then
a ≤ 2 R 0 3 k 0 − 1 , a\leq2R_0\,3^{k_0-1}, a ≤ 2 R 0 3 k 0 − 1 , where k 0 ≥ 4 k_0\geq4 k 0 ≥ 4 is any integer with
2 k 0 k 0 ! > 4 R 0 2 9 k 0 ; 2^{k_0}k_0!>4R_0^2\,9^{k_0}; 2 k 0 k 0 ! > 4 R 0 2 9 k 0 ; in particular only finitely many reduced bases admit a successful execution with that set.
Proof. By Theorem 42 , success implies
gcd ( Δ − 2 R m , a b ) > 1 \gcd(\Delta-2Rm,ab)>1 g cd( Δ − 2 R m , ab ) > 1
for every
1 ≤ m ≤ H : = ⌊ a − 1 2 R ⌋ . 1\leq m\leq H:=\left\lfloor\frac{a-1}{2R}\right\rfloor. 1 ≤ m ≤ H := ⌊ 2 R a − 1 ⌋ .
Since 2 R 2R 2 R is invertible modulo N 0 N_0 N 0 , let
u ≡ Δ ( 2 R ) − 1 ( m o d N 0 ) ; u\equiv\Delta(2R)^{-1}\pmod{N_0}; u ≡ Δ ( 2 R ) − 1 ( mod N 0 ) ;
for an odd prime p ∣ a b p\mid ab p ∣ ab , p ∣ Δ − 2 R m p\mid\Delta-2Rm p ∣ Δ − 2 R m if and only if m ≡ u ( m o d p ) m\equiv u\pmod p m ≡ u ( mod p ) . The prime 2 2 2 never divides Δ − 2 R m \Delta-2Rm Δ − 2 R m when 2 ∣ a b 2\mid ab 2 ∣ ab (then Δ \Delta Δ is odd), and is not a factor of a b ab ab otherwise. Hence
gcd ( Δ − 2 R m , a b ) = 1 ⟺ gcd ( m − u , N 0 ) = 1. \gcd(\Delta-2Rm,ab)=1\Longleftrightarrow\gcd(m-u,N_0)=1. g cd( Δ − 2 R m , ab ) = 1 ⟺ g cd( m − u , N 0 ) = 1.
If H ≥ J ( N 0 ) H\geq J(N_0) H ≥ J ( N 0 ) , the H H H consecutive integers 1 − u , … , H − u 1-u,\ldots,H-u 1 − u , … , H − u contain one coprime to N 0 N_0 N 0 , giving a witness m m m . So success forces H ≤ J ( N 0 ) − 1 H\leq J(N_0)-1 H ≤ J ( N 0 ) − 1 , that is,
a − 1 2 R < J ( N 0 ) , \frac{a-1}{2R}<J(N_0), 2 R a − 1 < J ( N 0 ) ,
which is (29).
For the bound on J J J : in a window of H H H consecutive integers, the number coprime to N N N is
∑ t ∣ N μ ( t ) # { x : t ∣ x } , # { x : t ∣ x } = H t + ϵ t \sum_{t\mid N}\mu(t)\#\{x:t\mid x\},\qquad\#\{x:t\mid x\}=\frac{H}{t}+\epsilon_t t ∣ N ∑ μ ( t ) # { x : t ∣ x } , # { x : t ∣ x } = t H + ϵ t
with ∣ ϵ t ∣ < 1 |\epsilon_t|<1 ∣ ϵ t ∣ < 1 , ϵ 1 = 0 \epsilon_1=0 ϵ 1 = 0 ; so the count is at least
H φ ( N ) N − ( 2 k − 1 ) . \frac{H\varphi(N)}{N}-(2^k-1). N H φ ( N ) − ( 2 k − 1 ) .
As N N N is odd,
φ ( N ) / N = ∏ ( 1 − 1 / p ) ≥ ( 2 / 3 ) k , \varphi(N)/N=\prod(1-1/p)\ge(2/3)^k, φ ( N ) / N = ∏ ( 1 − 1/ p ) ≥ ( 2/3 ) k ,
and H = 3 k H=3^k H = 3 k gives a count ≥ 1 \ge1 ≥ 1 .
The first inequality in (35) follows from (34) ; the second from
N 0 ≥ ∏ i ≤ k ( 2 i + 1 ) > 2 k k ! and N 0 ≤ a b < a 2 . N_0\ge\prod_{i\le k}(2i+1)>2^k k! \qquad\text{and}\qquad N_0\le ab<a^2. N 0 ≥ i ≤ k ∏ ( 2 i + 1 ) > 2 k k ! and N 0 ≤ ab < a 2 .
From
k ! < a 2 and k ! ≥ ( k / e ) k k!<a^2 \qquad\text{and}\qquad k!\ge(k/e)^k k ! < a 2 and k ! ≥ ( k / e ) k
one gets
k log k ≪ log a , k\log k\ll\log a, k log k ≪ log a ,
so k = O ( log a / log log a ) k=O(\log a/\log\log a) k = O ( log a / log log a ) and
3 k = a O ( 1 / log log a ) . 3^k=a^{O(1/\log\log a)}. 3 k = a O ( 1/ l o g l o g a ) .
For the effective bound, the ratio 2 k k ! / ( 4 R 0 2 9 k ) 2^k k!/(4R_0^2 9^k) 2 k k ! / ( 4 R 0 2 9 k ) is multiplied by 2 ( k + 1 ) / 9 > 1 2(k+1)/9>1 2 ( k + 1 ) /9 > 1 when k ≥ 4 k\ge4 k ≥ 4 , so it exceeds 1 1 1 for all k ≥ k 0 k\ge k_0 k ≥ k 0 .
If k ≥ k 0 k\ge k_0 k ≥ k 0 , then
a 2 > N 0 ≥ 2 k k ! > 4 R 0 2 9 k ≥ ( 2 R 0 3 k ) 2 ≥ a 2 a^2>N_0\ge2^k k!>4R_0^2 9^k\ge(2R_0 3^k)^2\ge a^2 a 2 > N 0 ≥ 2 k k ! > 4 R 0 2 9 k ≥ ( 2 R 0 3 k ) 2 ≥ a 2
by (34) and J ( N 0 ) ≤ 3 k J(N_0)\le3^k J ( N 0 ) ≤ 3 k , a contradiction; so k ≤ k 0 − 1 k\le k_0-1 k ≤ k 0 − 1 and
a ≤ 2 R 0 3 k 0 − 1 . a\le2R_0 3^{k_0-1}. a ≤ 2 R 0 3 k 0 − 1 .
The condition (34) is necessary, not sufficient: closing every m ≤ H m\le H m ≤ H does not guarantee a certificate.
Corollary 45. (a) If a = p a=p a = p is an odd prime and b = 2 s < p b=2^s<p b = 2 s < p , then N 0 = p N_0=p N 0 = p , J ( p ) = 2 J(p)=2 J ( p ) = 2 , and a successful execution requires
(b) If a , b a,b a , b are distinct odd primes, then J ( a b ) = 3 J(ab)=3 J ( ab ) = 3 and a successful execution requires
Proof. Among two consecutive integers at most one is divisible by p p p , so J ( p ) = 2 J(p)=2 J ( p ) = 2 . Among three consecutive integers at most one is divisible by a a a and at most one by b b b , so J ( a b ) ≤ 3 J(ab)\le3 J ( ab ) ≤ 3 ; by the Chinese remainder theorem there are consecutive x ≡ 0 ( m o d a ) x\equiv0\pmod a x ≡ 0 ( mod a ) , x + 1 ≡ 0 ( m o d b ) x+1\equiv0\pmod b x + 1 ≡ 0 ( mod b ) , so J ( a b ) = 3 J(ab)=3 J ( ab ) = 3 . Apply (34) . □
These are constraints on any certificate for the bases named; they are not statements about composite terms of those bases.
Remark (Iwaniec’s bound). Let C ( k ) C(k) C ( k ) be the maximal number of consecutive integers each divisible by one of k k k arbitrarily chosen primes. Iwaniec proved
C ( k ) ≪ k 2 log 2 k C(k)\ll k^2\log^2 k C ( k ) ≪ k 2 log 2 k
IW78, Corollary, p.226; see also CW13, §1, where the same statement is written as g ( n ) ≤ X ( k log k ) g(n)\le X(k\log k) g ( n ) ≤ X ( k log k ) for k = ω ( n ) k=\omega(n) k = ω ( n ) . Since J ( N ) ≤ C ( ω ( N ) ) + 1 J(N)\le C(\omega(N))+1 J ( N ) ≤ C ( ω ( N )) + 1 for ω ( N ) ≥ 2 \omega(N)\ge2 ω ( N ) ≥ 2 and J ( N ) = 2 J(N)=2 J ( N ) = 2 for ω ( N ) = 1 \omega(N)=1 ω ( N ) = 1 , this gives
J ( N 0 ) ≪ ( k log 2 k ) 2 J(N_0)\ll(k\log2k)^2 J ( N 0 ) ≪ ( k log 2 k ) 2
with an absolute implied constant, and with k log 2 k ≪ log a k \log2k \ll\log a k log 2 k ≪ log a from (35) , the condition (34) yields
R ≫ a ( log a ) 2 . R \gg\frac{a}{(\log a)^2}. R ≫ ( log a ) 2 a .
This sharpens (35) quantitatively. It is an external input, not a result of this paper; the constant is absolute but not specified here, and no theorem above depends on it. For explicit finite inputs, (34) and the gcd test of Theorem 42 are used directly.
The explicit certificates for the bases 101 / 2 101/2 101/2 and 101 / 100 101/100 101/100 , the selection of primes that eliminate persistent return words, and the whole-word interval test are given in Appendix E.§ 4 .
Verification and reproducibility
The paper sources, computation code, Lean formal proofs, reference data, and reproduction instructions are publicly available at:
https://github.com/ixixi/rational-floor-certificates
The repository README describes the contents; REPRODUCE.md and ENVIRONMENT.md explain how to reproduce the results and set up the required environment. Appendix A gives the main commands.
What the finite computations establish
What the finite computations establish. The table entries of § 5 , Table 7 , and Table 17 are summaries, not the certificates. The mathematical obligations discharged by the finite computations, and checked element by element by two implementations, are the following.
Initial coverage. The initial vertex set is the full set of legal states (all of V ( M , K 0 ) V(M,K_0) V ( M , K 0 ) for Table 1 and for Table 7 ; all K K K cells for Table 4 , Table 6 , and Table 17 ).
Complete edge sets. Every edge satisfying (E1)–(E3), or the initial inequalities of Theorem 19 , is present; the lift of every edge is computed for every starting residue.
Residues at every intermediate time. In a lift, all ℓ + 1 \ell+ 1 ℓ + 1 residues along a word of length ℓ \ell ℓ , including the endpoint, are nonzero.
All-letter phase conditions. For every certified component, (19) holds at every letter position of every internal edge, with a single label per phase.
Rank monotonicity. For Table 7 , the inequalities of (Q-rank) and (Q-cyc) hold on every edge between distinct blocks, and the bounds ρ ≤ 65 \rho\le65 ρ ≤ 65 , η ≤ 6 \eta\le6 η ≤ 6 , d B ≤ 13 d_B \le13 d B ≤ 13 hold.
Retention. Every vertex and every internal edge of every uncertified cyclic component is kept, and nothing else.
Output-preserving contraction. Macro vertices are exactly the vertices of out-degree at least two (plus anchors), each chain of out-degree-one vertices ends at a macro vertex, and macro words are the concatenations of the chain words; for the backward passes of Table 17 , the same holds with in-degrees and backward chains.
Final emptiness. The last retained set (Table 1 ) or the last output graph (Table 4 , Table 6 , and Table 17 ) is empty; for Table 7 , no cyclic block is uncertified.
The strongly connected components themselves are verified by sufficient conditions: the proposed blocks are nonempty, disjoint, cover all vertices, are internally reachable forwards and backwards, and admit a strictly monotone integer rank on all edges between distinct blocks (acyclic quotient). These conditions determine the SCC partition. Agreement of counts or of hashes is recorded but is not the criterion; the criterion is the element-wise comparison of the complete data.
The one-step computation for 7/5
The one-step calculation of Table 1 –Table 3 was performed by two implementations in Python’s arbitrary-precision integer arithmetic, using only the standard library and no floating point in the proof computation. Implementation A enumerates target cells with (15) and computes SCCs by iterative Kosaraju traversal. Implementation B tests (E3) directly for every k ∈ { 0 , … , K − 1 } k \in\{0,\ldots,K-1\} k ∈ { 0 , … , K − 1 } , caching the resulting lists by ( j , e ) (j,e) ( j , e ) , and computes SCCs by an iterative form of Tarjan’s algorithm T, § 4 . Both classify all unit residues by b z m o d M bz \bmod M b z mod M to solve (E2). B was developed from the mathematical specification and a common output schema, without reading or importing A or the original baseline program; its design, source, and outputs were fixed before the comparison with A.
The validation checks every vertex and labelled edge. It recomputes shortest distances, all edge differences, phase label collections, certification flags, and primitive words, checks that the retained set is exactly the union of uncertified cyclic components, and checks that every child in (19) is present in the next stage. For a rejected phase test, two internal edges with the same departure phase and distinct labels provide a checkable witness. Across the four main stages and the three first stages of Table 3 , the comparison covers 97772 vertices, 168474 labelled edges, and 94006 SCCs; no mismatch in the scientific data was found. The recorded executions used CPython 3.11.13 for A and CPython 3.10.12 for B on Linux, each case with a 600-second wall-time limit and a 4 GiB address-space limit. Reaching a limit is recorded as inconclusive and supplies neither a counterexample nor a minimality claim; all adopted cases completed. The programs are included under supplement/computations/implementation_a/ and supplement/computations/implementation_b/. The public verification procedure and the all-element comparison are described in the computation guide and the reproduction guide.
The word-labelled computations
The computations of Table 4 , Table 6 , and Table 7 were performed by two implementations with disjoint scientific cores.
Implementation A (word_a) is a provenance-tracked working copy of the programs written in the original research on which this paper is based (C++ constructions driven by Python, with a Python third check for the first five stages of Table 6 ), together with a driver that fixes resource limits, records inputs and outputs, and writes the graphs in a normalized text format. These programs contain two constructions labelled “A” and “B”; the two share a common origin, file formats, and conventions, and their mutual agreement is a consistency check within one lineage, not the independent verification described next. The scientific cores are retained in the public sources. The provenance and packaging changes are described in the computation guide; the source manifest identifies every distributed source by SHA-256.
Implementation B (word_b) was written by a different programmer from a mathematical specification equivalent to Section 4 and the comparison contract word-schema.md, which fixes the definitions, the text format, and the normalization only, without reading the original programs, implementation A, or the tables of the original research notes. It consists of a C++17 production program and a separately written literal Python reference program (direct inequality tests for all ( j , c , k ) (j,c,k) ( j , c , k ) , forward iteration for all starting residues, Kosaraju’s algorithm, and Kahn’s algorithm for acyclicity), whose normalized outputs coincide byte for byte on all graphs. B computes h h h as the word length of the first root path found, uses forward iteration rather than Lemma 18, and re-verifies its SCC partitions by the sufficient conditions of Section 9.1. Its outputs were fixed, with sizes and hashes recorded, before A’s outputs were opened.
Comparison. B’s comparator compares, for each of the 29 file pairs (ten input and ten output graphs for Table 6 , four and four for Table 4 , one graph for Table 7 ), the header parameters, the vertex sets, and the sets of word-labelled triples ( u , w , v ) (u,w,v) ( u , w , v ) , and checks the sort order, absence of duplicates, and consistency of each file. For Table 7 it compares the block partition as a family of member sets (independent of block numbering), the attributes of each block (size, internal edges, d B d_B d B , ρ \rho ρ , η \eta η ), the phase-label sequences, and the absence of uncertified cyclic blocks. All 29 pairs agree element by element. The comparison procedure and reference data are given in the computation guide and checks/reference.json; Appendix A gives the public reproduction entry point. Both implementations compute h h h from total word lengths of paths inside each component from a common root. Corollary 22 therefore implies agreement of the reported d B d_B d B values, even when their roots or paths differ.
Environment and limits. A ran under Python 3.10.12 with g++ 11.4.0 on Linux, with wall-time and address-space limits of 600 s and 4 GiB per construction for Table 6 (1500 s overall) and 300 s and 4 GiB otherwise. B ran its C++ program under limits of 3600 s and 8 GiB (Table 6 ), 300 s and 4 GiB (Table 4 ), and 600 s and 4 GiB (Table 7 ), its Python reference under 1800 s and 8 GiB, and the comparison under 1800 s and 8 GiB. No limit was reached; a limit reached would have been recorded as inconclusive. Wall times are recorded in the run records and are not performance claims.
Meaning of independence. The independence concerns the scientific cores of the two implementations: edge enumeration, lifting, component decomposition, certification, and contraction were coded separately from the specification. It does not extend to the mathematical lemmas, which are common, to the shared text format, or to human refereeing, and it does not mean clean-room development in a legal sense. Agreement of the two implementations is evidence that they computed the same finite objects; the soundness of the operations (§ 4 ) and the passage to all ξ > 0 \xi> 0 ξ > 0 (Theorem 19 ) are mathematical statements proved above, not outputs of the programs.
The Lean formalization and its boundary
A Lean formalization covers all three parts of Theorem 1 and Corollary 2, with different trust bases for the finite evaluations. It uses Lean 4.29.1 and Mathlib at commit 5e932f97dd25535344f80f9dd8da3aab83df0fe6, with transitive dependencies pinned in supplement/lean/lake-manifest.json.
The one-step certificate. The one-step formalization follows the integer-difference proof of Lemma 4 , orbit inclusion (Proposition 5 ), a rank-and-phase version of tail preservation, and the finite iteration of Theorem 10 .
The formal certificate avoids a formal proof of the SCC algorithms. At each stage it assigns each vertex to a block, and each block a natural number rank. On every edge between distinct blocks the rank must strictly decrease (the opposite orientation to the strictly increasing ρ \rho ρ of (Q-rank) in § 6.2 ; either convention yields a well-founded order). Each block is designated as one of the following:
Retained: every vertex of the block is included in the retained set.
Edgeless: the block contains no internal edge.
Periodic: a positive integer d d d , a rank in { 0 , … , d − 1 } \{0,\ldots,d-1\} { 0 , … , d − 1 } for every vertex, and a label for every phase satisfy the phase-increment and departure-label conditions on every internal edge.
These are sufficient conditions for Lemma 8 . Along an infinite walk the rank cannot strictly decrease infinitely often, so the walk eventually remains in one block. That block cannot be edgeless. If it is periodic, its label sequence contradicts Lemma 4 . It must therefore be retained. An SCC decomposition supplies such blocks and ranks through its acyclic quotient, but the formal implication does not require the blocks to be identified as SCCs.
The abstract structure FiniteSuccess requires initial coverage of all legal states, the rank/phase condition on every edge satisfying (E1)–(E3) between current states, coverage of all retained-block vertices, inclusion of all refined states at the next stage, and an empty final retained set. The following declarations, all with namespace prefix MathPaper., identify the principal formal dependencies.
Table 8: Principal Lean declarations. All names except those beginning with WordExec. have prefix MathPaper.; Pipe. denotes the executable word-labelled pipeline, and WordExec. the precompiled two-direction pipeline.
Table 8. Principal Lean declarations. All names except those beginning with WordExec. have prefix MathPaper.; Pipe. denotes the executable word-labelled pipeline, and WordExec. the precompiled two-direction pipeline.
Table 19.
The closed term mainFiniteSuccess : FiniteSuccess 7 5 4290 discharges the certificate argument of the general reduction. The two one-step final theorems take only a real coefficient ξ \xi ξ , a proof of ξ > 0 \xi> 0 ξ > 0 , and an arbitrary N ∈ N N \in\mathbb{N} N ∈ N , and return an n ≥ max ( N , 1 ) n \ge\max(N,1) n ≥ max ( N , 1 ) satisfying the respective conclusion, with no unproved finite-computation hypothesis. The finite checker does not assume that the edge list exported by Python is complete: proved enumeration lemmas place every edge satisfying (E1)–(E3) among three carry candidates, five residue lifts, and three target-cell candidates, and the checker tests the rank/phase condition on an outer approximation of these edges. The Boolean checks are proved by decide +kernel, split into smaller statements joined by proved composition lemmas. The compositeness proof uses the eventually valid bound Q n > M Q_n > M Q n > M and defines compositeness as Q n = u v Q_n = uv Q n = uv with integers u , v > 1 u,v > 1 u , v > 1 , without dependence on prime factorization.
The complete one-step certificate, main module, and aggregate build succeeded. The axiom audit of 30 designated declarations, including mainFiniteSuccess and both final theorems, shows dependencies confined to Lean’s standard propext, Classical.choice, and Quot.sound; no sorryAx, custom axiom, or external-computation axiom occurs (the formalization guide). An independent audit rebuilt all 79 modules of the one-step project from a fresh project cache and checked the types and axiom dependencies of 60 declarations (58 from the project and two independently written restatements of Theorem 1(i) and its corollary), with the same three standard axioms only. The declared scope and commands for repeating the type and axiom checks are given in the formalization guide. The rebuild used compiled library caches for the pinned Mathlib and its dependencies, whose revisions were checked against the lock file; it did not rebuild every dependency from source. For this one-step proof the trust base comprises the fixed Lean kernel, its standard axioms, and those fixed libraries. The declaration-level coverage is summarized in the formalization guide. The public build procedure is given in the reproduction guide.
The word-labelled certificates. The added formalization in MathPaper/Word/ extends the block/rank method to nonempty edge words. Its covering relation records a walk and strictly increasing boundary times, with each edge word equal to the corresponding segment of the carry sequence. In a periodic block the phase advances by the full word length, and every letter must agree with its phase label. In a retained block the checker verifies a macro-vertex set and a remaining word and destination for each non-macro vertex. The consistency conditions make the remaining word length decrease along a non-macro path and preserve the concatenated output on passage to macro edges. Thus the formal proof uses the forward direction of Proposition 16; it need not show that every walk of the output graph expands to an input walk.
The kernel-checked theorem Pipe.wordPipeline_sound proves that Pipe.wordPipeline a b K alphabet primes = true implies WordFiniteSuccess a b K alphabet primes. The pipeline enumerates the initial cell edges using the strict inequalities (E3). At each stage, auxiliary algorithms compute proposed blocks, ranks, phases, contraction data, and output edges. Their correctness is not assumed: the proved checker verifies the required conditions on every input edge. The proved lifting function considers every nonzero starting residue and every letter, including the residue at the final endpoint; its inverse of b b b is checked modulo the newly added prime. Vertex renumbering uses preservation of covering under an arbitrary vertex map, so no unproved injectivity assumption is needed. The pipeline accepts only after the final output is empty. Together with the two proved carry alphabet lemmas, its soundness theorem discharges the finite-certificate arguments of the general visitation and compositeness theorems.
The two accepted finite evaluations are
Pipe.wordPipeline 5 2 4 [-1, 1, 3] [3, 7, 11, 13, 17, 19, 23, 29, 31] = true
Pipe.wordPipeline 7 5 2048 [-4, -2, 2, 4, 6] [3, 11, 13] = true
They are proved by native_decide. In the fixed Lean version this mechanism asserts the native evaluation through a generated axiom for each theorem; it does not use Lean.ofReduceBool. The actual additional axioms, with namespace prefix MathPaper., are five_halves_ok._native.native_decide.ax_1_1 and seven_fifths_ok._native.native_decide.ax_1_1, respectively. Accordingly, the 5/2 final theorems depend on the first generated axiom in addition to the three standard axioms, and the alternative 7/5 theorem depends on the second. The word-labelled theory and checker soundness depend only on the standard axioms. No sorryAx occurs in the recorded dependencies. The added trust is in the compiler and native evaluation of the Lean pipeline, not in a Python or C++ success flag, exported graph, or hash. These final theorems take only ξ > 0 \xi> 0 ξ > 0 and N N N , with no certificate argument, and give exactly the quantifiers and moduli of Theorem 1(i), (ii) and the 5/2 part of Corollary 2.
The added modules, aggregate build, and axiom display were accepted. The formalization guide records their coverage and axiom boundary. A separate independent audit of the word-labelled proof rebuilt all 14 added Word modules, reran both native finite evaluations, and checked the types and axiom dependencies of 46 project declarations and five independent restatements or checks. It confirmed the trust boundary described above. That audit reused compiled one-step project dependencies and the fixed library caches; it was not a fresh recompilation of all one-step modules or of the libraries. An attempted decide +kernel evaluation of a smaller pipeline instance stopped at opaque hashing operations, so neither word-labelled evaluation is claimed as a kernel-only finite computation.
The certificate for 5/3. The in-degree-one contraction is formalized in the original direction, without reversal. In a retained block the checker verifies a macro-vertex set and, for every other vertex, a backward chain: a word read from a macro vertex and that vertex. The recorded chain lengths are bounded by a stated bound. Along a walk avoiding macro vertices the chain length increases strictly with every edge, so macro vertices recur, and consecutive visits delimit macro edges of the output graph with the same words. The formal proof uses neither SCCs nor the finiteness of the graph (macroIn_recurrent, contractIn_tail). A stage may consist of any finite sequence of checked forward and backward passes (StageReduce); between passes the words are compacted and the vertices renumbered, which preserves coverings through an arbitrary vertex map.
The executable two-direction pipeline is the module WordExec. It contains copies of the data types, checker, auxiliary computations, lift, and initial graph of the pipeline above, and adds the in-direction checker and computation, the compaction, and the iteration rule of Appendix F.3. It does not import Mathlib, and it is precompiled, so that the finite evaluation runs compiled code. The kernel-checked theorem WordExec.wordPipelineBid ir_sound proves that WordExec.wordPipelineBidir a b K alphabet primes = true implies WordFiniteSuccessB a b K alphabet primes, the certificate form of Theorem 76 . The accepted finite evaluation is
WordExec.wordPipelineBidir 5 3 3 [-2, 2, 4] [7, 11, 13, 17, 19, 23, 29, 31, 37] =
↪ true
proved by native_decide with the generated axiom five_thirds_ok._native.native_decide.ax_1_1. With Lemma 74 (carry_alphabet_53), the final theorems floor_five_thirds_visits and floor_five_thirds_composite take only ξ > 0 \xi> 0 ξ > 0 and N N N and give the quantifiers and modulus of (2a) and the 5/3 part of Corollary 2. Their axiom dependencies are the three standard axioms and this generated axiom; the theory and checker soundness use only the standard axioms. The trust base is therefore of the same kind as for 5/2, with the compiled code of WordExec evaluated natively. The evaluation took 657 s with a peak resident set of 12.7 GiB on the machine of § 9.5 , more than the harness limit of the other modules; the separate limit for this module is stated in the formalization guide. The Lean pipeline uses the same iteration rule as the C++ implementations, and its per-stage counts agree with Table 17 ; they are diagnostics and not part of the proof. The independent audit of the word-labelled proof described below was made before this addition and does not cover the 5/3 modules.
Boundary. The formalization establishes the arithmetic conclusions of Theorem 1 and Corollary 2 with the trust bases just stated. It does not formally identify the reported blocks as SCCs, prove that h h h is a shortest distance or that d d d is the specified gcd, or establish the reported table counts and words. Those data are checked by the A/B computations; the Lean checker uses sufficient rank, phase, and contraction conditions. Within § 4 , the gcd positivity argument of Lemma 12 (a), Lemma 14 , the reverse correspondence in Proposition 16 , the root formula of Lemma 18 , and Theorem 21 with Corollary 22 are not formalized. Positive periods are required by the checker, and lifting uses the forward recurrence. Theorem 3 , § 6 (including the waiting-time certificate of Table 7 ), § 7 –§ 8 , and the further results of § 10 and Appendices B–E also remain outside the formalization. In Appendix § 17 , Lemma 75 (b), Corollaries 77 and 78, and the counts of Table 17 and Table 18 are not formalized. Their evidence consists of the proofs in this paper and, where finite computation is required, the recorded A/B comparisons.
Table 18.
The computation for 5/3
The calculation of Table 17 was performed by two implementations with disjoint scientific cores. The obligations of § 9.1 apply to it, with the backward passes of Appendix § 17 .§ 3 added to the contraction conditions.
The producer (supplement/computations/five_thirds/) is the program with which the certificate for 5/3 was first computed. It is a C++17 program that enumerates the initial edges, lifts every edge for every starting residue, computes SCCs, applies the phase test, and contracts in both directions, the backward pass being computed by reversal as in Lemma 75 (b). An embedded checker, compiled into the same program, verifies during the full run the initial edges by direct inequalities, all lifted edges by a forward calculation of the surviving residue sets, sufficient rank and all-letter phase conditions on every edge (without assuming that the blocks are SCCs), and the reconstruction of every contracted edge. Counted with stage multiplicity, the full run checked 44536828 lifted edges, 126567962 rank, retention, and phase edges, 1508656 periodic-phase letters, and 86280584 contracted edges. The producer and its checker share representations and development lineage. A separate literal Python program of the same lineage reconstructs the first five stages, through the prime 17, and agrees on all ten of their input and output graphs (5834 vertices, 13260 edges, and 52757 letters in total). Implementation B of § 9.3 was extended by an option for backward passes: every edge and every word is reversed, removal and out-contraction are applied, and the result is reversed back, with the iteration rule of Appendix § 17 .§ 3 . The extension was written from the statement of Lemma 75 and the iteration rule, without reading the producer, its checker, or its Python program; until the comparison was complete, these were only compiled and run. The default pipeline of B is unchanged: without the new option, all its graphs for Table 4 and Table 6 are byte for byte identical to those of the previous version.
Comparison. The producer writes the input and output graphs of each stage with its own vertex numbering, recording only the cells. B names a vertex by its residue and cell; its vertices are ordered by cell and then by the residues modulo the added primes in the order of addition. In this order, both graphs of each pair are written in a common canonical text (the vertex cells and the sorted word-labelled triples), and the two texts are compared byte for byte. All 20 graphs of Table 17 agree, 35289089 vertices, 48786290 edges, and 1245585922 letters in total, as do the per-stage numbers of cyclic and certified components, retained vertices, letters, and maximal word lengths. B’s graph files and the digests of the canonical texts are recorded in checks/reference.json. B without backward passes gives the first columns of Table 18 .
Environment and limits. Both full runs used g++ 11.4.0 under Linux (WSL2) on one machine with 62 GiB of memory; B took 178 s with a peak resident set of 2.4 GiB, the producer 185 s with 2.5 GiB, and the comparison 223 s. The public entry point runs each command under the limits stated in the reproduction guide. Wall times are recorded in the run records and are not performance claims.
Scope. The independence concerns the scientific cores, as in § 9.3 . B’s extension was written in a separate AI-assisted session from the same mathematical specification as the producer; no independent human review of the 5/3 computation is claimed. The companion obstruction of Appendix § 17 .§ 5 is checked by exact rational arithmetic from the recorded words, without a search graph, by one direct program; it has no second implementation. § 9.4 describes the Lean formalization of Theorem 1(iii); its pipeline, which follows the same iteration rule, reproduces the per-stage counts of Table 17 .
Further results deferred to the appendices
Two groups of further results are stated here without proof; the proofs are given in Appendices B and D, and the supporting computations were performed by the two implementations of § 9.3 and compared element by element (Sections D.5 and E.2). They are not used in Sections 1–9.
Recurrent carries. An infinite word w = w 0 w 1 ⋯ w = w_0w_1\cdots w = w 0 w 1 ⋯ over a finite alphabet is recurrent if for every L ≥ 1 L \ge1 L ≥ 1 and every B ≥ 1 B \ge1 B ≥ 1 there is n ≥ B n \ge B n ≥ B with
w n + i = w i w_{n+i} = w_i w n + i = w i
for 0 ≤ i < L 0 \le i < L 0 ≤ i < L ; every tail of a recurrent word is recurrent.
Theorem 46 (recurrent carries force composites; proof in Appendix B.§ 3 ). Let a > b ≥ 2 a > b \ge2 a > b ≥ 2 , gcd ( a , b ) = 1 \gcd(a,b) = 1 g cd( a , b ) = 1 , ξ > 0 \xi> 0 ξ > 0 , and suppose that the carry sequence c 0 c 1 ⋯ c_0c_1\cdots c 0 c 1 ⋯ of the orbit has a recurrent tail c j 0 c j 0 + 1 ⋯ c_{j_0}c_{j_0+1}\cdots c j 0 c j 0 + 1 ⋯ . Then Q n Q_n Q n contains infinitely many composite terms. Moreover, if j ≥ j 0 j \ge j_0 j ≥ j 0 satisfies Q j > 1 Q_j > 1 Q j > 1 and gcd ( Q j , a b ) = 1 \gcd(Q_j,ab) = 1 g cd( Q j , ab ) = 1 , then Q j Q_j Q j divides infinitely many later terms.
The recurrence assumption concerns the carry word itself. Confinement of a walk to a strongly connected component does not imply recurrence of its output.
Theorem 46 is a return argument in the spirit of a theorem of Dubickas Dub09, Theorem 4: if integers x n x_n x n satisfy x n + d = k x n + F ( x n + 1 , … , x n + d − 1 ) x_{n+d} = kx_n + F(x_{n+1},\ldots,x_{n+d-1}) x n + d = k x n + F ( x n + 1 , … , x n + d − 1 ) with an integer k ≠ 0 k \ne0 k = 0 and F ∈ Z [ z 1 , … , z d − 1 ] F \in\mathbb{Z}[z_1,\ldots,z_{d-1}] F ∈ Z [ z 1 , … , z d − 1 ] , then ( x n ) (x_n) ( x n ) is purely periodic modulo every q q q with gcd ( k , q ) = 1 \gcd(k,q)=1 g cd( k , q ) = 1 , and it contains infinitely many composite terms if ∣ x n ∣ → ∞ |x_n| \to\infty ∣ x n ∣ → ∞ . Stephan S26, Proposition 3.1 applies the case d = 1 d=1 d = 1 to ultimately periodic digit words in an integer base. For a nonintegral base the carry word is never eventually periodic (Lemma 4). In Theorem 46 the letters act on Z / M \mathbb{Z}/M Z / M by the affine permutations x ↦ b − 1 ( a x + c ) x \mapsto b^{-1}(ax+c) x ↦ b − 1 ( a x + c ) , the word is only assumed to be recurrent, and the finite-prefix copying lemma (Lemma 49) replaces periodicity in producing a return to the initial residue (Theorem 50).
Finite-height results. For the bases 6 / 5 6/5 6/5 and 9 / 7 9/7 9/7 , a sieve over carry words combined with exact interval and divisor tests covers all initial integers up to an explicit height.
Theorem 47 (finite height; proof in Appendix D.4). (a) If 6 < ⌊ ξ ⌋ ≤ 5 40 6 < \lfloor\xi\rfloor\leq5^{40} 6 < ⌊ ξ ⌋ ≤ 5 40 , then ⌊ ξ ( 6 / 5 ) j ⌋ \lfloor\xi(6/5)^j\rfloor ⌊ ξ ( 6/5 ) j ⌋ is composite for some 0 ≤ j ≤ 40 0 \leq j \leq40 0 ≤ j ≤ 40 . (b) If 9 < ⌊ ξ ⌋ ≤ 7 18 9 < \lfloor\xi\rfloor\leq7^{18} 9 < ⌊ ξ ⌋ ≤ 7 18 , then ⌊ ξ ( 9 / 7 ) j ⌋ \lfloor\xi(9/7)^j\rfloor ⌊ ξ ( 9/7 ) j ⌋ is composite for some 0 ≤ j ≤ 18 0 \leq j \leq18 0 ≤ j ≤ 18 .
For 6 / 5 6/5 6/5 the shifted sequence ⌊ ξ ( 6 / 5 ) n ⌋ − 1 \lfloor\xi(6/5)^n\rfloor-1 ⌊ ξ ( 6/5 ) n ⌋ − 1 is treated in DN, Theorem 3, p.637; Theorem 47(a) concerns the unshifted sequence on a finite range and is a different statement.
Appendix C treats the family ( 6 t + 3 ) / ( 6 t + 1 ) (6t+3)/(6t+1) ( 6 t + 3 ) / ( 6 t + 1 ) , for which the all-coefficient statement reduces to an exact integer halting problem (Theorem 58), and Appendix E treats arbitrarily long prime prefixes along that family (Theorem 68, using known results on narrow arithmetic progressions of primes as external inputs), explicit return-word obstructions for 9 / 7 9/7 9/7 and 6 / 5 6/5 6/5 (Corollary 70), and the items deferred from Section 8. Appendix F contains the 5 / 3 5/3 5/3 certificate used for Theorem 1(iii), together with Corollaries 77 and 78.
Open problems
Further bases and infinite families. It remains to determine which further rational bases admit finite certificates and to construct a uniform certificate for an infinite family. Appendix F adds 5 / 3 5/3 5/3 to the bases known to belong to F c e r t \mathcal{F}_{\mathrm{cert}} F cert . Theorem 44 gives a necessary budget of external primes, R ≥ a 1 − o ( 1 ) R \geq a^{1-o(1)} R ≥ a 1 − o ( 1 ) , but no construction meeting it. Eliminating specific return words (Appendix E.3) and covering all recurrent components are different tasks.
Finite height versus all coefficients. Theorem 47 leaves the initial integers above the stated heights untreated. For an initial integer s + k b N s+kb^N s + k b N with the same first N N N carries as s s s , the terms are Q j ( s ) + k a j b N − j Q_j(s)+ka^jb^{N-j} Q j ( s ) + k a j b N − j by (8), and a divisor found for k = 0 k=0 k = 0 need not divide the terms for other k k k .
Recurrence. Theorem 46 excludes recurrent carry tails on an orbit all of whose terms are prime, but it is open whether a non-recurrent all-prime tail can exist (Corollary 51); confinement to a strongly connected component of an outer graph does not imply recurrence (Appendix B.1).
Additional operations. The whole-word interval test (Appendix E.4) is pseudo-orbit-sound but not walk-sound; whether adjoining it changes the class F c e r t \mathcal{F}_{\mathrm{cert}} F cert is open. Whether the halting program of Appendix C halts for every t t t (Theorem 58) is open.
Minimality and subsequences. The certificates give finite prime sets without establishing their minimality; for 5 / 3 5/3 5/3 , Corollary 78 shows only that some prime at least 29 29 29 is needed. Whether the conclusions hold along prescribed arithmetic progressions or sparse subsequences of indices, and what bounds hold for the density of prime terms, remain separate questions.
The paper sources, scientific programs, and Lean project are distributed in the public repository rational-floor-certificates. Run commands from the root of the downloaded distribution. The reproduction guide gives the dependencies, commands, resource limits, and output locations. The common entry point is:
python3 -B reproduce.py verify
python3 -B reproduce.py check --output ../certificate-preflight
python3 -B reproduce.py recompute --output ../certificate-replay
The distribution identifies its sources by the source_sha256 field of the source manifest, computed from the SHA-256 values of the distributed source and check files. SHA256SUMS lists the individual file hashes. checks/reference.json records the finite reference data used for comparison. Generated graphs and logs are written to the chosen output location. Reaching a resource limit is recorded as inconclusive; an incomplete run is not an accepted certificate.
Word-labelled computations, implementation A. The public driver supplement /computations/word_a/run_word.py applies resource limits, runs the original scientific constructions, writes normalized graphs, and runs the same-lineage post-checks. The cases five-halves, cross-75, and q75 regenerate the data of Tables 6, 4, and 7, respectively. The reproduction guide gives the complete commands; the computation guide describes the source provenance and comparison scope. The C++ constructions and the Python normalization code are included. Regeneration therefore uses the distributed sources.
Edge multiplicities. In Tables 4 and 6 edges are counted as distinct triples. Counting contracted chains with multiplicity, and propagating the multiplicity through lifting as the original research notes do, gives for the ten stages of Table 6 the input edge counts 12, 17, 58, 167, 820, 7083, 60242, 315483, 1685458, 3754612 and the output edge counts 12, 12, 20, 85, 529, 4256, 18069, 80704, 201199, 0; for Table 4 all multiplicities are one. Both implementations report these numbers and agree on them; they carry no proof content.
Word-labelled computations, implementation B. The separate C++ program, Python reference, and comparator are included under supplement/computations/word_b/. The following commands show the mathematical inputs and use an initially absent output directory outside the distribution. The public entry point applies the limits and performs the complete comparison described in § 9.3 :
mkdir -p ../certificate-manual/build \
../certificate-manual/OUT52 ../certificate-manual/OUT75 \
../certificate-manual/OUTQ75 ../certificate-manual/REF52
g++ -O2 -std=c++17 -o ../certificate-manual/build/wgb \
supplement/computations/word_b/wgb.cpp
↪ ../certificate-manual/build/wgb pipeline --a 5 --b 2 --K 4 --carries -1,1,3
↪ --primes 3,7,11,13,17,19,23,29,31 --out ../certificate-manual/OUT52
../certificate-manual/build/wgb pipeline --a 7 --b 5 --K 2048 --carries
↪ -4,-2,2,4,6 --primes 3,11,13 --out ../certificate-manual/OUT75
../certificate-manual/build/wgb q75 --a 7 --b 5 --M 429 --K 2048 --carries
↪ -4,-2,2,4,6 --out ../certificate-manual/OUTQ75
python3 supplement/computations/word_b/wgb_ref.py pipeline --a 5 --b 2 --K 4
↪ --carries -1,1,3 --primes 3,7,11,13,17,19,23,29,31 --out
↪ ../certificate-manual/REF52
python3 supplement/computations/word_b/compare_wordgraph.py batch --out
↪ ../certificate-manual/CMPDIR LABEL=FILE_A:FILE_B ...
The shared normalization contracts are comparison-schema.md and word-schema.md. The reference data and artifact hashes are recorded in checks/reference.json and the source manifest. Hashes identify finite artifacts; they do not replace element-wise comparison or the mathematical completeness arguments.
The ratio 5 / 3 5/3 5/3 . The common entry points include the computation of § 9.5 : the preflight runs implementation B through the prime 17 and compares it with the producer’s recorded small graphs, and the full run executes both implementations through all ten stages, compares all 20 stage graphs, and records in its receipt that both final output graphs are empty. The companion obstruction of Appendix § 17 .§ 5 is checked in both the preflight and the full run. The following commands show the inputs; the output directories must not exist:
../certificate-manual/build/wgb pipeline --a 5 --b 3 --K 3 --carries -2,2,4
→ --primes 7,11,13,17,19,23,29,31,37 --bidir --out ../certificate-manual/OUT53
python3 -B supplement/computations/five_thirds/reproduce.py all --out
→ ../certificate-manual/PRODUCER53
python3 -B
→ supplement/computations/additional_obstructions/check_return_obstruction.py
→ supplement/computations/additional_obstructions/obstruction_53/return_obstruction.json
One-step computation. The public reproduction procedure also regenerates the four cases of Table 1 –Table 3 with both one-step implementations and compares their complete outputs. Run without Python optimization, since the independent verifier uses assertions for checks. The source programs, reference checks, and generated Lean certificate sources are included; the computation guide specifies the compared data and the reproduction guide gives the commands.
Formal proof. The generated Lean data and proof sources are included, so checking the one-step proof does not require rerunning their generator. The word-labelled modules define and execute their finite pipeline inside Lean; they do not import the A/B graph dumps. Follow the reproduction guide to obtain the pinned library dependencies and build the project modules sequentially with a fresh project cache. After the one-step finite modules and before the final MathPaper target and aggregate build, check the word-labelled modules sequentially:
python3 supplement/lean/tools/check_finite.py \
MathPaper.Word.Graph MathPaper.Word.Cert MathPaper.Word.Lift \
MathPaper.Word.Chain MathPaper.Word.Alphabet \
MathPaper.Word.Pipeline.Data MathPaper.Word.Pipeline.Check \
MathPaper.Word.Pipeline.Compute MathPaper.Word.Pipeline.LiftArr \
MathPaper.Word.Pipeline.Initial MathPaper.Word.Pipeline.Main \
MathPaper.Word.FiveHalves MathPaper.Word.SevenFifths \
MathPaper.Word.InContract MathPaper.Word.Bidir WordExec \
MathPaper.Word.ExecSound MathPaper.Word.FiveThirds MathPaper.Word
The FiveHalves, SevenFifths, and FiveThirds targets rerun the three finite native _decide evaluations when built from a fresh project cache; the last needs about 13 GiB of memory and 11 minutes on the machine of § 9.5 . Then run the final targets, aggregate build, and Audit.lean axiom display as instructed in the reproduction guide. Compare the dependencies with the declared axiom boundary in the formalization guide. The additional evaluation axioms are the trust boundary described in § 9.4 ; these evaluations are not kernel-only computations. Section 9.4 also specifies the scope of the completed independent rebuilds and type and axiom checks.
Recurrent carries
This appendix proves Theorem 46 and the integer copying condition for the family ( 6 t + 3 ) / ( 6 t + 1 ) (6t+3)/(6t+1) ( 6 t + 3 ) / ( 6 t + 1 ) . Its results are general lemmas about integer recurrences and finite permutations; they do not depend on § 3 –§ 9 and are not used there.
Recurrent words
Recall from § 10 that an infinite word w = w 0 w 1 ⋯ w = w_0w_1\cdots w = w 0 w 1 ⋯ over a finite alphabet is recurrent if for every L ≥ 1 L \ge1 L ≥ 1 and B ≥ 1 B \ge1 B ≥ 1 there is n ≥ B n \ge B n ≥ B with
w [ n : n + L ] = w [ 0 : L ] w[n:n+L] = w[0:L] w [ n : n + L ] = w [ 0 : L ]
where
w [ i : j ] = w i w i + 1 ⋯ w j − 1 . w[i:j] = w_iw_{i+1}\cdots w_{j-1}. w [ i : j ] = w i w i + 1 ⋯ w j − 1 .
Equivalently, every finite prefix occurs infinitely often, or again every factor that occurs at all occurs infinitely often (a factor lies in some prefix).
Lemma 48 (tails). If w w w is recurrent, then so is w [ k : ] w[k:] w [ k : ] for every k ≥ 0 k \ge0 k ≥ 0 .
Proof. Given L L L , B ≥ 1 B \ge1 B ≥ 1 , apply recurrence of w w w to the prefix length k + L k+L k + L and the bound B B B : there is n ≥ B n \ge B n ≥ B with
w [ n : n + k + L ] = w [ 0 : k + L ] . w[n:n+k+L] = w[0:k+L]. w [ n : n + k + L ] = w [ 0 : k + L ] .
Comparing positions k k k onward gives
w [ n + k : n + k + L ] = w [ k : k + L ] , w[n+k:n+k+L] = w[k:k+L], w [ n + k : n + k + L ] = w [ k : k + L ] ,
that is,
w ′ [ n : n + L ] = w ′ [ 0 : L ] w'[n:n+L] = w'[0:L] w ′ [ n : n + L ] = w ′ [ 0 : L ]
for w ′ = w [ k : ] w' = w[k:] w ′ = w [ k : ] . □
Uniform recurrence is not required. For example, let w 0 = 0 w_0 = 0 w 0 = 0 and
w k + 1 = w k 1 0 k + 1 1 w k ; w_{k+1} = w_k\,1\,0^{k+1}\,1\,w_k; w k + 1 = w k 1 0 k + 1 1 w k ;
each w k w_k w k is a prefix of w k + 1 w_{k+1} w k + 1 , so a limit word w ∞ w_\infty w ∞ exists, in which every w k w_k w k occurs infinitely often (it occurs in w j + 1 w_{j+1} w j + 1 at position ∣ w j ∣ + j + 3 |w_j|+j+3 ∣ w j ∣ + j + 3 for every j ≥ k j \ge k j ≥ k ), while the runs of zeros are unbounded and 1 1 1 occurs infinitely often, so w ∞ w_\infty w ∞ is not eventually periodic. Conversely, the word 1 0 1 00 1 000 ⋯ 1\ 0\ 1\ 00\ 1\ 000\cdots 1 0 1 00 1 000 ⋯ , in which the runs of zeros have lengths 1 , 2 , 3 , … 1,2,3,\ldots 1 , 2 , 3 , … , has no recurrent tail: a prefix of any tail that contains two letters 1 1 1 contains a factor 10 k 1 10^k1 1 0 k 1 which, the run lengths being strictly increasing, occurs only once in the whole word. This word is generated by a one-vertex graph with two self-loops, so confinement of a walk to a strongly connected component does not imply recurrence of its output.
Neither example is claimed to be the carry sequence of a true orbit.
The finite-prefix copying lemma
Lemma 49 (finite-prefix copying). Let X X X be a set with m m m elements and let each letter c c c act by a permutation f c f_c f c of X X X . Let w w w be a finite word, t 1 , … , t m t_1,\ldots,t_m t 1 , … , t m positive integers, S 0 = 0 S_0=0 S 0 = 0 , S k = t 1 + ⋯ + t k S_k=t_1+\cdots+t_k S k = t 1 + ⋯ + t k , and L ≥ 0 L\geq0 L ≥ 0 , such that
w [ t k : t k + S k − 1 + L ] = w [ 0 : S k − 1 + L ] ( k = 1 , … , m ) (36) w[t_k:t_k+S_{k-1}+L]=w[0:S_{k-1}+L]\qquad(k=1,\ldots,m) \tag*{(36)} w [ t k : t k + S k − 1 + L ] = w [ 0 : S k − 1 + L ] ( k = 1 , … , m ) (36) and ∣ w ∣ ≥ S m + L |w|\geq S_m+L ∣ w ∣ ≥ S m + L . Put
G n = f w n − 1 ∘ ⋯ ∘ f w 0 G_n=f_{w_{n-1}}\circ\cdots\circ f_{w_0} G n = f w n − 1 ∘ ⋯ ∘ f w 0 (G 0 = i d G_0=\mathrm{id} G 0 = id ; maps act from the right, so G n G_n G n applies the first letter first). Then for every x ∈ X x\in X x ∈ X there are 0 ≤ i < j ≤ m 0\leq i<j\leq m 0 ≤ i < j ≤ m such that
n = t i + 1 + ⋯ + t j > 0 n=t_{i+1}+\cdots+t_j>0 n = t i + 1 + ⋯ + t j > 0 satisfies
G n ( x ) = x and w [ n : n + L ] = w [ 0 : L ] . G_n(x)=x\qquad\text{and}\qquad w[n:n+L]=w[0:L]. G n ( x ) = x and w [ n : n + L ] = w [ 0 : L ] .
Proof. (1) Composition rule. If 0 ≤ s ≤ S k − 1 0\leq s\leq S_{k-1} 0 ≤ s ≤ S k − 1 , then
G t k + s = G s ∘ G t k : G_{t_k+s}=G_s\circ G_{t_k}: G t k + s = G s ∘ G t k :
indeed
G t k + s = f w t k + s − 1 ∘ ⋯ ∘ f w t k ∘ G t k , G_{t_k+s}=f_{w_{t_k+s-1}}\circ\cdots\circ f_{w_{t_k}}\circ G_{t_k}, G t k + s = f w t k + s − 1 ∘ ⋯ ∘ f w t k ∘ G t k ,
and by (31), w t k + i = w i w_{t_k+i}=w_i w t k + i = w i for 0 ≤ i < s 0\leq i<s 0 ≤ i < s , so the left factor is G s G_s G s .
(2) Copies compose. For indices i 1 < ⋯ < i h i_1<\cdots<i_h i 1 < ⋯ < i h and n = t i 1 + ⋯ + t i h n=t_{i_1}+\cdots+t_{i_h} n = t i 1 + ⋯ + t i h ,
G n = G t i 1 ∘ G t i 2 ∘ ⋯ ∘ G t i h , G_n=G_{t_{i_1}}\circ G_{t_{i_2}}\circ\cdots\circ G_{t_{i_h}}, G n = G t i 1 ∘ G t i 2 ∘ ⋯ ∘ G t i h ,
w [ n : n + L ] = w [ 0 : L ] . w[n:n+L]=w[0:L]. w [ n : n + L ] = w [ 0 : L ] .
By induction on h h h ; h = 0 h=0 h = 0 is G 0 = i d G_0=\mathrm{id} G 0 = id . For h ≥ 1 h\geq1 h ≥ 1 put
n ′ = t i 1 + ⋯ + t i h − 1 n'=t_{i_1}+\cdots+t_{i_{h-1}} n ′ = t i 1 + ⋯ + t i h − 1
and k = i h k=i_h k = i h ; since all i j < k i_j<k i j < k , n ′ ≤ S k − 1 n'\leq S_{k-1} n ′ ≤ S k − 1 . By (1),
G n = G t k + n ′ = G n ′ ∘ G t k , G_n=G_{t_k+n'}=G_{n'}\circ G_{t_k}, G n = G t k + n ′ = G n ′ ∘ G t k ,
and by induction
G n ′ = G t i 1 ∘ ⋯ ∘ G t i h − 1 . G_{n'}=G_{t_{i_1}}\circ\cdots\circ G_{t_{i_{h-1}}}. G n ′ = G t i 1 ∘ ⋯ ∘ G t i h − 1 .
For the word, n ′ + L ≤ S k − 1 + L n'+L\leq S_{k-1}+L n ′ + L ≤ S k − 1 + L , so (31) gives
w [ t k + n ′ : t k + n ′ + L ] = w [ n ′ : n ′ + L ] = w [ 0 : L ] . w[t_k+n':t_k+n'+L]=w[n':n'+L]=w[0:L]. w [ t k + n ′ : t k + n ′ + L ] = w [ n ′ : n ′ + L ] = w [ 0 : L ] .
(3) Pigeonhole. Put H 0 = i d H_0=\mathrm{id} H 0 = id and
H k = G t 1 ∘ ⋯ ∘ G t k ; H_k=G_{t_1}\circ\cdots\circ G_{t_k}; H k = G t 1 ∘ ⋯ ∘ G t k ;
by (2) applied to { 1 , … , k } \{1,\ldots,k\} { 1 , … , k } , H k = G S k H_k=G_{S_k} H k = G S k , the actual state at time S k S_k S k . Among the m + 1 m+1 m + 1 values H 0 ( x ) , … , H m ( x ) H_0(x),\ldots,H_m(x) H 0 ( x ) , … , H m ( x ) in the m m m -element set X X X two coincide: H i ( x ) = H j ( x ) H_i(x)=H_j(x) H i ( x ) = H j ( x ) with i < j i<j i < j .
With
B = G t i + 1 ∘ ⋯ ∘ G t j B=G_{t_{i+1}}\circ\cdots\circ G_{t_j} B = G t i + 1 ∘ ⋯ ∘ G t j
we have H j = H i ∘ B H_j=H_i\circ B H j = H i ∘ B , so
H i ( x ) = H i ( B ( x ) ) , H_i(x)=H_i(B(x)), H i ( x ) = H i ( B ( x )) ,
and injectivity of H i H_i H i (a composition of permutations) gives B ( x ) = x B(x)=x B ( x ) = x .
::: By (2) applied to { i + 1 , … , j } \{i+1,\ldots,j\} { i + 1 , … , j } ,
B = G n with n = t i + 1 + ⋯ + t j > 0 and B=G_n \quad\text{with}\quad n=t_{i+1}+\cdots+t_j>0 \quad\text{and} B = G n with n = t i + 1 + ⋯ + t j > 0 and
w [ n : n + L ] = w [ 0 : L ] . w[n:n+L]=w[0:L]. w [ n : n + L ] = w [ 0 : L ] .
Injectivity is used exactly once, in step (3); the conclusion fails for non-injective actions. Applying the pigeonhole principle directly to the states along the orbit would only give a return to some state, not to the initial state; the copies align the compositions so that the common left factor can be cancelled.
Theorem 50 (residue recurrence). Let integer sequences ( Q n ) n ≥ 0 (Q_n)_{n\geq0} ( Q n ) n ≥ 0 , ( c n ) n ≥ 0 (c_n)_{n\geq0} ( c n ) n ≥ 0 satisfy
b Q n + 1 = a Q n + c n , bQ_{n+1}=aQ_n+c_n, b Q n + 1 = a Q n + c n , let the word c = c 0 c 1 ⋯ c=c_0c_1\cdots c = c 0 c 1 ⋯ be recurrent, and let M ≥ 2 M\geq2 M ≥ 2 with gcd ( M , a b ) = 1 \gcd(M,ab)=1 g cd( M , ab ) = 1 . Then for every B ≥ 1 B\geq1 B ≥ 1 and L ≥ 0 L\geq0 L ≥ 0 there is n ≥ B n\geq B n ≥ B with
Q n ≡ Q 0 ( m o d M ) and c [ n : n + L ] = c [ 0 : L ] . Q_n\equiv Q_0\pmod M \qquad\text{and}\qquad c[n:n+L]=c[0:L]. Q n ≡ Q 0 ( mod M ) and c [ n : n + L ] = c [ 0 : L ] .
Proof. Let X = Z / M X=\mathbb{Z}/M X = Z / M and
f c ( x ) = b − 1 ( a x + c ) ; f_c(x)=b^{-1}(ax+c); f c ( x ) = b − 1 ( a x + c ) ;
since a , b a,b a , b are units modulo M M M , each f c f_c f c is an affine permutation, and
Q n = G n ( Q 0 ) . Q_n=G_n(Q_0). Q n = G n ( Q 0 ) .
Choose copy times successively: for k = 1 , … , M k=1,\ldots,M k = 1 , … , M , the required prefix length S k − 1 + L S_{k-1}+L S k − 1 + L is finite, so by recurrence (when this length is positive; otherwise any t k ≥ B t_k\geq B t k ≥ B ) there is t k ≥ B t_k\geq B t k ≥ B satisfying (31), S k − 1 S_{k-1} S k − 1 being determined by t 1 , … , t k − 1 t_1,\ldots,t_{k-1} t 1 , … , t k − 1 .
Lemma 49 with m = M m=M m = M and x = Q 0 ( m o d M ) x=Q_0\pmod M x = Q 0 ( mod M ) gives
n = t i + 1 + ⋯ + t j ≥ t j ≥ B , n=t_{i+1}+\cdots+t_j\geq t_j\geq B, n = t i + 1 + ⋯ + t j ≥ t j ≥ B ,
G n ( Q 0 ) = Q 0 G_n(Q_0)=Q_0 G n ( Q 0 ) = Q 0 , and the return of the prefix.
The hypothesis gcd ( M , a b ) = 1 \gcd(M,ab)=1 g cd( M , ab ) = 1 cannot be dropped. If a prime p ∣ M p\mid M p ∣ M divides a a a , then f c ( x ) = b − 1 c ( m o d p ) f_c(x)=b^{-1}c\pmod p f c ( x ) = b − 1 c ( mod p ) is constant, not injective, and Q n ( m o d p ) Q_n\pmod p Q n ( mod p ) is determined by c n − 1 c_{n-1} c n − 1 alone; if Q 0 ( m o d p ) Q_0\pmod p Q 0 ( mod p ) is not of the form b − 1 c b^{-1}c b − 1 c for a letter c c c of the word (for instance p ∣ Q 0 p\mid Q_0 p ∣ Q 0 and no letter is divisible by p p p ), then Q n ≡ Q 0 ( m o d p ) Q_n\equiv Q_0\pmod p Q n ≡ Q 0 ( mod p ) never holds for n ≥ 1 n\geq1 n ≥ 1 , however recurrent the word is.
Proof of Theorem 46
Proof of Theorem 46. Let c [ j 0 : ] c[j_0:] c [ j 0 : ] be recurrent.
Case 1: some j ≥ j 0 j\geq j_0 j ≥ j 0 has Q j > 1 Q_j>1 Q j > 1 and gcd ( Q j , a b ) = 1 \gcd(Q_j,ab)=1 g cd( Q j , ab ) = 1 . By Lemma 48, c [ j : ] c[j:] c [ j : ] is recurrent. Apply Theorem 50 to the sequences Q n ′ = Q j + n Q'_n=Q_{j+n} Q n ′ = Q j + n , c n ′ = c j + n c'_n=c_{j+n} c n ′ = c j + n with M = Q j ≥ 2 M=Q_j\geq2 M = Q j ≥ 2 and L = 0 L=0 L = 0 : for every B B B there is n ≥ B n\geq B n ≥ B with
Q j + n ≡ Q j ≡ 0 ( m o d Q j ) . Q_{j+n}\equiv Q_j\equiv0\pmod{Q_j}. Q j + n ≡ Q j ≡ 0 ( mod Q j ) .
By (7),
Q j + n > Q j > 1 Q_{j+n}>Q_j>1 Q j + n > Q j > 1
for all large n n n , so Q j Q_j Q j is a proper divisor and Q j + n Q_{j+n} Q j + n is composite; there are infinitely many such n n n . This also proves the last assertion of the theorem.
Case 2: no such j j j . By (7), Q j ≤ 1 Q_j\leq1 Q j ≤ 1 for only finitely many j j j , so
gcd ( Q j , a b ) > 1 \gcd(Q_j,ab)>1 g cd( Q j , ab ) > 1
for all large j j j . A prime p ∣ gcd ( Q j , a b ) p \mid\gcd(Q_j,ab) p ∣ g cd( Q j , ab ) satisfies p ≤ a b p \le ab p ≤ ab , so once Q j > a b Q_j > ab Q j > ab we have Q j = p v Q_j = pv Q j = p v with v > 1 v > 1 v > 1 .
Case 2 does not use recurrence, but the conclusion of Case 1, that Q j Q_j Q j divides infinitely many later terms, does; in general Q j ∣ Q n Q_j \mid Q_n Q j ∣ Q n need not occur. This is why the recurrence hypothesis is part of the statement.
Corollary 51 (refutation form). If all terms Q n Q_n Q n with n ≥ n 0 n \ge n_0 n ≥ n 0 are prime, then the carry word has no recurrent tail.
Proof. Suppose c [ j 0 : ] c[j_0:] c [ j 0 : ] is recurrent. By (7) choose j ≥ max ( j 0 , n 0 ) j \ge\max(j_0,n_0) j ≥ max ( j 0 , n 0 ) with P = Q j > a P = Q_j > a P = Q j > a . Then P P P is a prime larger than a > b a > b a > b , so gcd ( P , a b ) = 1 \gcd(P,ab) = 1 g cd( P , ab ) = 1 , and Theorem 50 with M = P M = P M = P gives arbitrarily large n n n with P ∣ Q n P \mid Q_n P ∣ Q n and Q n > P Q_n > P Q n > P , hence composite, a contradiction.
The condition P > a P > a P > a serves only to guarantee gcd ( P , a b ) = 1 \gcd(P,ab) = 1 g cd( P , ab ) = 1 . Theorem 46 excludes recurrent carry tails on an eventually-all-prime orbit; it does not exclude orbits all of whose carry tails are non-recurrent (Section B.1 shows that such words exist as words), and this remaining case is open (Section 11).
The integer copying condition for the family ( 6 t + 3 ) / ( 6 t + 1 ) (6t+3)/(6t+1) ( 6 t + 3 ) / ( 6 t + 1 )
Let
t ≥ 1 , a = 6 t + 3 , b = 6 t + 1 , t \ge1,\qquad a = 6t+3,\qquad b = 6t+1, t ≥ 1 , a = 6 t + 3 , b = 6 t + 1 ,
δ = t m o d 2 , H = 3 t − 1 − δ \delta= t \bmod2,\qquad H = 3t-1-\delta δ = t mod 2 , H = 3 t − 1 − δ
(an odd integer), and
T t ( Q ) = Q + 2 ⌊ Q + 3 t + 1 b ⌋ , T_t(Q) = Q + 2\left\lfloor\frac{Q+3t+1}{b}\right\rfloor, T t ( Q ) = Q + 2 ⌊ b Q + 3 t + 1 ⌋ ,
F t ( z ) = ⌊ a z − δ b ⌋ , F_t(z) = \left\lfloor\frac{az-\delta}{b}\right\rfloor, F t ( z ) = ⌊ b a z − δ ⌋ ,
e = b F t ( z ) − a z + δ . (37) e = bF_t(z)-az+\delta. \tag*{(37)} e = b F t ( z ) − a z + δ . (37)
Appendix C shows that a tail of a true orbit all of whose terms are coprime to 6 follows the map T t T_t T t ; here we study T t T_t T t as an integer map.
Lemma 52 (conjugation and digits). For an odd integer Q = 2 z + H Q = 2z + H Q = 2 z + H : (a) T t ( Q ) = 2 F t ( z ) + H T_t(Q) = 2F_t(z) + H T t ( Q ) = 2 F t ( z ) + H , and T t T_t T t preserves parity; (b)
0 ≤ e ≤ b − 1 and e ≡ δ − a z ( m o d b ) ; 0 \le e \le b-1 \qquad\text{and}\qquad e \equiv\delta-az \pmod b; 0 ≤ e ≤ b − 1 and e ≡ δ − a z ( mod b ) ; (c) the carry c = b T t ( Q ) − a Q c = bT_t(Q)-aQ c = b T t ( Q ) − a Q equals 2 ( e − ( 3 t − 1 ) ) 2(e-(3t-1)) 2 ( e − ( 3 t − 1 )) ; (d)
F t ( s + b v ) = F t ( s ) + a v F_t(s+bv)=F_t(s)+av F t ( s + b v ) = F t ( s ) + a v for all integers s , v s,v s , v .
Proof. (a)
Q + 3 t + 1 = 2 z + ( b − 1 ) − δ , Q+3t+1=2z+(b-1)-\delta, Q + 3 t + 1 = 2 z + ( b − 1 ) − δ ,
so
⌊ Q + 3 t + 1 b ⌋ = 1 + ⌊ 2 z − 1 − δ b ⌋ . \left\lfloor\frac{Q+3t+1}{b}\right\rfloor
=1+\left\lfloor\frac{2z-1-\delta}{b}\right\rfloor. ⌊ b Q + 3 t + 1 ⌋ = 1 + ⌊ b 2 z − 1 − δ ⌋ .
With a = b + 2 a=b+2 a = b + 2 ,
a z − δ b = z + 2 z − δ b , and ⌈ n b ⌉ = ⌊ n − 1 b ⌋ + 1 \frac{az-\delta}{b}=z+\frac{2z-\delta}{b},
\qquad\text{and}\qquad
\left\lceil\frac{n}{b}\right\rceil
=\left\lfloor\frac{n-1}{b}\right\rfloor+1 b a z − δ = z + b 2 z − δ , and ⌈ b n ⌉ = ⌊ b n − 1 ⌋ + 1
for integers n n n gives
F t ( z ) = z + 1 + ⌊ 2 z − 1 − δ b ⌋ . F_t(z)=z+1+\left\lfloor\frac{2z-1-\delta}{b}\right\rfloor. F t ( z ) = z + 1 + ⌊ b 2 z − 1 − δ ⌋ .
Hence
2 F t ( z ) + H = 2 z + H + 2 + 2 ⌊ 2 z − 1 − δ b ⌋ = T t ( Q ) . 2F_t(z)+H
=2z+H+2+2\left\lfloor\frac{2z-1-\delta}{b}\right\rfloor
=T_t(Q). 2 F t ( z ) + H = 2 z + H + 2 + 2 ⌊ b 2 z − 1 − δ ⌋ = T t ( Q ) .
Parity is preserved since T t ( Q ) − Q T_t(Q)-Q T t ( Q ) − Q is even.
(b) is the definition of the ceiling.
(c)
c = 2 ( b F t ( z ) − a z ) + ( b − a ) H = 2 ( e − δ ) − 2 H = 2 ( e − ( 3 t − 1 ) ) . c = 2(bF_t(z)-az) + (b-a)H = 2(e-\delta)-2H = 2(e-(3t-1)). c = 2 ( b F t ( z ) − a z ) + ( b − a ) H = 2 ( e − δ ) − 2 H = 2 ( e − ( 3 t − 1 )) .
(d)
⌈ a ( s + b v ) − δ b ⌉ = ⌈ a s − δ b + a v ⌉ . \left\lceil\frac{a(s+bv)-\delta}{b}\right\rceil
=
\left\lceil\frac{as-\delta}{b}+av\right\rceil. ⌈ b a ( s + b v ) − δ ⌉ = ⌈ b a s − δ + a v ⌉ .
Proposition 53 (digit words and residues). Let L ≥ 1 L \ge1 L ≥ 1 . The map sending an integer z 0 z_0 z 0 to the first L L L digits e 0 ⋯ e L − 1 e_0\cdots e_{L-1} e 0 ⋯ e L − 1 of its F t F_t F t -orbit induces a bijection
Z / b L → { 0 , … , b − 1 } L . \mathbb{Z}/b^L \to\{0,\ldots,b-1\}^L. Z / b L → { 0 , … , b − 1 } L . Consequently, for odd Q 0 , Q 0 ′ Q_0,Q'_0 Q 0 , Q 0 ′ and their T t T_t T t -orbits with carry words c , c ′ c,c' c , c ′ ,
c [ 0 : L ] = c ′ [ 0 : L ] ⟺ Q 0 ≡ Q 0 ′ ( m o d b L ) , c[0:L]=c'[0:L]\Longleftrightarrow Q_0\equiv Q'_0\pmod{b^L}, c [ 0 : L ] = c ′ [ 0 : L ] ⟺ Q 0 ≡ Q 0 ′ ( mod b L ) , and in particular, along one orbit,
c [ k : k + L ] = c [ 0 : L ] ⟺ Q k ≡ Q 0 ( m o d b L ) . c[k:k+L]=c[0:L]\Longleftrightarrow Q_k\equiv Q_0\pmod{b^L}. c [ k : k + L ] = c [ 0 : L ] ⟺ Q k ≡ Q 0 ( mod b L ) .
Proof. Induction on L L L . For L = 1 L=1 L = 1 ,
e 0 ≡ δ − a z 0 ( m o d b ) e_0\equiv\delta-az_0\pmod b e 0 ≡ δ − a z 0 ( mod b )
with gcd ( a , b ) = 1 \gcd(a,b)=1 g cd( a , b ) = 1 (a = b + 2 a=b+2 a = b + 2 , b b b odd), so z 0 m o d b ↦ e 0 z_0\bmod b\mapsto e_0 z 0 mod b ↦ e 0 is a bijection.
For the step, if z 0 ′ = z 0 + b L + 1 v z'_0=z_0+b^{L+1}v z 0 ′ = z 0 + b L + 1 v , then e 0 = e 0 ′ e_0=e'_0 e 0 = e 0 ′ and by Lemma 52(d)
z 1 ′ = F t ( z 0 ′ ) = z 1 + a b L v ≡ z 1 ( m o d b L ) , z'_1=F_t(z'_0)=z_1+ab^Lv\equiv z_1\pmod{b^L}, z 1 ′ = F t ( z 0 ′ ) = z 1 + a b L v ≡ z 1 ( mod b L ) ,
so the remaining L L L digits agree by induction (the map is well defined).
Conversely, if the digit words agree, then e 0 e_0 e 0 determines z 0 m o d b z_0\bmod b z 0 mod b ; write
z 0 = s + b q , z 0 ′ = s + b q ′ , z_0=s+bq,\qquad z'_0=s+bq', z 0 = s + b q , z 0 ′ = s + b q ′ ,
so
z 1 = F t ( s ) + a q , z 1 ′ = F t ( s ) + a q ′ ; z_1=F_t(s)+aq,\qquad z'_1=F_t(s)+aq'; z 1 = F t ( s ) + a q , z 1 ′ = F t ( s ) + a q ′ ;
by induction
z 1 ≡ z 1 ′ ( m o d b L ) , z_1\equiv z'_1\pmod{b^L}, z 1 ≡ z 1 ′ ( mod b L ) ,
and since a a a is a unit modulo b L b^L b L , q ≡ q ′ ( m o d b L ) q\equiv q'\pmod{b^L} q ≡ q ′ ( mod b L ) , that is,
z 0 ≡ z 0 ′ ( m o d b L + 1 ) z_0\equiv z'_0\pmod{b^{L+1}} z 0 ≡ z 0 ′ ( mod b L + 1 )
(injectivity).
Both sets have b L + 1 b^{L+1} b L + 1 elements, so the map is a bijection.
For carries, Lemma 52(c) makes c n ↔ e n c_n\leftrightarrow e_n c n ↔ e n bijective, and since b b b is odd, Q = 2 z + H Q=2z+H Q = 2 z + H gives
Q ≡ Q ′ ( m o d b L ) ⟺ z ≡ z ′ ( m o d b L ) . Q\equiv Q'\pmod{b^L}\Longleftrightarrow z\equiv z'\pmod{b^L}. Q ≡ Q ′ ( mod b L ) ⟺ z ≡ z ′ ( mod b L ) .
Proposition 54 (P P P -stage congruence certificate). Let P > a P>a P > a be prime, Q n = T t n ( P ) Q_n=T_t^n(P) Q n = T t n ( P ) , and let positive integers k 1 , … , k P k_1,\ldots,k_P k 1 , … , k P with s 0 = 0 s_0=0 s 0 = 0 , s i = s i − 1 + k i s_i=s_{i-1}+k_i s i = s i − 1 + k i satisfy
Q k i ≡ P ( m o d b s i − 1 ) ( i = 1 , … , P ) . (38) Q_{k_i}\equiv P\pmod{b^{s_{i-1}}}\qquad(i=1,\ldots,P). \tag*{(38)} Q k i ≡ P ( mod b s i − 1 ) ( i = 1 , … , P ) . (38) Then P ∣ Q n P\mid Q_n P ∣ Q n for some 0 < n ≤ s P 0<n\le s_P 0 < n ≤ s P , and Q n > P Q_n>P Q n > P , so Q n Q_n Q n is composite.
Proof. By Proposition 53 with L = s i − 1 L=s_{i-1} L = s i − 1 and k = k i k=k_i k = k i , (38) gives
c [ k i : k i + s i − 1 ] = c [ 0 : s i − 1 ] , c[k_i:k_i+s_{i-1}]=c[0:s_{i-1}], c [ k i : k i + s i − 1 ] = c [ 0 : s i − 1 ] ,
which is (36) with t i = k i t_i=k_i t i = k i and L = 0 L=0 L = 0 .
Apply Lemma 49 on X = Z / P X=\mathbb{Z}/P X = Z / P with
f c ( x ) = b − 1 ( a x + c ) f_c(x)=b^{-1}(ax+c) f c ( x ) = b − 1 ( a x + c )
(permutations, since P > a > b P>a>b P > a > b gives gcd ( P , a b ) = 1 \gcd(P,ab)=1 g cd( P , ab ) = 1 ) to x = 0 x=0 x = 0 : some n = k i + 1 + ⋯ + k j ≤ s P n=k_{i+1}+\cdots+k_j\le sP n = k i + 1 + ⋯ + k j ≤ s P has
Q n ≡ G n ( 0 ) = 0. Q_n\equiv G_n(0)=0. Q n ≡ G n ( 0 ) = 0.
If Q ≥ 3 t Q\ge3t Q ≥ 3 t then
⌊ Q + 3 t + 1 b ⌋ ≥ 1 and T t ( Q ) ≥ Q + 2 ; \left\lfloor\frac{Q+3t+1}{b}\right\rfloor\ge1 \qquad\text{and}\qquad T_t(Q)\ge Q+2; ⌊ b Q + 3 t + 1 ⌋ ≥ 1 and T t ( Q ) ≥ Q + 2 ;
as T t T_t T t is nondecreasing and P > a > 3 t P>a>3t P > a > 3 t , the orbit is strictly increasing and Q n > P Q_n>P Q n > P . □ \square □
Application to true orbits. Let ⌊ ξ ⌋ = P \lfloor\xi\rfloor=P ⌊ ξ ⌋ = P . If all terms ⌊ ξ r n ⌋ \lfloor\xi r^n\rfloor ⌊ ξ r n ⌋ , 0 ≤ n ≤ s P 0\le n\le s_P 0 ≤ n ≤ s P , are coprime to 6, then by Proposition 55 (Appendix C) they coincide with the T t T_t T t -orbit of P P P , and Proposition 54 gives a composite term at some n ≤ s P n\le s_P n ≤ s P . Otherwise some term ≥ P > 3 \ge P>3 ≥ P > 3 is divisible by 2 or 3 and is composite. In either case a composite term occurs at a time ≤ s P \le s_P ≤ s P , and no interval-consistency check is needed. The existence of such certificates for all t t t and P P P is not proved.
Example. For 9 / 7 9/7 9/7 (t = 1 t=1 t = 1 ) and ξ = 11 \xi=11 ξ = 11 , the carries of the true orbit ⌊ 11 ( 9 / 7 ) n ⌋ \lfloor11(9/7)^n\rfloor ⌊ 11 ( 9/7 ) n ⌋ satisfy c 0 = c 43 = − 1 c_0=c_{43}=-1 c 0 = c 43 = − 1 , so the copy condition (36) holds with t 1 = 1 t_1=1 t 1 = 1 , t 2 = 43 t_2=43 t 2 = 43 , and L = 0 L=0 L = 0 ; step (1) of the proof of Lemma 49 then gives G 44 = G 1 ∘ G 43 G_{44}=G_1\circ G_{43} G 44 = G 1 ∘ G 43 on Z / 11 \mathbb{Z}/11 Z /11 , and one checks directly that the residue returns:
11 ∣ Q 44 = 697829 = 11 ⋅ 63439. 11\mid Q_{44}=697829=11\cdot63439. 11 ∣ Q 44 = 697829 = 11 ⋅ 63439.
(Lemma 49 itself would require eleven copy times; here the return is verified directly.)
This certificate lives on the true orbit rather than on the T 1 T_1 T 1 -orbit (since ⌊ 99 / 7 ⌋ = 14 ≠ T 1 ( 11 ) = 15 \lfloor99/7\rfloor=14\ne T_1(11)=15 ⌊ 99/7 ⌋ = 14 = T 1 ( 11 ) = 15 ), and P = 11 > a = 9 P=11>a=9 P = 11 > a = 9 is admissible for Lemma 49 itself because gcd ( 11 , 63 ) = 1 \gcd(11,63)=1 g cd( 11 , 63 ) = 1 .
Remark (quantitative form). Let R ( L ) R(L) R ( L ) be the first positive return time of the prefix w [ 0 : L ] w[0:L] w [ 0 : L ] . If R ( L ) ≤ K L R(L)\le KL R ( L ) ≤ K L for all L ≥ 1 L\ge1 L ≥ 1 , then copies with L = 1 L=1 L = 1 can be chosen with
t k = R ( S k − 1 + 1 ) ≤ K ( S k − 1 + 1 ) , t_k=R(S_{k-1}+1)\le K(S_{k-1}+1), t k = R ( S k − 1 + 1 ) ≤ K ( S k − 1 + 1 ) ,
so
S k + 1 ≤ ( K + 1 ) k , S_k+1\le(K+1)^k, S k + 1 ≤ ( K + 1 ) k ,
and a return modulo M M M to the initial state occurs by time ( K + 1 ) M − 1 (K+1)^M-1 ( K + 1 ) M − 1 . No such K K K is proved for the family, and this bound is not used.
Non-branching families and the exact integer halting problem
This appendix concerns the family r t = ( 6 t + 3 ) / ( 6 t + 1 ) r_t=(6t+3)/(6t+1) r t = ( 6 t + 3 ) / ( 6 t + 1 ) , t ≥ 1 t\ge1 t ≥ 1 , that is 9 / 7 9/7 9/7 , 15 / 13 15/13 15/13 , 21 / 19 21/19 21/19 , … \ldots … (the members j = 3 t − 2 j=3t-2 j = 3 t − 2 of the family ( 2 j + 7 ) / ( 2 j + 5 ) (2j+7)/(2j+5) ( 2 j + 7 ) / ( 2 j + 5 ) of Corollary 40). It proves that a tail avoiding the primes 2 and 3 follows the integer map T t T_t T t of (37) , that the all-coefficient statement for a fixed t t t is equivalent to the halting of an exact integer program, and it constructs further families with a unique prime successor. None of this proves halting for the family, and no all-coefficient theorem for any r t r_t r t is asserted.
The non-branching lemma
Proposition 55 (non-branching). Let
t ≥ 1 , a = 6 t + 3 , b = 6 t + 1 , x > 0 , Q = ⌊ x ⌋ , Q ′ = ⌊ r x ⌋ . \begin{aligned}
t &\ge1, & a &= 6t+3, & b &= 6t+1,\\
x &> 0, & Q &= \lfloor x\rfloor, & Q' &= \lfloor rx\rfloor.
\end{aligned} t x ≥ 1 , > 0 , a Q = 6 t + 3 , = ⌊ x ⌋ , b Q ′ = 6 t + 1 , = ⌊ r x ⌋ . If Q Q Q is odd and gcd ( Q ′ , 6 ) = 1 \gcd(Q',6)=1 g cd( Q ′ , 6 ) = 1 , then Q ′ = T t ( Q ) Q'=T_t(Q) Q ′ = T t ( Q ) .
Proof. The carry c = b Q ′ − a Q c=bQ'-aQ c = b Q ′ − a Q satisfies
− 6 t ≤ c ≤ 6 t + 2 -6t \le c \le6t+2 − 6 t ≤ c ≤ 6 t + 2 by (7) . Since a , b , Q , Q ′ a,b,Q,Q' a , b , Q , Q ′ are odd, c = 2 s c=2s c = 2 s is even with
− 3 t ≤ s ≤ 3 t + 1. -3t \le s \le3t+1. − 3 t ≤ s ≤ 3 t + 1. As 3 ∣ a 3\mid a 3 ∣ a , 3 ∤ b 3\nmid b 3 ∤ b , 3 ∤ Q ′ 3\nmid Q' 3 ∤ Q ′ , we have
c ≡ b Q ′ ≢ 0 ( m o d 3 ) , c\equiv bQ'\not\equiv0\pmod{3}, c ≡ b Q ′ ≡ 0 ( mod 3 ) , so 3 ∤ s 3\nmid s 3 ∤ s ; this excludes s = − 3 t s=-3t s = − 3 t , leaving
− 3 t + 1 ≤ s ≤ 3 t + 1 , -3t+1\le s\le3t+1, − 3 t + 1 ≤ s ≤ 3 t + 1 , an interval of exactly b = 6 t + 1 b=6t+1 b = 6 t + 1 integers. Modulo b b b , a ≡ 2 a\equiv2 a ≡ 2 , so 2 s = c ≡ − 2 Q 2s=c\equiv-2Q 2 s = c ≡ − 2 Q and
s ≡ − Q ( m o d b ) ; s\equiv-Q\pmod b; s ≡ − Q ( mod b ) ; the interval contains exactly one integer in each residue class, so s s s is unique. With m = ⌊ ( Q + 3 t + 1 ) / b ⌋ m=\lfloor(Q+3t+1)/b\rfloor m = ⌊( Q + 3 t + 1 ) / b ⌋ ,
0 ≤ Q + 3 t + 1 − b m ≤ 6 t 0\le Q+3t+1-bm\le6t 0 ≤ Q + 3 t + 1 − bm ≤ 6 t gives
Q − 3 t + 1 ≤ b m ≤ Q + 3 t + 1 , Q-3t+1\le bm\le Q+3t+1, Q − 3 t + 1 ≤ bm ≤ Q + 3 t + 1 , so s = b m − Q s=bm-Q s = bm − Q lies in the interval and is ≡ − Q \equiv-Q ≡ − Q . Hence
Q ′ = ( a Q + 2 s ) / b = ( a − 2 ) Q / b + 2 m = Q + 2 m = T t ( Q ) . Q'=(aQ+2s)/b=(a-2)Q/b+2m=Q+2m=T_t(Q). Q ′ = ( a Q + 2 s ) / b = ( a − 2 ) Q / b + 2 m = Q + 2 m = T t ( Q ) . Only the oddness of Q Q Q and gcd ( Q ′ , 6 ) = 1 \gcd(Q',6)=1 g cd( Q ′ , 6 ) = 1 are used; 3 ∤ Q 3\nmid Q 3 ∤ Q is not needed. The conclusion is uniqueness of the candidate: if T t ( Q ) T_t(Q) T t ( Q ) is divisible by 3 3 3 , no admissible successor exists.
Conjugation to a ceiling map and digit restriction
By Lemma 52, the map T t T_t T t on odd integers Q = 2 z + H Q=2z+H Q = 2 z + H is conjugate to
F t ( z ) = ⌈ a z − δ b ⌉ , F_t(z)=\left\lceil\frac{az-\delta}{b}\right\rceil, F t ( z ) = ⌈ b a z − δ ⌉ ,
with digits
e = b F t ( z ) − a z + δ ∈ { 0 , … , b − 1 } e=bF_t(z)-az+\delta\in\{0,\ldots,b-1\} e = b F t ( z ) − a z + δ ∈ { 0 , … , b − 1 }
and carries
c = 2 ( e − ( 3 t − 1 ) ) . c=2(e-(3t-1)). c = 2 ( e − ( 3 t − 1 )) .
For t = 2 u t=2u t = 2 u even, δ = 0 \delta=0 δ = 0 , H = 6 u − 1 H=6u-1 H = 6 u − 1 , and F t ( z ) = ⌈ a z / b ⌉ F_t(z)=\lceil az/b\rceil F t ( z ) = ⌈ a z / b ⌉ is the ordinary ceiling map.
Lemma 56 (digit restriction). (a)
Q ′ = T t ( Q ) ≡ 2 e − 1 ( m o d 3 ) ; Q' = T_t(Q) \equiv2e-1 \pmod{3}; Q ′ = T t ( Q ) ≡ 2 e − 1 ( mod 3 ) ; hence 3 ∣ Q ′ 3 \mid Q' 3 ∣ Q ′ if and only if e ≡ 2 ( m o d 3 ) e \equiv2 \pmod{3} e ≡ 2 ( mod 3 ) . (b) If Q Q Q and Q ′ Q' Q ′ are primes larger than a a a , then
e ∈ D t = { 0 ≤ e ≤ 6 t : gcd ( e − ( 3 t − 1 ) , ( 6 t + 3 ) ( 6 t + 1 ) ) = 1 } . e \in D_t = \{0 \le e \le6t : \gcd(e-(3t-1),(6t+3)(6t+1))=1\}. e ∈ D t = { 0 ≤ e ≤ 6 t : g cd( e − ( 3 t − 1 ) , ( 6 t + 3 ) ( 6 t + 1 )) = 1 } . (c)
d t = ∣ D t ∣ ≤ 4 t + 1 < b . d_t = |D_t| \le4t+1 < b. d t = ∣ D t ∣ ≤ 4 t + 1 < b .
Proof. (a) e ≡ F t ( z ) + δ ( m o d 3 ) e \equiv F_t(z)+\delta\pmod{3} e ≡ F t ( z ) + δ ( mod 3 ) since b ≡ 1 b \equiv1 b ≡ 1 , a ≡ 0 a \equiv0 a ≡ 0 ; and H ≡ − 1 − δ H \equiv-1-\delta H ≡ − 1 − δ , so
Q ′ = 2 F t ( z ) + H ≡ 2 ( e − δ ) − 1 − δ ≡ 2 e − 1 ( m o d 3 ) . Q' = 2F_t(z)+H \equiv2(e-\delta)-1-\delta\equiv2e-1 \pmod{3}. Q ′ = 2 F t ( z ) + H ≡ 2 ( e − δ ) − 1 − δ ≡ 2 e − 1 ( mod 3 ) .
(b) By Lemma 29, gcd ( c , a b ) = 1 \gcd(c,ab)=1 g cd( c , ab ) = 1 , and a b ab ab is odd, so
gcd ( e − ( 3 t − 1 ) , a b ) = 1. \gcd(e-(3t-1),ab)=1. g cd( e − ( 3 t − 1 ) , ab ) = 1.
(c) Since 3 t − 1 ≡ 2 ( m o d 3 ) 3t-1 \equiv2 \pmod{3} 3 t − 1 ≡ 2 ( mod 3 ) , every e ≡ 2 ( m o d 3 ) e \equiv2 \pmod{3} e ≡ 2 ( mod 3 ) is excluded, and there are 2 t 2t 2 t such e e e in [ 0 , 6 t ] [0,6t] [ 0 , 6 t ] ; so
d t ≤ 6 t + 1 − 2 t . d_t \le6t+1-2t. d t ≤ 6 t + 1 − 2 t .
Table 9. Admissible digit sets for t ≤ 3 t \le3 t ≤ 3 .
Remark (real consistency). For a true orbit x n = 2 z n + H + θ n x_n=2z_n+H+\theta_n x n = 2 z n + H + θ n , so
x n / 2 − z n ∈ [ H / 2 , ( H + 1 ) / 2 ) . x_n/2-z_n \in[H/2,(H+1)/2). x n /2 − z n ∈ [ H /2 , ( H + 1 ) /2 ) .
From b z n + 1 = a z n + e n − δ bz_{n+1}=az_n+e_n-\delta b z n + 1 = a z n + e n − δ ,
r − ( n + 1 ) z n + 1 − r − n z n = r − ( n + 1 ) ( e n − δ ) / b r^{-(n+1)}z_{n+1}-r^{-n}z_n=r^{-(n+1)}(e_n-\delta)/b r − ( n + 1 ) z n + 1 − r − n z n = r − ( n + 1 ) ( e n − δ ) / b
with ∣ e n − δ ∣ ≤ b |e_n-\delta|\le b ∣ e n − δ ∣ ≤ b , so
Λ = lim r − n z n \Lambda=\lim r^{-n}z_n Λ = lim r − n z n
exists and
z n = Λ r n − ∑ j ≥ 0 ( e n + j − δ ) b j / a j + 1 ; z_n=\Lambda r^n-\sum_{j\ge0}(e_{n+j}-\delta)b^j/a^{j+1}; z n = Λ r n − j ≥ 0 ∑ ( e n + j − δ ) b j / a j + 1 ;
for z 0 > b / 2 z_0>b/2 z 0 > b /2 , Λ > 0 \Lambda>0 Λ > 0 , and for a true orbit ξ = 2 Λ \xi=2\Lambda ξ = 2Λ is determined. Membership of all digits in D t D_t D t implies neither the interval condition of width 1 / 2 1/2 1/2 nor the primality of the terms.
Remark. The iterates of the ceiling map x ↦ ⌈ ( p / q ) x ⌉ x\mapsto\lceil(p/q)x\rceil x ↦ ⌈( p / q ) x ⌉ on integers are the object of a conjecture on equidistribution of residues modulo q k q^k q k in AEV26, Conjecture 1.6; that paper concerns integer seeds and states conjectures, not theorems, and nothing here depends on it.
The exact integer halting program
Fix t ≥ 1 t \ge1 t ≥ 1 and an initial prime P > a P > a P > a . Starting from ( Q , L , U , B ) = ( P , 0 , 1 , 1 ) (Q,L,U,B)=(P,0,1,1) ( Q , L , U , B ) = ( P , 0 , 1 , 1 ) , repeat:
Q + = T t ( Q ) , c = b Q + − a Q , B + = b B , Q^{+}=T_t(Q),\qquad c=bQ^{+}-aQ,\qquad B^{+}=bB, Q + = T t ( Q ) , c = b Q + − a Q , B + = b B ,
L + = max ( 0 , a L − c B ) , L^{+}=\max(0,aL-cB), L + = max ( 0 , a L − c B ) ,
U + = min ( B + , a U − c B ) , U^{+}=\min(B^{+},aU-cB), U + = min ( B + , a U − c B ) ,
and halt if Q + Q^{+} Q + is composite or L + ≥ U + L^{+}\ge U^{+} L + ≥ U + ; otherwise replace ( Q , L , U , B ) (Q,L,U,B) ( Q , L , U , B ) by ( Q + , L + , U + , B + ) (Q^{+},L^{+},U^{+},B^{+}) ( Q + , L + , U + , B + ) and continue. Primality is decided exactly. Reaching a bound on time, memory, or iterations is recorded as undetermined and is not a halt.
Proposition 57 (exactness). After n n n accepted steps, B = b n B=b^n B = b n and [ L / B , U / B ) [L/B,U/B) [ L / B , U / B ) is exactly the set of fractional parts θ n \theta_n θ n of those ξ ∈ [ P , P + 1 ) \xi\in[P,P+1) ξ ∈ [ P , P + 1 ) whose orbit has integer parts P = Q 0 , … , Q n P=Q_0,\ldots,Q_n P = Q 0 , … , Q n . In particular L + ≥ U + L^{+}\ge U^{+} L + ≥ U + means that the finite sequence Q 0 , … , Q n + 1 Q_0,\ldots,Q_{n+1} Q 0 , … , Q n + 1 is realized by no real ξ \xi ξ .
Proof. The map
θ ↦ θ ′ = ( a θ − c ) / b \theta\mapsto\theta'=(a\theta-c)/b θ ↦ θ ′ = ( a θ − c ) / b
is an increasing affine bijection, so the image of [ L / B , U / B ) [L/B,U/B) [ L / B , U / B ) is
[ ( a L − c B ) / ( b B ) , ( a U − c B ) / ( b B ) ) , [(aL-cB)/(bB),(aU-cB)/(bB)), [( a L − c B ) / ( b B ) , ( a U − c B ) / ( b B )) ,
whose intersection with [ 0 , 1 ) [0,1) [ 0 , 1 ) is
[ L + / B + , U + / B + ) . [L^{+}/B^{+},U^{+}/B^{+}). [ L + / B + , U + / B + ) .
Initially θ 0 \theta_0 θ 0 ranges over [ 0 , 1 ) [0,1) [ 0 , 1 ) . Inductively, θ n + 1 \theta_{n+1} θ n + 1 lies in the image intersected with [ 0 , 1 ) [0,1) [ 0 , 1 ) if and only if the θ n \theta_n θ n producing it lies in the previous set. □
Equivalence with the all-coefficient statement
Theorem 58 (halting equivalence). For fixed t ≥ 1 t\ge1 t ≥ 1 the following are equivalent.
(A) For every ξ > 0 \xi>0 ξ > 0 , the sequence ⌊ ξ r n ⌋ \lfloor\xi r^n\rfloor ⌊ ξ r n ⌋ contains infinitely many composite terms.
(B) The program of Section C.3 halts for every initial prime P > a P>a P > a .
Proof. (B)⇒ \Rightarrow ⇒ (A). If (A) fails, there are ξ \xi ξ and n 0 n_0 n 0 with Q n Q_n Q n prime for all n ≥ n 0 n\ge n_0 n ≥ n 0 . By (8) choose n 1 ≥ n 0 n_1\ge n_0 n 1 ≥ n 0 with Q n 1 > a Q_{n_1}>a Q n 1 > a and replace ξ \xi ξ by ξ r n 1 \xi r^{n_1} ξ r n 1 ; then P = ⌊ ξ ⌋ > a P=\lfloor\xi\rfloor>a P = ⌊ ξ ⌋ > a is prime and all terms are primes > a > 3 >a>3 > a > 3 , coprime to 6 6 6 . By Proposition 55 ,
Q n + 1 = T t ( Q n ) Q_{n+1}=T_t(Q_n) Q n + 1 = T t ( Q n )
for all n n n , so the program’s Q Q Q coincides with the true terms and never becomes composite, and the true θ n \theta_n θ n lies in every interval by Proposition 57 , so no interval is empty. The program does not halt, contradicting (B).
(A)⇒ \Rightarrow ⇒ (B). Suppose the program does not halt for some P > a P>a P > a . Then all Q n = T t n ( P ) Q_n=T_t^n(P) Q n = T t n ( P ) are prime (a non-composite integer > a ≥ 9 >a\ge9 > a ≥ 9 is prime) and all intervals are nonempty, so by Proposition 57 there is, for each n n n , some ξ n ∈ [ P , P + 1 ) \xi_n\in[P,P+1) ξ n ∈ [ P , P + 1 ) with
⌊ ξ n r j ⌋ = Q j \lfloor\xi_n r^j\rfloor=Q_j ⌊ ξ n r j ⌋ = Q j
for $0\le j\le n.
Let
I j = [ Q j r − j , ( Q j + 1 ) r − j ] and I_j=[Q_jr^{-j},(Q_j+1)r^{-j}]\qquad\text{and} I j = [ Q j r − j , ( Q j + 1 ) r − j ] and
J n = I 0 ∩ ⋯ ∩ I n . J_n=I_0\cap\cdots\cap I_n. J n = I 0 ∩ ⋯ ∩ I n .
Then
ξ n ∈ J n ≠ ∅ , (39) \xi_n\in J_n\ne\varnothing, \tag*{(39)} ξ n ∈ J n = ∅ , (39)
J n + 1 ⊆ J n J_{n+1} \subseteq J_n J n + 1 ⊆ J n , and each J n J_n J n is a closed subset of the compact interval I 0 = [ P , P + 1 ] I_0=[P,P+1] I 0 = [ P , P + 1 ] ; by Cantor’s intersection theorem ⋂ n J n ≠ ∅ \bigcap_n J_n \ne\varnothing ⋂ n J n = ∅ , and since the widths are at most r − n → 0 r^{-n} \to0 r − n → 0 , the intersection is a single point ξ ∗ > 0 \xi_* > 0 ξ ∗ > 0 . (With half-open intervals the finite intersection property would not yield a common point; this is why closed intervals are used and the endpoints are treated separately.)
Thus
Q n ≤ ξ ∗ r n ≤ Q n + 1 Q_n \le\xi_* r^n \le Q_n+1 Q n ≤ ξ ∗ r n ≤ Q n + 1
for all n n n .
If ξ ∗ r n = Q n + 1 \xi_*r^n=Q_n+1 ξ ∗ r n = Q n + 1 for some n n n , then
ξ ∗ = ( Q n + 1 ) b n / a n \xi_*=(Q_n+1)^{b^n}/a^n ξ ∗ = ( Q n + 1 ) b n / a n
is rational, ξ ∗ = u / v \xi_*=u/v ξ ∗ = u / v in lowest terms; ξ ∗ r m ∈ Z \xi_*r^m\in\mathbb{Z} ξ ∗ r m ∈ Z requires v b m ∣ u a m vb^m\mid ua^m v b m ∣ u a m , hence v ∣ a m v\mid a^m v ∣ a m and b m ∣ u b^m\mid u b m ∣ u , which holds for only finitely many m m m as u ≠ 0 u\ne0 u = 0 .
So for all large n n n ,
Q n ≤ ξ ∗ r n < Q n + 1 , Q_n \le\xi_*r^n < Q_n+1, Q n ≤ ξ ∗ r n < Q n + 1 ,
that is,
Q n = ⌊ ξ ∗ r n ⌋ Q_n=\lfloor\xi_*r^n\rfloor Q n = ⌊ ξ ∗ r n ⌋
is prime, contradicting (A). □
Whether (B) holds for every t t t is open. The orbit of ξ ∗ \xi_* ξ ∗ may differ from the T t T_t T t -orbit at finitely many indices; agreement of the tails suffices.
Removing prime forks for general bases
Let a = b + d a=b+d a = b + d , gcd ( a , b ) = 1 \gcd(a,b)=1 g cd( a , b ) = 1 , 1 < a / b < 2 1<a/b<2 1 < a / b < 2 (so d < b d<b d < b ). For x ∈ [ Q , Q + 1 ) x\in[Q,Q+1) x ∈ [ Q , Q + 1 ) the possible values of ⌊ r x ⌋ \lfloor rx\rfloor ⌊ r x ⌋ are the integers m m m for which [ m , m + 1 ) [m,m+1) [ m , m + 1 ) meets [ a Q / b , a ( Q + 1 ) / b ) [aQ/b,a(Q+1)/b) [ a Q / b , a ( Q + 1 ) / b ) . The latter interval has length a / b < 2 a/b<2 a / b < 2 , so the candidates consist of at most three consecutive integers and include at most two odd integers, necessarily of the form L , L + 2 L,L+2 L , L + 2 when both occur.
Lemma 59 (two odd candidates). If Q Q Q is odd and both L L L and L + 2 L+2 L + 2 are candidates, then with C = L + 1 C=L+1 C = L + 1 ,
a Q = b C − k , 1 ≤ k < d , k ≡ a ( m o d 2 ) , b L = a ( Q − 1 ) + ( d + k ) , b ( L + 2 ) = a ( Q + 1 ) − ( d − k ) . \begin{aligned}
aQ &= bC-k,\qquad1\le k<d,\qquad k\equiv a\pmod{2},\\
bL &= a(Q-1)+(d+k),\\
b(L+2) &= a(Q+1)-(d-k).
\end{aligned} a Q b L b ( L + 2 ) = b C − k , 1 ≤ k < d , k ≡ a ( mod 2 ) , = a ( Q − 1 ) + ( d + k ) , = a ( Q + 1 ) − ( d − k ) .
Proof. L L L is a candidate iff a Q / b < L + 1 aQ/b<L+1 a Q / b < L + 1 and L < a ( Q + 1 ) / b L<a(Q+1)/b L < a ( Q + 1 ) / b ; L + 2 L+2 L + 2 is a candidate iff a Q / b < L + 3 aQ/b<L+3 a Q / b < L + 3 and L + 2 < a ( Q + 1 ) / b L+2<a(Q+1)/b L + 2 < a ( Q + 1 ) / b .
Together, a Q < b C aQ<bC a Q < b C and b C + b < a Q + a bC+b<aQ+a b C + b < a Q + a , that is,
b C − d < a Q < b C , bC-d<aQ<bC, b C − d < a Q < b C ,
so
k = b C − a Q ∈ { 1 , … , d − 1 } . k=bC-aQ\in\{1,\ldots,d-1\}. k = b C − a Q ∈ { 1 , … , d − 1 } .
As L L L is odd, C C C and b C bC b C are even, and a Q ≡ a ( m o d 2 ) aQ\equiv a\pmod{2} a Q ≡ a ( mod 2 ) , so k ≡ a ( m o d 2 ) k\equiv a\pmod{2} k ≡ a ( mod 2 ) . The identities follow from
b L = b C − b = a Q + k − b and bL=bC-b=aQ+k-b\qquad\text{and} b L = b C − b = a Q + k − b and
b ( L + 2 ) = b C + b = a Q + k + b . b(L+2)=bC+b=aQ+k+b. b ( L + 2 ) = b C + b = a Q + k + b .
Corollary 60 (no prime fork). If for every k k k with 1 ≤ k < d 1 \le k < d 1 ≤ k < d and k ≡ a ( m o d 2 ) k \equiv a \pmod{2} k ≡ a ( mod 2 ) one has
gcd ( k , b ) > 1 , or gcd ( d + k , a ) > 1 , or gcd ( d − k , a ) > 1 , \gcd(k,b)>1,\qquad\text{or}\qquad\gcd(d+k,a)>1,\qquad\text{or}\qquad\gcd(d-k,a)>1, g cd( k , b ) > 1 , or g cd( d + k , a ) > 1 , or g cd( d − k , a ) > 1 , then there is no odd prime Q > a Q>a Q > a with two prime candidates L , L + 2 > a L,L+2>a L , L + 2 > a . Moreover, if L , L + 2 > 3 L,L+2>3 L , L + 2 > 3 are prime then 3 ∣ C 3\mid C 3 ∣ C , so for a prime Q > 3 Q>3 Q > 3 a fork requires
3 ∣ a ⟺ 3 ∣ k ; 3\mid a\Longleftrightarrow3\mid k; 3 ∣ a ⟺ 3 ∣ k ; values of k k k violating this equivalence are also excluded.
Proof. If p ∣ gcd ( k , b ) p\mid\gcd(k,b) p ∣ g cd( k , b ) then p ∣ a Q p\mid aQ p ∣ a Q , p ∤ a p\nmid a p ∤ a , p ∣ Q p\mid Q p ∣ Q , and Q Q Q prime forces Q = p ≤ b < a Q=p\le b<a Q = p ≤ b < a .
If p ∣ gcd ( d + k , a ) p\mid\gcd(d+k,a) p ∣ g cd( d + k , a ) then p ∣ b L p\mid bL p ∣ b L , p ∤ b p\nmid b p ∤ b , p ∣ L p\mid L p ∣ L , L = p ≤ a L=p\le a L = p ≤ a .
If p ∣ gcd ( d − k , a ) p\mid\gcd(d-k,a) p ∣ g cd( d − k , a ) , similarly p ∣ L + 2 p\mid L+2 p ∣ L + 2 .
For the last assertion, among L , L + 1 , L + 2 L,L+1,L+2 L , L + 1 , L + 2 the multiple of 3 is C = L + 1 C=L+1 C = L + 1 , and
a Q = b C − k ≡ − k ( m o d 3 ) aQ=bC-k\equiv-k\pmod{3} a Q = b C − k ≡ − k ( mod 3 )
with 3 ∤ Q 3\nmid Q 3 ∤ Q . □
Example. For a = 462 u + 77 a=462u+77 a = 462 u + 77 , b = 462 u + 71 b=462u+71 b = 462 u + 71 (u ≥ 0 u\ge0 u ≥ 0 ): d = 6 d=6 d = 6 , a a a odd, k ∈ { 1 , 3 , 5 } k\in\{1,3,5\} k ∈ { 1 , 3 , 5 } ; 7 ∣ a 7\mid a 7 ∣ a and 11 ∣ a 11\mid a 11 ∣ a give gcd ( d + k , a ) > 1 \gcd(d+k,a)>1 g cd( d + k , a ) > 1 for k = 1 , 5 k=1,5 k = 1 , 5 ; for k = 3 k=3 k = 3 , 3 ∣ k 3\mid k 3 ∣ k but a ≡ 2 ( m o d 3 ) a\equiv2\pmod{3} a ≡ 2 ( mod 3 ) , so the equivalence fails. The pairs are reduced (gcd ( a , b ) ∣ 6 \gcd(a,b)\mid6 g cd( a , b ) ∣ 6 , a a a odd, 3 ∤ a 3\nmid a 3 ∤ a ) with a < 2 b a<2b a < 2 b . Hence a prime Q > a Q>a Q > a has at most one prime successor in this family; the surviving candidate need not be the larger one.
Families with a prescribed prime-power difference
Proposition 61 (families for every prime-power difference). Let d = p h ≥ 2 d=p^h\ge2 d = p h ≥ 2 and
K d = { k : 1 ≤ k < d , k ≡ d + 1 ( m o d 2 ) } . K_d=\{k:1\le k<d,\ k\equiv d+1\pmod{2}\}. K d = { k : 1 ≤ k < d , k ≡ d + 1 ( mod 2 )} . For each k ∈ K d k\in K_d k ∈ K d there is a prime ℓ k ≠ p \ell_k\ne p ℓ k = p dividing d + k d+k d + k ; let P d P_d P d be the product of the distinct ℓ k \ell_k ℓ k . Then gcd ( P d , 2 d ) = 1 \gcd(P_d,2d)=1 g cd( P d , 2 d ) = 1 , and every a > 2 d a>2d a > 2 d with
a ≡ 0 ( m o d P d ) and a ≡ d + 1 ( m o d 2 d ) a\equiv0\pmod{P_d}\qquad\text{and}\qquad a\equiv d+1\pmod{2d} a ≡ 0 ( mod P d ) and a ≡ d + 1 ( mod 2 d ) (an arithmetic progression modulo 2 d P d 2dP_d 2 d P d ), with b = a − d b=a-d b = a − d , satisfies gcd ( a , b ) = 1 \gcd(a,b)=1 g cd( a , b ) = 1 , 1 < a / b < 2 1<a/b<2 1 < a / b < 2 , and the hypothesis of Corollary 60 in the form
gcd ( d + k , a ) > 1 \gcd(d+k,a)>1 g cd( d + k , a ) > 1 for all relevant $k.
Proof. For k ∈ K d k\in K_d k ∈ K d , d + k ≡ 2 d + 1 d+k\equiv2d+1 d + k ≡ 2 d + 1 is odd and d < d + k < 2 d d<d+k<2d d < d + k < 2 d ; there is no power of p p p in ( d , 2 d ) (d,2d) ( d , 2 d ) , so d + k ≥ 3 d+k\ge3 d + k ≥ 3 has a prime factor ℓ k ≠ p \ell_k\ne p ℓ k = p , necessarily odd.
Hence P d P_d P d is odd and coprime to p p p , so gcd ( P d , 2 d ) = 1 \gcd(P_d,2d)=1 g cd( P d , 2 d ) = 1 and the two congruences are compatible.
From a ≡ 1 ( m o d d ) a\equiv1\pmod d a ≡ 1 ( mod d ) ,
gcd ( a , b ) = gcd ( a , d ) = 1 ; \gcd(a,b)=\gcd(a,d)=1; g cd( a , b ) = g cd( a , d ) = 1 ;
a > 2 d ⟺ a < 2 b a>2d\Longleftrightarrow a<2b a > 2 d ⟺ a < 2 b ;
and a ≡ d + 1 ( m o d 2 ) a\equiv d+1\pmod{2} a ≡ d + 1 ( mod 2 ) makes k ≡ a ( m o d 2 ) k\equiv a\pmod{2} k ≡ a ( mod 2 ) equivalent to k ∈ K d k\in K_d k ∈ K d , with
ℓ k ∣ gcd ( d + k , a ) . \ell_k\mid\gcd(d+k,a). ℓ k ∣ g cd( d + k , a ) .
Table 10. Families from Proposition 61 for small d d d .
For odd d d d the numerator a a a is even; Lemma 59 handles this through the parity condition k ≡ a ( m o d 2 ) k \equiv a \pmod{2} k ≡ a ( mod 2 ) . These are families with a uniform prime-successor rule, not families for which compositeness has been established.
Proposition 62 (ceiling form). In the setting of Proposition 61, write b = 2 d h + 1 b=2dh+1 b = 2 d h + 1 , H = 2 h − 1 H=2h-1 H = 2 h − 1 , and Q = 2 z + H Q=2z+H Q = 2 z + H . The largest odd integer below r ( Q + 1 ) r(Q+1) r ( Q + 1 ) is 2 ⌈ a z / b ⌉ + H 2\lceil az/b\rceil+H 2 ⌈ a z / b ⌉ + H ; hence, if an odd candidate for the successor of Q Q Q exists, the largest one is
Q ′ = 2 ⌈ a z / b ⌉ + H , Q'=2\lceil az/b\rceil+H, Q ′ = 2 ⌈ a z / b ⌉ + H , and a prime successor > a >a > a of a prime Q > a Q>a Q > a can only be this value. With z ′ = ⌈ a z / b ⌉ z'=\lceil az/b\rceil z ′ = ⌈ a z / b ⌉ and e = b z ′ − a z ∈ [ 0 , b ) e=bz'-az\in[0,b) e = b z ′ − a z ∈ [ 0 , b ) ,
gcd ( Q , b ) = gcd ( 2 e + d + 1 , b ) , \gcd(Q,b)=\gcd(2e+d+1,b), g cd( Q , b ) = g cd( 2 e + d + 1 , b ) , gcd ( Q ′ , a ) = gcd ( 2 e + 2 d + 1 , a ) , \gcd(Q',a)=\gcd(2e+2d+1,a), g cd( Q ′ , a ) = g cd( 2 e + 2 d + 1 , a ) , so a tail of primes > a >a > a has all digits in
D a , b = { 0 ≤ e < b : gcd ( 2 e + d + 1 , b ) = gcd ( 2 e + 2 d + 1 , a ) = 1 } . D_{a,b}=\{0\le e<b:\gcd(2e+d+1,b)=\gcd(2e+2d+1,a)=1\}. D a , b = { 0 ≤ e < b : g cd( 2 e + d + 1 , b ) = g cd( 2 e + 2 d + 1 , a ) = 1 } .
Proof. Put y = ( Q + 1 ) / 2 = z + h y=(Q+1)/2=z+h y = ( Q + 1 ) /2 = z + h ; the largest odd integer below 2 r y 2ry 2 r y is 2 y ′ − 1 2y'-1 2 y ′ − 1 with y ′ = ⌈ r y − 1 / 2 ⌉ y'=\lceil ry-1/2\rceil y ′ = ⌈ r y − 1/2 ⌉ .
Since b b b is odd, r y ry r y is not a half-integer, so
y ′ = ⌊ r y + 1 / 2 ⌋ = ⌊ 2 a y + b 2 b ⌋ = ⌊ a y + ( b − 1 ) / 2 b ⌋ . y'=\lfloor ry+1/2\rfloor=\left\lfloor\frac{2ay+b}{2b}\right\rfloor=\left\lfloor\frac{ay+(b-1)/2}{b}\right\rfloor. y ′ = ⌊ r y + 1/2 ⌋ = ⌊ 2 b 2 a y + b ⌋ = ⌊ b a y + ( b − 1 ) /2 ⌋ .
With ( b − 1 ) / 2 = d h (b-1)/2=dh ( b − 1 ) /2 = d h and a = b + d a=b+d a = b + d ,
a y + d h = a z + b h + ( b − 1 ) , ay+dh=az+bh+(b-1), a y + d h = a z + bh + ( b − 1 ) ,
so
y ′ = h + ⌊ a z + b − 1 b ⌋ = h + ⌈ a z / b ⌉ y'=h+\left\lfloor\frac{az+b-1}{b}\right\rfloor=h+\lceil az/b\rceil y ′ = h + ⌊ b a z + b − 1 ⌋ = h + ⌈ a z / b ⌉
and
Q ′ = 2 y ′ − 1 = 2 ⌈ a z / b ⌉ + H . Q'=2y'-1=2\lceil az/b\rceil+H. Q ′ = 2 y ′ − 1 = 2 ⌈ a z / b ⌉ + H .
For the gcd identities,
d Q = 2 d z + b − 1 − d ≡ − 2 e − 1 − d ( m o d b ) dQ=2dz+b-1-d\equiv-2e-1-d\pmod b d Q = 2 d z + b − 1 − d ≡ − 2 e − 1 − d ( mod b )
(as 2 e ≡ − 2 a z ≡ − 2 d z 2e\equiv-2az\equiv-2dz 2 e ≡ − 2 a z ≡ − 2 d z ), and gcd ( d , b ) = 1 \gcd(d,b)=1 g cd( d , b ) = 1 ; similarly d Q ′ = 2 d z ′ + b − 1 − d dQ'=2dz'+b-1-d d Q ′ = 2 d z ′ + b − 1 − d with b z ′ ≡ e ( m o d a ) bz'\equiv e\pmod a b z ′ ≡ e ( mod a ) and b ≡ − d ( m o d a ) b\equiv-d\pmod a b ≡ − d ( mod a ) give
d Q ′ ≡ − ( 2 e + 2 d + 1 ) ( m o d a ) . dQ'\equiv-(2e+2d+1)\pmod a. d Q ′ ≡ − ( 2 e + 2 d + 1 ) ( mod a ) .
A uniform halting theorem for these families, showing that every sufficiently large initial value eventually violates the digit restriction or the interval condition, is not proved.
Appendix D. Prime-prefix counting, the word sieve, and finite height
This appendix proves Theorem 47 . Section D.1 bounds the number of initial primes whose orbit stays prime for N N N steps; Section D.2 describes a sieve over carry words for a general base and the resulting power-type bound; Sections D.3–D.4 turn the sieve into a complete treatment of all initial integers up to an explicit height for 6 / 5 6/5 6/5 and 9 / 7 9/7 9/7 . None of these results is an all-coefficient theorem.
A counting bound along the family
For t ≥ 1 t \ge1 t ≥ 1 , N ≥ 1 N \ge1 N ≥ 1 and X ≥ a = 6 t + 3 X \ge a = 6t + 3 X ≥ a = 6 t + 3 , let S t ( X , N ) S_t(X,N) S t ( X , N ) be the set of primes a < P ≤ X a < P \le X a < P ≤ X for which the program of Section C.3 accepts N N N steps.
Proposition 63.
∣ S t ( X , N ) ∣ ≤ d t N ( ⌊ X 2 b N ⌋ + 1 ) , \lvert S_t(X,N)\rvert\le d_t^N\left(\left\lfloor\frac{X}{2b^N}\right\rfloor+ 1\right), ∣ S t ( X , N )∣ ≤ d t N ( ⌊ 2 b N X ⌋ + 1 ) , where d t = ∣ D t ∣ ≤ 4 t + 1 d_t = \lvert D_t\rvert\le4t + 1 d t = ∣ D t ∣ ≤ 4 t + 1 . If N = N ( X ) N = N(X) N = N ( X ) is the least integer with b N ≥ X b^N \ge X b N ≥ X , then
∣ S t ( X , N ( X ) ) ∣ ≤ d t X α t \lvert S_t(X,N(X))\rvert\le d_t X^{\alpha_t} ∣ S t ( X , N ( X ))∣ ≤ d t X α t with
α t = log d t log b < 1. \alpha_t = \frac{\log d_t}{\log b} < 1. α t = log b log d t < 1. The same bounds hold for the set of initial primes for which the program never halts.
Proof. Each P ∈ S t ( X , N ) P \in S_t(X,N) P ∈ S t ( X , N ) determines a digit word of length N N N with all digits in D t D_t D t (Lemma 56 ), hence one of at most d t N d_t^N d t N words; by Proposition 53 the word determines z 0 m o d b N z_0 \bmod b^N z 0 mod b N , hence P = 2 z 0 + H m o d 2 b N P = 2z_0 + H \bmod2b^N P = 2 z 0 + H mod 2 b N ; and a residue class modulo 2 b N 2b^N 2 b N has at most ⌊ X / ( 2 b N ) ⌋ + 1 \lfloor X/(2b^N)\rfloor+ 1 ⌊ X / ( 2 b N )⌋ + 1 elements in ( a , X ] (a,X] ( a , X ] .
For N = N ( X ) N = N(X) N = N ( X ) , 2 b N > X 2b^N > X 2 b N > X gives at most one element per word, and b N − 1 < X b^{N-1} < X b N − 1 < X gives
d t N ≤ d t ⋅ d t log b X = d t X α t ; d_t^N \le d_t \cdot d_t^{\log_b X} = d_t X^{\alpha_t}; d t N ≤ d t ⋅ d t l o g b X = d t X α t ; α t < 1 \alpha_t < 1 α t < 1 since d t < b d_t < b d t < b . A non-halting initial prime lies in S t ( X , N ) S_t(X,N) S t ( X , N ) for every N N N . □
A bound of the form C X α CX^\alpha C X α with α < 1 \alpha< 1 α < 1 does not imply that the set is empty: the tail of a single non-halting orbit has only O ( log X ) O(\log X) O ( log X ) starting points below X X X .
The word sieve for a general base
Let a > b ≥ 2 a > b \ge2 a > b ≥ 2 be coprime and let c 0 ⋯ c ℓ − 1 c_0 \cdots c_{\ell-1} c 0 ⋯ c ℓ − 1 be a carry word, with C 0 = 0 C_0 = 0 C 0 = 0 , C j + 1 = a C j + b j c j C_{j+1} = aC_j + b^j c_j C j + 1 = a C j + b j c j , so that
b j Q j = a j Q 0 + C j b^j Q_j = a^j Q_0 + C_j b j Q j = a j Q 0 + C j
by (9) .
Lemma 64. (i) Integrality. The congruence
a ℓ Q 0 ≡ − C ℓ ( m o d b ℓ ) a^\ell Q_0 \equiv-C_\ell\pmod{b^\ell} a ℓ Q 0 ≡ − C ℓ ( mod b ℓ ) determines Q 0 Q_0 Q 0 mod b ℓ b^\ell b ℓ and implies
b j ∣ a j Q 0 + C j b^j \mid a^j Q_0 + C_j b j ∣ a j Q 0 + C j for all j ≤ ℓ j \le\ell j ≤ ℓ ; hence for X ≤ b ℓ X \le b^\ell X ≤ b ℓ at most one integer Q 0 ∈ [ 1 , X ] Q_0 \in[1, X] Q 0 ∈ [ 1 , X ] has the given word. (ii) Exact interval. With
θ j = ( a j θ 0 − C j ) / b j , \theta_j = (a^j\theta_0 - C_j)/b^j, θ j = ( a j θ 0 − C j ) / b j , the word is realized by some real orbit segment if and only if
[ 0 , 1 ) ∩ ⋂ j = 1 ℓ [ C j a j , C j + b j a j ) ≠ ∅ . [0,1) \cap\bigcap_{j=1}^{\ell} \left[\frac{C_j}{a^j},\frac{C_j+b^j}{a^j}\right) \ne\varnothing. [ 0 , 1 ) ∩ j = 1 ⋂ ℓ [ a j C j , a j C j + b j ) = ∅ . (iii) Fixed divisors. For a prime p ∤ a b p \nmid ab p ∤ ab , p ∣ Q j p \mid Q_j p ∣ Q j if and only if Q 0 ≡ R j ( m o d p ) Q_0 \equiv R_j \pmod p Q 0 ≡ R j ( mod p ) , where R 0 = 0 R_0 = 0 R 0 = 0 and
R j + 1 = R j − c j b j a − j − 1 ( m o d p ) . R_{j+1} = R_j - c_jb^ja^{-j-1} \pmod p. R j + 1 = R j − c j b j a − j − 1 ( mod p ) . If
{ R 0 , … , R ℓ } = F p , \{R_0,\ldots,R_\ell\} = \mathbb{F}_p, { R 0 , … , R ℓ } = F p , then every initial integer has p ∣ Q j p \mid Q_j p ∣ Q j for some j ≤ ℓ j \le\ell j ≤ ℓ ; since there are at most ℓ + 1 \ell+1 ℓ + 1 roots, only primes p ≤ ℓ + 1 p \le\ell+1 p ≤ ℓ + 1 can cover F p \mathbb{F}_p F p .
Proof. (i)
C ℓ = a ℓ − j C j + ∑ i ≥ j a ℓ − 1 − i b i c i ≡ a ℓ − j C j ( m o d b j ) , C_\ell= a^{\ell-j}C_j + \sum_{i\ge j}a^{\ell-1-i}b^ic_i \equiv a^{\ell-j}C_j \pmod{b^j}, C ℓ = a ℓ − j C j + i ≥ j ∑ a ℓ − 1 − i b i c i ≡ a ℓ − j C j ( mod b j ) ,
so b ℓ ∣ a ℓ Q 0 + C ℓ b^\ell\mid a^\ell Q_0 + C_\ell b ℓ ∣ a ℓ Q 0 + C ℓ gives
b j ∣ a ℓ − j ( a j Q 0 + C j ) b^j \mid a^{\ell-j}(a^jQ_0+C_j) b j ∣ a ℓ − j ( a j Q 0 + C j )
and, as gcd ( a , b ) = 1 \gcd(a,b)=1 g cd( a , b ) = 1 ,
b j ∣ a j Q 0 + C j . b^j \mid a^jQ_0+C_j. b j ∣ a j Q 0 + C j .
(ii) θ j ∈ [ 0 , 1 ) \theta_j \in[0,1) θ j ∈ [ 0 , 1 ) if and only if
θ 0 ∈ [ C j / a j , ( C j + b j ) / a j ) ; \theta_0 \in[C_j/a^j,(C_j+b^j)/a^j); θ 0 ∈ [ C j / a j , ( C j + b j ) / a j ) ;
the map θ 0 ↦ θ j \theta_0 \mapsto\theta_j θ 0 ↦ θ j is exact, as in Proposition 57 .
(iii)
p ∣ Q j ⟺ a j Q 0 + C j ≡ 0 ⟺ Q 0 ≡ − C j a − j , p \mid Q_j \Longleftrightarrow a^jQ_0+C_j \equiv0 \Longleftrightarrow Q_0 \equiv-C_ja^{-j}, p ∣ Q j ⟺ a j Q 0 + C j ≡ 0 ⟺ Q 0 ≡ − C j a − j ,
and
− ( a C j + b j c j ) a − j − 1 = R j − c j b j a − j − 1 . -(aC_j+b^jc_j)a^{-j-1}=R_j-c_jb^ja^{-j-1}. − ( a C j + b j c j ) a − j − 1 = R j − c j b j a − j − 1 .
Let A ℓ A_\ell A ℓ be the number of words of length ℓ \ell ℓ such that (1) every letter lies in C ( a , b ) C(a,b) C ( a , b ) , (2) the interval in (ii) is nonempty, and (3) no prime p ≤ ℓ + 1 p \le\ell+1 p ≤ ℓ + 1 with p ∤ 2 a b p \nmid2ab p ∤ 2 ab has { R 0 , … , R ℓ } = F p \{R_0,\ldots,R_\ell\}=\mathbb{F}_p { R 0 , … , R ℓ } = F p . If Q 0 , … , Q ℓ Q_0,\ldots,Q_\ell Q 0 , … , Q ℓ are primes larger than max ( a , ℓ + 1 ) \max(a,\ell+1) max ( a , ℓ + 1 ) , then the carry word of the segment satisfies (1) by Lemma 29 , (2) with the true θ 0 \theta_0 θ 0 , and (3) because a covering prime would divide some Q j Q_j Q j , forcing Q j = p ≤ ℓ + 1 Q_j = p \le\ell+ 1 Q j = p ≤ ℓ + 1 . Absence of a fixed divisor is a necessary condition only; no prime-tuple conjecture is used to make it sufficient.
Proposition 65 (power-type bound). Fix ℓ \ell ℓ , put λ = A ℓ 1 / ℓ \lambda= A_{\ell}^{1/\ell} λ = A ℓ 1/ ℓ and α = log λ / log b \alpha= \log\lambda/ \log b α = log λ / log b , and suppose
A s ≤ C λ s − 1 A_s \le C\lambda^{s-1} A s ≤ C λ s − 1 for 0 ≤ s < ℓ 0 \le s < \ell 0 ≤ s < ℓ . Then the number of primes P P P with max ( a , ℓ + 1 ) < P ≤ X \max(a,\ell+1) < P \le X max ( a , ℓ + 1 ) < P ≤ X such that some ξ ∈ [ P , P + 1 ) \xi\in[P,P+1) ξ ∈ [ P , P + 1 ) produces N ( X ) + 1 N(X)+1 N ( X ) + 1 prime terms is at most C X α CX^\alpha C X α , where N ( X ) N(X) N ( X ) is the least integer with b N ( X ) ≥ X b^{N(X)} \ge X b N ( X ) ≥ X .
Proof. Write N = k ℓ + s N = k\ell+s N = k ℓ + s with 0 ≤ s < ℓ 0 \le s < \ell 0 ≤ s < ℓ . The carry word of an all-prime segment of N + 1 N+1 N + 1 terms, all larger than max ( a , ℓ + 1 ) \max(a,\ell+1) max ( a , ℓ + 1 ) , splits into k k k blocks of length ℓ \ell ℓ and one of length s s s , each satisfying (1)–(3) with the fractional part at the start of the block as initial value; ignoring compatibility between blocks overcounts, so there are at most
A ℓ k A s ≤ C λ N − 1 A_{\ell}^{k} A_s \le C\lambda^{N-1} A ℓ k A s ≤ C λ N − 1 words.
For N = N ( X ) N=N(X) N = N ( X ) , b N − 1 < X b^{N-1}<X b N − 1 < X gives
λ N − 1 = b α ( N − 1 ) < X α , \lambda^{N-1}=b^{\alpha(N-1)}<X^\alpha, λ N − 1 = b α ( N − 1 ) < X α , and by Lemma 64 (i) each word has at most one initial integer in [ 1 , X ] [1,X] [ 1 , X ] , distinct P P P giving distinct words.
The hypothesis A s ≤ C λ s − 1 A_s \le C\lambda^{s-1} A s ≤ C λ s − 1 is equivalent to the integer inequalities A ℓ ≤ C ℓ A_\ell\le C^\ell A ℓ ≤ C ℓ (s = 0 s=0 s = 0 ) and A s ℓ ≤ C ℓ A ℓ s − 1 A_s^\ell\le C^\ell A_\ell^{s-1} A s ℓ ≤ C ℓ A ℓ s − 1 (1 ≤ s < ℓ 1 \le s < \ell 1 ≤ s < ℓ ). Table 11 gives the complete counts for the two bases, computed as described in Section D.5; the exponents are certified by
Table 11. The sieve counts A s A_s A s for 0 ≤ s ≤ ℓ 0 \le s \le\ell 0 ≤ s ≤ ℓ .
18035747 < 7 9 = 40353607 and 3955763 < 5 10 = 9765625 , 18035747 < 7^9 = 40353607 \qquad\text{and}\qquad3955763 < 5^{10} = 9765625, 18035747 < 7 9 = 40353607 and 3955763 < 5 10 = 9765625 ,
that is, α < 1 / 2 \alpha< 1/2 α < 1/2 for 9 / 7 9/7 9/7 and α < 1 / 4 \alpha< 1/4 α < 1/4 for 6 / 5 6/5 6/5 , and the constants C = 13 C=13 C = 13 and C = 10 C=10 C = 10 are the least integers satisfying the inequalities. For 6 / 5 6/5 6/5 the alphabet is C ( 6 , 5 ) = { − 1 , 1 } C(6,5)=\{-1,1\} C ( 6 , 5 ) = { − 1 , 1 } , and a prime successor requires Q ≡ 1 ( m o d 5 ) Q \equiv1 \pmod{5} Q ≡ 1 ( mod 5 ) (then c = − 1 c=-1 c = − 1 ) or Q ≡ 4 ( m o d 5 ) Q \equiv4 \pmod{5} Q ≡ 4 ( mod 5 ) (then c = 1 c=1 c = 1 ), since c ≡ − Q ( m o d 5 ) c \equiv-Q \pmod{5} c ≡ − Q ( mod 5 ) ; for 9 / 7 9/7 9/7 it is C ( 9 , 7 ) = { − 4 , − 2 , 2 , 4 , 8 } C(9,7)=\{-4,-2,2,4,8\} C ( 9 , 7 ) = { − 4 , − 2 , 2 , 4 , 8 } .
Recovering the initial integer
Lemma 66. Let N ≥ 2 N \ge2 N ≥ 2 and let c c c be a word of length N N N . (a) (Seed.) Put
s ( c ) = ( − C N ( a N ) − 1 ) m o d b N ∈ [ 0 , b N ) . s(c) = \left(-C_N(a^N)^{-1}\right) \bmod b^N \in[0,b^N). s ( c ) = ( − C N ( a N ) − 1 ) mod b N ∈ [ 0 , b N ) . Every prime P ≤ b N P \le b^N P ≤ b N whose orbit has carry word c c c equals s ( c ) s(c) s ( c ) ; in particular, if s ( c ) s(c) s ( c ) is even or s ( c ) ≤ max ( a , N + 1 ) s(c) \le\max(a,N+1) s ( c ) ≤ max ( a , N + 1 ) , no such prime exceeds max ( a , N + 1 ) \max(a,N+1) max ( a , N + 1 ) . (b) (Interval.) The word is realized by a real orbit segment with ⌊ ξ ⌋ = s ( c ) \lfloor\xi\rfloor= s(c) ⌊ ξ ⌋ = s ( c ) if and only if the interval of Lemma 64 (ii) is nonempty. (c) (Roots.) If a prime p ≤ N + 1 p \le N+1 p ≤ N + 1 , p ∤ 2 a b p \nmid2ab p ∤ 2 ab , covers F p \mathbb{F}_p F p , or if
s ( c ) m o d p ∈ { R 0 , … , R N } , s(c) \bmod p \in\{R_0,\ldots,R_N\}, s ( c ) mod p ∈ { R 0 , … , R N } , then every orbit with initial integer P = s ( c ) > N + 1 P=s(c)>N+1 P = s ( c ) > N + 1 and carry word c c c has a term Q j Q_j Q j with p ∣ Q j p \mid Q_j p ∣ Q j , Q j ≥ P > p Q_j \ge P > p Q j ≥ P > p , hence composite.
Proof. (a) By Lemma 64 (i), P ≡ s ( c ) ( m o d b N ) P \equiv s(c) \pmod{b^N} P ≡ s ( c ) ( mod b N ) ; since 0 < P ≤ b N 0<P\le b^N 0 < P ≤ b N and b N b^N b N is composite, P = s ( c ) P=s(c) P = s ( c ) (and s ( c ) = 0 s(c)=0 s ( c ) = 0 would give P = b N P=b^N P = b N , not prime).
(b) is Lemma 64 (ii).
(c) is Lemma 64 (iii) together with Q j ≥ Q 0 = P Q_j \ge Q_0=P Q j ≥ Q 0 = P .
□
Proof of Theorem 47
Proof of Theorem 47. (a) Let 6 < P = ⌊ ξ ⌋ ≤ 5 40 6<P=\lfloor\xi\rfloor\le5^{40} 6 < P = ⌊ ξ ⌋ ≤ 5 40 and suppose that none of Q 0 , … , Q 40 Q_0,\ldots,Q_{40} Q 0 , … , Q 40 is composite; since all are ≥ P ≥ 7 \ge P\ge7 ≥ P ≥ 7 , all are prime. Put N = 40 N=40 N = 40 . If P ≤ 41 = max ( 6 , N + 1 ) P\le41=\max(6,N+1) P ≤ 41 = max ( 6 , N + 1 ) , then P ∈ { 7 , 11 , … , 41 } P\in\{7,11,\ldots,41\} P ∈ { 7 , 11 , … , 41 } , and each of these ten primes is excluded individually (Table 13 ).
Table 13: Small initial primes. For x ∈ [ P , P + 1 ) x \in[P, P + 1) x ∈ [ P , P + 1 ) the successor ⌊ r x ⌋ \lfloor rx\rfloor ⌊ r x ⌋ has at most two candidate values for 6/5 and at most three for 9/7 (Section C.5); the rows list every candidate where it matters. For 6/5, “Q ≡ s ( m o d 5 ) Q \equiv s \pmod{5} Q ≡ s ( mod 5 ) ” with s ∉ { 1 , 4 } s \notin\{1, 4\} s ∈ / { 1 , 4 } means that no candidate successor of Q Q Q is coprime to 30 (Section D.2), so every candidate, being at least 8, is composite; where a unique candidate coprime to 30 exists, it is named. “Empty interval” means that the exact interval of Section C.3 for the all-prime T T T -orbit becomes empty at the indicated step, so that orbit is realized by no ξ \xi ξ , while any deviation from it is a term divisible by 2 or 3, hence composite.
Table 13. Small initial primes.
If P ≥ 43 P\ge43 P ≥ 43 , then all terms are primes larger than max ( a , N + 1 ) \max(a,N+1) max ( a , N + 1 ) , so the carry word c c c of length 40 satisfies (1)–(3) of Section D.2 with a / b = 6 / 5 a/b=6/5 a / b = 6/5 , and by Lemma 66 (a) P = s ( c ) P=s(c) P = s ( c ) , which is odd and larger than 41, and by Lemma 66 (c)
s ( c ) m o d p ∉ { R j } s(c) \bmod p \notin\{R_j\} s ( c ) mod p ∈ / { R j }
for every prime p ∈ { 7 , 11 , … , 41 } p\in\{7,11,\ldots,41\} p ∈ { 7 , 11 , … , 41 } . The complete enumeration of all A 40 = 3955763 A_{40}=3955763 A 40 = 3955763 words satisfying (1)–(3) (Table 12 ) finds 1978668 with even seed and 1977095 rejected by the root test, none with seed ≤ 41 \le41 ≤ 41 , and no survivor. This contradiction proves (a).
“Words” is A N A_N A N ; “even” and “roots” count words whose seed is even or is rejected by Lemma 66(c); “small” counts seeds ≤ max ( a , N + 1 ) \le\max(a, N + 1) ≤ max ( a , N + 1 ) .
Table 12. The finite-height sieve.
(b) Let 9 < P ≤ 7 18 9<P\le7^{18} 9 < P ≤ 7 18 and suppose none of Q 0 , … , Q 18 Q_0,\ldots,Q_{18} Q 0 , … , Q 18 is composite. With N = 18 N=18 N = 18 , the primes P ≤ 19 = max ( 9 , N + 1 ) P\le19=\max(9,N+1) P ≤ 19 = max ( 9 , N + 1 ) , namely 11, 13, 17, 19, are excluded individually (Table 13 ).
For P ≥ 23 P\ge23 P ≥ 23 the same sieve with a / b = 9 / 7 a/b=9/7 a / b = 9/7 , primes p ∈ { 5 , 11 , 13 , 17 , 19 } p\in\{5,11,13,17,19\} p ∈ { 5 , 11 , 13 , 17 , 19 } , and A 18 = 18035747 A_{18}=18035747 A 18 = 18035747 words finds 9018851 even seeds and 9012304 root rejections, none with seed ≤ 19 \le19 ≤ 19 , and 4592 surviving candidates P P P .
For each survivor, all terms are primes, hence coprime to 6, so by Proposition 55 the orbit follows
T ( Q ) = Q + 2 ⌊ Q + 4 7 ⌋ T(Q)=Q+2\left\lfloor\frac{Q+4}{7}\right\rfloor T ( Q ) = Q + 2 ⌊ 7 Q + 4 ⌋
(the map T 1 T_1 T 1 ), and the carries of this T T T -orbit are those of the sieve word: the carry is determined by
c ≡ − 2 Q ( m o d 7 ) , c\equiv-2Q \pmod7, c ≡ − 2 Q ( mod 7 ) ,
and the letters − 4 , − 2 , 2 , 4 , 8 -4,-2,2,4,8 − 4 , − 2 , 2 , 4 , 8 have distinct residues 3, 5, 2, 4, 1 modulo 7. Each of the 4592 candidates has a proper divisor at some time j ≤ 7 j\le7 j ≤ 7 : there is an integer 1 < d < T j ( P ) 1<d<T^j(P) 1 < d < T j ( P ) with d ∣ T j ( P ) d\mid T^j(P) d ∣ T j ( P ) , and the recorded witnesses use divisors at most 9923, each checked as an exact equality
T j ( P ) = d ⋅ e . T^j(P)=d\cdot e. T j ( P ) = d ⋅ e .
Hence Q j Q_j Q j is composite for some j ≤ 7 ≤ 18 j \le7 \le18 j ≤ 7 ≤ 18 , a contradiction. □
For the 4592 survivors the maximal time at which a divisor is used is 7. The distribution of these times over the candidates depends on the order and range of the trial divisions and is not reported; the statement used in the proof is the existence of a proper divisor at some time j ≤ 7 j \le7 j ≤ 7 for every candidate.
Theorem 47 says nothing about ⌊ ξ ⌋ > 5 40 \lfloor\xi\rfloor> 5^{40} ⌊ ξ ⌋ > 5 40 or ⌊ ξ ⌋ > 7 18 \lfloor\xi\rfloor> 7^{18} ⌊ ξ ⌋ > 7 18 . For an initial integer s + k b N s + kb^N s + k b N with the same first N N N carries as s s s , the terms are
Q j ( s ) + k a j b N − j , Q_j(s) + ka^j b^{N-j}, Q j ( s ) + k a j b N − j ,
and a divisor found for k = 0 k = 0 k = 0 need not divide the terms for k ≠ 0 k \ne0 k = 0 .
Verification of the finite-height computation
The counts of Table 11 –Table 13 and the list of 4592 survivors were produced by implementation A of § 9.3 , that is, by the two same-lineage constructions of the original programs, which track the exact interval in different coordinates (the current fractional interval with the seed lifted digit by digit, and the initial interval with common denominator a N a^N a N with the seed solved at the leaves) and agree on all depth counts, all classification counts, and the survivor list; on six small instances
( a , b , N ) ∈ { ( 3 , 2 , 5 ) , ( 4 , 3 , 5 ) , ( 5 , 3 , 5 ) , ( 6 , 5 , 6 ) , ( 7 , 5 , 5 ) , ( 9 , 7 , 5 ) } (a,b,N) \in\{(3,2,5),(4,3,5),(5,3,5),(6,5,6),(7,5,5),(9,7,5)\} ( a , b , N ) ∈ {( 3 , 2 , 5 ) , ( 4 , 3 , 5 ) , ( 5 , 3 , 5 ) , ( 6 , 5 , 6 ) , ( 7 , 5 , 5 ) , ( 9 , 7 , 5 )}
with 9, 11, 37, 50, 54, 530 words, they also agree with a Python oracle enumerating all words by direct product and exact rational arithmetic. The sieve counts of Table 11 were recomputed in full. The finite-height computations and their reproduction are described in the computation guide.
Independently of these, implementation B of § 9.3 (a different programmer, code written from the specification of Lemmas 64 –66 and not from the original programs) re-enumerated the sieve for both bases, recomputed the seeds, the root rejections and the survivor list, checked every survivor’s divisor equality and every small-prime witness, and recomputed the constants of Table 11 as least integers from its own counts. All quantities compared element by element (the count arrays, the classification counts, the survivor set, the 4592 witness equalities, the fourteen small-prime witnesses, the six small instances, and the constants) agree. The comparison is described in the computation guide, with reference data in checks/reference.json. Agreement is evidence that both implementations computed the same finite objects; the passage from these objects to Theorem 47 is the argument of Sections D.2–D.4.
Appendix E. Long prime prefixes and return-word obstructions
Arbitrarily long prime prefixes along the family
Lemma 67 (transplanting a prime progression). Let L ≥ 3 L \ge3 L ≥ 3 , let P , P + D , … , P + ( L − 1 ) D P, P+D, \ldots, P+(L-1)D P , P + D , … , P + ( L − 1 ) D be primes larger than 3, and let
P > 48 L 2 D 2 . P > 48L^2D^2. P > 48 L 2 D 2 . Let b b b be an integer with b ≡ 1 ( m o d 6 ) b \equiv1 \pmod{6} b ≡ 1 ( mod 6 ) and ∣ b − 2 P / D ∣ ≤ 3 |b-2P/D| \le3 ∣ b − 2 P / D ∣ ≤ 3 , and put a = b + 2 a=b+2 a = b + 2 , t = ( b − 1 ) / 6 t=(b-1)/6 t = ( b − 1 ) /6 , ξ = P + 1 / 2 \xi=P+1/2 ξ = P + 1/2 . Then t ≥ 1 t \ge1 t ≥ 1 , P > a P>a P > a , and
⌊ ξ ( a / b ) j ⌋ = P + j D \left\lfloor\xi(a/b)^j \right\rfloor= P+jD ⌊ ξ ( a / b ) j ⌋ = P + j D for 0 ≤ j < L 0 \le j < L 0 ≤ j < L .
Proof. 6 ∣ D 6 \mid D 6 ∣ D . If D D D were odd, one of P P P , P + D P+D P + D would be even; if 3 ∤ D 3 \nmid D 3 ∤ D , the three terms P P P , P + D P+D P + D , P + 2 D P+2D P + 2 D would cover all residues modulo 3.
Existence of $b. Every real number is within 3 of an integer ≡ 1 ( m o d 6 ) \equiv1 \pmod{6} ≡ 1 ( mod 6 ) . Since
2 P / D > 96 L 2 D ≥ 96 ⋅ 9 ⋅ 6 , 2P/D > 96L^2D \ge96 \cdot9 \cdot6, 2 P / D > 96 L 2 D ≥ 96 ⋅ 9 ⋅ 6 ,
we get
b ≥ 2 P / D − 3 ≥ P / D ≥ 7 , b \ge2P/D-3 \ge P/D \ge7, b ≥ 2 P / D − 3 ≥ P / D ≥ 7 ,
so t ≥ 1 t \ge1 t ≥ 1 .
First estimate. Write b = 2 P / D + ε b=2P/D+\varepsilon b = 2 P / D + ε with ∣ ε ∣ ≤ 3 |\varepsilon| \le3 ∣ ε ∣ ≤ 3 ; then
( 2 P + 1 ) / b − D = ( 1 − D ε ) / b (2P+1)/b-D=(1-D\varepsilon)/b ( 2 P + 1 ) / b − D = ( 1 − D ε ) / b
and ∣ 1 − D ε ∣ ≤ 4 D |1-D\varepsilon| \le4D ∣1 − D ε ∣ ≤ 4 D , so
∣ ( 2 P + 1 ) / b − D ∣ ≤ 4 D 2 / P . |(2P+1)/b-D| \le4D^2/P. ∣ ( 2 P + 1 ) / b − D ∣ ≤ 4 D 2 / P .
Binomial expansion. With u = 2 / b u = 2/b u = 2/ b ,
( 1 + u ) j = 1 + j u + R j (1+u)^j = 1+ju+R_j ( 1 + u ) j = 1 + j u + R j
where
0 ≤ R j ≤ ∑ k ≥ 2 ( j u ) k / k ! ≤ 1 2 ( j u ) 2 e j u ; 0 \le R_j \le\sum_{k\ge2} (ju)^k/k! \le\tfrac{1}{2}(ju)^2 e^{ju}; 0 ≤ R j ≤ k ≥ 2 ∑ ( j u ) k / k ! ≤ 2 1 ( j u ) 2 e j u ;
here
j u ≤ 2 L / b ≤ 2 L D / P < 1 , ju \le2L/b \le2LD/P < 1, j u ≤ 2 L / b ≤ 2 L D / P < 1 ,
so e j u < 3 e^{ju}<3 e j u < 3 and
R j ≤ 3 2 ( j u ) 2 = 6 j 2 / b 2 ≤ 6 j 2 D 2 / P 2 . R_j \le\tfrac{3}{2}(ju)^2 = 6j^2/b^2 \le6j^2D^2/P^2. R j ≤ 2 3 ( j u ) 2 = 6 j 2 / b 2 ≤ 6 j 2 D 2 / P 2 .
Therefore
∣ ( P + 1 2 ) ( 1 + u ) j − ( P + j D + 1 2 ) ∣ ≤ j ∣ 2 P + 1 b − D ∣ + ( P + 1 2 ) R j ≤ 4 j D 2 P + 8 j 2 D 2 P ≤ 12 L 2 D 2 P ≤ 1 4 . \begin{aligned}
\left|(P+\tfrac{1}{2})(1+u)^j-(P+jD+\tfrac{1}{2})\right|
&\le j\left|\frac{2P+1}{b}-D\right|+(P+\tfrac{1}{2})R_j\\
&\le\frac{4jD^2}{P}+\frac{8j^2D^2}{P}\\
&\le\frac{12L^2D^2}{P}\le\frac{1}{4}.
\end{aligned} ( P + 2 1 ) ( 1 + u ) j − ( P + j D + 2 1 ) ≤ j b 2 P + 1 − D + ( P + 2 1 ) R j ≤ P 4 j D 2 + P 8 j 2 D 2 ≤ P 12 L 2 D 2 ≤ 4 1 .
using ( P + 1 / 2 ) / P ≤ 4 / 3 (P+1/2)/P\le4/3 ( P + 1/2 ) / P ≤ 4/3 and 4 j + 8 j 2 ≤ 12 L 2 4j+8j^2\le12L^2 4 j + 8 j 2 ≤ 12 L 2 for j < L j<L j < L . Hence
ξ ( a / b ) j ∈ ( P + j D + 1 / 4 , P + j D + 3 / 4 ) \xi(a/b)^j \in(P+jD+1/4,P+jD+3/4) ξ ( a / b ) j ∈ ( P + j D + 1/4 , P + j D + 3/4 )
and the integer part is P + j D P+jD P + j D .
a = b + 2 ≤ 2 P / D + 5 ≤ P / 3 + 5 < P a=b+2\le2P/D+5\le P/3+5<P a = b + 2 ≤ 2 P / D + 5 ≤ P /3 + 5 < P
since D ≥ 6 D\ge6 D ≥ 6 . □
Theorem 68 (arbitrarily long prime prefixes). For every L ≥ 3 L\ge3 L ≥ 3 and every T T T there are t ≥ T t\ge T t ≥ T and a rational ξ > 0 \xi>0 ξ > 0 such that ⌊ ξ ( ( 6 t + 3 ) / ( 6 t + 1 ) ) j ⌋ \lfloor\xi((6t+3)/(6t+1))^j\rfloor ⌊ ξ (( 6 t + 3 ) / ( 6 t + 1 ) ) j ⌋ is prime for 0 ≤ j < L 0\le j<L 0 ≤ j < L and the first term exceeds 6 t + 3 6t+3 6 t + 3 . Consequently there is no bound, uniform in t t t and in the initial prime, on the number of steps after which the program of Section C.3 halts.
Proof. This uses as an external input the theorem on narrow arithmetic progressions in the primes: for k ≥ 2 k\ge2 k ≥ 2 and δ > 0 \delta>0 δ > 0 , every subset A A A of the primes in [ 1 , Y ] [1,Y] [ 1 , Y ] with
∣ A ∣ ≥ δ Y / log Y |A|\ge\delta Y/\log Y ∣ A ∣ ≥ δ Y / log Y
contains, for all sufficiently large Y Y Y , a nontrivial k k k -term arithmetic progression whose common difference D D D satisfies
∣ D ∣ ≤ C k , δ ( log Y ) ( k − 1 ) 2 k − 2 |D|\le C_{k,\delta}(\log Y)^{(k-1)2^{k-2}} ∣ D ∣ ≤ C k , δ ( log Y ) ( k − 1 ) 2 k − 2
SHAO15, Theorem 1.3; the qualitative form, with an exponent depending on k k k and δ \delta δ only, is TZ14, Theorem 5 specialized to arithmetic progressions. (In [17 ] and [SHAO15] the letter L L L denotes the exponent; here L L L is the length k k k .) Take k = L k=L k = L and
A = { p prime : Y / 2 < p ≤ Y } ; A=\{p\text{ prime}:Y/2<p\le Y\}; A = { p prime : Y /2 < p ≤ Y } ;
by the prime number theorem
∣ A ∣ ≥ 1 3 Y / log Y |A|\ge\tfrac{1}{3}Y/\log Y ∣ A ∣ ≥ 3 1 Y / log Y
for large Y Y Y , so δ = 1 / 3 \delta=1/3 δ = 1/3 is admissible. The progression obtained lies in ( Y / 2 , Y ] (Y/2,Y] ( Y /2 , Y ] , so its least term P P P satisfies P > Y / 2 P>Y/2 P > Y /2 , all terms exceed 3 for large Y Y Y , and after reversing the order if necessary D > 0 D>0 D > 0 with
D ≤ C ( log Y ) ( L − 1 ) 2 L − 2 . D \le C(\log Y)^{(L-1)2^{L-2}}. D ≤ C ( log Y ) ( L − 1 ) 2 L − 2 .
Hence
P 48 L 2 D 2 → ∞ \frac{P}{48L^2D^2}\to\infty 48 L 2 D 2 P → ∞
as Y → ∞ Y\to\infty Y → ∞ , and Lemma 67 applies for large Y Y Y , giving
t = ( b − 1 ) / 6 ≥ ( P / D − 1 ) / 6 → ∞ . t=(b-1)/6\ge(P/D-1)/6\to\infty. t = ( b − 1 ) /6 ≥ ( P / D − 1 ) /6 → ∞.
The statement is
∀ L ∀ T ∃ t ≥ T ∃ ξ ; \forall L\ \forall T\ \exists t\ge T\ \exists\xi; ∀ L ∀ T ∃ t ≥ T ∃ ξ ;
it does not assert an infinite tail of primes for any base, and it does not contradict any halting statement for a fixed t t t . The implied constants and the threshold for Y Y Y in the external theorem are not explicit, so no explicit t t t is obtained this way. A narrow-progression theorem is essential: a progression with D D D comparable to P P P would not satisfy the hypothesis of Lemma 67.
Example (nine prime terms). With
t = 1654617 , a = 9927705 , b = 9927703 , t=1654617,\qquad a=9927705,\qquad b=9927703, t = 1654617 , a = 9927705 , b = 9927703 ,
ξ = 2084817839 / 2 , P = 1042408919 , D = 210 , \xi=2084817839/2,\qquad P=1042408919,\qquad D=210, ξ = 2084817839/2 , P = 1042408919 , D = 210 ,
one has
⌊ ξ ( a / b ) j ⌋ = P + 210 j \lfloor\xi(a/b)^j\rfloor=P+210j ⌊ ξ ( a / b ) j ⌋ = P + 210 j
for 0 ≤ j ≤ 8 0\le j\le8 0 ≤ j ≤ 8 , and these nine integers are prime, while
⌊ ξ ( a / b ) 9 ⌋ = 1042410809 = 11 ⋅ 94764619. \lfloor\xi(a/b)^9\rfloor=1042410809=11\cdot94764619. ⌊ ξ ( a / b ) 9 ⌋ = 1042410809 = 11 ⋅ 94764619.
The hypothesis
P > 48 ⋅ 81 ⋅ 210 2 = 171460800 P>48\cdot81\cdot210^2=171460800 P > 48 ⋅ 81 ⋅ 21 0 2 = 171460800
holds, and b b b is the integer ≡ 1 ( m o d 6 ) \equiv1\pmod{6} ≡ 1 ( mod 6 ) nearest to 2 P / D 2P/D 2 P / D . The integer parts were computed in exact rational arithmetic and the primes checked by trial division. This is not a counterexample to anything.
Return words as an obstruction
The following lemma is of the same type as Theorem 42 : it constructs a right-directed pseudo-orbit with non-eventually-periodic carries and applies Lemma 38 .
Lemma 69 (return-word obstruction). Let gcd ( m , a b ) = 1 \gcd(m,ab)=1 g cd( m , ab ) = 1 , q ∈ ( Z / m ) × q \in(\mathbb{Z}/m)^{\times} q ∈ ( Z / m ) × , and let U , V U,V U , V be carry words such that
(1) following
b z = a q ′ + c ( m o d m ) bz = aq' + c \pmod{m} b z = a q ′ + c ( mod m ) from q q q along each word, all residues are units and the last residue is q q q ;
(2) there is a closed interval I ⊂ ( 0 , 1 ) I \subset(0,1) I ⊂ ( 0 , 1 ) such that the backward maps
θ ↦ b θ + c a \theta\mapsto\frac{b\theta+c}{a} θ ↦ a b θ + c applied along each word from a point of I I I keep all values in ( 0 , 1 ) (0,1) ( 0 , 1 ) and map I I I into I I I ;
(3) U V ≠ V U UV \ne VU U V = V U ;
(4) every letter satisfies
gcd ( c , a b ) = 1 and c ≡ b − a ( m o d 2 ) . \gcd(c,ab)=1 \qquad\text{and} \qquad c \equiv b-a \pmod{2}. g cd( c , ab ) = 1 and c ≡ b − a ( mod 2 ) . Then for every M M M whose prime factors divide 2 a b m 2abm 2 abm there is a right-directed M M M -pseudo-orbit with non-eventually-periodic carries, and no execution of M 0 \mathcal{M}_0 M 0 (or of an extension by pseudo-orbit-sound operations) with all M t ∣ M M_t \mid M M t ∣ M succeeds.
Proof. (i) Prime powers of m m m . Let m ~ \widetilde{m} m be the least common multiple of m m m and the part of M M M composed of primes of m m m . For a word w w w of length ℓ \ell ℓ , the residue map
π w : x ↦ ( a / b ) ℓ x + C ( w ) / b ℓ \pi_w:x \mapsto(a/b)^\ell x+C(w)/b^\ell π w : x ↦ ( a / b ) ℓ x + C ( w ) / b ℓ
modulo m ~ \widetilde{m} m is an affine permutation ( p ∤ a b ) (p\nmid ab) ( p ∤ ab ) . Since π U ( q ) ≡ q ( m o d m ) \pi_U(q)\equiv q\pmod m π U ( q ) ≡ q ( mod m ) , π U \pi_U π U permutes the finite fibre
F = { x ∈ Z / m ~ : x ≡ q ( m o d m ) } , F=\{x\in\mathbb{Z}/\widetilde{m}:x\equiv q\pmod m\}, F = { x ∈ Z / m : x ≡ q ( mod m )} ,
and likewise π V \pi_V π V ; so for any x ^ ∈ F \widehat{x}\in F x ∈ F there are s , t ≥ 1 s,t\ge1 s , t ≥ 1 with
π U s ( x ^ ) = x ^ and π V t ( x ^ ) = x ^ . \pi_U^s(\widehat{x})=\widehat{x}
\qquad\text{and}\qquad
\pi_V^t(\widehat{x})=\widehat{x}. π U s ( x ) = x and π V t ( x ) = x .
Intermediate residues reduce modulo m m m to the units of (1), hence are units modulo m ~ \widetilde{m} m .
(ii) Non-commutation. If U s V t = V t U s U^sV^t=V^tU^s U s V t = V t U s , then U s U^s U s and V t V^t V t are powers of a common primitive word z z z ; since the primitive root of w k w^k w k is that of w w w , U U U and V V V are both powers of z z z and commute, contradicting (3).
(iii) Fractional parts. U , V U,V U , V map I I I into I I I , hence so do U s , V t U^s,V^t U s , V t , with all intermediate values in ( 0 , 1 ) (0,1) ( 0 , 1 ) . Concatenate the blocks X 0 = U s V t X_0=U^sV^t X 0 = U s V t and X 1 = V t U s X_1=V^tU^s X 1 = V t U s (of equal length and distinct) according to a binary sequence that is not eventually periodic; the nested closed intervals of the proof of Theorem 42 (each backward block map is a contraction with slope ( b / a ) ∣ X i ∣ (b/a)^{|X_i|} ( b / a ) ∣ X i ∣ ) define θ n \theta_n θ n for all n ≥ 0 n\ge0 n ≥ 0 with
a θ n − b θ n + 1 = c n a\theta_n-b\theta_{n+1}=c_n a θ n − b θ n + 1 = c n
exactly, and block decoding shows that the carries are not eventually periodic.
(iv) Primes dividing 2 a b 2ab 2 ab . For p ∣ a p\mid a p ∣ a , p ∣ b p\mid b p ∣ b , and p = 2 p=2 p = 2 with a , b a,b a , b odd, construct unit residues modulo p e p^e p e as in the proof of Theorem 42 , using (4). Combine all residues by the Chinese remainder theorem to a pseudo-orbit modulo m ~ ⋅ \widetilde{m}\cdot m ⋅ (the rest of M M M ) and reduce to M M M . Lemma 38 gives the conclusion. □`
Corollary 70 (explicit witnesses). (a) For 9 / 7 9/7 9/7 , with m = 715 = 5 ⋅ 11 ⋅ 13 m = 715 = 5 \cdot11 \cdot13 m = 715 = 5 ⋅ 11 ⋅ 13 , q = 713 q = 713 q = 713 , I = [ 1 / 5 , 3 / 10 ] I = [1/5, 3/10] I = [ 1/5 , 3/10 ] , and the words U , V U, V U , V of Table 14 , no execution of M 0 \mathcal{M}_0 M 0 whose moduli involve only the primes S 13 = { 2 , 3 , 5 , 7 , 11 , 13 } S_{13} = \{2, 3, 5, 7, 11, 13\} S 13 = { 2 , 3 , 5 , 7 , 11 , 13 } succeeds; in particular none with modulus dividing a power of 4290 4290 4290 .
(b) For 6 / 5 6/5 6/5 , with m = 17017 = 7 ⋅ 11 ⋅ 13 ⋅ 17 m = 17017 = 7 \cdot11 \cdot13 \cdot17 m = 17017 = 7 ⋅ 11 ⋅ 13 ⋅ 17 , q = 12854 q = 12854 q = 12854 , I = [ 9 / 10 , 49 / 50 ] I = [9/10, 49/50] I = [ 9/10 , 49/50 ] , and the words U , V U, V U , V of Table 15 , no execution whose moduli involve only the primes S 17 = { 2 , 3 , 5 , 7 , 11 , 13 , 17 } S_{17} = \{2, 3, 5, 7, 11, 13, 17\} S 17 = { 2 , 3 , 5 , 7 , 11 , 13 , 17 } succeeds.
Table 14. The 9 / 7 9/7 9/7 witness (m = 715 m = 715 m = 715 , q = 713 q = 713 q = 713 ). Residues are listed from q q q to the return.
Table 15. The 6 / 5 6/5 6/5 witness (m = 17017 m = 17017 m = 17017 , q = 12854 q = 12854 q = 12854 ); + + + and − - − denote the carries + 1 +1 + 1 and − 1 -1 − 1 .
Proof. The hypotheses of Lemma 69 are verified in exact arithmetic: the residue sequences of Tables 14–15 return to q q q through units; the backward images of the endpoints of I I I (sufficient, since the maps are increasing and affine) stay in ( 0 , 1 ) (0,1) ( 0 , 1 ) and land in I I I ; U V ≠ V U UV \ne VU U V = V U since the words have different lengths and neither is a prefix of the other’s period structure (for 9 / 7 9/7 9/7 , U U U and V V V differ at position 2; for 6 / 5 6/5 6/5 , at position 19); and all letters lie in C ( 9 , 7 ) = { − 4 , − 2 , 2 , 4 , 8 } \mathcal{C}(9,7) = \{-4,-2,2,4,8\} C ( 9 , 7 ) = { − 4 , − 2 , 2 , 4 , 8 } , respectively C ( 6 , 5 ) = { − 1 , 1 } \mathcal{C}(6,5) = \{-1,1\} C ( 6 , 5 ) = { − 1 , 1 } .
For 6 / 5 6/5 6/5 a shorter witness modulo 1001 1001 1001 (root 380 380 380 , I = [ 4 / 5 , 19 / 20 ] I = [4/5, 19/20] I = [ 4/5 , 19/20 ] , two words of length 27 27 27 ) also exists; the witness modulo 17017 17017 17017 suffices for (b). Examples of the lifting orders in step (i): for 9 / 7 9/7 9/7 modulo 715 ⋅ 55 715 \cdot55 715 ⋅ 55 one may take ( s , t ) = ( 10 , 20 ) (s,t) = (10,20) ( s , t ) = ( 10 , 20 ) , and modulo 715 ⋅ 169 715 \cdot169 715 ⋅ 169 , ( 26 , 52 ) (26,52) ( 26 , 52 ) ; for 6 / 5 6/5 6/5 modulo 17017 ⋅ 77 17017 \cdot77 17017 ⋅ 77 , ( 14 , 14 ) (14,14) ( 14 , 14 ) , and modulo 17017 ⋅ 289 17017 \cdot289 17017 ⋅ 289 , ( 136 , 136 ) (136,136) ( 136 , 136 ) .
As in § 8 , these are statements about the non-termination of the procedure. The residues q n q_n q n form a sequence of residue classes, not the integer parts of a single orbit. By Lemma 41 every finite window of the witness is realized by a true orbit with arbitrarily large coefficient, in the form ∀ N ξ ζ N \forall N\ \xi_{\zeta_N} ∀ N ξ ζ N ; this does not give a single ξ \xi ξ realizing the whole witness, and the realizing integers are not claimed to be prime, only coprime to the specified primes. Unlike Theorem 58 , no initial integer is fixed here, so the compactness argument does not apply.
Eliminating one return-word language with a further prime
Proposition 71. Let a = 9 a=9 a = 9 , b = 7 b=7 b = 7 , and let U , V U,V U , V be the words of Table 14 . Regard U U U and V V V as single edges and form the graph on the residues q ∈ { 1 , … , 16 } q\in\{1,\ldots,16\} q ∈ { 1 , … , 16 } modulo 17 17 17 with an edge q → w z q\xrightarrow{w}z q w z whenever following w w w from q q q modulo 17 17 17 keeps all residues, including the last, nonzero. The graph has exactly the twelve edges
4 → U 16 , 4 → V 16 , 5 → V 1 , 6 → V 4 , 8 → V 9 , 9 → U 9 , 10 → V 14 , 11 → U 13 , 11 → V 8 , 14 → U 2 , 15 → U 4 , 16 → V 12 , \begin{aligned}
&4\xrightarrow{U}16,\quad4\xrightarrow{V}16,\quad5\xrightarrow{V}1,\\
&6\xrightarrow{V}4,\quad8\xrightarrow{V}9,\quad9\xrightarrow{U}9,\\
&10\xrightarrow{V}14,\quad11\xrightarrow{U}13,\quad11\xrightarrow{V}8,\\
&14\xrightarrow{U}2,\quad15\xrightarrow{U}4,\quad16\xrightarrow{V}12,
\end{aligned} 4 U 16 , 4 V 16 , 5 V 1 , 6 V 4 , 8 V 9 , 9 U 9 , 10 V 14 , 11 U 13 , 11 V 8 , 14 U 2 , 15 U 4 , 16 V 12 , and with the ranks
rank ( 1 , … , 16 ) = ( 0 , 0 , 0 , 2 , 1 , 3 , 0 , 1 , 0 , 2 , 2 , 0 , 0 , 1 , 3 , 1 ) \operatorname{rank}(1,\ldots,16)=(0,0,0,2,1,3,0,1,0,2,2,0,0,1,3,1) rank ( 1 , … , 16 ) = ( 0 , 0 , 0 , 2 , 1 , 3 , 0 , 1 , 0 , 2 , 2 , 0 , 0 , 1 , 3 , 1 ) every edge other than the self-loop 9 → U 9 9\xrightarrow{U}9 9 U 9 strictly decreases the rank. Consequently there is no true orbit with ratio 9 / 7 9/7 9/7 all of whose terms are prime and whose carry sequence is an infinite concatenation of U U U and V V V .
Proof. The edge list and the rank inequalities are finite verifications. For an all-prime orbit, 17 ∤ Q n 17\nmid Q_n 17 ∤ Q n once Q n > 17 Q_n>17 Q n > 17 , so the residues Q n m o d 17 Q_n\bmod17 Q n mod 17 at block boundaries form an infinite walk in the graph. Since the rank strictly decreases on every edge except the self-loop, after finitely many blocks only 9 → U 9 9\xrightarrow{U}9 9 U 9 is used, and the carry sequence is eventually U ∞ U^\infty U ∞ , periodic with period 18, contradicting Lemma 4 . □
The edge table depends only on a m o d 17 a\bmod17 a mod 17 and b m o d 17 b\bmod17 b mod 17 , so the same twelve edges arise for every pair a ≡ 9 a\equiv9 a ≡ 9 , b ≡ 7 ( m o d 17 ) b\equiv7\pmod{17} b ≡ 7 ( mod 17 ) ; but U U U and V V V are return words only for 9 / 7 9/7 9/7 (for a = 111 a=111 a = 111 , b = 109 b=109 b = 109 , the word U U U from 713 modulo 715 does not return and meets a non-unit), so nothing is asserted for other members of the family. Proposition 71 eliminates the language generated by U U U and V V V ; it does not cover all carry sequences of 9 / 7 9/7 9/7 , and it does not imply that adding the prime 17 yields a certificate for 9 / 7 9/7 9/7 .
Explicit two-carry certificates, prime selection, and the whole-word interval test
Instances of Theorem 42 . For a / b = 101 / 2 a/b=101/2 a / b = 101/2 with R = 15 R=15 R = 15 (auxiliary primes 3, 5):
Δ = 99 , m = 1 , h = 30 , \Delta=99,\qquad m=1,\qquad h=30, Δ = 99 , m = 1 , h = 30 ,
c = 69 , gcd ( 69 , 202 ) = 1 ; c=69,\qquad\gcd(69,202)=1; c = 69 , g cd( 69 , 202 ) = 1 ;
the least admissible L L L is 0, with
x 0 = 23 / 33 , x 1 = 3379 / 3399 , x_0=23/33,\qquad x_1=3379/3399, x 0 = 23/33 , x 1 = 3379/3399 ,
I = [ 23 / 33 , 3379 / 3399 ] , and U = ( 69 ) , V = ( 99 , 69 ) . I=[23/33,3379/3399],\qquad\text{and}\qquad U=(69),\qquad V=(99,69). I = [ 23/33 , 3379/3399 ] , and U = ( 69 ) , V = ( 99 , 69 ) .
Hence no execution of M 0 \mathcal{M}_0 M 0 whose moduli involve only the primes { 2 , 3 , 5 , 101 } \{2,3,5,101\} { 2 , 3 , 5 , 101 } succeeds.
For a / b = 101 / 100 a/b=101/100 a / b = 101/100 with R = 21 R=21 R = 21 (primes 3, 7):
Δ = 1 , m = 1 , h = 42 , \Delta=1,\qquad m=1,\qquad h=42, Δ = 1 , m = 1 , h = 42 ,
c = − 41 , gcd ( 41 , 10100 ) = 1 ; c=-41,\qquad\gcd(41,10100)=1; c = − 41 , g cd( 41 , 10100 ) = 1 ;
the threshold is − c / b = 41 / 100 -c/b = 41/100 − c / b = 41/100 , and the least L L L with x L > 41 / 100 x_L > 41/100 x L > 41/100 , where
x L = 1 − 42 ⋅ 100 L 101 L + 1 − 100 L + 1 , x_L = 1 - \frac{42 \cdot100^L}{101^{L+1} - 100^{L+1}}, x L = 1 − 10 1 L + 1 − 10 0 L + 1 42 ⋅ 10 0 L ,
is L = 54 L = 54 L = 54 , so I = [ x 54 , x 55 ] I = [x_{54}, x_{55}] I = [ x 54 , x 55 ] with the words U = 1 54 ( − 41 ) U = 1^{54}(-41) U = 1 54 ( − 41 ) and V = 1 55 ( − 41 ) V = 1^{55}(-41) V = 1 55 ( − 41 ) . This example shows that negative carries are handled exactly.
For 5 / 2 5/2 5/2 with R = 1 R = 1 R = 1 :
Δ = 3 , m = 1 , h = 2 , c = 1 , L = 0 , \Delta= 3,\qquad m = 1,\qquad h = 2,\qquad c = 1,\qquad L = 0, Δ = 3 , m = 1 , h = 2 , c = 1 , L = 0 ,
U = ( 1 ) , V = ( 3 , 1 ) , U = (1),\qquad V = (3,1), U = ( 1 ) , V = ( 3 , 1 ) ,
which is the witness of Corollary 43 for this base.
Lemma 72 (primes producing a common nonzero translation). Let W = { w 1 , … , w s } W = \{w_1,\ldots,w_s\} W = { w 1 , … , w s } be nonempty words with lengths ℓ i \ell_i ℓ i and C i = C ( w i ) C_i = C(w_i) C i = C ( w i ) as in (9) , g = gcd ( ℓ 1 , … , ℓ s ) g = \gcd(\ell_1,\ldots,\ell_s) g = g cd( ℓ 1 , … , ℓ s ) , and
D = gcd ( a g − b g , C i b ℓ 1 − C 1 b ℓ i ( 2 ≤ i ≤ s ) ) . D = \gcd\left(a^g-b^g,\ C_i b^{\ell_1}-C_1b^{\ell_i}\ (2\leq i\leq s)\right). D = g cd( a g − b g , C i b ℓ 1 − C 1 b ℓ i ( 2 ≤ i ≤ s ) ) . For a prime p ∤ a b p\nmid ab p ∤ ab , the residue maps
F i ( q ) = a ℓ i q + C i b ℓ i F_i(q) = \frac{a^{\ell_i}q+C_i}{b^{\ell_i}} F i ( q ) = b ℓ i a ℓ i q + C i are all congruent modulo p p p to one and the same translation q ↦ q + τ q\mapsto q+\tau q ↦ q + τ with τ ≠ 0 \tau\ne0 τ = 0 if and only if p ∣ D p\mid D p ∣ D and p ∤ C 1 p\nmid C_1 p ∤ C 1 . In that case, no infinite concatenation of words of W W W survives the lift by p p p : the residues at block boundaries are q , q + τ , q + 2 τ , … q,q+\tau,q+2\tau,\ldots q , q + τ , q + 2 τ , … and vanish within p p p blocks.
Proof. The slope of F i F_i F i is ( a / b ) ℓ i (a/b)^{\ell_i} ( a / b ) ℓ i ; all slopes are 1 1 1 if and only if the order of a / b a/b a / b modulo p p p divides every ℓ i \ell_i ℓ i , hence divides g g g , that is, p ∣ a g − b g p\mid a^g-b^g p ∣ a g − b g .
The translations C i / b ℓ i C_i/b^{\ell_i} C i / b ℓ i coincide if and only if
C i b ℓ 1 ≡ C 1 b ℓ i ( m o d p ) , C_i b^{\ell_1}\equiv C_1b^{\ell_i}\pmod p, C i b ℓ 1 ≡ C 1 b ℓ i ( mod p ) ,
and the common translation is nonzero if and only if p ∤ C 1 p\nmid C_1 p ∤ C 1 (b b b being a unit). □
This eliminates only concatenations of W W W ; it removes a component only when all return words of the component lie in W W W . For the two-carry words U = Δ L c U=\Delta^L c U = Δ L c , V = Δ L + 1 c V=\Delta^{L+1}c V = Δ L + 1 c of Theorem 42 , g = 1 g=1 g = 1 and D ∣ a − b D\mid a-b D ∣ a − b ; if p ∣ Δ p\mid\Delta p ∣ Δ and p ∤ c p\nmid c p ∤ c , both words act as q ↦ q + c / b q\mapsto q+c/b q ↦ q + c / b . For 101 / 2 101/2 101/2 : D = 99 D=99 D = 99 , C 1 = 69 C_1=69 C 1 = 69 ; the prime 3 3 3 divides C 1 C_1 C 1 and does not work, while 11 11 11 gives the translation
τ = 69 ⋅ 2 − 1 ≡ 7 ( m o d 11 ) , \tau= 69\cdot2^{-1}\equiv7\pmod{11}, τ = 69 ⋅ 2 − 1 ≡ 7 ( mod 11 ) ,
so the two-word branching that survives 3 and 5 is eliminated by adding 11. For 5/2: D = 3 D = 3 D = 3 , and 3 plays the same role. When Δ ∈ { 1 , 2 } \Delta\in\{1,2\} Δ ∈ { 1 , 2 } , D ∣ 2 D \mid2 D ∣ 2 and no odd prime is obtained this way; this is a limitation of this particular mechanism.
Proposition 73 (whole-word interval test). For a macro edge with starting cell [ j / K , ( j + 1 ) / K ) [j/K,(j+1)/K) [ j / K , ( j + 1 ) / K ) and word c 0 ⋯ c ℓ − 1 c_0 \cdots c_{\ell-1} c 0 ⋯ c ℓ − 1 , define
( L 0 , U 0 , B 0 ) = ( j , j + 1 , K ) and (L_0,U_0,B_0) = (j,j+1,K) \qquad\text{and} ( L 0 , U 0 , B 0 ) = ( j , j + 1 , K ) and B i + 1 = b B i , B_{i+1} = bB_i, B i + 1 = b B i , L i + 1 = max ( 0 , a L i − c i B i ) , L_{i+1} = \max(0,aL_i-c_iB_i), L i + 1 = max ( 0 , a L i − c i B i ) , U i + 1 = min ( B i + 1 , a U i − c i B i ) . U_{i+1} = \min(B_{i+1},aU_i-c_iB_i). U i + 1 = min ( B i + 1 , a U i − c i B i ) . Then [ L i / B i , U i / B i ) [L_i/B_i,U_i/B_i) [ L i / B i , U i / B i ) is exactly the set of fractional parts after i i i letters of the real orbit segments starting in the cell with these carries. Hence rejecting a macro edge when L i ≥ U i L_i \ge U_i L i ≥ U i for some i i i (or when the final interval misses the target cell) is pseudo-orbit-sound: every pseudo-orbit, and in particular every true orbit, passing through the edge has exact fractional parts witnessing nonemptiness. The operation is not walk-sound, since (E3) expresses only the compatibility of two adjacent cells, and a path of length ≥ 2 \ge2 ≥ 2 in G ( M , K ) G(M,K) G ( M , K ) need not admit real fractional parts.
Proof. The map
θ ↦ ( a θ − c ) / b \theta\mapsto(a\theta-c)/b θ ↦ ( a θ − c ) / b
is an increasing affine bijection, so the image of [ L / B , U / B ) [L/B,U/B) [ L / B , U / B ) is
[ ( a L − c B ) / ( b B ) , ( a U − c B ) / ( b B ) ) , [(aL-cB)/(bB),(aU-cB)/(bB)), [( a L − c B ) / ( b B ) , ( a U − c B ) / ( b B )) ,
and intersecting with [ 0 , 1 ) [0,1) [ 0 , 1 ) gives the update; exactness follows by induction as in Proposition 57 . □
Whether adjoining this test changes the class of Theorem 37 is not determined here; an exploratory computation with it is not adopted, and the certificates of § 5 and Appendix § 17 do not use it. The witnesses of Theorem 42 and Lemma 69 pass this test at every intermediate time, which distinguishes them from spurious local paths.
Appendix F. The ratio 5/3
This appendix proves Theorem 1(iii). The certificate is a word-labelled certificate as in § 4 with one additional operation, the exact contraction of in-degree-one chains (Section F.2). Section F.4 shows that 5/3 belongs to the class F c e r t F_{\mathrm{cert}} F cert of § 7.4 , and Section F.5 records a companion obstruction for the primes up to 23. The verification of the finite calculation is described in § 9.5 .
The carry alphabet and the initial graph
Lemma 74. Let a = 5 a = 5 a = 5 , b = 3 b = 3 b = 3 . If Q n Q_n Q n and Q n + 1 Q_{n+1} Q n + 1 are odd and 3 ∤ Q n 3 \nmid Q_n 3 ∤ Q n , then
c n ∈ { − 2 , 2 , 4 } . c_n \in\{-2,2,4\}. c n ∈ { − 2 , 2 , 4 } . Hence ( H ) (H) ( H ) holds with
S 0 = { 2 , 3 } and C = { − 2 , 2 , 4 } . S_0 = \{2,3\} \qquad\text{and} \qquad C = \{-2,2,4\}. S 0 = { 2 , 3 } and C = { − 2 , 2 , 4 } .
Proof. By (6), − 2 ≤ c n ≤ 4 -2 \le c_n \le4 − 2 ≤ c n ≤ 4 . Since c n = 3 Q n + 1 − 5 Q n ≡ Q n + 1 + Q n ( m o d 2 ) c_n = 3Q_{n+1} - 5Q_n \equiv Q_{n+1} + Q_n \pmod{2} c n = 3 Q n + 1 − 5 Q n ≡ Q n + 1 + Q n ( mod 2 ) , the carry is even. If c n = 0 c_n = 0 c n = 0 , then 3 Q n + 1 = 5 Q n 3Q_{n+1} = 5Q_n 3 Q n + 1 = 5 Q n and 3 ∣ Q n 3 \mid Q_n 3 ∣ Q n . □
No condition modulo 5 is used, and the modulus of (2a) does not contain the prime 5. The general alphabet of § 7.1 is the same set: C ( 5 , 3 ) = { − 2 , 2 , 4 } C(5,3)=\{-2,2,4\} C ( 5 , 3 ) = { − 2 , 2 , 4 } .
With K = 3 K=3 K = 3 , the initial graph G 0 i n G^{\mathrm{in}}_0 G 0 in of Theorem 19 has the vertices j ∈ { 0 , 1 , 2 } j\in\{0,1,2\} j ∈ { 0 , 1 , 2 } and the six edges ( j , ( c ) , k ) (j,(c),k) ( j , ( c ) , k ) with c ∈ { − 2 , 2 , 4 } c\in\{-2,2,4\} c ∈ { − 2 , 2 , 4 } and
5 j − 3 ( k + 1 ) < 3 c < 5 ( j + 1 ) − 3 k 5j-3(k+1)<3c<5(j+1)-3k 5 j − 3 ( k + 1 ) < 3 c < 5 ( j + 1 ) − 3 k
listed in Table 16 .
Table 16. The six initial edges for 5 / 3 5/3 5/3 , K = 3 K=3 K = 3 , as pairs (carry, target cell).
Exact contraction of in-degree-one chains
Let G ′ = R ( G ) G'=R(G) G ′ = R ( G ) , with identical triples merged, and count in-degrees deg − ( v ) \deg^-(v) deg − ( v ) in G ′ G' G ′ . Let B − B^- B − consist of all vertices of G ′ G' G ′ with deg − ≥ 2 \deg^-\geq2 deg − ≥ 2 , together with one anchor (the least vertex) in every component that contains no such vertex. For v ∈ B − v\in B^- v ∈ B − and each in-edge e = ( u , w , v ) e=(u,w,v) e = ( u , w , v ) of v v v : while u ∉ B − u\notin B^- u ∈ / B − , take the unique in-edge ( u ′ , w ′ , u ) (u',w',u) ( u ′ , w ′ , u ) of u u u and replace w ← w ′ w w\leftarrow w'w w ← w ′ w , u ← u ′ u\leftarrow u' u ← u ′ . When first u ∈ B − u\in B^- u ∈ B − , record the macro edge ( u , w , v ) (u,w,v) ( u , w , v ) . The i n in in -contraction P − ( G ′ ) P^-(G') P − ( G ′ ) has vertex set B − B^- B − and the set of these macro edges. For a word-labelled graph H H H , let rev ( H ) \operatorname{rev}(H) rev ( H ) reverse every edge and the letter order of every word.
Lemma 75 (exact in-degree-one contraction). (a) The backward iteration terminates, every infinite walk of G ′ G' G ′ visits B − B^- B − infinitely often, and each segment of the walk between consecutive visits to B − B^- B − is a macro edge of P − ( G ′ ) P^-(G') P − ( G ′ ) , with the same word. Consequently, if G ′ ⊨ n 1 G'\models n_1 G ′ ⊨ n 1 , then P − ( G ′ ) ⊨ n 2 P^-(G')\models n_2 P − ( G ′ ) ⊨ n 2 , where n 2 n_2 n 2 is the first time at or after n 1 n_1 n 1 at which the covering walk visits B − B^- B − .
(b) If a cyclic SCC of rev ( G ) \operatorname{rev}(G) rev ( G ) satisfies (23) with h , λ , d h,\lambda,d h , λ , d , then it satisfies (23) in G G G with h ′ , λ ′ , d h',\lambda',d h ′ , λ ′ , d ,
h ′ ( x ) = − h ( x ) , λ s ′ = λ ( − s − 1 ) m o d d . h'(x)=-h(x),\qquad\lambda'_s=\lambda_{(-s-1)\bmod d}. h ′ ( x ) = − h ( x ) , λ s ′ = λ ( − s − 1 ) mod d . Hence, by Theorem 21 (a), a cyclic SCC of G G G passes the phase test if and only if it passes in rev ( G ) \operatorname{rev}(G) rev ( G ) , R ( rev ( G ) ) = rev ( R ( G ) ) R(\operatorname{rev}(G))=\operatorname{rev}(R(G)) R ( rev ( G )) = rev ( R ( G )) , and
rev ( P ( R ( rev ( G ) ) ) ) = P − ( R ( G ) ) . \operatorname{rev}(P(R(\operatorname{rev}(G))))=P^-(R(G)). rev ( P ( R ( rev ( G )))) = P − ( R ( G )) .
Proof. (a) Every vertex of G ′ G' G ′ has deg − ≥ 1 \deg^-\geq1 deg − ≥ 1 , by the argument of Lemma 14 (a), so a vertex outside B − B^- B − has exactly one in-edge. If the backward iteration did not terminate, it would visit only finitely many vertices of in-degree one and would enter a cycle Z Z Z of such vertices. The unique in-edge of every vertex of Z Z Z starts in Z Z Z , so no edge enters Z Z Z from the rest of its component C C C ; strong connectivity gives C = Z C=Z C = Z , and the anchor of C C C lies in B − ∩ Z B^-\cap Z B − ∩ Z : a contradiction. Similarly, suppose that an infinite walk ( v i , w i ) (v_i,w_i) ( v i , w i ) avoids B − B^- B − for i ≥ i 0 i\geq i_0 i ≥ i 0 . Then ( v i , w i , v i + 1 ) (v_i,w_i,v_{i+1}) ( v i , w i , v i + 1 ) is the unique in-edge of v i + 1 v_{i+1} v i + 1 for i ≥ i 0 i\geq i_0 i ≥ i 0 . Some vertex repeats, v i = v j v_i=v_j v i = v j with i 0 < i < j i_0<i<j i 0 < i < j , and v i , … , v j − 1 v_i,\ldots,v_{j-1} v i , … , v j − 1 form a cycle of in-degree-one vertices whose in-edges lie on the cycle; as before it is a whole component and contains an anchor, a contradiction.
Let i < j i<j i < j be consecutive visits to B − B^- B − . For i < k < j i<k<j i < k < j , the edge ( v k − 1 , w k − 1 , v k ) (v_{k-1},w_{k-1},v_k) ( v k − 1 , w k − 1 , v k ) is the unique in-edge of v k v_k v k . Starting from the in-edge ( v j − 1 , w j − 1 , v j ) (v_{j-1},w_{j-1},v_j) ( v j − 1 , w j − 1 , v j ) of v j ∈ B − v_j\in B^- v j ∈ B − , the backward iteration therefore passes through v j − 1 , … , v i + 1 v_{j-1},\ldots,v_{i+1} v j − 1 , … , v i + 1 and stops at v i v_i v i , recording the macro edge ( v i , w i ⋯ w j − 1 , v j ) (v_i,w_i\cdots w_{j-1},v_j) ( v i , w i ⋯ w j − 1 , v j ) . The walk of macro edges between the successive visits has the same output, and the covering statement follows as in Proposition 16 .
(b) Let ( v , rev ( w ) , u ) (v,\operatorname{rev}(w),u) ( v , rev ( w ) , u ) be an internal edge of the SCC in rev ( G ) \operatorname{rev}(G) rev ( G ) , so that h ( u ) ≡ h ( v ) + ∣ w ∣ ( m o d d ) h(u)\equiv h(v)+|w| \pmod d h ( u ) ≡ h ( v ) + ∣ w ∣ ( mod d ) and w ∣ w ∣ − 1 − i = λ ( h ( v ) + i ) ( m o d d ) w_{|w|-1-i}=\lambda(h(v)+i)\pmod d w ∣ w ∣ − 1 − i = λ ( h ( v ) + i ) ( mod d ) . Then h ′ ( v ) ≡ h ′ ( u ) + ∣ w ∣ h'(v)\equiv h'(u)+|w| h ′ ( v ) ≡ h ′ ( u ) + ∣ w ∣ , and for 0 ≤ i < ∣ w ∣ 0\le i<|w| 0 ≤ i < ∣ w ∣ ,
w i = λ ( h ( v ) + ∣ w ∣ − 1 − i ) ( m o d d ) = λ ( h ( u ) − 1 − i ) ( m o d d ) = λ ( h ′ ( u ) + i ) ( m o d d ) . w_i=\lambda(h(v)+|w|-1-i)\pmod d=\lambda(h(u)-1-i)\pmod d=\lambda(h'(u)+i)\pmod d. w i = λ ( h ( v ) + ∣ w ∣ − 1 − i ) ( mod d ) = λ ( h ( u ) − 1 − i ) ( mod d ) = λ ( h ′ ( u ) + i ) ( mod d ) .
The converse is the same computation applied to rev ( G ) \operatorname{rev}(G) rev ( G ) , since rev \operatorname{rev} rev is an involution. By Theorem 21 (a), passing the phase test does not depend on the choice of h h h among functions satisfying (19), so the test gives the same result in both graphs. Reversal preserves the strongly connected components and their cyclicity. Hence the retained components of G G G and rev ( G ) \operatorname{rev}(G) rev ( G ) coincide, and R ( rev ( G ) ) = rev ( R ( G ) ) R(\operatorname{rev}(G))=\operatorname{rev}(R(G)) R ( rev ( G )) = rev ( R ( G )) . In rev ( R ( G ) ) \operatorname{rev}(R(G)) rev ( R ( G )) out-degrees are in-degrees of R ( G ) R(G) R ( G ) , the same anchors are chosen, and the forward iteration of § 4.3 is the backward iteration above with reversed words. □
Part (a) is the in-direction counterpart of Lemma 15 and Proposition 16 . By part (b), the implementations compute P − ( R ( G ) ) P^{-}(R(G)) P − ( R ( G )) as “reverse, remove, out-contract, reverse back”; the graphs of Table 17 therefore rely on part (b) as well. The proofs below use part (a) for right-directed walks, and the Lean proof of Theorem 1(iii) checks the backward passes directly, without part (b).
The finite calculation
For 5 / 3 5/3 5/3 the stage map G k o u t = P ( R ( G k i n ) ) G^{\mathrm{out}}_k=P(R(G^{\mathrm{in}}_k)) G k out = P ( R ( G k in )) of Theorem 19 is replaced by a finite sequence of passes. A forward pass maps H H H to P ( R ( H ) ) P(R(H)) P ( R ( H )) , and a backward pass maps H H H to P − ( R ( H ) ) P^{-}(R(H)) P − ( R ( H )) . Each stage applies one forward pass and then repeats a backward pass followed by a forward pass, at most ten times or until such a round leaves the number of vertices unchanged. The stopping rule is a choice of computation, not part of the soundness argument.
Theorem 76 (two-direction finite success). Theorem 19 remains valid when each G k o u t G^{\mathrm{out}}_k G k out is obtained from G k i n G^{\mathrm{in}}_k G k in by any finite sequence of forward and backward passes.
Proof. In the proof of Theorem 19 , Proposition 13 and Proposition 16 give the passage from a covering of G k i n G^{\mathrm{in}}_k G k in to a covering of P ( R ( G k i n ) ) P(R(G^{\mathrm{in}}_k)) P ( R ( G k in )) from a later time. Proposition 13 and Lemma 75 (a) give the same passage for a backward pass. Composing finitely many passes preserves a covering from a later time, and the remaining steps of the proof are unchanged. □
The adopted execution uses K = 3 K=3 K = 3 , the alphabet of Lemma 74 , and the nine primes
p 1 , … , p 9 = 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31 , 37. p_1,\ldots,p_9=7,11,13,17,19,23,29,31,37. p 1 , … , p 9 = 7 , 11 , 13 , 17 , 19 , 23 , 29 , 31 , 37.
Table 17 lists its ten stages. The cyclic and certified columns refer to the first removal of each stage; the output columns refer to the graph after all passes of the stage. Edges are counted as distinct word-labelled triples. At stage 9 all 14920 cyclic SCCs of G 9 i n G^{\mathrm{in}}_9 G 9 in are certified, and the output graph is empty. No cell refinement, interval propagation, or floating-point pruning is used; the cell count remains 3.
Table 17 : The word method for 5 / 3 5/3 5/3 with K = 3 K = 3 K = 3 , C = { − 2 , 2 , 4 } C = \{-2, 2, 4\} C = { − 2 , 2 , 4 } , forward and backward passes. Uncertified vertices refer to the first removal; rounds counts the backward–forward rounds.
Without backward passes, that is, with the stage map of Theorem 19 , the same parameters give the input sizes of Table 18 , computed by implementation B only as a diagnostic, not as part of the certificate. The lift to the prime 37 was counted without being formed: it would have 313651296 vertices and 416687195 lifted edges (counted before identical triples are merged). With backward passes the largest input graph has 21077909 vertices. A direct product of the unit residues modulo R 53 R_{53} R 53 , the part of the modulus of (2a) prime to 6, with three cells would have
3 φ ( 247357937827 ) = 413857382400 3\varphi(247357937827) = 413857382400 3 φ ( 247357937827 ) = 413857382400
vertices; neither staged construction forms it.
Table 18 : Input sizes for 5 / 3 5/3 5/3 with and without backward passes. Entries marked * were counted but not formed; that edge count includes repeated triples.
Proof of Theorem 1(iii). Table 17 verifies the hypotheses of Theorem 76 with S 0 = { 2 , 3 } S_0 = \{2, 3\} S 0 = { 2 , 3 } , C = { − 2 , 2 , 4 } C = \{-2, 2, 4\} C = { − 2 , 2 , 4 } (Lemma 74 ), K = 3 K = 3 K = 3 , the nine primes 7, 11, 13, 17, 19, 23, 29, 31, 37, each distinct, coprime to 15, and not in S 0 S_0 S 0 , and an empty output graph at stage 9. Then (24) with
M = 6 ⋅ 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 ⋅ 37 = 1484147626962 (40) M = 6 \cdot7 \cdot11 \cdot13 \cdot17 \cdot19 \cdot23 \cdot29 \cdot31 \cdot37 = 1484147626962 \tag*{(40)} M = 6 ⋅ 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 ⋅ 37 = 1484147626962 (40)
is (2a).
Membership in the certifiable class
Put
R 53 = 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 ⋅ 37 = 247357937827. R_{53} = 7 \cdot11 \cdot13 \cdot17 \cdot19 \cdot23 \cdot29 \cdot31 \cdot37 = 247357937827. R 53 = 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 ⋅ 29 ⋅ 31 ⋅ 37 = 247357937827.
Corollary 77. 5 / 3 ∈ F c e r t 5/3 \in\mathcal{F}_{\mathrm{cert}} 5/3 ∈ F cert : every cyclic SCC of G ′ ( R 53 , 3 ) G^{\prime}(R_{53},3) G ′ ( R 53 , 3 ) passes the phase test.
Proof. The graph G ′ ( R 53 , 3 ) G^{\prime}(R_{53},3) G ′ ( R 53 , 3 ) uses the alphabet C ( 5 , 3 ) = { − 2 , 2 , 4 } \mathcal{C}(5,3)=\{-2,2,4\} C ( 5 , 3 ) = { − 2 , 2 , 4 } . Suppose that some infinite walk of it has an output that is not eventually periodic. Its cells give a walk of G 0 i n G_0^{\mathrm{in}} G 0 in with the same output. Its residues modulo each new prime are units at every time, so, by induction over the stages of Table 17 , each lift keeps a tail of the projected walk. Lemma 30 (for phase removal, contraction, and lifting, which are walk-sound) and Lemma 75 (a) keep a tail through every pass and every lift. The walk would survive in the empty output graph of stage 9, which is impossible. Hence every infinite walk inside a cyclic SCC of G ′ ( R 53 , 3 ) G^{\prime}(R_{53},3) G ′ ( R 53 , 3 ) has eventually periodic output, and Theorem 21 shows that each such SCC passes the phase test.
:::
This argument does not add in-contraction to the operations of § 7.2 ; it proves a property of the complete graph of the normal form directly, without forming its 413857382400 vertices. By the remark after Theorem 37 , the normal form yields the conclusion gcd ( Q n , 2 ⋅ 3 ⋅ 5 ⋅ R 53 ) > 1 \gcd(Q_n,2 \cdot3 \cdot5 \cdot R_{53})>1 g cd( Q n , 2 ⋅ 3 ⋅ 5 ⋅ R 53 ) > 1 infinitely often, whose prime set contains 5; Theorem 1(iii) is the stronger statement obtained from Lemma 74 and Table 17 .
The prime pool through 23
The return-word witness used here has
m = 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 = 7436429 , q = 3684006 , I = [ 2 / 5 , 1 / 2 ] , m = 7 \cdot11 \cdot13 \cdot17 \cdot19 \cdot23 = 7436429,\qquad q = 3684006,\qquad I = [2/5,1/2], m = 7 ⋅ 11 ⋅ 13 ⋅ 17 ⋅ 19 ⋅ 23 = 7436429 , q = 3684006 , I = [ 2/5 , 1/2 ] ,
and two words U , V U,V U , V over { − 2 , 2 , 4 } \{-2,2,4\} { − 2 , 2 , 4 } of lengths 119 and 134, recorded without abbreviation in supplement/computations/additional_obstructions/.
Corollary 78. For 5 / 3 5/3 5/3 , no execution of M 0 \mathcal{M}_0 M 0 , or of an extension by pseudo-orbit-sound operations, succeeds when all moduli are composed of primes in { 2 , 3 , 5 , 7 , 11 , 13 , 17 , 19 , 23 } \{2,3,5,7,11,13,17,19,23\} { 2 , 3 , 5 , 7 , 11 , 13 , 17 , 19 , 23 } , for any cell counts and prime powers. The same holds for executions that also use backward passes.
Proof. The data satisfy the hypotheses of Lemma 69 with ( a , b ) = ( 5 , 3 ) (a,b)=(5,3) ( a , b ) = ( 5 , 3 ) . A direct check, independent of any search graph, verifies condition (1) at 255 residues, including the starting residue of each word, condition (2) at the endpoints of I I I for all 253 suffixes (the backward maps are increasing affine maps), U V ≠ V U UV \ne VU U V = V U , and gcd ( c , 15 ) = 1 \gcd(c,15)=1 g cd( c , 15 ) = 1 , c ≡ 0 ( m o d 2 ) c \equiv0 \pmod{2} c ≡ 0 ( mod 2 ) for every letter. Lemma 69 gives the first statement. The pseudo-orbit it constructs gives a right-directed walk whose output is not eventually periodic at every stage, and Lemma 75 (a) keeps a tail of such a walk through a backward pass.
Thus any certificate of this kind for 5 / 3 5/3 5/3 uses at least one prime p ≥ 29 p \ge29 p ≥ 29 . The corollary does not show that 29 suffices, that 37 is necessary, or that the prime set of (2a) is minimal. Like the other results of § 8 , it concerns the non-termination of a procedure and is not a counterexample to any arithmetic statement.
Acknowledgments and disclosure of AI involvement
This project began with the author’s interest in Mills’ constant, the least real number A > 1 A > 1 A > 1 for which ⌊ A 3 n ⌋ \lfloor A^{3^n} \rfloor ⌊ A 3 n ⌋ is prime for every positive integer n n n . After learning that this least constant is irrational [SA25], the author asked GPT-6 Pro in ChatGPT (powered by GPT-6 Astra) to prove the stronger assertion that every Mills number is irrational. The author estimates having issued roughly five hundred prompts urging the system to continue and not give up. That exploration did not produce the requested proof. The author subsequently asked the AI to identify mathematically meaningful results suitable for a paper among the material obtained, and to write that paper. The present work grew out of that request; it does not resolve the original question about all Mills numbers.
The author thanks GPT-6 Astra, accessed as GPT-6 Pro in ChatGPT and also used in Codex, as the principal AI system in this work. The author also thanks Claude Fable 5.1 for limited assistance through Claude Code with some tasks during preparation of the paper when Codex’s weekly usage limit was reached. After the initial conjecture, all mathematical development, identification of results suitable for publication, proof attempts, computation programs, exposition, and Lean formalization were performed by AI systems. The author supplied no mathematically substantive instructions or advice for these tasks. The author’s requests for formalization and for an automated workflow in Codex, in which drafting agents and critic agents iterated before typesetting, specified tasks and a procedure without contributing mathematical content. These exchanges were automated critiques, not independent review by human mathematicians.
The author’s sole mathematical contribution to this process was the initial conjecture that every Mills number, not only the least one, is irrational. Beyond that conjecture, the author made no mathematical contribution and supplied no ideas for proofs, mathematical arguments, calculations, or mathematical assessment of the results. The author’s subsequent involvement consisted of nonmathematical requests to continue working, identify publishable material, write the paper, and produce Lean proofs, together with the decision to release the work. The author has personally confirmed that the Lean proofs are accepted by Lean; their coverage and trust assumptions are specified in § 9.4 . Readers should assess the arguments, reproducible computations, and formal artifacts themselves.
Version 3.0.0 adds the base 5/3. For this addition, the author proposed reversing the direction of the search: rather than trying to prove the statement for preselected bases, to look for bases that admit a finite certificate of the kind described here, and asked for further bases to be sought. GPT-6 Astra, accessed as GPT-6 Pro in ChatGPT, carried out this search and found the certificate for 5/3. It also developed the mathematics of Appendix F, including the contraction of chains of in-degree one, and wrote the first implementation of the computation. The second implementation, the Lean formalization of the 5/3 theorem, and the integration of the addition into this paper were carried out by AI through Claude Code. Apart from the proposal above, the author’s requests for this addition specified tasks without contributing mathematical content.
The author expects that research in which a human poses an initial question and AI carries out all subsequent mathematical or technical work will become increasingly common in mathematics and other disciplines, including cases in which the initiating human provides no substantive guidance. This is the author’s personal expectation, not a conclusion established by the mathematical results here. This account makes the provenance of the work, the contributions of the AI systems, and the limits of the author’s contribution explicit.
References
Yuri Odagiri: Independent Researcher
Email address: ixixizko@gmail.com