The folded additive lemma #
Monotonicity of the sum sets, the reflection -B = {m - b} and its effect on
lowSums/highSums/collisions, and the inductive core_step that proves the folded
additive lemma folded_additive.
Monotonicity of the sum sets #
theorem
Erdos865.collisions_mono
{m : ℕ}
{B C : Finset ℕ}
(h : B ⊆ C)
:
collisions m B ⊆ collisions m C
Reflection -B = {m - b} #
The reflected set -B = {m - b : b ∈ B}.
Equations
- Erdos865.reflB m B = Finset.image (fun (b : ℕ) => m - b) B
Instances For
The core inductive step #
theorem
Erdos865.core_step
{m : ℕ}
(hm : 2 ≤ m)
{S : Finset ℕ}
(hS : FoldedOK m S)
{α β : ℕ}
(hα : α ∈ S)
(hβ : β ∈ S)
(hαβ : α < β)
(hmin : ∀ x ∈ S, α ≤ x)
(hmin2 : ∀ x ∈ S, x ≠ α → β ≤ x)
(hsum : α + β < m)
(IH : ∀ (S' : Finset ℕ), FoldedOK m S' → S'.card < S.card → 4 * S'.card ≤ 4 * (collisions m S').card + m + 8)
: