A corrected prime-gap interval lemma for sums of two odd primes

Define λ(x)=2\lambda (x)=2 for 0<x≤70<x\le 7 and, for x>7x>7, let λ(x)\lambda (x) be the largest gap p′−pp'-p with p≤xp\le x and p′p' the next prime. Kaniecki’s printed open-interval Lemma 7 fails at x=6x=6. The corrected statement is: for every real x>4x>4, some odd primes p,q satisfy x<p+q≤x+λ(λ(x))x<p+q\le x+\lambda (\lambda (x)). Claude supplied the counterexample and corrected integer proof; Codex extended the correction to real x.

What was already known

Kaniecki’s 1995 paper defined λ\lambda and printed the same bound with both interval endpoints open. Its proof chose nearby odd primes, and its application used closed intervals. The project identifies the failure at six and repairs the endpoint and the proof’s x−p1=7x-p1=7 boundary case.

How the result developed

  1. 26 Oct 2026 · Result reported [1]

    The original report describes the AI-assisted result.

  2. 16 Nov 2026 · Registry verification recorded [2]

    Palomar recorded a successful mechanical check of the failure of Kaniecki’s printed lemma at x=6x=6 and the corrected interval with a closed upper endpoint.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-centered
ImportanceModest
Technical verificationFormal (Lean)
Human understandingFew

AI involvement

Steve Hubbard directed the project and decided what to publish. The disclosure identifies the model work on the failure at six, the corrected integer lemma and the extension to real arguments. Claude wrote the statements, the counterexample and the integer proof; Codex wrote the real extension. Kaniecki retains credit for the original gap-function argument.

Importance

Repairs a boundary error in a supporting prime-gap lemma. The project reports that Kaniecki’s use through closed intervals remains valid, so this does not replace the paper’s main result.

Technical verification

The registered Lean development reports exact checking of the counterexample at six and the corrected integer and real statements, without an RH assumption or the paper’s analytic inputs. The printed page and pinned real theorem have the same gap function and endpoint convention after correction.

Formal checking

The registered Lean development reports exact checking of the counterexample at six and the corrected integer and real statements, without an RH assumption or the paper’s analytic inputs. The printed page and pinned real theorem have the same gap function and endpoint convention after correction.

Checker
Lean kernel and Palomar Comparator
Scope
The four selected counterexample and corrected-lemma declarations
Basis
Reported by the linked checker

Human understanding

The project reports no human expert review of the mathematics. A human explanation of the model’s exact correction and repair is not documented; Few is the default for that gap.

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Historical omission audit: curate the model-origin counterexample and repair separately from the earlier human prime-gap argument.