Plectis

Problem note

An Integral-Shift Criterion for Dyadic Tail Recurrences

Erdős #251 18 pp Browser-native mathematical notation

Précis

For any sequence obeying the dyadic recurrence with integer digits, a shift of length h is an integer exactly when one explicit multiple of the term is, and integrality then propagates to every later index; over the reals the contrapositive is an irrationality criterion. Applied to the prime-gap series, and conditional on a summability input the prime number theorem supplies but which is not formalised here, this makes the remaining obligation exact: cofinal non-integrality for every fixed h. Exact order-lattice and factorial-diagonal theorems then show that adaptive affine shifts and every fixed affine cylinder collapse rather than produce that obligation. These are scoped no-go results, not an irrationality proof; Erdős #251 stays open.

This paper owns the problem-specific exposition for Erdős #251: summation by parts, dyadic tail recurrences, integral-shift criteria, local certificates, order-lattice and factorial-diagonal structure, adaptive and fixed affine no-go theorems, and the remaining cofinal condition.

It is not authority for proof validity, which belongs to Lean source checked by the pinned kernel, or a solution to Erdős #251, which remains open.

Introduction

Let pnp_n denote the nnth prime. Erdős Problem #251 asks whether Π=n1pn2n\Pi=\sum_{n\ge1}\frac{p_n}{2^{\,n}} is irrational [1] . Bloom’s current catalogue record reproduces this question and labels it open, while explicitly warning that the status is the website owner’s present assessment and may omit relevant literature [13]. We therefore use the catalogue for numbering and current reported status only; the three original publications carry the mathematical claims. The problem is open. Numerically Π=2/2+3/4+5/8+7/16+11/32+=3.674643966\Pi=2/2+3/4+5/8+7/16+11/32+\cdots=3.674643966\ldots.

Throughout the formal development the primes are indexed from zero, so that p0(0)=2p^{(0)}_0=2, p1(0)=3p^{(0)}_1=3, p2(0)=5p^{(0)}_2=5, and the gaps are gi=pi+1(0)pi(0)g_i=p^{(0)}_{i+1}-p^{(0)}_i. In that indexing Π=i0pi(0)2i+1,\Pi=\sum_{i\ge0}\frac{p^{(0)}_i}{2^{\,i+1}} , which is the convention every statement below uses; we drop the superscript from here on. The first values are i0123456789pi2357111317192329gi1224242462\begin{array}{c|cccccccccc} i & 0&1&2&3&4 &5 &6 &7 &8 &9\\\hline p_i & 2&3&5&7&11&13&17&19&23&29\\ g_i & 1&2&2&4&2 &4 &2 &4 &6 &2 \end{array} so g0=1g_0=1 and every later gap is even, the primes after 22 being odd. A second normalisation with denominator 2i2^{\,i} also occurs, and at every finite horizon it is exactly twice this one, i=0n1pi2i=2i=0n1pi2i+1,\sum_{i=0}^{n-1}\frac{p_i}{2^{\,i}} =2\sum_{i=0}^{n-1}\frac{p_i}{2^{\,i+1}} , the . A factor of two does not change rationality, so no result below depends on the choice; the identity is stated so that the indexing cannot drift silently.

Notation.

={0,1,2,}\mathbb{N}=\{0,1,2,\ldots\} and >0={1,2,}\mathbb{N}_{>0}=\{1,2,\ldots\}. We write φ\varphi for Euler’s totient function, denq\operatorname{den}q for the denominator of a rational number qq written in lowest terms, dist(x,)\operatorname{dist}(x,\mathbb{Z}) for the distance from a real number xx to the nearest integer, and Irr(x)\operatorname{Irr}(x) for the assertion that xx is irrational. A rational number is called when it is the image of an integer. A sequence (an)(a_n) is when an+h=ana_{n+h}=a_n for every sufficiently large nn. A sum over an empty range of indices is zero.

Relation to prior work.

Erdős proved that npnk/n!\sum_n p_n^{k}/n! is irrational for every k1k\ge1 . The 1958 article gives the k=1k=1 proof on pp. 94–95 and says explicitly that the more complicated k>1k>1 proof is omitted. On page 103 of his 1988 problem paper he separately stated the fixed-denominator problem: he could not prove that npnk/2n\sum_n p_n^{k}/2^{n} is irrational for every k1k\ge1, and wrote that the case k=1k=1 was probably already very difficult. He also stated the variable-denominator expectation that n1pn/(g1gn)\sum_{n\ge1}p_n/(g_1\cdots g_n) is irrational whenever gn2g_n\ge2 and gn=o(pn)g_n=o(p_n) . The latter expectation is false: ChatGPT 5.4 Pro, orchestrated by Vjeko Kovač, constructs such a sequence (gn)(g_n) for which the sum is exactly 11  [14]. Under the stronger hypotheses that (gn)(g_n) is strictly increasing and gn=O(nlogkn)g_n=O(n\log^k n), Erdős had already classified the rational cases: rationality holds exactly when gn=qpn+1g_n=q p_n+1 eventually for one fixed integer q1q\ge1 . The endpoint q=1q=1 is included: if Gn=j=1n(pj+1)G_n=\prod_{j=1}^{n}(p_j+1), then pn/Gn=1/Gn11/Gnp_n/G_n=1/G_{n-1}-1/G_n, so the corresponding series telescopes to 11. The counterexample evades those hypotheses. It does not address the fixed-denominator dyadic series studied here. The current catalogue record still repeats this variable-denominator expectation without mentioning the counterexample [13]; its warning about possibly missing literature is therefore material here, not merely boilerplate.

There is also a genuinely adjacent proved dyadic theorem. If P(m)P(m) denotes the largest prime factor of mm, Erdős and Pomerance proved that m2𝟏{P(m)>P(m+1)}2m\sum_{m\ge2}\frac{\mathbf 1_{\{P(m)>P(m+1)\}}}{2^m} is irrational [3]. Erdős and Graham record the complementary indicator on p. 62: equality of the two largest prime factors is impossible for consecutive integers, so its series is 1/21/2 minus the displayed one and is irrational as well. This is a theorem about a bounded prime-factor comparison digit sequence, not the unbounded prime numerators in Π\Pi; it supplies nearby positive evidence without solving Problem #251.

Problem #251 also appears as the unproved declaration erdos_251 in the repository [15]. Its zero-based Lean sum starts with the zeroth prime over 202^0, so it is twice the displayed normalisation and has equivalent irrationality status, but it is not literally the same indexing; its proof is sorry. No priority is claimed for anything below.

The strategy.

The digits pnp_n grow, so the series is not a digit expansion in any bounded alphabet, and the standard rationality criteria for such expansions do not apply directly. The classical elementary criteria for series of this kind instead control irrationality through the growth of the denominators. Erdős and Straus named a sum k1/ak\sum_k 1/a_k over a strictly increasing sequence of positive integers an  ; for such a series the condition ak1/2ka_k^{1/2^k}\to\infty is sufficient for irrationality, and it is sharp, since shifted Sylvester sequences grow like C2kC^{2^{k}} for arbitrarily large CC and have rational reciprocal sum. Both statements and their attribution are recorded in the introduction of Kovač and Tao [7], who develop the elementary technology for such series much further. Splitting each term pi/2i+1p_i/2^{\,i+1} into pip_i copies of 2(i+1)2^{-(i+1)} writes Π\Pi as a sum of unit fractions, but with repetitions, and the denominators occurring in it are exactly the powers of two. Even ignoring the repetitions the growth hypothesis fails by every available margin, since (2n)1/2n1(2^{\,n})^{1/2^{\,n}}\to1, and every arithmetic constraint has to come from the numerators instead.

What replaces growth control is denominator control on the sequence of rescaled tails. Rationality of the sum turns out to be equivalent to an eventual integrality condition on differences of those tails, and that condition uses nothing about the numerators beyond the fact that they are integers. The condition does not by itself force the numerators to repeat: Proposition , applied to Kn=nK_n=n, produces the integer sequence κn=n1\kappa_n=n-1, which is unbounded and hence not eventually periodic, and whose dyadic sum n0κn2(n+1)\sum_{n\ge0}\kappa_n2^{-(n+1)} is zero.

Outline.

Section  replaces the primes by their consecutive gaps, the natural increments studied by prime-distribution theory. Summation by parts with the endpoint retained gives an exact finite identity, and the termwise relation vn=2un+1unv_n=2u_{n+1}-u_n between the gap terms and the prime terms makes the passage to the limit a matter of summability alone; the explicit polynomial prime bound supplies that summability inside the formal development. Section  rescales the tails of a dyadic series into a recurrence and develops it: the block identity, the integral-shift criterion, the collapse of every rational solution onto an eventually integral shift, its contrapositive over the reals, and a local obstruction that converts an infinite-tail condition into a single comparison of gaps. Section  shows that the tail constraint does not by itself make the coefficient sequence eventually periodic, and Section  states the remaining obligation. The pinned Lean 4 toolchain and Mathlib revision check the formal statements. The cited system paper identifies Lean 4 [8], while the Mathlib paper documents the library’s historical Lean 3-era architecture [9]; it is not authority for the current pinned revision. Linked phrases open the corresponding declaration at the pinned source revision c8e41c76b4ce.

Statement Status Treatment here
Irrationality of Π\Pi Open Not proved.
Finite prime-gap identity Proved here Theorem , with the endpoint retained.
Infinite prime-gap identity Lean-checked unconditionally Theorem , with summability discharged by the polynomial prime bound.
Prime-series/gap-series irrationality equivalence Lean-checked unconditionally Corollary .
Block identity for the tail recurrence Proved here Theorem .
Integral shift criterion Proved here; an equivalence Theorem .
Totient shift from an odd denominator Proved here Theorem .
Propagation of an integral shift Proved here Theorem .
Eventual integral shift for every rational-valued recurrence Lean-checked Theorem .
Rationality/integral-shift classification Lean-checked abstractly; an equivalence Theorem .
Finite-approximation gap Paper-level Elementary inference used in Proposition ; not a named Lean declaration at the pinned revision.
Actual prime gaps are unbounded and not eventually periodic Lean-checked Proposition .
Adjacent small-mismatch pair excludes simultaneous integrality Lean-checked Theorem .
Concrete prime-gap tail recurrence and rational-candidate bridge Paper-level recurrence; Lean-checked conditional bridge The rational candidate recurrence is unconditional; its representation of the actual scaled tail assumes non-irrationality.
Rationality alone forces periodic integer coefficients False Section , Proposition .
Cofinal adjacent small-mismatch hypothesis Proposed sufficient theorem Problem ; not proved.

marks a statement proved in the text; each such statement also carries a link to a Lean declaration where it appears below. marks a statement the pinned kernel accepts, in the exact sense fixed by the Status paragraph above. The modifier marks a statement proved for an arbitrary integer digit sequence rather than for the actual prime gaps. marks an unproved statement which, if proved, would give irrationality of Π\Pi.

Keywords. irrationality; prime gaps; dyadic series; summation by parts; Lean 4. MSC 2020. 11J72 (primary); 11N05, 68V20 (secondary).

Summation by parts, with the endpoint retained

Summation by parts trades a sequence for its consecutive differences. The form recorded here is exact: it carries no error term, it assumes nothing about the sequence, and it retains the endpoint term rather than absorbing it into an estimate. For a sequence PP of rational numbers and n0n\ge0 put D(P,n)=i=0n1P(i)2i+1,Δ(P,n)=i=0n1P(i+1)P(i)2i+1,D(P,n)=\sum_{i=0}^{n-1}\frac{P(i)}{2^{\,i+1}}, \qquad \Delta(P,n)=\sum_{i=0}^{n-1}\frac{P(i+1)-P(i)}{2^{\,i+1}} , both empty, hence zero, at n=0n=0. We call these the and the of PP.

Proof. A routine induction on nn. At n=0n=0 both sides equal P(0)/2P(0)/2. For the step, adding P(n+1)/2n+2P(n+1)/2^{\,n+2} to the left and (P(n+1)P(n))/2n+1\bigl(P(n+1)-P(n)\bigr)/2^{\,n+1} to the difference sum changes the endpoint term from P(n)/2n+1P(n)/2^{\,n+1} to P(n+1)/2n+2P(n+1)/2^{\,n+2}, and the two adjustments agree. ◻

Formalised as the . Nothing is assumed about PP: no positivity, no monotonicity, and no convergence.

Specialising to P(i)=piP(i)=p_i, whose first value is p0=2p_0=2, and writing gi=pi+1pig_i=p_{i+1}-p_i for the zero-based gaps, gives the reformulation.

Formalised as the , using the and the ; the latter records that the natural-number difference pn+1pnp_{n+1}-p_n agrees with the difference taken in \mathbb{Q}, which needs pnpn+1p_n\le p_{n+1}, the . The leading 22 is the first prime, not a normalising constant. At n=2n=2, for instance, the left side is 2/2+3/4+5/8=19/82/2+3/4+5/8=19/8 and the right side is 2+(1/2+2/4)5/8=19/82+(1/2+2/4)-5/8=19/8.

The infinite identity and the irrationality equivalence

Write un=pn2n+1,vn=gn2n+1u_n=\frac{p_n}{2^{\,n+1}},\qquad v_n=\frac{g_n}{2^{\,n+1}} for the terms of the prime series and of the gap series, so that n0un=Π\sum_{n\ge0}u_n=\Pi. The termwise identity vn=2un+1unv_n=2u_{n+1}-u_n is the . It expresses each gap term as an integer combination of two consecutive prime terms, so once (un)(u_n) is summable the gap series can be summed by rearranging two copies of the prime series, which is what the following proof does.

Proof. The shifted sequence (un+1)(u_{n+1}) is summable. Sum vn=2un+1unv_n=2u_{n+1}-u_n and use u0=1u_0=1: n0vn=2(n0unu0)n0un=n0un2.\sum_{n\ge0}v_n =2\left(\sum_{n\ge0}u_n-u_0\right)-\sum_{n\ge0}u_n =\sum_{n\ge0}u_n-2 . ◻

The summability transfer is the , and the displayed identity is the .

These are the , the , and the .

The summability hypothesis.

The formal source now proves the elementary polynomial bound pn1250(n+1)4p_n\le1250(n+1)^4, using prime counting and central-binomial growth, and deduces summability directly (, ). Thus Theorem  and Corollary  are now unconditional Lean-checked statements; the prime number theorem remains useful context but is no longer a proof dependency of this note. The open content is exactly irrationality of the prime-gap series. Concretely, Π=3.674643966\Pi=3.674643966\ldots is irrational if and only if n0gn2(n+1)=1.674643966\sum_{n\ge0}g_n2^{-(n+1)}=1.674643966\ldots is, and neither is known.

The tail recurrence and integral shifts

The series is not attacked directly. Suppose i0ai2(i+1)\sum_{i\ge0}a_i2^{-(i+1)} converges, with every aia_i an integer, and rescale its tails by putting TN=2N+1i>Nai2i+1=j1aN+j2j.T_N=2^{\,N+1}\sum_{i>N}\frac{a_i}{2^{\,i+1}} =\sum_{j\ge1}\frac{a_{N+j}}{2^{\,j}} . Two facts follow immediately. First TN+1=2TNaN+1T_{N+1}=2T_N-a_{N+1}, so moving one level along doubles the rescaled tail and subtracts a single coefficient. Second T0=2i0ai2(i+1)a0T_0=2\sum_{i\ge0}a_i2^{-(i+1)}-a_0, so the sum is rational exactly when T0T_0 is. The whole of Section  therefore studies that recurrence in isolation, assuming nothing about the coefficients beyond the fact that they are integers; the prime-gap instance is resumed at the end of the section. The following definition is the object so obtained, stripped of its origin.

These are the , the , and . The digits are arbitrary integers. In the intended instance they are the prime gaps and TNT_N is the scaled tail of Π\Pi after level NN, but that instantiation needs a summability argument and is not made here; every statement below is a theorem about Definition .

One small orbit, referred to again below, is worth having in view. Take every digit gN=0g_N=0 and T0=1/12T_0=1/12. Then TN+1=2TNT_{N+1}=2T_N, so the orbit is 112,16,13,23,43,\tfrac1{12},\tfrac16,\tfrac13,\tfrac23,\tfrac43,\ldots, and σh(N)=(2h1)2N/12\sigma_h(N)=(2^{h}-1)2^{\,N}/12. The shift of length 22 is not integral at N=0N=0, where σ2(0)=13112=14\sigma_2(0)=\tfrac13-\tfrac1{12}=\tfrac14, and is integral at N=2N=2, where σ2(2)=4313=1\sigma_2(2)=\tfrac43-\tfrac13=1; the shift of length 11 is σ1(N)=2N/12\sigma_1(N)=2^{\,N}/12 and is never integral. The change at N=2N=2 is accounted for by Theorem , and the failure at h=1h=1 by Theorem .

Iterating the recurrence hh times multiplies TNT_N by 2h2^{h} and accumulates an explicit integer, which we now name. Define B0,N=0B_{0,N}=0 and Bh+1,N=2Bh,N+gN+h+1B_{h+1,N}=2B_{h,N}+g_{N+h+1}, so that Bh,N=gN+12h1++gN+hB_{h,N}=g_{N+1}2^{\,h-1}+\cdots+g_{N+h}: the . Thus B1,N=gN+1B_{1,N}=g_{N+1}, B2,N=2gN+1+gN+2B_{2,N}=2g_{N+1}+g_{N+2} and B3,N=4gN+1+2gN+2+gN+3B_{3,N}=4g_{N+1}+2g_{N+2}+g_{N+3}: the block puts the weights 2h1,,202^{\,h-1},\ldots,2^{0} on the hh digits following index NN.

Proof. A routine induction on hh; the step is one application of the recurrence together with 22h=2h+12\cdot2^{h}=2^{h+1} and the recursion defining BB. The second identity is the first minus TNT_N. ◻

Formalised as the and the . The shift also obeys the recurrence in its own right, σh(N+1)=2σh(N)(gN+h+1gN+1)\sigma_h(N+1)=2\sigma_h(N)-(g_{N+h+1}-g_{N+1}), the .

Since Bh,NB_{h,N} is an integer, Theorem  converts a question about the shift into a question about the single scaled term (2h1)TN(2^{h}-1)T_N.

Proof. By Theorem  the two differ by the integer Bh,NB_{h,N}, and subtracting an integer does not change integrality. ◻

Formalised as the , on the . This is an equivalence, not a one-way reduction: the block carries no information about integrality, so the two conditions are the same condition. Informally, once TNT_N is fixed no choice of the digits after index NN can change whether the shift σh(N)\sigma_h(N) is an integer; that is decided by the denominator of TNT_N alone.

The denominator criterion is exact: σh(N)den(TN)2h1.\sigma_h(N)\in\mathbb{Z} \quad\Longleftrightarrow\quad \operatorname{den}(T_N)\mid 2^h-1. \tag{3.4}\label{eq:shift-denominator} This is the . Euler’s totient supplies one admissible shift length when the denominator is odd; it is a witness, not the classification itself.

Proof. Since dd is odd, 22 and dd are coprime, so Euler’s congruence gives 2φ(d)1(modd)2^{\varphi(d)}\equiv1\pmod d, that is d2φ(d)1d\mid 2^{\varphi(d)}-1. Writing 2φ(d)1=dk2^{\varphi(d)}-1=dk and TN=u/dT_N=u/d in lowest terms, (2φ(d)1)TN=ku(2^{\varphi(d)}-1)T_N=ku is an integer, and Theorem  transfers this to the shift. ◻

Formalised as the and the . For example, if denTN=3\operatorname{den}T_N=3 then φ(3)=2\varphi(3)=2 and (221)TN=3TN(2^{2}-1)T_N=3T_N is an integer, so σ2(N)\sigma_2(N) is integral, while (211)TN=TN(2^{1}-1)T_N=T_N is not; if denTN=5\operatorname{den}T_N=5 then φ(5)=4\varphi(5)=4 and σ4(N)\sigma_4(N) is integral.

The hypothesis is a genuine restriction: the argument uses coprimality of 22 with the denominator, and the even part of a denominator is exactly what the doubling in the recurrence acts on. It cannot be dropped. If TN=1/2T_N=1/2 then 2h12^{h}-1 is odd for every h1h\ge1, so (2h1)TN(2^{h}-1)T_N is never an integer and, by Theorem , no shift at NN is integral.

Proof. By the shift step identity, σh(N+1)=2σh(N)(gN+h+1gN+1)\sigma_h(N+1)=2\sigma_h(N)-(g_{N+h+1}-g_{N+1}) is an integer combination of an integer and two digits; induct on kk. ◻

Formalised as the and the .

The three preceding theorems combine as follows, and this is the statement the rest of the note rests on. The special case is immediate: if denT0\operatorname{den}T_0 is already odd, then Theorem  at N=0N=0 makes the shift of length φ(denT0)\varphi(\operatorname{den}T_0) integral and Theorem  keeps it integral at every later index, so one may take N0=0N_0=0. In general a denominator carries a power of two as well, and the key point is that the doubling in the recurrence annihilates exactly the 22-adic part of a denominator, and nothing else: after finitely many steps the orbit therefore reaches a term with odd reduced denominator, which is precisely the situation Theorem  handles. No control of the digits is needed anywhere.

Proof. At every step the reduced denominator obeys the exact recurrence den(TN+1)=den(TN)gcd(2,den(TN)).\operatorname{den}(T_{N+1}) =\frac{\operatorname{den}(T_N)}{\gcd(2,\operatorname{den}(T_N))}. Thus each even denominator loses exactly one factor of 22, while an odd denominator is unchanged. After finitely many steps the denominator is odd. Theorem , applied at that index ss, supplies the positive shift h=φ(denTs)h=\varphi(\operatorname{den}T_s), and Theorem  keeps that shift integral at every later index. ◻

The one-step formula is the , with its and .

In the orbit displayed after Definition  the proof runs as follows: denT0=12=223\operatorname{den}T_0=12=2^{2}\cdot3, so s=2s=2, the orbit reaches T2=1/3T_2=1/3 with odd denominator, and h=φ(3)=2h=\varphi(3)=2. That is exactly the shift length seen to be integral there from index 22 onwards, and no shorter one works.

Three features of the argument are used later. The proof may take as its number of preparatory steps the 22-adic valuation of denT0\operatorname{den}T_0. The resulting shift length hh is the totient of the odd denominator reached from a hypothetical rational initial value, and is not known in advance for the prime-gap orbit. This is why this argument requires Problem  for every hh, rather than for one preassigned shift length. Finally, the digits enter only through the integer Bs,0B_{s,0}, so the conclusion holds for an arbitrary integer digit sequence.

In the current formal source, denominator factorisation and cancellation are packaged directly in the , and the quantified conclusion is the for the actual prime-gap tail state.

The useful contrapositive is stated for a real recurrence. Call its shifts when, for every fixed h1h\ge1 and every threshold N0N_0, some NN0N\ge N_0 has σh(N)\sigma_h(N)\notin\mathbb{Z}. This is precisely the negation of the conclusion of Theorem : no shift length whatever becomes integral and stays integral.

Proof. For (i)\Rightarrow(iii), choose qq\in\mathbb{Q} whose real cast is T0T_0. The real block identity identifies the whole orbit with the cast of the rational recurrence starting at qq; Theorem  applied to that rational orbit then gives (iii). The implication (iii)\Rightarrow(ii) is immediate. For (ii)\Rightarrow(i), the real block identity gives σh(N)=(2h1)TNBh,N.\sigma_h(N)=(2^h-1)T_N-B_{h,N}. Here Bh,NB_{h,N} and σh(N)\sigma_h(N) are integers and 2h102^h-1\ne0, so TNT_N is rational. Iterating the recurrence backwards through the block identity then makes T0T_0 rational. Negating the pointwise and eventual forms gives the two irrationality formulations. ◻

Lean checks the rational actual-tail state as , its , and the bridge from a hypothetical rational value to that state as . The exact real classifiers are , , , and .

The actual prime-gap orbit.

Define, at paper level, 𝒯N=j1gN+j2j.\mathcal T_N=\sum_{j\ge1}\frac{g_{N+j}}{2^j}. The Lean-checked polynomial prime bound gives convergence. A paper-level index shift, justified by that convergence, gives 𝒯N+1=2𝒯NgN+1.\mathcal T_{N+1}=2\mathcal T_N-g_{N+1}. If G=n0gn/2n+1G=\sum_{n\ge0}g_n/2^{n+1}, then 𝒯0=2Gg0=2G1=2.349287932\mathcal T_0=2G-g_0=2G-1=2.349287932\ldots. Together with Theorem , this shows that Π\Pi, GG, and 𝒯0\mathcal T_0 have the same rationality status. Thus Theorem  identifies Problem #251 exactly with cofinal shift escape for 𝒯\mathcal T. Lean checks the rational candidate recurrence unconditionally and, under non-irrationality of the series, its representation of every scaled real tail. The displayed recurrence for 𝒯\mathcal T is the elementary index-shift deduction above. What is not proved is the cofinal non-integrality needed by Theorem .

Two adjacent small shifts cannot both be integral

The exact classifier reduces irrationality to cofinal non-integrality, a condition of infinite precision imposed on a complete tail. The key point is that inside the open interval (1,1)(-1,1) integrality is equality with zero, so on that range the one-step shift recurrence σh(N+1)=2σh(N)(gN+h+1gN+1)\sigma_h(N+1)=2\sigma_h(N)-\bigl(g_{N+h+1}-g_{N+1}\bigr) turns simultaneous integrality of two adjacent shifts into a single comparison of digits. What this buys is a : a condition attached to a single pair of adjacent indices, whose verification already contradicts integrality at that pair. The point of arranging the argument this way is that the distance of a shift from the integers never has to be estimated; it suffices to know that both shifts lie in (1,1)(-1,1) and that two digits differ.

Proof. An integral rational strictly between 1-1 and 11 is zero. If both shifts were integral, both would therefore vanish, and substitution in the displayed shift step identity would give gN+h+1=gN+1g_{N+h+1}=g_{N+1}, a contradiction. The cofinal statement chooses one such adjacent pair after the alleged onset of integrality. ◻

The finite contradiction is the ; its quantified form is the ; and the actual-prime-gap specialisation is the . Theorem  is conditional on its two tail inequalities; no theorem asserting that such pairs occur is claimed here.

All three are stated for a rational orbit, while the prime-gap tail 𝒯\mathcal T of Section  is real, so the rational statement does not on its own discharge the instances that arise downstream. The same argument gives the real form directly.

Proof. The real recurrence gives the same shift step identity σh(N+1)=2σh(N)(gN+h+1gN+1)\sigma_h(N+1)=2\sigma_h(N)-\bigl(g_{N+h+1}-g_{N+1}\bigr), and an integer strictly between 1-1 and 11 is zero. If both shifts lay in \mathbb{Z}, both would therefore vanish, and substitution in that identity would give gN+h+1=gN+1g_{N+h+1}=g_{N+1}, a contradiction. The cofinal statement chooses one such adjacent pair after the alleged onset of integrality. ◻

Corollary  is proved here and is not a declaration in the pinned Lean module, whose small-shift theorems are stated for the rational orbit. It is the form that applies to the real tail, and it carries the same two unproved inequalities as its rational counterpart.

The third hypothesis, on its own, is available. For the actual gaps tabulated in Section  it reads g4=24=g3g_4=2\ne4=g_3 at h=1h=1, N=2N=2; and Proposition  below says precisely that for each fixed h1h\ge1 the inequality gN+h+1gN+1g_{N+h+1}\ne g_{N+1} holds for arbitrarily large NN, since its failure from some index onwards is eventual periodicity with period hh. What is missing is the pair of inequalities, each of which constrains a complete infinite tail.

Proof. The gaps are unbounded, by the standard construction: the interval from n!+2n!+2 to n!+nn!+n contains no prime. Far stronger lower bounds for large gaps are known [6], but unboundedness is all that is needed. An eventually periodic natural-valued sequence has finite range after its preperiod, while its finite initial segment is bounded as well; hence it is bounded, a contradiction. ◻

Lean checks the factorial argument as and the conclusion as . Combining nonperiodicity with eventual strict smallness of one positive shift would also exclude eventual integrality, but eventual smallness at every sufficiently large index is stronger than the cofinal adjacent-pair hypothesis in Theorem  and is not asserted here.

Nonperiodic coefficients with a rational sum

Proposition  shows that the prime gaps are not eventually periodic. One might therefore hope that rationality of a dyadic series forces its integer coefficients to be eventually periodic, and play the two against each other. The hoped-for implication is false, and a single explicit sequence refutes it.

The construction runs the emission of coefficients backwards. Let K:K:\mathbb{N}\to\mathbb{Q} be arbitrary, read KnK_n as the value carried into level nn, and put κn=2KnKn+1\kappa_n=2K_n-K_{n+1}: the . That definition is exactly the statement that Kn2n=κn2n+1+Kn+12n+1,\frac{K_n}{2^{\,n}} =\frac{\kappa_n}{2^{\,n+1}}+\frac{K_{n+1}}{2^{\,n+1}} , so at each level the carried value splits into one emitted coefficient and a new carry. Nothing at all is assumed about KK: not integrality, not positivity, not any bound. That is the sense in which the carry is free, and it is what the counterexample below exploits.

Proof. A routine induction on nn; the added term is (2KnKn+1)/2n+1=Kn/2nKn+1/2n+1(2K_n-K_{n+1})/2^{\,n+1}=K_n/2^{\,n}-K_{n+1}/2^{\,n+1}. ◻

Formalised as the , on the . When KK takes natural-number values and Kn+12KnK_{n+1}\le2K_n for every nn, the coefficients κn\kappa_n are natural numbers as well, and the natural-number and rational readings of the definition agree under the cast, the .

Consequence for the coefficients.

If Kn2n0K_n2^{-n}\to0, the emitted partial sums converge to K0K_0. A parity-compatible positive example is K0=52,Kn=2n+2(n1),κ0=1,κn=2n(n1),K_0=\frac52,\qquad K_n=2n+2\ (n\ge1),\qquad \kappa_0=1,\quad\kappa_n=2n\ (n\ge1), for which i=0n1κi2i+1=52Kn2n52.\sum_{i=0}^{n-1}\frac{\kappa_i}{2^{\,i+1}} =\frac52-\frac{K_n}{2^n}\longrightarrow\frac52. Thus the emitted coefficients 1,2,4,6,8,10,1,2,4,6,8,10,\ldots are positive, even after the first term, unbounded and not eventually periodic, although their dyadic sum is rational. Rationality alone therefore cannot imply eventual periodicity even for a positive, parity-correct integer coefficient sequence. The example does not claim that these coefficients are prime gaps; it isolates the additional arithmetic information any successful argument must use.

Complements and further questions

Problem #251 is open. The public Lean source now proves unconditional convergence of both dyadic series, their exact infinite summation-by-parts identity, and the real-to-rational scaled-tail representation (, ). It also proves that every rational candidate supplies one positive fixed shift which is integral at every sufficiently late tail index (). The denominator construction selects that same shift so that prime-gap nonperiodicity also rules out its eventual confinement to the open unit interval (). This conclusion is compatible with rationality: it says that the rationally forced shift cannot support an eventual-smallness contradiction. It supplies neither eventual smallness nor cofinally many adjacent small mismatches for that shift. The remaining issue is recurrence or anti-concentration of the prime-gap shifts. Throughout, gi=pi+1pig_i=p_{i+1}-p_i are the zero-based prime gaps of Section . Write 𝖤(h)\mathsf E(h) for the cofinal escape statement in  at shift hh.

This is the weaker recurrence-level target suggested by the denominator mechanism: a hypothetical rational value produces an eventually integral fixed shift, and the tail-shift cocycle propagates integrality forward and through positive multiples of that shift. Forward propagation is Lean-checked; the short multiple-in-shift closure is an elementary paper-level derivation and has not yet been given a named declaration. Accordingly this problem is presented as a sharper proposed criterion, not as a formally registered equivalence.

The series in  is exactly 𝒯N+h𝒯N\mathcal T_{N+h}-\mathcal T_N. Theorem  makes Problem  equivalent to irrationality of Π\Pi. This all-shifts form is pointwise stronger than the sufficient target in Problem : a hypothetical rational value chooses a shift length from the odd part of its reduced denominator, and one needs only hit a compatible multiple rather than escape at every prescribed hh.

The two sums are adjacent hh-shifts. Corollary  turns each instance of  into a finite contradiction to simultaneous integrality; Theorem  is the Lean-checked rational case. A cofinal family of such pairs therefore proves Problem ; Theorem  then gives irrationality of the gap series, and Corollary  transfers it to Π\Pi. This formulation deliberately asks only for sporadic adjacent pairs; the stronger assertion that a fixed shift is eventually always smaller than one is unnecessary.

Several natural prime-distribution inputs are insufficient. Isolated small gaps, isolated large gaps, average gap estimates, and the occurrence of any one fixed finite pattern do not suffice: both inequalities in contain the complete infinite continuation. Nor does parity: after the first gap all gng_n are even. Unboundedness and non-eventual-periodicity of the actual gaps, though now checked, do not imply the required small-tail recurrence. In particular, Section  shows that no argument can deduce eventual periodicity from rationality alone.

A finite truncation criterion.

Both problems above are stated in terms of infinite tails, but a dominated truncation reduces the first of them to a finite quantity. For L1L\ge1 put Sh,N,L=j=1LgN+h+jgN+j2j,S_{h,N,L}=\sum_{j=1}^{L} \frac{g_{N+h+j}-g_{N+j}}{2^j}, the truncation of the series in  after LL terms. This is a finite sum of gap differences and can be computed; the point of the following proposition is to say how far from an integer it must be before the discarded tail is irrelevant.

Equivalently, introduce the integral dyadic block Dh,N,L=j=1L2Lj(gN+h+jgN+j),Sh,N,L=Dh,N,L2L.D_{h,N,L}=\sum_{j=1}^{L}2^{L-j} (g_{N+h+j}-g_{N+j}),\qquad S_{h,N,L}=\frac{D_{h,N,L}}{2^L}. Then dist(Sh,N,L,)=2Lmin{Dh,N,Lmod2L,2L(Dh,N,Lmod2L)}.\operatorname{dist}(S_{h,N,L},\mathbb{Z}) =2^{-L}\min\{D_{h,N,L}\operatorname{mod}2^L, 2^L-(D_{h,N,L}\operatorname{mod}2^L)\}. Here Dh,N,Lmod2LD_{h,N,L}\operatorname{mod}2^L denotes the least nonnegative residue, including when Dh,N,L<0D_{h,N,L}<0. Thus the finite criterion below is an exact modular small-arc problem: the residue of Dh,N,LD_{h,N,L} must avoid the two arcs of radius 2LRh,N,L(M)2^LR_{h,N,L}(M) around 00 modulo 2L2^L. A one-block certificate would be a prime-gap theorem producing such an avoided arc on a logarithmic block.

Proof. The part of j1(gN+h+jgN+j)2j\sum_{j\ge1}(g_{N+h+j}-g_{N+j})2^{-j} omitted from Sh,N,LS_{h,N,L} has absolute value at most Rh,N,L(M)R_{h,N,L}(M), so under  the full sum lies at positive distance from every integer. ◻

The last distance-to-integers inference is the elementary paper argument in the displayed proof: an error at most RR cannot reach an integer when the approximation is farther than RR from every integer. It is not currently a named Lean declaration. For instance, if Sh,N,L=2/5S_{h,N,L}=2/5 and Rh,N,L(M)=1/20R_{h,N,L}(M)=1/20, the full sum lies within 1/201/20 of 2/52/5 and so at distance at least 7/207/20 from every integer, which settles at that NN. The prime-gap tail bound, the convergence used above, and the existence of blocks satisfying are not consequences of that inference. The proposition’s full sum is moreover real-valued, so the reverse-triangle step used here is a paper proof and not an instance of any rational-valued formal declaration.

Taking the classical bound M(n)nlognM(n)\ll n\log n, a choice L=Alog2(N+h+2)L=\lceil A\log_2(N+h+2)\rceil with any fixed A>1A>1 makes the right side a negative power of NN up to logarithms. Thus  asks for a finite dyadic anti-concentration estimate on a logarithmic-length block, not control of an infinite tail and not eventual periodicity of the full gap sequence. For Problem , the same truncation must certify two adjacent full-tail values inside the open unit interval, together with the displayed gap mismatch. A finite prefix is useful only when its omitted tail is rigorously dominated.

What  requires is joint control of the finite block of weighted differences (gN+h+1gN+1,,gN+h+LgN+L)(g_{N+h+1}-g_{N+1},\ldots,g_{N+h+L}-g_{N+L}) modulo powers of two, along a block of logarithmic length. We do not know how to obtain such control and we make no progress on it here. The strongest results on prime gaps address a different shape of question. Zhang’s bounded-gap theorem [12] produces infinitely many bounded consecutive-prime gaps. Maynard proves substantially more than an individual-gap statement: [10] bounds liminfn(pn+mpn)\liminf_n(p_{n+m}-p_n) for every fixed mm, and hence gives bounded clusters of every fixed size; gives the explicit unconditional bound liminfn(pn+1pn)600\liminf_n(p_{n+1}-p_n)\le 600. The large-gap theorem of Ford, Green, Konyagin, Maynard and Tao bounds the largest single consecutive-prime gap below XX. None of these results supplies the joint dyadic distribution of a logarithmic block of consecutive gap differences required by . The same introduction notes a separate sequel on chains of large gaps; the cited theorem itself supplies no residue-sensitive block estimate of the kind needed here.

What remains to be formalised.

Unconditional convergence, the infinite series identity, the actual rational scaled-tail state and its recurrence, the eventual-integral-shift theorem, the abstract rationality classification, and the prime-specific local small-mismatch theorem are Lean-checked. Paper-level are the modular rewriting by Dh,N,LD_{h,N,L}, the finite-approximation inference, the positive carry countermodel above, the identification of the concrete tail 𝒯\mathcal T with the checked recurrence, and the real form of the small-shift obstruction in Corollary . The missing statements are the multiple-in-shift lemma used by Problem , a prime-gap tail domination sharp enough for a certificate, and a cofinal anti-concentration or adjacent-mismatch theorem. No theorem supplies the cofinal pairs in , and no cited prime-distribution estimate is claimed or formalised as supplying those statements.

Statements and declarations

Artefact and data availability.

The pinned formal-source revision contains the Lean sources, the fixed toolchain, and the library manifest used in the verification. This manuscript provides navigation rather than proof authority.

Declaration of generative AI use.

Every word of this manuscript was generated by agents based on large language models operating within Will Cook’s private research system for artificial intelligence. The formal proofs and repository software were likewise drafted and revised by the agents through that system under Cook’s direction. Cook set the objectives and acceptance criteria, selected and reviewed the public claims, and approved the published version. Cook assumes responsibility for the accuracy, interpretation, and presentation of the work. Generative systems are production tools, not authors, and supply no independent authority. Lean checks each proof term against the fixed library version, and the sources linked here contain no proof placeholders and no project-defined axioms; Lean does not authorise the exposition, the citation choices, or the interpretation, for which the author remains responsible.

Funding and competing interests.

This work received no external funding. The author declares no competing interests.

Acknowledgements.

The problem numbering and status follow the Erdős Problems catalogue maintained by Thomas Bloom [13].

Guide to the formal sources

Each linked phrase opens its Lean declaration at the pinned source revision c8e41c76b4ce. All declarations of this note live in one module. The summation-by-parts declarations are prime-specific; most of Section  is stated for arbitrary integer digits and arbitrary rational or real orbits, while Section  records the actual-gap specialisation. The concrete prime-gap tail, its unconditional convergence, its rational candidate state and the real-to-rational scaled-tail bridge are all defined and checked in the pinned Lean module.

References

  1. P. Erdős, , Enseign. Math. (2) 4 (1958), 93–100, doi:10.5169/seals-34629. The dyadic prime series is stated as unproved on p. 94; the factorial-prime family is stated on p. 93, with only the k=1k=1 proof printed on pp. 94–95.

  2. P. Erdős and R. L. Graham, , Monogr. Enseign. Math. 28, Geneva, 1980, p. 62.

  3. P. Erdős and C. Pomerance, , Aequationes Math. 17 (1978), 311–321, doi:10.1007/BF01818569. The unnumbered dyadic irrationality theorem and its complete proof are in §7 on p. 320.

  4. P. Erdős, , in A. Baker (ed.), , Cambridge UP, 1988, pp. 102–109, doi:10.1017/CBO9780511897184.009.

  5. P. Erdős and E. G. Straus, , J. Indian Math. Soc. (N.S.) 27 (1964), 129–133. MR 175848.

  6. K. Ford, B. Green, S. Konyagin, J. Maynard and T. Tao, , J. Amer. Math. Soc. 31 (2018), 65–105, doi:10.1090/jams/876. Theorem 1 on p. 66 gives the effective lower bound for the largest single consecutive-prime gap below XX.

  7. V. Kovač and T. Tao, , Acta Math. Hungar. 175 (2025), 572–608.

  8. L. de Moura and S. Ullrich, , in A. Platzer and G. Sutcliffe (eds.), CADE 28, Lecture Notes in Comput. Sci. 12699, Springer, 2021, pp. 625–635, doi:10.1007/978-3-030-79876-5_37.

  9. The mathlib Community, , in CPP 2020, ACM, 2020, pp. 367–381, doi:10.1145/3372885.3373824. The article describes a December 2019 Lean 3-era snapshot; the repository lock owns the current revision.

  10. J. Maynard, , Ann. of Math. (2) 181 (2015), 383–413.

  11. H. L. Montgomery and R. C. Vaughan, , Cambridge Stud. Adv. Math. 97, Cambridge UP, 2007, Chapter 6, pp. 168–198; Theorem 6.9, pp. 179–181, and Exercise 6.2.5, p. 183, doi:10.1017/CBO9780511618314.008.

  12. Y. Zhang, , Ann. of Math. (2) 179 (2014), 1121–1174.

  13. T. F. Bloom, Erdős Problem #251, erdosproblems.com/251, accessed 28 July 2026 (page displays “last edited 28 September 2025”). The current record labels the main dyadic problem open, cites [Er58b], [ErGr80, p. 62] and [Er88c, p. 103], and explicitly describes its status as the website owner’s present assessment rather than a literature-completeness guarantee; it does not mention the 2026 counterexample in [14] to the adjacent variable-denominator conjecture.

  14. ChatGPT 5.4 Pro (orchestrated by V. Kovač), On the Erdős problem #251, unpublished note, 2026, hosted by the Department of Mathematics, University of Zagreb, web.math.pmf.unizg.hr, accessed 28 July 2026.

  15. The Formal Conjectures Authors, FormalConjectures.ErdosProblems.251, Lean source at commit f776d2f, 2025, accessed 28 July 2026.