The areas / V30. Combinatorics
Mathlib.Combinatorics.Additive.Corner.Roth
6 declarations. Mathlib docs · Source
The corners theorem and Roth's theorem
This file proves the corners theorem and Roth's theorem on arithmetic progressions of length three.
References
- [Yaël Dillies, Bhavik Mehta, Formalising Szemerédi’s Regularity Lemma in Lean][srl_itp]
- Wikipedia, Corners theorem
def cornersTheoremBound E1 #
ℝ → ℕ
An explicit form for the constant in the corners theorem.
Note that this depends on SzemerediRegularity.bound, which is a tower-type exponential. This means
cornersTheoremBound is in practice absolutely tiny.
theorem corners_theorem E1 #
∀ {G : Type u_1} [inst : AddCommGroup G] [inst_1 : Fintype G] (ε : ℝ),
0 < ε →
cornersTheoremBound ε ≤ Fintype.card G →
∀ (A : Finset (G × G)), ε * ↑(Fintype.card G) ^ 2 ≤ ↑A.card → ¬IsCornerFree ↑A
The corners theorem for finite abelian groups.
The maximum density of a corner-free set in G × G goes to zero as |G| tends to infinity.
theorem corners_theorem_nat E3 #
∀ {n : ℕ} {ε : ℝ},
0 < ε →
cornersTheoremBound (ε / 9) ≤ n → ∀ A ⊆ Finset.range n ×ˢ Finset.range n, ε * ↑n ^ 2 ≤ ↑A.card → ¬IsCornerFree ↑A
The corners theorem for ℕ.
The maximum density of a corner-free set in {1, ..., n} × {1, ..., n} goes to zero as n tends to
infinity.
theorem roth_3ap_theorem E2 #
∀ {G : Type u_1} [inst : AddCommGroup G] [inst_1 : Fintype G] (ε : ℝ),
0 < ε → cornersTheoremBound ε ≤ Fintype.card G → ∀ (A : Finset G), ε * ↑(Fintype.card G) ≤ ↑A.card → ¬ThreeAPFree ↑A
Roth's theorem for finite abelian groups.
The maximum density of a 3AP-free set in G goes to zero as |G| tends to infinity.
theorem roth_3ap_theorem_nat E3 #
∀ {n : ℕ} (ε : ℝ), 0 < ε → cornersTheoremBound (ε / 3) ≤ n → ∀ A ⊆ Finset.range n, ε * ↑n ≤ ↑A.card → ¬ThreeAPFree ↑A
Roth's theorem for ℕ.
The maximum density of a 3AP-free set in {1, ..., n} goes to zero as n tends to infinity.
theorem rothNumberNat_isLittleO_id E2 #
(fun N ↦ ↑(rothNumberNat N)) =o[Filter.atTop] fun N ↦ ↑N
Roth's theorem for ℕ as an asymptotic statement.
The maximum density of a 3AP-free set in {1, ..., n} goes to zero as n tends to infinity.