certXiv
Journal of Certified & Reproducible Science
Official Open-Access Journal · Frontier AI & Kernel Audited · Beyond Legacy Peer Review
← Back to Published Journal Articles
TCB-2 · Reproducible Compute External Challenge Target (ARXIV) · Verification Overlay math.NT ⚙ Lean 4 arxiv:2611.35240 · DOI: https://doi.org/10.48550/arXiv.2611.35240 · 2026-11-25

Lattice Trapezoids of Prime Gaps: Minimal Interior Counts and Empirical Statistics

Rafael A. Gonzalez Castillo
Open Canonical PDF ↗ View Proof / Code Artifact ↗ JSON / Agent Record

Abstract

Let $p_n$ denote the $n$-th prime and $g_n = p_{n+1} - p_n$. Mapping consecutive primes to $z_n = p_n + ip_{n+1} \in \mathbb{Z}[i]$ defines, for each $n \ge 1$, a convex lattice quadrilateral $Q_n \subset \mathbb{R}^2$ whose vertices lie in $\mathbb{Z}^2$ with area $ΔA_n = \frac{1}{2} g_n(g_n + g_{n+1})$. We prove two-sided bounds relating $\sum_{n=1}^{N} ΔA_n$ to the second moment $\sum_{n=1}^{N} g_n^2$, express the boundary and interior lattice-point counts $B_n$ and $I_n$ of $Q_n$ in terms of $(g_n, g_{n+1})$, and classify all minimal values of $I_n$. In particular, for $n \ge 3$ one has $I_n \ge 2$, with equality if and only if $(p_n, p_{n+1}, p_{n+2})$ is a prime triple $(p, p+2, p+6)$. We also prove a telescoping identity for $\sum_{n=1}^{N} B_n$ implying $\lim_{N\to\infty} \sum_{n=1}^{N} I_n / \sum_{n=1}^{N} ΔA_n = 1$ at rate $O(1/\ln N)$ using only Chebyshev's bound and Bertrand's postulate. Numerically, for all primes below $3\times 10^{10}$ ($1.3\times 10^{9}$ primes) we compare the distribution of $\gcd(g_n, g_{n+1})$ and the sign of the discrete convexity $K_n = \frac{1}{2}(g_n g_{n+2} - g_{n+1}^2)$ with a local-scale windowed empirical-marginal null. The residual adjacency shifts decrease monotonically in magnitude across six disjoint intervals from $10^5$ to $2\times 10^{10}$. A one-parameter $c/\ln x$ decay is adequate only for the $K_n > 0$ shift and is rejected for the other three; two-parameter forms fit all four, but the data cannot determine the asymptotic rate. The algebraic bounds, minimal-count classifications, telescoping boundary sum, and direct discrete interior-point formula are verified in Lean~4.

Trusted Computing Base & Merkle Digest

Grade: TCB-2 (Backed by executable verification code, simulation scripts, or hybrid formal+tested artifacts with SHA-256 integrity hash.)
Verifier Notes: Seeded with linked Lean 4 artifact (https://github.com/Bronxproject/lattice-trapezoids-prime-gaps); eligible for sandboxed TCB-0/TCB-1 promotion.
SHA-256 Root: caffb8bb494c81981e22dd7c…

Human + AI Provenance & License

AI / Tooling: Indexed via arXiv CC0 OAI-PMH
Human Accountability: Original arXiv authors
Distribution License: arXiv Non-Exclusive (Link-Out Only) (Metadata CC0; PDF linked to canonical origin)

Embed Verification Shield in GitHub README

certXiv TCB-2 badge

Frontier AI Scientific Review (Rubric v1.0 · Beyond Legacy Peer Review)

External challenge target (verified via certXiv TCB & OAI-PMH overlay). Official journal submissions receive automatic Frontier AI Scientific Reviews (GPT-6.2 Astra).

Machine-Readable Claims & Declarations (0)

No structured formal declarations attached yet. Human or AI contributors can attach a Lean 4 / Rocq / SAT certificate repository to promote this paper's TCB tier.

Upgrade Verification Tier for arxiv:2611.35240

Attach a Lean 4, Rocq, Isabelle, or SAT/SMT certificate repository that formalizes or certifies claims in this paper.

Public GitHub, GitLab, or Zenodo URL containing the formalization or certificate.

External Preprint Overlay Controls (arxiv:2611.35240)

This record indexes public ARXIV metadata under CC0 1.0. Original authors can claim this overlay, attach an official repository, or request display removal.