Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The second column of the Gilbreath triangle is bounded by 222

Open
Gilbreath.second_column

by LG · Sep 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsconjecturenumber-theoryprime-numbers

Row kkk of the Gilbreath triangle is dkd^kdk, where d0(n)=pnd^0(n) = p_nd0(n)=pn​ is the increasing enumeration of the primes and dk+1(n)=∣dk(n+1)−dk(n)∣d^{k+1}(n) = |d^k(n+1) - d^k(n)|dk+1(n)=∣dk(n+1)−dk(n)∣. This theorem asserts a bound on the second column of the triangle:

dk(1)≤2for every k≥1.d^{k}(1) \le 2 \qquad \text{for every } k \ge 1 .dk(1)≤2for every k≥1.

Since every entry dk(n)d^k(n)dk(n) with k≥1k \ge 1k≥1 and n≥1n \ge 1n≥1 is even (the mission milestone Gilbreath.head_odd_tail_even), the bound is equivalent to saying that the second column consists only of 000s and 222s, i.e. dk(1)∈{0,2}d^k(1) \in \{0, 2\}dk(1)∈{0,2} for all k≥1k \ge 1k≥1. Numerically the rows begin

1 2 2 4 …,1 0 2 2 …,1 2 0 0 …,1 2 0 …,1\,2\,2\,4\,\dots,\qquad 1\,0\,2\,2\,\dots,\qquad 1\,2\,0\,0\,\dots,\qquad 1\,2\,0\,\dots,1224…,1022…,1200…,120…,

so the second column starts 2,0,2,2,…2, 0, 2, 2, \dots2,0,2,2,….

The statement is exactly as strong as Gilbreath's conjecture, and it isolates the single column on which the conjecture depends. Indeed, by definition the head of a row is determined by the head and the second entry of the previous row,

dk+1(0)=∣dk(1)−dk(0)∣,d^{k+1}(0) = \bigl| d^{k}(1) - d^{k}(0) \bigr| ,dk+1(0)=​dk(1)−dk(0)​,

so if dk(0)=1d^k(0) = 1dk(0)=1 and dk(1)∈{0,2}d^k(1) \in \{0,2\}dk(1)∈{0,2} then dk+1(0)=1d^{k+1}(0) = 1dk+1(0)=1. Starting from d1(0)=p1−p0=1d^1(0) = p_1 - p_0 = 1d1(0)=p1​−p0​=1, the bound above therefore propagates the leading 111 through all rows and yields dk(0)=1d^k(0) = 1dk(0)=1 for every k≥1k \ge 1k≥1. Conversely, if every row begins with 111 then ∣dk(1)−1∣=dk+1(0)=1|d^k(1) - 1| = d^{k+1}(0) = 1∣dk(1)−1∣=dk+1(0)=1 forces dk(1)∈{0,2}d^k(1) \in \{0, 2\}dk(1)∈{0,2}, so the two statements are equivalent. Nothing weaker than the conjecture is being assumed, and nothing stronger: in particular no claim is made about the entries dk(n)d^k(n)dk(n) with n≥2n \ge 2n≥2, which genuinely can exceed 222 (for instance d1(3)=11−7=4d^1(3) = 11 - 7 = 4d1(3)=11−7=4).

Formalization note. The row index is written k+1k + 1k+1 so that the statement quantifies over the rows 1,2,3,…1, 2, 3, \dots1,2,3,…; row 000, the primes themselves, is excluded. Differences are formed in the integers and then taken in absolute value, so no truncated natural subtraction occurs.

Preamble
import Definitions.Def_gilbreath_triangle
Formal statement
namespace Gilbreath
theorem second_column (k : ℕ) : d (k + 1) 1 ≤ 2 := by sorry
end Gilbreath
Source
Gilbreath's conjecture; A. M. Odlyzko, Iterated absolute values of differences of consecutive primes, Math. Comp. 61 (1993), 373-380, https://doi.org/10.1090/S0025-5718-1993-1192979-9, Section 1; https://en.wikipedia.org/wiki/Gilbreath%27s_conjecture. Equivalent reformulation of the mission goal `Gilbreath.gilbreath_conjecture`, obtained from the recursion d^{k+1}(0) = |d^k(1) - d^k(0)| together with the parity milestone `Gilbreath.head_odd_tail_even`.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me