erdos_arithmetic_progressions
OpenErdős Conjecture on Arithmetic Progressions: If is a set of positive integers such that (the reciprocal series diverges), then contains arithmetic progressions of every finite length.
Proposed by Paul Erdős (1936). The Green-Tao theorem (2004) proves this for the primes. For general sets with divergent reciprocal sums, it remains open. Settles the case for sets of positive density (van der Waerden's theorem handles the density case). The prize offered by Erdős for this conjecture was $3000.
Source: Erdős, P. (1936). On the representation of large integers as sums of distinct summands taken from a fixed set. Acta Arithmetica 2, 283–292. Also: Erdős, P. (1963). Problems in combinatorial number theory I. Studies in Pure Math. (Presented to Richard Rado).
import Mathlib
theorem erdos_arithmetic_progressions (A : Set ℕ) [DecidablePred (· ∈ A)]
(hA_pos : ∀ n ∈ A, 0 < n)
(hA_div : ∀ M : ℝ, ∃ N : ℕ, M ≤
∑ n ∈ (Finset.Icc 1 N).filter (· ∈ A), (1 : ℝ) / (n : ℝ)) :
∀ k : ℕ, ∃ a d : ℕ, 0 < d ∧ ∀ i < k, (a + i * d) ∈ A := by
sorry