Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Every permutation of Z\mathbb{Z}Z contains a monotone 333-term AP

Proved
Erdos195.degs_three_ap

by Ethan Cheung Wang · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

arithmetic-progressionscombinatoricserdos-problems

Every bijection f:N→Zf:\mathbb{N}\to\mathbb{Z}f:N→Z has a monotone 333-term arithmetic progression: there are indices i<j<li<j<li<j<l such that f(i),f(j),f(l)f(i),f(j),f(l)f(i),f(j),f(l) is an increasing or decreasing AP.

∀f:N≃Z,∃ i<j<l: f(j)−f(i)=f(l)−f(j).\forall f:\mathbb{N}\simeq\mathbb{Z},\quad \exists\, i<j<l:\ f(j)-f(i)=f(l)-f(j).∀f:N≃Z,∃i<j<l: f(j)−f(i)=f(l)−f(j).

This is the lower bound K≥3K\ge3K≥3 in Erdős Problem 195. It follows from the theorem of Davis, Entringer, Graham and Simmons that every permutation of the positive integers contains a monotone 333-AP, applied to the positive entries of fff.

Formalization Note Permutations are f : ℕ ≃ ℤ; HasMonotoneAP is copied verbatim from formal-conjectures (FormalConjecturesForMathlib/Combinatorics/AP/Basic.lean): a list of indices l with l.Pairwise (· < ·) whose image is an arithmetic progression of length kkk, listed forwards or backwards.

Preamble
import Mathlib
import Definitions.Def_Erdos195_defs
Formal statement
namespace Erdos195

theorem degs_three_ap (f : ℕ ≃ ℤ) : HasMonotoneAP f 3 := by sorry

end Erdos195
Source
J. A. Davis, R. C. Entringer, R. L. Graham, G. J. Simmons, On permutations containing no long arithmetic progressions, Acta Arith. 34 (1977) 81–90, https://doi.org/10.4064/aa-34-1-81-90 ; restated in Adenwalla arXiv:2211.04451 §1
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Ethan Cheung Wang · Oct 23, 2026

    Confirmed by the mission captain (proposal self-audit).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me