Skip to content
Open
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions FormalConjectures/ErdosProblems/884.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/-
Copyright 2025 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 FormalConjectures.Util.ProblemImports
import FormalConjectures.Wikipedia.HardyLittlewood

/-!
# Erdős Problem 884

*References:*
- [erdosproblems.com/884](https://www.erdosproblems.com/884)
- [Tao25](https://terrytao.wordpress.com/wp-content/uploads/2025/09/erdos-884.pdf)
-/



namespace Erdos884

/--
`divisors_increasing n` is the increasingly ordered list of divisors of `n`.
By convention, we set `divisors_increasing 0 = ∅`.
As a `Finset`, this is the same as `Nat.divisors`
-/
abbrev divisors_increasing (n : ℕ) : List ℕ := (List.range (n + 1)).filter (· ∣ n)

noncomputable abbrev sum_inv_of_divisor_pair_differences (n : ℕ) : ℚ :=
∑ j : Fin n.divisors.card, ∑ i : Fin j,
(1 : ℚ) / (Nat.nth (· ∣ n) j - Nat.nth (· ∣ n) i )

noncomputable abbrev sum_inv_of_consecutive_divisors (n : ℕ) : ℚ :=
∑ i : Fin (n.divisors.card - 1),
(1 : ℚ) / (Nat.nth (· ∣ n) (i + 1) - Nat.nth (· ∣ n) i)

/--
Statement of Erdos conjecture 884. See `erdos_884` for the problem asking whether this is true.
-/
def erdos_884_stmt : Prop :=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(to stick a little closer to this repo's convention!)

Suggested change
def erdos_884_stmt : Prop :=
def Erdos884 : Prop :=

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Paul-Lez but this gives a duplicated name space?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does so, indeed. The thing is just that I want to separate the statement as just a definition, and then have both the conjecture and the conditional disproof by Tao as two statements.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - perhaps Erdos884Prop in that case?

sum_inv_of_divisor_pair_differences =O[Filter.atTop] (1 + sum_inv_of_divisor_pair_differences)

/--
For a natural number n, let `1 = d₁ < ⋯ < d_{τ(n)} = n` denote the divisors of n
in increasing order.
Does it hold that
`∑ 1 ≤ i < j ≤ τ(n), 1 / (d_j - d_i) ⟪ 1 + ∑ 1 ≤ i < τ(n), 1 / (d_{i + 1} - d_i)`
for `n → ∞`, i.e.
`∑ 1 ≤ i < j ≤ τ(n), 1 / (d_j - d_i) ∈ O (1 + ∑ 1 ≤ i < τ(n), 1 / (d_{i + 1} - d_i))`?

In September 2025, Terence Tao gave a conditional _negative_ answer to this conjecture,
see `erdos_884_fales_of_hardy_littlewood` for this implication.
However, the conjecture itself remains open.
-/
@[category research open, AMS 11]
theorem erdos_884 :
erdos_884_stmt ↔ answer(sorry) := by
sorry

/--
In September 2025, Terence Tao gave a conditional _negative_ answer to Erdos conjecture 884,
disproving it under the assumption of the *Qualitative Hardy-Littlewood Conjecture*.
See [here](https://terrytao.wordpress.com/wp-content/uploads/2025/09/erdos-884.pdf).
The *qualitative* version of the conjecture only states that there are infinitely many tuples
of primes and does not require any asymptotical bounds and as such is a corollary of the general
form of the Hardy-Littlewood Conjecture.
We state the 'weaker' implication using general Hardy-Littlewood here, since this conjecture is
already formalized.
-/
@[category research solved, AMS 11]
theorem erdos_884_false_of_hardy_littlewood :
∀ (k : ℕ) (m : Fin k.succ → ℕ), HardyLittlewood.FirstHardyLittlewoodConjectureFor m
→ ¬ erdos_884_stmt := by sorry


end Erdos884