FormalConjectures/ErdosProblems/178.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
1 declarations, 1 contain sorry, 0 declared as axioms
Erdős Problem 178
References:
- erdosproblems.com/178
- [ErGr79] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number theory: van der Waerden's theorem and related topics. Enseign. Math. (1979), 325-344.
- [ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number theory. Monographies de L'Enseignement Mathématique (1980).
- [Be81] Beck, József, Balancing families of integer sequences. Combinatorica (1981), 209-216.
- [Be17] Beck, József, A discrepancy problem: balancing infinite dimensional vectors. Number theory—Diophantine problems, uniform distribution and applications (2017), 61-82.
Imports (1)
- theorem
Erdos178.erdos_178Let $A_1,A_2,\ldots$ be an infinite collection of infinite sets of integers, say $A_i=\{a_{i1}0$ sorry line 46 sourceSource documentation
Let $A_1,A_2,\ldots$ be an infinite collection of infinite sets of integers, say $A_i=\{a_{i1}<a_{i2}<\cdots\}$. Does there exist some $f:\mathbb{N}\to\{-1,1\}$ such that $$\max_{m, 1\leq i\leq d} \left\lvert \sum_{1\leq j\leq m} f(a_{ij})\right\rvert \ll_d 1$$ for all $d\geq 1$?
Erdős remarks 'it seems certain that the answer is affirmative'. This was solved by Beck [Be81]. Recently Beck [Be17] proved that one can replace $\ll_d 1$ with $\ll d^{4+\epsilon}$ for any $\epsilon>0$.
L4DEL explanation
Let $A_1,A_2,\ldots$ be an infinite collection of infinite sets of integers, say $A_i=\{a_{i1}0$.
Sources and attribution: Pinned Lean source (1646ca16afd6)
depends on sorry what this means
Statement uses:
Iff,True,Nat,StrictMono,Exists,Int,And,Or,Eq,OfNat.ofNat,Neg.neg,LT.lt,LE.le,abs,Finset.sum,Finset.rangeProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous21 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_178 : answer(True) ↔ ∀ (a : ℕ → ℕ → ℕ) (ha : ∀ i, StrictMono (a i)), ∃ f : ℕ → ℤ, (∀ n, f n = 1 ∨ f n = -1) ∧ ∀ d : ℕ, ∃ C : ℕ, ∀ m i : ℕ, i < d → |∑ j ∈ range m, f (a i j)| ≤ ↑C := by …