Plectis
Erdős problem #251

The prime-gap dyadic series

Is the dyadic series of consecutive primes irrational? Equivalently, is the corresponding consecutive-prime-gap dyadic series irrational?

The problem

The question

List the primes as p1=2,p2=3,p3=5,…. Divide them by 2,4,8,… and add: P=βˆ‘nβ‰₯1pn/2n. ErdΕ‘s asks whether this exact infinite total can be a fraction. The denominators grow fast enough for the sum to converge; its rationality is open.

An example

The first five terms give 2/2+3/4+5/8+7/16+11/32=101/32. Later terms increase the sum to about 3.6746439. The gap from 3 to 5 is 5βˆ’3=2; that same extra 2 appears in every prime from 5 onwards.

Is βˆ‘pn2n irrational? (Here pn is the nth prime.)

The setup in detail

Write the primes in increasing order as p1=2,p2=3,p3=5,…. The series is P=βˆ‘nβ‰₯1pn2βˆ’n: each next denominator is twice the previous one. The question is whether the limit of these running totals is rational. Every finite running total is a fraction, but the limit of rational numbers can be irrational.

The long record proves the elementary bound pn≀1250n4. This is enough for convergence: the ratio of consecutive bounds is

1250(n+1)4/2n+11250n4/2n=12(1+1/n)4<34(nβ‰₯10).

The remaining terms are therefore bounded by a convergent geometric series. Finite changes to the primes alter the total by a rational number, so they cannot change its rationality. The difficulty lies in controlling all later terms, rather than computing a longer initial segment.

The example in detail

Putting the first five terms over a common denominator gives

22+34+58+716+1132=32+24+20+14+1132=10132=3.15625.

The next terms are 13/64,17/128,19/256,…; the full total is about 3.6746439. This gives its size, without deciding rationality.

Define the gaps by gn=pn+1βˆ’pn. Their first values are 1,2,2,4,2,…, and each prime is 2 plus its preceding gaps: 11=2+1+2+2+4. In the drawing this is the height of the column for 11, split into the floor and four horizontal bands.

The highlighted gap from 3 to 5 contributes 2 to every prime from 5 onwards. Its contribution to the sum is therefore

28+216+232+β‹―=2(18+116+β‹―)=24.

The successive widths halve, and their running total approaches one quarter. This explains the red band’s width and its area, rather than introducing a new quantity alongside the prime sum.

A staircase over a ruler from 0 to 1 whose slots halve: over the slot of width 1/2 stands a column of height 2, then 3 over the next quarter, 5 over the next eighth, then 7, 11, 13, 17, 19, 23 in ever thinner slots, rising into a spire at the right that a dashed line continues off the top for 29, 31 and every later prime; the staircase's area is the sum of the primes over powers of two. Horizontal lines cut the same area into a floor of height 2 and one band per gap between consecutive primes, each band starting just after the slot of the smaller prime. In red, the band of the gap 2 between 3 and 5: its length, 1/8 + 1/16 + ... = 1/4, equals the slot of 3, so the band's area is 2/4, the gap's term in the gap series. 1/2 1/4 1/8 1/16 … 0 1 slot n: width 1/2n, column height pn, the n-th prime +g: the gap up to the next prime 13, 17, 19, 23, 29, … ever taller, ever thinner 1/8 + 1/16 + … = 1/4 2 3 5 7 11 +1 +2 +2 2/2 + 3/4 + 5/8 + 7/16 + … = 2 + 1/2 + 2/4 + 2/8 + 4/16 + … by columns by rows: floor 2, then one band per gap

The crux

Column n has height pn and width 2βˆ’n, so its area is one term. Read the same staircase horizontally: a floor of height 2, then one band per prime gap. The red band has height 2 and width 1/8+1/16+β‹―=1/4, hence area 2/4.

Writing gn=pn+1βˆ’pn, this gives P=2+βˆ‘nβ‰₯1gn/2n. Either both sums are rational or neither is. The theorem below constructs altered gaps with rational sums while retaining many gap properties. Their running totals need not be primes: the original question remains open.

One area, two sums. The column over the first half of the ruler has height 2, the next quarter has height 3, and so on. The sum of their areas is the prime series. Read horizontally instead: the floor contributes 2(1/2+1/4+β‹―)=2. The band for gap gn has width 2βˆ’nβˆ’1+2βˆ’nβˆ’2+β‹―=2βˆ’n. Consequently

P=2+βˆ‘nβ‰₯1gn2βˆ’n.

All areas are nonnegative, so this regrouping preserves the total. Adding the rational number 2 does not change rationality. It is therefore enough to study the gap sum, but it is still the same open question.

What the theorem tests. Could broad properties of the gaps alone force irrationality? Add six units to two neighbouring gaps. The four splits give different weighted changes:

08+616=616,28+416=816,48+216=1016,68+016=1216.

Every later running total rises by six whichever split is chosen. The choice therefore changes the weighted sum without changing the later remainders modulo 2, 3 or 6. The next diagram repeats this operation at increasingly separated indices and with larger divisibility requirements.

The proved statement. Start with any convergent series A=βˆ‘nβ‰₯0an2βˆ’nβˆ’1 of nonnegative integers, any initial cutoff K, and any bound f(n)β†’+∞. One fixed set of allowed indices after the cutoff supports corrections attaining every target in a nondegenerate interval above A. The corrections are nonnegative integers and satisfy en≀f(n) eventually. The allowed indices occupy a proportion tending to zero uniformly over long intervals. For each fixed positive integer q, beyond a cutoff depending on q, every correction and every cumulative correction is divisible by q. The allowed set, target interval and cutoffs are chosen before the target.

The prime boundary. Applied to prime gaps, with eventual bound log⁑(n+3), this gives altered gaps with rational sums, the same eventual residues for each fixed modulus, and the same limiting distributions of fixed-length consecutive gap blocks. Their running totals still grow like nlog⁑n. These totals need not be prime: for instance, adding six replaces 19 by 25. The construction shows that the retained properties are insufficient; it proves no rationality or irrationality assertion for the actual prime series.

Upper left, a staircase of added units over a ruler whose slots halve: thirty units shared between two neighbouring entries, sixteen of them placed earlier, so the middle height is 16 and the count is 30 + 16 = 46; the last packet of two, red, was moved earlier and lifted that height by two, adding one step to the dyadic sum, while the height after the pair stays 30. Upper right, one row per split: sixteen windows of totals, each three steps wide and one step right of the last, so neighbours overlap and together cover one interval; window 8, red, is level with the middle height 16 and holds the target, a red dot on the axis. Below, that window enlarged 32/3 times holds the next group's 32 windows with overlaps too small to draw; the target falls in window 6, and two further enlargements by 32 show the same again, closing on the target. 6 n n + 1 n + 2 … 6 + 2 = 8 6 + 4 = 10 30 192 193 194 … 0 e192 30 + 14 = 44 30 + 16 = 46 e193 F0 Γ— 32/3 step w1 = 3w0/32 Γ— 32 Γ— 32 step w2 = w1/32 step w3 = w2/32

We construct comparison gaps with rational sums. Split six added units as (2,4) between neighbouring entries. The earlier entry has twice the weight: their contribution is 2β‹…2+4=8 small units. The staircase area shows this sum. Move two units earlier. The split (4,2) contributes 2β‹…4+2=10. The area increases, but every later running total rises by six, whichever split is chosen. At indices 192 and 193, one small unit is 2βˆ’194. Splitting 30 added units with 14 earlier gives 30+14=44 small units. Each bar includes all later choices. Axis zero places every movable unit later. Move two units earlier again: 30+16=46. The red cell adds one step of area, w0=2βˆ’193. The corresponding bar shifts right by exactly that step. We use sixteen splits, putting 0,2,…,30 units earlier. Each bar is wider than the step between neighbours, so consecutive bars overlap. Their union, shown underneath, covers one whole interval. The red dot is one target. Choose window 8, enlarge it, then choose a smaller window containing the same target. The next 32 windows also overlap, by amounts too small to see at this scale. Repeat indefinitely. The remaining uncertainty tends to zero, so the sum equals the target. Every target in the interval is attainable, including rational values. The construction keeps changes sparse and preserves eventual residues modulo each fixed integer. Altered prime gaps give comparison sequences; their running totals need not be primes.

Proposition 1.1 starts with a nonnegative integer sequence an whose series A=βˆ‘nβ‰₯0an2βˆ’nβˆ’1 converges, a starting index K, and any real bound f(n)β†’+∞. It constructs a fixed set SβŠ†[K,∞) of upper Banach density zero and a nondegenerate interval I above A. Every target r∈I is attained by nonnegative integer corrections en supported on S, with en≀f(n) eventually. For each positive integer q, both en and βˆ‘i<nei are divisible by q after a cutoff independent of r. Upper Banach density zero means the proportion of allowed correction indices tends to zero uniformly over long intervals.

The staircase height Em=βˆ‘i<mei is the cumulative correction before m. Slot m has width 2βˆ’mβˆ’1, and βˆ‘mEm2βˆ’mβˆ’1=βˆ‘nen2βˆ’nβˆ’1, since βˆ‘m>n2βˆ’mβˆ’1=2βˆ’nβˆ’1. For six units shared between n and n+1, the scaled contribution is 2en+en+1=6+en. This explains both the staircase area and the increase from 8 to 10.

The drawing uses f(n)=n and initial index 188. Its first pair is (2d,30βˆ’2d), for d=0,…,15, at indices 192 and 193. B denotes the original sum A plus every fixed congruence correction and every variable pair placed entirely at its later index. A choice d adds dw0 above B, where w0=2βˆ’193. Later choices add between 0 and F1, where Fj=βˆ‘iβ‰₯jDiwi. The construction ensures Fj+1β‰₯wj: adjacent choice intervals overlap, so recursively choosing an interval containing the target leaves a remainder tending to zero. In this example F1 is slightly larger than 3w0; the next step is w1=3w0/32. The marked target selects digits 8,6,6,12,…. This marked target illustrates the choices; it is not asserted to be rational. To obtain a rational sum, choose a rational target in the covered interval. Later overlaps are positive but below drawing precision.

Fixed pair totals make every later cumulative correction independent of the target choices. A separate correction just before each pair clears its residue modulo a nested factorial modulus. These moduli eventually contain every q as a divisor, while increasingly separated stages make S sparse. The printed proof uses triples; the Lean proof reaches Proposition 1.1 by changing one coordinate per stage. Corrected prime gaps need not be gaps between primes, so this theorem does not settle the irrationality of the original consecutive-prime series in ErdΕ‘s #251.

Results and open questions

#251. A public Lean declaration constructs a synthetic sequence of positive even digits bounded by 4log⁑(n+1)+24. Its dyadic sum is exactly 6, every complete scaled tail and every tail shift is integral, the values 2 and 4 recur arbitrarily late in every residue class, and its increasing odd cumulative positions satisfy Pn/(nlog⁑n)β†’1. The reasoning paper states the combined theorem explicitly. This rules out a much richer package of plausible soft inputs than unboundedness or nonperiodicity alone, but these digits are not the actual prime gaps. The declaration is source-backed and does not yet have a curated claim row.

Independently, a sparse perturbation of the prime gaps can have a rational dyadic sum while retaining the prime growth scale, every fixed eventual congruence, and asymptotically the same short-block statistics. The later positions are not asserted to be prime. This is complementary to Land’s conditional result, not a refutation. Lean checks the sparse rational-target construction and the polylogarithmic schedule with growing-block transfer in SparsePaperR11.lean. The printed construction additionally gives congruence cutoffs uniform in the target; the linked Lean statement quantifies those cutoffs after the target.

The prime-growth corollary uses cited analytic results. This obstruction shows that those coarse statistics alone do not force irrationality. Lean also checks a precise conditional route: for one fixed shift, cofinally many adjacent tail shifts strictly between βˆ’1 and 1, with unequal actual prime gaps, would prevent eventual integrality of that shift. Those prime-specific mismatches are not proved. The exact prime-gap summation-by-parts equivalence still proves neither the prime-gap series nor the original series irrational. Read the short paper, long record, and selected formal checks.

Read the public result guide

Short paper, 14 pages

Sparse Congruence-Preserving Perturbations of Dyadic Series

In this paper

Introduction

Let p0=2,p1=3,… be the primes and put gn=pn+1βˆ’pn. ErdΕ‘s asked whether

Ξ =βˆ‘nβ‰₯0pn2n+1

is irrational [1][2] [3]. Summation by parts gives Ξ =2+βˆ‘nβ‰₯0gn2βˆ’(n+1), with convergence justified in SectionΒ 4. We study which properties of the gaps survive when the latter sum is changed to a prescribed value.

The support and every modulus cutoff are fixed before the target is chosen. The interval contains rational and irrational sums with the same eventual coefficient and partial-sum residues. A block changes only when it meets the support, whereas every correction enters the dyadic sum. With polylogarithmic corrections, empirical block laws agree asymptotically at lengths o(log⁑log⁑X); for prime gaps, cumulative growth remains nlog⁑n. The comparison positions need not be consecutive primes.

We use a standard interval-covering argument for series with finite choices. Fridy’s generalised-base lemma [5] treats prescribed digit bounds and nonincreasing weights. CrmariΔ‡ and Kovač [17] give the finite-choice form used here, and Kovač and Tao [6] use analogous intervals of reciprocal choices. We must arrange these choices on a sparse set while preserving cumulative congruences. To do so, we redistribute a fixed correction between two adjacent indices. The simplest useful calculation is

(en,en+1)(0,6)(2,4)(4,2)(6,0)en+en+166662n+2(en2βˆ’nβˆ’1+en+12βˆ’nβˆ’2)681012.

Moving 2 from the later index to the earlier one changes the weighted sum while leaving the ordinary sum fixed. If the cumulative correction before the pair is odd, an additional 1 at nβˆ’1 clears its residue modulo 2. Since the four pairs have the same sum, the choice of pair leaves every later cumulative residue unchanged. We repeat this operation with nested moduli and increasingly separated pairs. The larger separations make the weighted contributions smaller, so we enlarge the range of each pair until the later contributions fill the gaps between consecutive present choices.

Throughout, N={0,1,…}, intervals of indices contain integers, and log is natural unless a base is displayed. A set SβŠ†N has upper Banach density zero if

limHβ†’βˆžsupu∈N|S∩[u,u+H)|H=0.

For integers X,mβ‰₯1, let ΞΌa,X,m denote the distribution of (an,…,an+mβˆ’1) when n is uniform on [X,2X). The entries are not rescaled: we sample starting indices, not distinct block values. We use dTV(ΞΌ,Ξ½)=supB|ΞΌ(B)βˆ’Ξ½(B)|, with the supremum over all sets of blocks.

Proposition 1.1 (sparse changes preserving congruences). Let a:Nβ†’N satisfy A=βˆ‘nβ‰₯0an2βˆ’(n+1)<∞, let K∈N, and let f:Nβ†’R tend to +∞. There exist a set SβŠ†[K,∞) of upper Banach density zero and a nondegenerate interval IβŠ‚(A,∞) such that, for every r∈I, there is an integer correction e:Nβ†’N satisfying

supp⁑eβŠ†S,en≀f(n)Β eventually,βˆ‘nβ‰₯0(an+en)2βˆ’(n+1)=r.

For each integer qβ‰₯1 there is a cutoff Nq, independent of r, such that q∣en and qβˆ£βˆ‘i<nei for all nβ‰₯Nq. For every Ξ΅>0, the choice f(n)=(log⁑(n+3))Ξ΅ can be made with

|S∩[X,2X)|=OΞ΅(Xlog⁑log⁑X),dTV(ΞΌa,X,m,ΞΌa+e,X,m)≀m|S∩[X,2X+m)|X.

In particular the distance tends to zero for every integer-valued m=m(X)β‰₯1 with m(X)=o(log⁑log⁑X), uniformly over target values.

The cutoff may depend on q, but S and all cutoffs are fixed before r. Only e varies with the target, and its support may occupy just part of S. Infinitely many changes are essential: finitely many integer dyadic corrections add a rational number. The allowance may grow as slowly as log⁑log⁑(n+3), but it cannot be bounded. A modulus exceeding the bound would force e eventually to vanish; its constant cumulative sum would then be divisible by every positive integer. Nonnegativity forces e=0. Polynomially growing coefficients satisfy the convergence hypothesis; an=2n does not.

SectionΒ 2 proves the construction and SectionΒ 3 transfers the stated prime-gap properties. For the actual primes, integral tail shifts characterise rationality. Two consecutive small differences with unequal gaps give a sufficient condition for irrationality. Finite enclosures certify individual witnesses without supplying arbitrarily late ones. The companion’s literature discussion contains the further comparisons, including finite subsums and other dyadic coefficient sequences.

Proof of PropositionΒ 1.1

Proof. Fixed totals. Use njβˆ’1 to cancel a cumulative residue and nj,nj+1 for a pair with fixed ordinary sum. Varying the pair changes its weighted contribution without altering any later residue to be cancelled. Choose an initial index nβˆ’1β‰₯K and centres with sj=njβˆ’njβˆ’1β‰₯4, so the triples do not overlap. Let Mj be positive integers with Mj∣Mj+1, and let Dj bound the digit at stage j. The spacing, moduli and digit bounds will be chosen below.

Let Cj record the ordinary correction before the jth triple. Starting from C0=0, prescribe

cj=(βˆ’Cj)modMj(0≀cj<Mj),Cj+1=Cj+cj+MjDj.

For integers 0≀dj≀Dj, set

(1)enjβˆ’1=cj,enj=Mjdj,enj+1=Mj(Djβˆ’dj),

and put en=0 elsewhere. The two sums of a triple are

βˆ‘r=njβˆ’1nj+1er=cj+MjDj,βˆ‘r=njβˆ’1nj+1er2βˆ’rβˆ’1=cj2βˆ’nj+MjDj2βˆ’njβˆ’2+djMj2βˆ’njβˆ’2.

The ordinary total contains no dj, so the recurrence fixes every cj in advance. In the weighted total only the last term varies: transferring Mj from nj+1 to nj adds

wj=Mj2βˆ’njβˆ’2.

After cj has been inserted, the cumulative correction is divisible by Mj; the two entries of the pair preserve this divisibility. Fix q∣MJ. At index nJ both the coefficient correction and the cumulative correction are divisible by q. At every later triple, q divides Cj and Mj, so it also divides cj and both pair entries. The intervening corrections are zero. Hence

q∣en,qβˆ£βˆ‘i<nei(nβ‰₯nJ).

The entry cJ need not be divisible by q, which is why it is placed at nJβˆ’1, before the cutoff. The index nJ depends on q and the chosen moduli, but not on the digits or the value to be attained.

Spacing and size. The choices at stage j are 0,wj,…,Djwj. The covering argument will work if the later ranges total at least wj. Taking Di=2siβˆ’1 compensates for separation by making each later range a scaled dyadic difference:

Diwi=(2niβˆ’niβˆ’1βˆ’1)Mi2βˆ’niβˆ’2=Mi(2βˆ’niβˆ’1βˆ’2βˆ’2βˆ’niβˆ’2).

Because Miβ‰₯Mj for i>j, replacing every later modulus by Mj gives the finite estimate

(2)βˆ‘i=j+1JDiwiβ‰₯Mjβˆ‘i=j+1J(2βˆ’niβˆ’1βˆ’2βˆ’2βˆ’niβˆ’2)=wjβˆ’Mj2βˆ’nJβˆ’2(J>j).

No monotonicity of the weights is needed. Each entry of (1) is at most Mj2sj, so the size cost of separating the stages is exponential. We must fit this product below the allowance at all three indices, while sjβ†’βˆž and every fixed positive integer eventually divides Mj.

To allow a nonmonotone bound f, put

h(n)=infmβ‰₯nmin(f(m),m).

This nondecreasing lower envelope tends to infinity even when f oscillates. A bound at njβˆ’1 therefore controls all three later coordinates; the cap by m ensures en≀n and hence summability for every digit choice. Enlarge nβˆ’1β‰₯K until h(nβˆ’1)β‰₯32, and set

kj=max{kβ‰₯2:k!2k+2≀h(njβˆ’1)},Mj=kj!,sj=kj+2,nj=njβˆ’1+sj.

The maximum exists: k=2 is admissible because 2!24=32, and k!2k+2β†’βˆž. Since njβ†’βˆž and h is nondecreasing and divergent, kj is nondecreasing and tends to infinity. Thus Mj∣Mj+1, every fixed q eventually divides Mj=kj!, and sj=kj+2β†’βˆž. At every coordinate n of the jth triple, this schedule also gives

0≀en≀Mj2sj≀h(njβˆ’1)≀min(f(n),n).

Let S=⋃jβ‰₯0{njβˆ’1,nj,nj+1}. For Rβ‰₯4, all sufficiently late centres are at least R apart. Every interval of length H contains at most 3(H/R+2) points from those triples; the earlier triples add a fixed number, independent of the interval’s position. Divide by H, take the supremum over positions, then let Hβ†’βˆž. The limiting upper bound is 3/R; letting Rβ†’βˆž proves upper Banach density zero.

Attaining the interval. The support and congruence requirements are now settled independently of the target. Only the digits remain to be chosen. Define

Ξ²=βˆ‘jβ‰₯0(cj2βˆ’nj+Djwj),Fj=βˆ‘iβ‰₯jDiwi.

Even zero digits contribute β>0; Fj is the maximum variable contribution from stage j onwards. The size bound makes both finite, with F0>0 and Fj→0. The total correction is

βˆ‘nen2βˆ’nβˆ’1=Ξ²+βˆ‘jdjwj.

Taking Jβ†’βˆž in (2) now gives

(3)Fj+1β‰₯Mj2βˆ’njβˆ’2=wj.

These bounds do not yet prove that every point of [0,Fj] is attained. A digit d leaves a remainder in [0,Fj+1] precisely for current remainders in

[dwj,dwj+Fj+1],d=0,…,Dj.

These intervals meet or overlap by (3), and their union is [0,Fj] because Fj=Djwj+Fj+1. FigureΒ 1 shows the two calculations.

This figure is drawn in the PDF.

Given x∈[0,F0], start with ρ0=x. Having chosen the first j digits, choose dj so that

ρj+1=ρjβˆ’djwj∈[0,Fj+1].

The covering just proved makes this possible at every stage. Since 0≀ρj≀Fj and Fjβ†’0, we obtain

xβˆ’βˆ‘i=0jdiwi=ρj+1⟢0.

Thus every x∈[0,F0] is attained, and we may take I=(A+Ξ²,A+Ξ²+F0). The target r∈I determines only the digits, through x=rβˆ’Aβˆ’Ξ²; it changes neither S, I nor the cutoff Nq=nJ chosen using q∣MJ. This last selection is the standard finite-choice covering argument of [17]. The construction above supplies its summability and overlap hypotheses while imposing the congruences and requiring the support to lie in S.

The logarithmic scale. For f(n)=(log⁑(n+3))Ξ΅, the size cost 2sj leads to the iterated logarithm. We choose separations of order log⁑log⁑nj and reserve part of the allowance for growing moduli. Keep the same triples and Dj=2sjβˆ’1, and set

sj=⌊Ρ2log2⁑log⁑(njβˆ’1+3)βŒ‹,kj=max{kβ‰₯2:k!≀(log⁑(njβˆ’1+3))Ξ΅/4},

with Mj=kj! and nj=njβˆ’1+sj. Start far enough out that sjβ‰₯4 and all choices exist. The exponents Ξ΅/4 and Ξ΅/2 add to 3Ξ΅/4<Ξ΅, so the corrections satisfy the prescribed bound:

Mj2sj≀(log⁑(njβˆ’1+3))3Ξ΅/4≀(log⁑(n+3))Ξ΅

at each coordinate n of the triple. After enlarging the initial index, this is also at most n. The moduli remain nested, and every fixed positive integer divides all sufficiently late moduli. Summability, the congruence induction and (2) therefore apply without change. Since sj≍Ρlog⁑log⁑nj, the relevant centres near [X,2X) are separated by ≫Ρlog⁑log⁑X. Each contributes at most three support points, giving

|S∩[X,2X)|=OΡ(X/log⁑log⁑X).

Choose the same uniform starting index n∈[X,2X) for both blocks. They agree when the block avoids S. A changed coordinate t∈S∩[X,2X+m) affects only starts in [tβˆ’m+1,t], at most m choices. The union bound gives

dTV(ΞΌa,X,m,ΞΌa+e,X,m)≀P(en+iβ‰ 0Β for someΒ 0≀i<m)≀m|S∩[X,2X+m)|X.

For m≀X, two dyadic bands cover [X,2X+m), giving OΞ΅(m/log⁑log⁑X). A block of length o(log⁑log⁑X) therefore avoids S with probability tending to one. The convergence is uniform over targets because the same S contains every correction support.Β β—»

No limiting block law is assumed. A block-only test bounded in absolute value by B0 changes its mean by at most 2B0dTV. For such a test also depending on the starting index, the common-index coupling gives 2B0m|S∩[X,2X+m)|/X instead. Vanishing absolute error can still erase a rare event; it supplies neither relative-frequency control nor a comparison of complete tails. The scale o(log⁑log⁑X) is sufficient, not proved optimal. The companion’s SectionΒ 2 also distinguishes upper Banach density from ordinary density.

Application to prime gaps

The elementary bound pn≀1250(n+1)4 suffices for convergence of the prime and gap series. We use the central-binomial argument of ErdΕ‘s [19]; AppendixΒ A of the companion derives the prime-power estimate and the bound. We may therefore apply PropositionΒ 1.1 to the gaps.

Corollary 3.1 (a rational sum with the stated prime-gap statistics). Let p0=2,p1=3,… be the primes and gn=pn+1βˆ’pn. Given K∈N and 0<Ρ≀1, there is b:Nβ†’N with rational dyadic sum such that bn=gn for n<K, bnβ‰₯gn, and bnβˆ’gn≀(log⁑(n+3))Ξ΅ eventually. For every fixed positive modulus, both the coefficients and the cumulative positions eventually retain their corresponding residues. The empirical distributions of unnormalised blocks have total variation distance tending to zero for lengths o(log⁑log⁑X), and for every fixed nonzero F∈Z[x0,…,xk],

|{n<N:F(bn,…,bn+k)=0}|=o(N).

Moreover, with Pn=2+βˆ‘i<nbi,

0≀Pnβˆ’pn=OΞ΅(n(log⁑(n+3))Ξ΅log⁑log⁑n),Pn∼nlog⁑n.

These positions are not asserted to be prime.

Proof. Apply PropositionΒ 1.1 to a=g, choose a rational r∈I, and fix the resulting sequence b=g+e. The correction, congruence and growing-block assertions follow at once. It remains to transfer polynomial nonconcentration and cumulative growth. For fixed k and nonzero F∈Z[x0,…,xk], a new zero requires a block meeting S, so

|{n<N:F(bn,…,bn+k)=0}|≀|{n<N:F(gn,…,gn+k)=0}|+βˆ‘i=0k|S∩[i,N+i)|.

The first count is o(N) by Schlage-Puchta’s LemmaΒ 4 [18]; the finitely many support counts are o(N) because S has density zero. We count the event F=0, not averages of F, so no bound on its values is needed. Since b was chosen before F,k, the same sequence satisfies every fixed-polynomial condition.

To estimate Pnβˆ’pn=βˆ‘i<nei, first observe that |S∩[0,n)|=OΞ΅(n/log⁑log⁑n). Indeed, the indices below n contribute at most n points, and on [n,n) we sum the dyadic support bounds, whose lengths add to O(n) and whose log⁑log⁑X are comparable to log⁑log⁑n. Multiplying by the pointwise correction bound gives the stated error. For 0<Ρ≀1 this is o(nlog⁑n), so the prime number theorem [12] gives Pn∼nlog⁑n. Finally, summing nonnegative terms in the opposite order, we obtain

βˆ‘nβ‰₯0Pn2n+1=2+βˆ‘iβ‰₯0biβˆ‘n>i2βˆ’nβˆ’1=2+βˆ‘iβ‰₯0bi2i+1=2+r∈Q.

β—»

For Ξ΅>1 we may use exponent 1, which gives smaller corrections and the error O(nlog⁑(n+3)/log⁑log⁑n). Thus the conclusions extend to every Ξ΅>0. For each fixed yβ‰₯2, eventual congruence modulo y! also gives gcd(Pn,y!)=1 once pn>y. The cutoff depends on y; primality would require excluding every prime up to Pn at that same index. Even prime-valued positions could omit intervening primes.

Land’s draft [8] proves conditional irrationality under a uniform Hardy–Littlewood hypothesis of the kind formulated by Kuperberg [7]. Ringer’s draft [16] obtains conditional normality. Their quantitative prime-pattern hypotheses are stronger than the absolute block comparison above and are not assumed here. The companion’s SectionΒ 3 compares the hypotheses and sampling conventions.

The prime series and its actual tails

We now study complete tails of the actual prime gaps. Put G=βˆ‘nβ‰₯0gn2βˆ’(n+1). The polynomial bound from SectionΒ 3 proves convergence and makes the endpoint in finite summation by parts vanish.

Theorem 4.1 (prime-to-gap identity). The actual prime and gap series satisfy Ξ =2+G. Their complete tails

TN=βˆ‘jβ‰₯1gN+j2βˆ’j

satisfy T0=2Gβˆ’1 and TN+1=2TNβˆ’gN+1. Thus Ξ , G and T0 have the same rationality status.

Proof. Finite summation by parts gives

βˆ‘i=0npi2i+1=2+βˆ‘i=0nβˆ’1gi2i+1βˆ’pn2n+1.

Since pn=O((n+1)4), the endpoint tends to zero and we obtain Ξ =2+G. We obtain the tail recurrence by splitting off the first term of TN; removing g0=1 from G gives T0=2Gβˆ’1.Β β—»

Tao noted this reduction in the problem’s forum discussion [15].

Corollary 4.2 (exact irrationality reformulation). The prime-value dyadic series is irrational if and only if the prime-gap dyadic series is. Both series converge by the polynomial bound proved above; neither side is proved irrational.

Proof. Adding the rational number 2 preserves rationality and irrationality.Β β—»

The index N is the last omitted coefficient, so TN starts with gN+1/2. Rescaling distinguishes these tails from the remainders of G. The recurrence also admits an extra term C2N; the vanishing boundary condition below excludes it.

Lemma 4.3 (the boundary condition for the tail recurrence). Let βˆ‘jβ‰₯1|aj|2βˆ’j<∞ and UN+1=2UNβˆ’aN+1. Then UN=βˆ‘jβ‰₯1aN+j2βˆ’j for every N if and only if 2βˆ’NUNβ†’0.

Proof. Iteration gives 2βˆ’NUN=U0βˆ’βˆ‘j=1Naj2βˆ’j. The limit is zero exactly when U0 is the full series. Subtracting its first N terms and multiplying by 2N then gives the tail formula. Conversely the formula implies 2βˆ’NUN=βˆ‘k>Nak2βˆ’kβ†’0 by absolute convergence.Β β—»

Integral shifts

For UN+1=2UNβˆ’aN+1 with an∈Z, write Dh(N)=UN+hβˆ’UN. Modulo integers, each step doubles, so an integral shift is a return to the same fractional part. For rational U0, the power of two in its reduced denominator determines when returns of positive length can begin; the odd part determines their lengths.

Theorem 4.4 (exact rationality classification). For a real integer-coefficient recurrence, the following are equivalent: U0∈Q; Dh(N)∈Z for some hβ‰₯1,Nβ‰₯0; and, for some fixed hβ‰₯1, Dh(N)∈Z at every sufficiently large N. More precisely, if U0=u/(2sd) is in lowest terms, with d odd, then

den⁑(UN)=2max(sβˆ’N,0)d,Dh(N)∈Z ⟺ Nβ‰₯sΒ andΒ d∣2hβˆ’1(hβ‰₯1).

Consequently U0 is irrational exactly when every positive shift is nonintegral at every index, equivalently when for each fixed hβ‰₯1 there are arbitrarily late nonintegral shifts.

Proof. Iteration gives

UNβˆ’2NU0∈Z,Dh(N)βˆ’2N(2hβˆ’1)U0∈Z.

An integral shift with hβ‰₯1 makes the nonzero integer multiple 2N(2hβˆ’1)U0 integral, and therefore forces U0∈Q. Conversely, write U0=u/(2sd) in lowest terms. Multiplication by 2N cancels exactly min(N,s) powers of two from the denominator. The remaining factor 2hβˆ’1 is odd, so the second relation is integral exactly when Nβ‰₯s and d∣2hβˆ’1. For d>1, Euler’s congruence provides such a shift h=Ο†(d), and for d=1 we take h=1. This shift works for every Nβ‰₯s. Negating the pointwise and eventual criteria gives the two assertions about irrationality.Β β—»

The classification applies to any integer-coefficient recurrence; LemmaΒ 4.3 is needed only to identify complete tails. The periodicity is of fractional parts, not necessarily tail values. For the positive even coefficients 2,4,2,4,… starting at n=1, the tails alternate between 8/3 and 10/3. Length-1 shifts are nonintegral, but length-2 shifts vanish: one shift length cannot suffice.

Small tail differences and finite tests

Fix hβ‰₯1 and put DN=TN+hβˆ’TN and Ξ΄N=gN+h+1βˆ’gN+1. Then DN+1=2DNβˆ’Ξ΄N. Both gap indices are positive, so neither involves the exceptional odd gap g0=1; hence Ξ΄N is even. Two integral differences of absolute value less than one must both vanish, forcing Ξ΄N=0. Evenness yields the sharper signed test below.

Proposition 5.1 (two consecutive differences of absolute value less than one). Let D,Dβ€²βˆˆR, δ∈2Z and Dβ€²=2Dβˆ’Ξ΄. The conditions |D|<1, |Dβ€²|<1 and Ξ΄β‰ 0 hold exactly when, for some s∈{βˆ’1,1},

Ξ΄=2s,12<sD<1.

In that case sDβ€²βˆˆ(βˆ’1,0) and both D and Dβ€² are nonintegral.

Proof. The bounds on D,Dβ€² imply βˆ’3<Ξ΄<3, so a nonzero even Ξ΄ equals 2s with s∈{βˆ’1,1}. Substituting in Dβ€²=2Dβˆ’2s gives 1/2<sD<1. Conversely this interval gives sDβ€²=2sDβˆ’2∈(βˆ’1,0).Β β—»

The endpoints cannot be included: when Ξ΄=2, D=1/2 gives Dβ€²=βˆ’1, and D=1 already violates |D|<1. The zero triple D=Dβ€²=Ξ΄=0 shows why the mismatch is also required.

Problem 5.2 (two small tail differences at arbitrarily large indices). For every integer hβ‰₯1 and every cutoff N0, exhibit Nβ‰₯N0 with

(4)|TN+hβˆ’TN|<1,|TN+h+1βˆ’TN+1|<1,gN+h+1β‰ gN+1.

TheoremΒ 4.4 requires nonintegrality, not smallness; (4) is only a sufficient condition. All three requirements must hold at the same arbitrarily late indices. Separate infinite sets need not intersect.

By PropositionΒ 5.1, such an index must have Ξ΄N=Β±2. Schlage-Puchta’s lemma [18], applied to xhβˆ’x0Β±2, shows that these eligible indices already have density zero. Density zero is compatible with arbitrarily late witnesses; it supplies no lower bound for their occurrence. The absolute block comparison in PropositionΒ 1.1 likewise gives no relative-frequency estimate for this rare event.

Finite separation from the integers

An enclosure certifies nonintegrality only when it misses every integer. Choose M(n)β‰₯gn with βˆ‘nM(n)2βˆ’n<∞, and write

Sh,N,L=βˆ‘j=1L(gN+h+jβˆ’gN+j)2βˆ’j,Rh,N,L(M)=βˆ‘j>L(M(N+h+j)+M(N+j))2βˆ’j.

Splitting the complete tails after L terms gives

DN=Sh,N,L+2βˆ’LDN+L,|DNβˆ’Sh,N,L|≀Rh,N,L(M).

The uncomputed term is a rescaled later complete tail difference with the same shift h. An arbitrary real majorant gives an enclosure, but need not give a computable radius.

For the actual prime gaps, one computable choice is M(n)=1250(n+2)4. For P(x)=x4+8x3+36x2+104x+150, the identity 2P(x)=(x+1)4+P(x+1) telescopes to βˆ‘j=1J(x+j)42βˆ’j=P(x)βˆ’2βˆ’JP(x+J). The endpoint vanishes as Jβ†’βˆž, giving

Rh,N,L(M)=12502βˆ’L(P(N+h+L+2)+P(N+L+2)).

Proposition 5.3 (finite separation criterion). If for every hβ‰₯1 and every cutoff N0 there are Nβ‰₯N0,Lβ‰₯1 with

(5)dist⁑(Sh,N,L,Z)>Rh,N,L(M),

then Ξ  is irrational.

Proof. The enclosure gives dist⁑(DN,Z)β‰₯dist⁑(Sh,N,L,Z)βˆ’Rh,N,L(M)>0. Thus each fixed positive shift is nonintegral at arbitrarily large indices, and TheoremΒ 4.4 applies.Β β—»

Remark (what arbitrary truncation does not gain). Whenever |Dβˆ’SL|≀RLβ†’0, nonintegrality of D is equivalent to dist⁑(SL,Z)>RL for some L. Indeed, for Ξ΄=dist⁑(D,Z)>0, take RL<Ξ΄/2 and use the 1-Lipschitz property of distance. Unrestricted depth therefore gives an exact reformulation, not an additional analytic estimate. At a prescribed logarithmic depth one must also control the margin from the integers as N varies; a shrinking remainder alone does not do so. The companion, AppendixΒ D.2, gives an explicit example distinguishing refinement at a fixed value from enclosures of changing values.

A nonintegral value need not lie in either signed interval of PropositionΒ 5.1. To certify (4), suppose Ξ΄N=2s, with s∈{βˆ’1,1}, and enclose DN using integers A,Q,B with Q>0, Bβ‰₯0 and |QDNβˆ’A|≀B. Then sDN∈[(sAβˆ’B)/Q,(sA+B)/Q]. Placing its lower endpoint above 1/2 and its upper endpoint below 1 gives, respectively,

2sAβˆ’Q>2B,Qβˆ’sA>B.

We retain the signed numerator: reduction modulo Q preserves distance to QZ but loses the enclosure’s location. The gap difference fixes s, so it cannot be chosen to fit the enclosure. At h=1,N=2,L=40, one has Ξ΄2=g4βˆ’g3=βˆ’2 and

Q=240,A=βˆ’662838684750,B=11764181250,s=βˆ’1.

Here A/Q=S1,2,40 and B/Q=R1,2,40(M), and the two strict margins are 202637379224 and 424908761776. The companion’s integer certificates give the prime-index calculation and remainder derivation. This finite pair leaves the quantifiers in ProblemΒ 5.2 unresolved.

Further consequences and questions

We can place the interval in PropositionΒ 1.1 inside (A,A+Ξ·) for any Ξ·>0. Choose Kβ€²β‰₯K such that (Kβ€²+1)2βˆ’Kβ€²<Ξ·, and start the construction after Kβ€². The bound en≀n from the proof gives

0<βˆ‘nen2βˆ’(n+1)≀(Kβ€²+1)2βˆ’Kβ€²<Ξ·.

Thus rational and irrational targets remain available arbitrarily close to A, with the prescribed prefix unchanged. The estimate controls the dyadic change, not the ordinary total.

Nonperiodic coefficients

Rationality forces eventual periodicity of the binary digits obtained after carrying, not of the original integer coefficients. For example,

βˆ‘i=0nβˆ’1iβˆ’12i+1=βˆ’n2n⟢0.

Its coefficients are unbounded and its first coefficient is βˆ’1. We obtain a positive even example by taking cn=2(n2+4n+2) and Un=2(n+4)2. Direct substitution gives Un+1=2Unβˆ’cn+1, while the polynomial growth gives 2βˆ’nUnβ†’0. LemmaΒ 4.3 therefore identifies U as the complete tail and yields

βˆ‘jβ‰₯1cj2βˆ’j=32,βˆ‘nβ‰₯0cn2βˆ’(n+1)=18.

The coefficients increase strictly and cn+1βˆ’cn=4n+10 is never Β±2. The companion’s SectionΒ 8 gives further examples, including a bounded nonperiodic sequence in AppendixΒ D. None of these examples constructs consecutive primes.

Proposition 6.1 (prime gaps do not become periodic). For every positive h, the actual consecutive-prime-gap sequence is not eventually periodic with period h.

Proof. If the gaps were eventually periodic, they would be bounded. For each mβ‰₯2, however, the mβˆ’1 integers m!+2,…,m!+m are composite. The consecutive primes on either side therefore have a gap of at least m, contradicting boundedness.Β β—»

The results on bounded prime gaps [13], clusters of each fixed size [11][20], and extreme large gaps [4] do not give the simultaneous inequalities in (4). This remains so with Polymath’s bound lim infngn≀246 [20]. For fixed h and Ξ΅>0, taking L=⌈(4+Ξ΅)log2⁑(N+2)βŒ‰ in the polynomial remainder gives an error Oh,Ξ΅(Nβˆ’Ξ΅). The finite sum must still clear the relevant boundary by more than this error to supply a witness for ProblemΒ 5.2. The perturbation theorem rules out no argument using additional primality information or quantitative rare-event estimates.

Verification and reproducibility

The linked Lean declarations use LeanΒ 4 [9] and mathlib [10]. The formal proof of PropositionΒ 1.1 changes one coordinate at each stage, whereas the proof here uses triples. Both choose the set containing the supports, the interval and the congruence cutoffs before the value of the sum. For CorollaryΒ 3.1, the formal statement covers every Ξ΅>0 and assumes Schlage-Puchta’s lemma only for nonconcentration and the prime number theorem only for the asymptotic Pn∼nlog⁑n. The source links record formal support for the linked statements, rather than verification of the different printed proofs. The companion’s AppendixΒ G retains the complete source index at this note’s original pin, including the finite telescoping identities and their nonperiodicity consequences. Its SectionΒ 3 retains the broader subsum and automatic-sequence comparisons.

Acknowledgements

The author received no external funding and declares no competing interests. The numbering follows Bloom’s catalogue [14].

References

  1. Paul ErdΕ‘s, Sur certaines sΓ©ries Γ  valeur irrationnelle. L’Enseignement MathΓ©matique 4 (1958), 93–100, doi:10.5169/seals-34629.

  2. Paul ErdΕ‘s and Ronald L. Graham, Old and New Problems and Results in Combinatorial Number Theory. Monographies de L’Enseignement MathΓ©matique, L’Enseignement MathΓ©matique, 1980.

  3. Paul ErdΕ‘s, On the irrationality of certain series: problems and results. New Advances in Transcendence Theory, Cambridge University Press, 1988, pp.Β 102–109, doi:10.1017/CBO9780511897184.009.

  4. Kevin Ford, Ben Green, Sergei Konyagin, James Maynard and Terence Tao, Long gaps between primes. Journal of the American Mathematical Society 31 (2018), 65–105, doi:10.1090/jams/876; arXiv:1412.5029v3.

  5. John A. Fridy, Generalized bases for the real numbers. The Fibonacci Quarterly 4 (1966), no.Β 3, 193–201.

  6. Vjekoslav Kovač and Terence Tao, On several irrationality problems for Ahmes series. Acta Mathematica Hungarica 175 (2025), 572–608, doi:10.1007/s10474-025-01528-0; arXiv:2406.17593v4. Statement and section numbers refer to arXiv version 4.

  7. Vivian Kuperberg, Sums of singular series with large sets and the tail of the distribution of primes. The Quarterly Journal of Mathematics 74 (2023), no.Β 4, 1457–1479, doi:10.1093/qmath/haad030; arXiv:2210.09775v2. Statement numbers refer to arXiv version 2, 15 June 2023.

  8. Johan Land, A conditional proof of the irrationality of βˆ‘nβ‰₯1pn2βˆ’n under a uniform Hardy–Littlewood prime-tuples conjecture. Research draft, 5 September 2026. Formalisation material accompanies the draft.

  9. Leonardo de Moura and Sebastian Ullrich, The Lean 4 theorem prover and programming language. Automated Deduction – CADE 28, Lecture Notes in Computer Science, Springer, 2021, pp.Β 625–635, doi:10.1007/978-3-030-79876-5_37.

  10. The mathlib Community, The Lean mathematical library. Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, ACM, 2020, pp.Β 367–381, doi:10.1145/3372885.3373824. Describes a Lean 3-era snapshot; the repository lock identifies the library used by the present Lean 4 sources.

  11. James Maynard, Small gaps between primes. Annals of Mathematics 181 (2015), 383–413, doi:10.4007/annals.2015.181.1.7.

  12. Hugh L. Montgomery and Robert C. Vaughan, Multiplicative Number Theory I: Classical Theory. Cambridge Studies in Advanced Mathematics, Cambridge University Press, 2007, doi:10.1017/CBO9780511618314.

  13. Yitang Zhang, Bounded gaps between primes. Annals of Mathematics 179 (2014), 1121–1174, doi:10.4007/annals.2014.179.3.7.

  14. Thomas F. Bloom, ErdΕ‘s Problem #251. 2026. Accessed 6 September 2026.

  15. ErdΕ‘s Problems contributors, ErdΕ‘s Problem #251 discussion thread. 2026. Accessed 6 September 2026: Tao comment of 7 October 2025 and Land comments of 6 September 2026.

  16. Stefan Ringer, Local gap statistics, telescoping, and normality: a local-pattern approach to ErdΕ‘s problem 251. Preprint, 11 September 2026. Mutable main-branch TeX consulted 16 September 2026; the cited conditional statements were rechecked 18 September 2026. Formalisation material accompanies the draft.

  17. TonΔ‡i CrmariΔ‡ and Vjekoslav Kovač, On the irrationality of certain super-polynomially decaying series. Colloquium Mathematicum 179 (2025), 55–68, doi:10.4064/cm9628-5-2025; arXiv:2504.18712v1. Lemma 4 is cited using arXiv version 1.

  18. Jan-Christoph Schlage-Puchta, The irrationality of some number theoretical series. Acta Arithmetica 126 (2007), no.Β 4, 295–303, doi:10.4064/aa126-4-1; arXiv:1105.1451v1. Published in 2007; arXiv upload is from 2011. Lemma and preprint page locators refer to arXiv version 1.

  19. Paul ErdΕ‘s, Beweis eines Satzes von Tschebyschef. Acta Litterarum ac Scientiarum Szeged 5 (1932), 194–198.

  20. D. H. J. Polymath, Variants of the Selberg sieve, and bounded intervals containing many primes. Research in the Mathematical Sciences 1 (2014), article 12, doi:10.1186/s40687-014-0012-7; arXiv:1407.4897v4. Theorem 1.4(i) refers to arXiv version 4 (22 December 2014); the journal numbers it Theorem 4(i). An erratum is recorded at doi:10.1186/s40687-015-0033-x.

PDF and source links follow the latest files on GitHub. The web reader shows the edition published here.

Lean source files

49 source files, each a programme or result file. See them in the Lean map.

The programme directory, linked result sources and their local imports. Shared files can appear in more than one programme.

  • GitHub lean/ErdosProblems/Erdos251/ActualPrimePaperR11.lean
  • GitHub lean/ErdosProblems/Erdos251/AffineCylinderCollapse.lean
  • GitHub lean/ErdosProblems/Erdos251/AffineShiftEscape.lean
  • GitHub lean/ErdosProblems/Erdos251/AllResidueCarryCountermodel.lean
  • GitHub lean/ErdosProblems/Erdos251/AllResidueLogarithmicR9.lean
  • GitHub lean/ErdosProblems/Erdos251/BinarySourceR11.lean
  • GitHub lean/ErdosProblems/Erdos251/BoundedPerturbationCountermodel.lean
  • GitHub lean/ErdosProblems/Erdos251/FreePairReduction.lean
  • GitHub lean/ErdosProblems/Erdos251/GapDifferenceCountingR8.lean
  • GitHub lean/ErdosProblems/Erdos251/GrowingBlocksR11.lean
  • GitHub lean/ErdosProblems/Erdos251/KernelDenominatorFloor.lean
  • GitHub lean/ErdosProblems/Erdos251/LogarithmicCarryAsymptoticsR8.lean
  • GitHub lean/ErdosProblems/Erdos251/LogarithmicCarryR8.lean
  • GitHub lean/ErdosProblems/Erdos251/NonconcentrationConsequencesR11.lean
  • GitHub lean/ErdosProblems/Erdos251/NonconcentrationCoreR11.lean
  • GitHub lean/ErdosProblems/Erdos251/OrderLatticeDiagonal.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperBoundedCarryR7.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR20/ExactDenominator.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR20/FiniteSeparation.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR20/LocalTargetInterval.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR20/RealPropagation.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR20/SignedWindow.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR20/SparseConstructionAudit.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR20/SparseNonconcentration.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR20/TrueTail.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR21/JointPrimeGapCountermodel.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR21/PerturbedPrimePositions.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCompleteR21/TwoWindowSparsity.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCoreR7.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperCorrespondenceAudit.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperFiniteCertificatesR7.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperNonconcentrationR7.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperSparseCouplingR7.lean
  • GitHub lean/ErdosProblems/Erdos251/PaperTailBoundsR7.lean
  • GitHub lean/ErdosProblems/Erdos251/PerturbationGrowthR11.lean
  • GitHub lean/ErdosProblems/Erdos251/PolynomialGapSeriesValue.lean
  • GitHub lean/ErdosProblems/Erdos251/PrimeGapDyadicTail.lean
  • GitHub lean/ErdosProblems/Erdos251/PrimeSourceR11.lean
  • GitHub lean/ErdosProblems/Erdos251/RealPrimeGapTail.lean
  • GitHub lean/ErdosProblems/Erdos251/ResidueFeedbackCore.lean
  • GitHub lean/ErdosProblems/Erdos251/ReturnedSparseWindow.lean
  • GitHub lean/ErdosProblems/Erdos251/ShiftedGapCountingR9.lean
  • GitHub lean/ErdosProblems/Erdos251/SparseAmbientR9.lean
  • GitHub lean/ErdosProblems/Erdos251/SparseIntervalR8.lean
  • GitHub lean/ErdosProblems/Erdos251/SparsePaperR11.lean
  • GitHub lean/ErdosProblems/Erdos251/SparsePolylogR11.lean
  • GitHub lean/ErdosProblems/Erdos251/SparseRationalisationCore.lean
  • GitHub lean/ErdosProblems/Erdos251/SparseScheduleDensityR8.lean
  • GitHub lean/ErdosProblems/Erdos251/SparseScheduleR8.lean
Statements with Lean proofs

Lean is software that verifies a formal proof against its theorem statement and assumptions. These proofs establish only the statements listed here.

  • The finite summation-by-parts identity relating the prime dyadic partial sums to the prime-gap dyadic partial sums, with an exact endpoint term and no convergence premise.
  • The factor-of-two normalisation between the two displayed indexings, at every finite horizon.
  • The unconditional prime-to-gap identity, using an elementary polynomial bound on primes to prove summability; irrationality of the prime series is equivalent to irrationality of the prime-gap series.
  • For an abstract integer-digit dyadic tail recurrence: the exact block identity, and that a shift of fixed length is integral exactly when an explicit scaled state is.
  • That one integral shift propagates to every later index.
  • That repeated doubling removes the power-of-two denominator, so every rational-valued dyadic recurrence has one fixed positive shift integral at all sufficiently late indices.
  • For a real-valued dyadic recurrence, cofinal non-integrality of every fixed positive shift implies irrationality of the initial state.
  • That the actual consecutive-prime-gap sequence is unbounded, by the factorial prime-free-interval construction, and therefore is not eventually periodic with any positive period.
  • For any integer-digit dyadic tail recurrence, two adjacent fixed-length shifts lying strictly between -1 and 1 cannot both be integral when the corresponding digits differ.
  • For the actual prime gaps, a cofinal supply of adjacent small-shift pairs with a mismatching gap excludes eventual integrality of that fixed shift.
  • The generic distance-to-integers core of the finite-truncation criterion: an approximation farther than its error bound from every integer certifies non-integrality.
What these proofs do not establish
  • The target irrationality.
  • A cofinal nonintegrality theorem for the concrete prime-gap tails; defining the series and proving its recurrence do not supply this.
  • A theorem supplying cofinally many adjacent actual-prime-gap tail shifts in the open unit interval with the required gap mismatch.
  • Any theorem forcing periodicity or automaticity of the prime gaps from rationality; the free-carry identity disconfirms that route.
The formal record: 5 main results, 2 open obligations, 1 selected result module, Comparator review

Main results

Statements and their limits are copied from the public research record. Recorded status: registered_declarations

formalisation of exact finite identity and nonperiodicity contrast; novelty and significance unassessed family: coefficient_only_no_go

The coefficient-only wrapper records the exact finite carry partial-sum identity together with non-eventual-periodicity of the synthetic coefficient stream and the actual prime-gap stream, exposing the limits of coefficient-only reasoning.

The wrapper proves the finite identity and the two non-eventual-periodicity statements only. It does not assert the infinite rational-sum limit of the synthetic countermodel, identify the synthetic coefficient stream with actual prime gaps, establish a prime-gap tail bridge, prove #251 irrationality, or make novelty, priority, significance, or external-review claims.

formalisation of existing result; novelty unassessed family: prime_gap_reformulation

Lean checks that the prime-value dyadic series is irrational exactly when the prime-gap dyadic series is, discharging summability by an elementary polynomial prime bound rather than the prime-number theorem. Neither side is proved irrational. The already-known identity is Tao's (7 October 2025) and is recorded separately as cited only.

The equivalence does not prove irrationality of either series.

abstract Lean-checked classification and normal form; novelty unassessed family: dyadic_tail_integrality_classification

For any integer-digit real dyadic tail recurrence T(N + 1) = 2*T(N) - g(N + 1), the initial value T(0) is irrational exactly when every positive-length tail shift is nonintegral.

This exact normal form covers arbitrary integer-digit dyadic tail recurrences with the declared real state type; it does not supply a cofinal nonintegral shift for the consecutive-prime-gap recurrence. The prime-specific producer remains open, so no prime-gap irrationality, novelty, significance, or external-review claim is made and ErdΕ‘s #251 remains open.

conditional actual-prime-gap endpoint reduction; novelty and significance unassessed family: small_mismatch_criterion

For the actual prime-gap dyadic tail, cofinally many adjacent pairs of strictly small h-shifts with unequal corresponding prime gaps force failure of eventual RatIntegral h-shifts.

The representative assumes T : β„• β†’ β„š, the DyadicTailRecurrence for the actual prime-gap digits, and for every Nβ‚€ an Nβ‰₯ Nβ‚€ whose adjacent h-shifts both lie strictly in (-1, 1) while the corresponding prime gaps differ. Under that cofinal small-mismatch supply it excludes eventual RatIntegral h-shifts; it does not prove the supply or actual smallness. rationalPrimeGapTail_has_positive_shift_not_eventually_small records the contrary rational-state obstruction for at least one positive shift. This is a conditional reduction only: no #251 irrationality, infinite rational-sum limit, universal producer, novelty, priority, significance, or external-review claim is made; #251 remains open. The actual-prime-gap specialization is distinct from coefficient_only_no_go and does not duplicate prime_gap_reformulation.

Assumptions still needing proofs

Prove any one of these and the corresponding reduction above becomes unconditional.

  • prime_gap_cofinal_shift_escape For every fixed hβ‰₯1 and every N0, find N β‰₯ N0 for which βˆ‘jβ‰₯1(gN+h+jβˆ’gN+j)/2j is not an integer.
  • cofinal_adjacent_small_mismatch For every fixed hβ‰₯1 and every N0, find N β‰₯ N0 such that both adjacent full tail shifts have absolute value less than 1 and gN+h+1β‰ gN+1. The checked local consumer then excludes eventual integrality of the h-shift.

Selected Lean proof files

The public result record selects 1 module. Browse all 49 source files in this programme’s source map, including shared result sources and local imported dependencies.

ModuleLinesDeclarationsTheorems
ErdosProblems.Erdos251.PrimeGapDyadicTail 1665 116 92

Comparator review

Comparator runs selected Lean proofs against separately supplied theorem statements using recorded software versions. A successful run establishes that those proofs satisfy those statements; it does not prove the unanswered questions above.

Replayed by the Comparator

Statement and type parity replayed against the pinned toolchain.

  • Exact finite summation by parts, the unconditional infinite prime-gap identity, and irrationality equivalence.

    The equivalence does not prove irrationality of either series.

    prime_gap_reformulation: targeted

  • For any integer-digit dyadic tail recurrence T(N+1) = 2*T(N) - g(N+1), the rational h-shift is integral exactly when the reduced denominator of T(N) divides 2hβˆ’1, equivalently when 2h is congruent to 1 modulo that denominator. For the real recurrence, the load-bearing normal form says that irrationality of T(0) is equivalent to every positive tail shift being nonintegral; the eventual-integrality equivalence and denominator/order laws are supporting mechanism evidence.

    These exact statements cover arbitrary integer-digit dyadic tail recurrences with the declared rational and real state types; they classify integrality and give an irrationality normal form but do not supply a cofinal nonintegral shift for the consecutive-prime-gap recurrence. The generic hypotheses therefore do not close the prime-specific producer gap: no prime-gap irrationality, novelty, significance, or external review is claimed, and ErdΕ‘s #251 remains open. This is one abstract classification family, distinct from prime_gap_reformulation, not a duplicate frontier claim.

    dyadic_tail_integrality_classification: targeted

  • For the actual prime-gap dyadic tail, cofinally many adjacent pairs of strictly small h-shifts with unequal corresponding prime gaps force failure of eventual RatIntegral h-shifts. The adjacent-pair zero obstruction is the load-bearing mechanism; exact non-eventual periodicity of consecutive prime gaps supplies the actual-prime-gap contrast.

    The representative assumes T : β„• β†’ β„š, the DyadicTailRecurrence for the actual prime-gap digits, and for every Nβ‚€ an Nβ‰₯ Nβ‚€ whose adjacent h-shifts both lie strictly in (-1, 1) while the corresponding prime gaps differ. Under that cofinal small-mismatch supply it excludes eventual RatIntegral h-shifts; it does not prove the supply or actual smallness. rationalPrimeGapTail_has_positive_shift_not_eventually_small records the contrary rational-state obstruction for at least one positive shift. This is a conditional reduction only: no #251 irrationality, infinite rational-sum limit, universal producer, novelty, priority, significance, or external-review claim is made; #251 remains open. The actual-prime-gap specialization is distinct from coefficient_only_no_go and does not duplicate prime_gap_reformulation.

    small_mismatch_criterion: targeted

  • The exact finite carry identity and the two non-eventual-periodicity statements expose the coefficient-only barrier: irregularity and growth of a coefficient stream do not by themselves force irrationality, while the synthetic carry stream remains distinct from the actual prime-gap stream.

    CoefficientOnlyNoGo checks the exact finite partial-sum identity and the two non-eventual-periodicity statements. It does not assert the infinite limit of the synthetic countermodel, identify its coefficient stream with actual prime gaps, establish a prime-gap tail bridge, prove #251 irrationality, or make novelty, priority, significance, or external-review claims.

    coefficient_only_no_go: targeted

Represented indirectly

Covered through a neighbouring selected interface, not replayed one-to-one.

  • Odd rational denominators give totient-length integral shifts, and integrality propagates through the recurrence.

    This describes rational states and supplies no contradiction for actual prime gaps.

    totient_shift_propagation: represented_by_integral_shift_family

Outside the Comparator selection

Stated in the corpus; not part of the replayed interface set.

  • Block identities and exact denominator criteria classify rationality through integral positive tail shifts.

    The concrete prime-gap producer remains missing.

    integral_shift_classification: not_selected_abstract_family_represented_in_manifest

The result statements, their limits and the counts are copied from the public Lean repository’s published records identified by b0ebeb9add157584. These records are copied into the page when the website is built. Introductory explanations and labels are written for this site. The diagram at the top is the exception: a program draws it from numbers the papers print and tests the numerical relationships shown. Its caption and explanation are written for this site.