Documentation

LeanPool.Erdos865.Main

A sharp 5/8 bound for Erdős Problem 865 #

For A ⊆ {1, …, N} we say A contains a pairwise-sum triple if there are distinct a, b, c ∈ A with a + b, a + c, b + c ∈ A (Erdos865.HasTriple). Let f₃(N) be the least size forcing such a triple. This file assembles the proof that f₃(N) = 5N/8 + O(1), resolving Erdős Problem 865.

theorem Erdos865.erdos865_upper_bound (N : ) (A : Finset ) (hsub : AFinset.Icc 1 N) (hA : IsTripleFree A) :
8 * A.card 5 * N + 53

Upper bound (Erdős 865). Every triple-free set A ⊆ [1,N] satisfies 8 * |A| ≤ 5 * N + 53, i.e. |A| ≤ (5/8) N + O(1).

theorem Erdos865.erdos865_contains_triple (N : ) (A : Finset ) (hsub : AFinset.Icc 1 N) (hcard : 5 * N + 53 < 8 * A.card) :

Contains a triple (Erdős 865, Theorem 1.1 form). Every A ⊆ [1,N] with 5 * N + 53 < 8 * |A| (i.e. |A| ≥ (5/8) N + O(1)) contains a pairwise-sum triple.

theorem Erdos865.erdos865 :
∃ (C : ), ∀ (N : ), AFinset.Icc 1 N, IsTripleFree A8 * A.card 5 * N + C

The upper bound packaged as an existence statement: there is an absolute constant C such that every triple-free A ⊆ [1,N] has 8 * |A| ≤ 5 * N + C.