Index of theproofnetwork/open-problems@860a535/Prove2Me/Definitions/Def_QED_M104.lean
qedmarketβs copy of theproofnetwork/open-problems@860a535, 3 Dec 2026original source β
/-From Prove2Me, definition `QED_M104` (https://prove2.me/definitions/a127b135-fff8-40f3-bb00-a0522ee52026). Apache-2.0 per Prove2Me's terms.-/import Mathlib /-! QED-M104: An effective bound for the sum-free excessEvery set of N nonzero integers contains a sum-free subset (no x+y=z inside it) of size a bit more than N/3; Bedert (2025) showed the excess grows at least like log log N. It is also known that you cannot always beat N/3 by more than o(N), but that proof gives no rate. Prove a quantitative version: some N-element sets have no sum-free subset larger than N/3 + N/(log N)^c.Informal statement: Let $S(N)=\min_{A\subset\mathbb Z\setminus\{0\},\,|A|=N}\max\{|B|:B\subseteq A\text{ sum-free}\}$. Known: $N/3+c\log\log N\le S(N)\le N/3+o(N)$, with the $o(N)$ ineffective. Prove that there is $c>0$ with $S(N)\le N/3+O\big(N/(\log N)^{c}\big)$. Any explicitly quantified $o(N)$ (e.g. $N/(\log\log N)^{c}$) would be partial progress.Formalization notes: SumFree B: x+y β B for all x,y in B (x=y allowed, the standard convention). Claim: there are c>0, C and Nβ such that for every N >= Nβ some N-element set A of nonzero integers has every sum-free subset of size <= N/3 + CΒ·N/(log N)^c. Junk values: for N <= 1, log N <= 0 and the division misbehaves, but Nβ is chosen by the prover and the statement is only about large N; a negative C cannot help because Erdos's N/3 lower bound would be violated. Β¬Claim means no (log N)^{-c} rate holds. Weaker explicit rates are not captured.-/namespace OpenProblems.QEDM104def SumFree (B : Finset β€) : Prop := β x β B, β y β B, x + y β B def Claim : Prop := β c : β, 0 < c β§ β C : β, β Nβ : β, β N : β, Nβ β€ N β β A : Finset β€, (0 : β€) β A β§ A.card = N β§ β B β A, SumFree B β (B.card : β) β€ (N : β) / 3 + C * (N : β) / (Real.log N) ^ cend OpenProblems.QEDM104