Research Paper · October 2025

Hafdi Conjecture

A Conjecture on the Asymptotic Bounds of Half-Prime Gaps

Ahmed Hafdi · Independent Research · October 28, 2025
Abstract

We present a new conjecture concerning the asymptotic behavior of prime gaps, specifically focusing on half-gap ratios. By introducing the normalized half-gap sequence \(\{r_n\}\), we propose an upper bound that connects the growth rate of these gaps to an exponential function of the prime index. This conjecture, if proven, would provide insight into the distribution of primes and refine existing bounds on prime gaps.

§ 1

Introduction

Let \(P_n\) denote the \(n\)-th prime number, with \(P_0 = 2\), \(P_1 = 3\), \(P_2 = 5\), and so forth. The study of prime gaps, defined as \(g_n = P_{n+1} - P_n\), has been a central topic in analytic number theory for centuries.

Classical results such as Bertrand's postulate and more recent work by Zhang, Maynard, and the Polymath project have provided various bounds on prime gaps. In this paper, we introduce a normalized perspective by considering half-gaps \(r_n\), and propose a conjecture relating these quantities to an exponential bound in terms of the prime index.

Bertrand's Postulate (1845)
For every integer \(n \geq 1\), there exists at least one prime \(p\) with \(n < p \leq 2n\). This guarantees gaps can never be too large relative to the prime itself.
Zhang–Maynard (2013–2015)
Proved that \(\liminf_{n\to\infty} g_n\) is bounded — infinitely many prime gaps remain below a fixed constant. The Hafdi Conjecture addresses the complementary question: how small can normalized gaps be, relative to index?

§ 2

Definitions
and Notation

We introduce two central objects: the half-gap sequence and its cumulative representation.

Definition 1 — Half-Gap Sequence
\[r_n = \frac{P_{n+1} - P_n}{2} = \frac{g_n}{2}\]

Since all primes greater than 2 are odd, \(g_n\) is always even for \(n \geq 1\), making \(r_n\) a positive integer for all \(n \geq 1\).

Prime Number Line

The primes \(P_1\) through \(P_6\), their gaps \(g_n\), and corresponding half-gaps \(r_n\):

P₁=3 P₂=5 P₃=7 P₄=11 P₅=13 P₆=17 g₁=2, r₁=1 g₃=4, r₃=2 g₅=4, r₅=2
Definition 3 — Cumulative Representation
\[P_m = P_1 + P_0 \cdot \sum_{i=1}^{m-1} r_i = 3 + 2\sum_{i=1}^{m-1} r_i\]

Proof by telescoping: \(P_m = P_1 + \sum_{i=1}^{m-1}(P_{i+1}-P_i) = 3 + \sum_{i=1}^{m-1} 2r_i\).

§ 3

Main Conjecture

The central claim of this paper — connecting the size of half-prime gaps to an exponential bound in the prime index.

Conjecture 4 — Exponential Half-Gap Bound

For any positive integer \(m\) such that \(P_m\) is prime, there exists an integer \(k \geq 1\) and an index \(n \leq m-1\) such that:

\[r_n < \left\lfloor \frac{m}{2^k} \right\rfloor - 1\]

This conjecture suggests that among the first \(m-1\) half-gaps, at least one is bounded by an exponentially decreasing function of \(m\). In other words, the sequence of half-gaps cannot all be too large relative to their index.

Bound Decay Visualization

The bound \(\lfloor m/2^k \rfloor - 1\) for fixed \(m=20\) as \(k\) increases — showing how stringent the bound becomes:

k=1 k=2 k=3 k=4 9 4 1 0 bound value ⌊m/2ᵏ⌋ − 1 (m = 20)

§ 4

Motivation
and Context

The Hafdi Conjecture connects to three landmark results in prime number theory, each addressing a different facet of gap distribution.

Prime Number Theorem
The average gap between consecutive primes near \(n\) is approximately \(\ln(P_n)\). The Hafdi Conjecture provides a different perspective: rather than averages, it focuses on the minimum behavior of normalized gaps relative to index position.
Cramér's Conjecture
Cramér conjectured \(g_n = O((\ln P_n)^2)\). If the Hafdi Conjecture holds, it provides complementary information about the distribution of gap sizes — not the maximum but the index-relative minimum behavior.
Zhang–Maynard–Tao
Recent breakthroughs showed \(\liminf_{n\to\infty} g_n\) is bounded — infinitely many primes are within a fixed distance of each other. The Hafdi Conjecture addresses a different aspect: the relationship between prime index and gap magnitude.

Heuristic Argument

Under the assumption that primes behave pseudo-randomly with local density \(1/\ln(n)\) near \(n\), we expect gaps of size \(O(\ln P_m)\). For large \(m\), the condition \(r_n < \lfloor m/2^k\rfloor - 1\) becomes increasingly stringent as \(k\) grows, but there are \(m-1\) opportunities for at least one half-gap to satisfy this bound.

§ 5

Preliminary
Observations

Two immediate consequences of Conjecture 4, assuming it holds.

Proposition 6 — Asymptotic Corollary

If Conjecture 4 holds, then for sufficiently large \(m\), there exists \(n \leq m-1\) such that:

\[r_n = O\!\left(\frac{m}{2^k}\right)\]

for some \(k\) depending on \(m\). This makes the growth rate of the minimum half-gap sub-linear in \(m\).

Proposition 7 — Density of Small Half-Gaps

The conjecture implies that the sequence \(\{r_n\}\) contains infinitely many terms that are relatively small compared to their index position.

\[\exists\, \text{infinitely many } n : r_n \ll n\]

This is a weaker statement than twin prime density, but stronger than what follows from the PNT alone. The sequence of half-gaps cannot grow monotonically with index.

§ 6

Computational
Verification

Initial verification for small primes demonstrates consistency with the conjecture. For each \(m\), we find the optimal \(k\) and exhibit an \(n \leq m-1\) satisfying the bound.

Verification Table

For each \(m\), we show the smallest \(r_n\) found among \(n \leq m-1\), and the first \(k\) for which the conjecture is satisfied.

m Pₘ min rₙ (n≤m−1) k ⌊m/2ᵏ⌋ − 1 Satisfied?
613112
819113
1029114
1237115
1547116
2071119
25971111
301131114

k=1 suffices for all verified cases — the bound ⌊m/2⌋−1 is easily satisfied when r₁=1 (P₁=3, P₂=5).

Systematic Study Approach

Step 1
Compute \(r_n\) for \(1 \leq n \leq N\) for large \(N\) using a prime sieve.
Step 2
For each \(m\), determine the optimal \(k\) and verify \(\exists n : r_n < \lfloor m/2^k\rfloor - 1\).
Step 3
Analyze the distribution of \((m, k)\) pairs that satisfy the conjecture and characterize extremal cases.

§ 7

Open Questions
and Future Work

Five natural directions for further investigation:

1
What is the optimal relationship between \(m\) and \(k\) in Conjecture 4? Can we sharpen the bound to a specific \(k = k(m)\)?
2
Can we provide a probabilistic argument using the Cramér random model to establish the conjecture with probability 1 under standard heuristics?
3
Does the conjecture hold with probability 1 under standard heuristics for prime distributions?
4
What are the implications for primality testing or cryptographic applications, where gap structure has practical consequences?
5
Can this conjecture be weakened or strengthened while remaining tractable — for instance, by replacing \(2^k\) with a slower or faster exponential base?

§ 8

Conclusion

We have presented a novel conjecture relating the size of half-prime gaps to an exponential bound in terms of the prime index. While the conjecture requires rigorous proof, it offers a fresh perspective on the classical problem of bounding prime gaps and may lead to new insights in analytic number theory.

"The half-gap sequence \(\{r_n\}\) encodes the fine structure of prime distribution in a normalized, integer-valued form — making it a natural lens for studying asymptotic gap behavior."

— Ahmed Hafdi, October 2025

§0Abstract
§1Introduction
§2Definitions
§3Conjecture
§4Motivation
§5Observations
§6Verification
§7Open Questions
§8Conclusion
Loading PDF…
§ 0 Abstract
How small can half-prime gaps be?
rₙ
Half-Gap
Sequence
⌊⌋
Exponential
Bound
Number
Theory
Historical context
1845
Bertrand's Postulate — always a prime between n and 2n
1936
Cramér's Conjecture — gₙ = O((ln Pₙ)²)
2013
Zhang's Theorem — bounded gaps, lim inf gₙ < 70,000,000
2015
Maynard–Tao — lim inf gₙ ≤ 246
2025
Hafdi Conjecture — exponential bound on min rₙ
First primes and half-gaps
2 r₀=½ 3 r₁=1 5 r₂=1 7 r₃=2 11 r₄=1 13
Definition
rₙ = gₙ / 2 = (Pₙ₊₁ − Pₙ) / 2
Conjecture 4 — Exponential Bound
Main statement
∃ k ≥ 1, n ≤ m−1 : rₙ < ⌊m/2ᵏ⌋ − 1
k=1
⌊m/2⌋
k=2
⌊m/4⌋
k=3
⌊m/8⌋
k=4
⌊m/16⌋
Classical connections
PNT
Avg gap ≈ ln Pₙ — Hafdi focuses on the minimum
Cr
gₙ = O((ln Pₙ)²) — complementary to Hafdi's index bound
ZMT
lim inf gₙ bounded — different: index vs magnitude
Consequences of Conjecture 4
Proposition 6
rₙ = O(m / 2ᵏ) for large m
Proposition 7
∃ infinitely many n : rₙ ≪ n
The half-gap sequence cannot grow monotonically — it must return to small values infinitely often, relative to index.
Verified cases (k=1 suffices)
m=10
⌊10/2⌋−1 = 4
r₁=1 < 4 ✓
m=20
⌊20/2⌋−1 = 9
r₁=1 < 9 ✓
m=50
⌊50/2⌋−1 = 24
r₁=1 < 24 ✓
m=100
⌊100/2⌋−1 = 49
r₁=1 < 49 ✓
The twin-prime gap (r=1) satisfies the conjecture whenever m ≥ 6.
Five open directions
  • 1
    Optimal k(m) relationship?
  • 2
    Cramér model probabilistic argument?
  • 3
    Holds with probability 1 under heuristics?
  • 4
    Cryptographic / primality applications?
  • 5
    Weaken or strengthen while tractable?
Conclusion
"A fresh perspective on bounding prime gaps — through normalization and index-relative exponential bounds."
New
conjecture
Open
problems
Prime
theory
— / — ↓ scroll to explore