/- 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 FormalConjecturesUtil

Erdős Problem 13

Reference: erdosproblems.com/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., On a problem of Erdős and Sárközy about sequences with no term dividing the sum of two larger terms. arXiv:2301.07065 (2023).

@[category research solved, AMS 5 11] theorem declaration uses 'sorry'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 declaration uses 'sorry'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