Prime numbers · Hardy–Littlewood · predictive test
The Lockstep Deficit Becomes a Law
A pattern first discovered as a small shortfall in consecutive prime correlations can now be predicted without measuring the gap distribution first. The new model uses Hardy–Littlewood singular series and full inclusion–exclusion — with no fitted correction factor.
The lockstep deficit began with a simple question about consecutive prime correlations. Pick an even shift h. If both p and p+h are prime, call p an h-starter. Now move from p to its immediate next prime q. Is q+h prime too?
When the answer is yes, the two consecutive primes p and q move in lockstep: each has another prime exactly h steps ahead.
The naive prediction is straightforward. Hardy–Littlewood gives the ambient density of prime pairs separated by h. If the next prime behaved like an unrelated prime, the same density should describe lockstep.
It does not.
The discrepancy is not random noise. It changes dramatically with the shift, it contains exact zeros forced by modular arithmetic, and it can now be predicted before the corresponding prime data are measured.
The simple theorem that changes the problem
The first important result requires no conjecture at all. If p is an h-starter, then p+h is already known to be prime. Therefore the next prime after p cannot lie beyond it.
This tiny observation changes the asymptotic problem completely. The successor gap is not free to grow without bound. For any fixed shift h, there are only finitely many possible successor gaps:
2, 4, 6, … , h.
That finite set is what allows the empirical gap histogram used in the earlier version of the lockstep model to be removed entirely.
From a measured pattern to a parameter-free predictor
The earlier lockstep calculation used the observed frequency of each successor gap. It worked surprisingly well, but it left an obvious question: was the measured gap distribution secretly doing the predictive work?
The new model answers that question.
Suppose the actual next prime is p+g. Then every possible prime location before p+g must fail. For odd p, only the even offsets matter:
2, 4, 6, … , g−2.
Instead of measuring how often this happens, the new predictor writes the condition exactly using inclusion–exclusion. Every term is assigned its Hardy–Littlewood singular series.
For the lockstep event at a particular gap g, the required prime constellation is
and every subset of earlier possible prime positions is alternately subtracted and added back. The resulting finite-range predictor can be written schematically as
Here the singular series S measures the local arithmetic admissibility of each prime constellation, while Ik is the corresponding logarithmic integral over the chosen numerical range.
The important point: the model no longer receives the measured successor-gap distribution. Given the shift h and the range being tested, it produces the predicted lockstep correction directly.
The real test: predict before measuring
Explaining data after seeing it is useful, but prediction is harder. So the strongest tests were prospective: the numerical predictions were recorded first, and the corresponding prime data were measured afterward.
Blind test: small shifts
| Shift h | Predicted | Observed | Relative error |
|---|---|---|---|
| 4 | 0 | 0 | exact zero |
| 8 | 0.177400 | 0.176709 | −0.389% |
| 16 | 0.405251 | 0.404571 | −0.168% |
| 32 | 0.649320 | 0.638539 | −1.660% |
| 38 | 0.691901 | 0.693417 | +0.219% |
A second blind test
The next set was deliberately chosen to make a simple trend prediction difficult. The model predicted a nonmonotonic ordering across shifts 46, 52, 58, 64 and 68.
| Shift h | Predicted | Observed | Relative error |
|---|---|---|---|
| 46 | 0.740343 | 0.738368 | −0.267% |
| 52 | 0.743975 | 0.741545 | −0.327% |
| 58 | 0.778104 | 0.772573 | −0.711% |
| 64 | 0.760887 | 0.761045 | +0.021% |
| 68 | 0.781883 | 0.783625 | +0.223% |
The measured values reproduced the predicted nonmonotonic structure:
Across this five-shift blind set, the mean absolute relative error was 0.310%. The prediction for h=64 differed from observation by only 0.021%.
The strongest evidence is not any single close number. It is that one unchanged arithmetic machine predicts zeros, large suppressions, near-unity corrections, and nonmonotonic changes from one shift to the next.
The lockstep deficit contains exact prohibitions
Some parts of the result do not depend on Hardy–Littlewood at all. They are elementary consequences of modular arithmetic.
Consider the terminal case in which the next prime after p is exactly p+h. Lockstep would then require
If 3 does not divide h, these three numbers occupy all three residue classes modulo 3. One of them must therefore be divisible by 3. Away from the small exceptional beginning of the primes, that is impossible.
If 3 does not divide h, lockstep on the terminal successor branch g = h is exactly forbidden.
The case h=4 is especially clean. For every relevant starter, the next prime is forced onto the terminal branch, so the lockstep prediction is exactly zero. The blind test found zero successes.
Another exact theorem: the next starter can never be 2h away
There is another prohibition hidden in the definition. Suppose p is an h-starter and someone claims the next h-starter is p+2h.
Because p is already a starter, p+h is prime. If p+2h is also prime, then p+h itself has a prime exactly h steps ahead.
Therefore p+h is already another starter, sitting between the two claimed consecutive starters.
The asymptotic lockstep law
The successor-gap bound also reveals what happens arbitrarily far out along the number line.
For fixed h, each interior candidate p+g with g<h has conditional prime probability of order 1/log X. There are only finitely many such positions.
Therefore, conditional on the Hardy–Littlewood conjecture, the probability that an h-starter’s immediate successor is actually p+h tends to one.
The whole lockstep problem then collapses onto the three-term progression
p, p+h, p+2h.
The limiting correction becomes
This immediately produces a sharp arithmetic split.
If 3∤h, the three-term progression is inadmissible modulo 3, so
If 3|h, the limit is nonzero and is controlled by the distinct odd prime divisors of h.
For example, the shifts 6, 144 and 288 share the same asymptotic correction even though their finite-range behavior is very different.
What the new law says about shift 144
The number 144 was the original test case, but the new result makes clear that it is only one member of a much larger family.
At the currently accessible range, the measured per-event correction for h=144 is approximately 0.923.
Its fixed-shift Hardy–Littlewood asymptotic limit is approximately
That does not mean a computer should soon observe the value 0.81981. At two hundred million, the mean successor gap after a 144-starter is only about 18, far below the ceiling at 144. The terminal branch carries almost none of the probability mass.
Reaching the fixed-144 asymptotic regime requires log X to be much larger than 144. That lies at an astronomical numerical scale.
So the finite-range predictor and the asymptotic theorem answer different questions. The first is computationally testable now. The second describes the eventual fixed-shift structure.
The one miss taught us where the remaining mathematics lives
The largest error in the first fresh full-inclusion–exclusion blind set occurred at h=32: the prediction was about 1.66% high.
That miss turned out to be extremely informative.
The full Hardy–Littlewood inclusion–exclusion calculation predicted the mean successor gap at h=32 to within about 0.15%. Individual successor-gap frequencies were also extremely close.
So the gap machine was not the problem.
| Layer | Mean absolute error | Interpretation |
|---|---|---|
| Starter pair | ≈ 0.16% | Pair density already accurate |
| Raw 3-point tuples | ≈ 0.23% | Very close |
| Raw 4-point tuples | ≈ 1.23% | Major residual appears |
| Consecutive lockstep | ≈ 2.07% | Interval conditioning adds another layer |
That decomposition isolates the next theoretical problem. The leading Hardy–Littlewood term handles the three-point structure extremely well, but finite-range corrections become more visible when a fourth correlated prime is introduced.
This is why the current predictor is presented as a leading Hardy–Littlewood model rather than an exact finite- X theorem. The remaining task is to derive the lower-order correction rather than fit it away.
Why these consecutive prime correlations matter
Prime-number heuristics often begin by treating sufficiently separated events as approximately independent after local congruence corrections are included. The lockstep statistic provides a compact example of why the word approximately matters.
The immediate next prime carries extra information. It tells us not only that one location is prime, but that every candidate location before it failed.
Full inclusion–exclusion converts that negative information — the empty interval — into arithmetic terms. Once that is done, much of the apparent lockstep deficit becomes predictable.
The result is therefore not a new mysterious prime constant. It is a conditional-density effect created by the interaction of
Hardy–Littlewood singular series, modular admissibility, successor-prime constraints, and interval avoidance.
The original anomaly was a shortfall. The stronger result is the mechanism: a parameter-free arithmetic machine can predict the shortfall before the corresponding prime data are examined.
What is proved, and what remains conditional
Several statements are exact and unconditional. The successor gap of an h-starter satisfies g≤h. A consecutive-starter gap of exactly 2h is impossible. And when 3∤h, terminal-branch lockstep at g=h is impossible by modular arithmetic.
The asymptotic formula for κh∞ and the finite-range numerical predictor use the Hardy–Littlewood prime-tuple framework . Those results should therefore be understood as conditional or heuristic predictions based on Hardy–Littlewood, supported here by direct computation and prospective tests.
What comes next
The first open problem is the finite-range remainder. The h=32 diagnostic suggests that the leading unresolved contribution enters primarily when the fourth correlated prime is introduced.
A second problem is computational. Full inclusion–exclusion grows exponentially with the number of possible interior prime positions. The formula is exact within the chosen Hardy–Littlewood model, but a faster resummation is needed for very large shifts.
A third direction is higher-order lockstep. Instead of asking whether the next prime is also a starter, ask whether the next two, three or more consecutive primes remain in formation. The corresponding prime constellation grows, and new modular prohibitions should appear automatically.
Those are questions for the next stage. The central empirical question of the original lockstep deficit has already changed:
The problem is no longer simply “Why is the measured rate low?”
It is now “How far can a parameter-free Hardy–Littlewood machine predict consecutive prime correlations before lower-order terms become necessary?”
Frequently asked questions about the lockstep deficit
What is the lockstep deficit?
The lockstep deficit is the difference between a naive independent prediction for consecutive prime-pair repetition and the rate actually observed when the second prime is required to be the immediate successor of the first.
What is an h-starter?
For an even shift h, a prime p is an h-starter when p+h is also prime.
Why is the next-prime condition important?
Because saying q=nextprime(p) contains more information than saying merely that q is prime. It also says there are no primes between p and q. The new predictor includes that information with full inclusion–exclusion.
Does the predictor use fitted parameters?
No empirical correction factor or measured successor-gap histogram is used in the full inclusion–exclusion predictor. Its inputs are the shift, the numerical range, Hardy–Littlewood singular series and the corresponding logarithmic integrals.
Is the result a proof of the Hardy–Littlewood conjecture?
No. The exact modular prohibitions and successor-gap bound are independent theorems, but the finite-range density model and asymptotic lockstep formula are conditional on Hardy–Littlewood-type prime-tuple predictions.
The computations discussed here use direct prime sieves through
200 million. Prospective prediction values were recorded before the
corresponding test data were measured.
The companion technical paper, “The Lockstep Law: A Parameter-Free Hardy–Littlewood Predictor for
Consecutive Prime Correlations,” contains the definitions, derivations, computational details,
blind-test tables and asymptotic analysis.
Griff Gurwell · Independent Researcher · ctftheory.com