/-
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 1196
namespace Erdos1196
open scoped AsymptoticsA set is primitive if no non-associated elements of the set divide each other.
def IsPrimitive {M : Type*} [CommMonoid M] (A : Set M) : Prop :=
∀ᵉ (x ∈ A) (y ∈ A), x ∣ y → Associated x y
Is it true that, for any $x$, if $A\subset [x,\infty)$ is a primitive set of integers (so that no distinct elements of $A$ divide each other) then$$\sum_{a\in A}\frac{1}{a\log a}< 1+o(1),$$where the $o(1)$ term $\to 0$ as $x\to \infty$?
@[category research solved, AMS 11, formal_proof using lean4 at
"https://github.com/math-inc/Erdos1196/blob/02fba13be7487cc51315f68d8fa7ef277633d3c8/PrimitiveSetsAboveX/FormalConjecturesErdos1196.lean"]
theorem erdos_1196 :
answer(True) ↔ ∃ o : ℕ → ℝ, o =o[Filter.atTop] (1 : ℕ → ℝ) ∧ ∀ x > (0 : ℕ), ∀ A ⊆ Set.Ici x, IsPrimitive A →
∑' (a : A), (1 / ((a.val : ℝ).log * a)) < 1 + o x := ⊢ True ↔
∃ o, o =o[Filter.atTop] 1 ∧ ∀ x > 0, ∀ A ⊆ Set.Ici x, IsPrimitive A → ∑' (a : ↑A), 1 / (Real.log ↑↑a * ↑↑a) < 1 + o x
All goals completed! 🐙
end Erdos1196