/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
import FormalConjecturesUtilErdős Problem 13
open Finset Nat
namespace Erdos13
A finite set of naturals A is said to be forbidden-triple-free if for all a, b, c ∈ A,
if a < min(b, c) then a does not divide b + c.
def IsForbiddenTripleFree (A : Finset ℕ) : Prop :=
∀ a ∈ A, ∀ b ∈ A, ∀ c ∈ A, a < min b c → ¬ (a ∣ b + c)
If $A \subseteq {1, ..., N}$ is a set with no $a, b, c \in A$ such that $a | (b+c)$ and $a < \min(b,c)$, then $|A| \le N/3 + O(1)$. This has been solved by Bedert [Be23].
[Be23] Bedert, B.,
@[category research solved, AMS 5 11]
theorem erdos_13 : ∃ C : ℝ, ∀ N : ℕ, ∀ A ⊆ Icc 1 N, IsForbiddenTripleFree A →
(A.card : ℝ) ≤ (N : ℝ) / 3 + C := ⊢ ∃ C, ∀ (N : ℕ), ∀ A ⊆ Icc 1 N, IsForbiddenTripleFree A → ↑(#A) ≤ ↑N / 3 + C
All goals completed! 🐙
A general version asks, for a fixed $r \in \mathbb{N}$, if a set $A \subseteq {1, ..., N}$ has no $a \in A$ and $b_1, ..., b_r \in A$ such that $a | (b_1 + ... + b_r)$ and $a < \min(b_1, ..., b_r)$, then is it true that $|A| \le N/(r+1) + O(1)$?
@[category research open, AMS 5 11]
theorem erdos_13.variants.general : answer(sorry) ↔ ∀ r : ℕ, ∃ C : ℝ, ∀ N : ℕ,
∀ A ⊆ Icc 1 N,
(∀ a ∈ A, ∀ (b : Fin r → ℕ), (∀ i, b i ∈ A) → (∀ i, a < b i) →
¬ (a ∣ ∑ i, b i)) →
(A.card : ℝ) ≤ (N : ℝ) / (r + 1) + C := ⊢ True ↔
∀ (r : ℕ),
∃ C,
∀ (N : ℕ),
∀ A ⊆ Icc 1 N,
(∀ a ∈ A, ∀ (b : Fin r → ℕ), (∀ (i : Fin r), b i ∈ A) → (∀ (i : Fin r), a < b i) → ¬a ∣ ∑ i, b i) →
↑(#A) ≤ ↑N / (↑r + 1) + C
All goals completed! 🐙
end Erdos13