Show full file and definitions
/-
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.
-/
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 261
*References:*
- [erdosproblems.com/261](https://www.erdosproblems.com/261)
- [BoLo90] Borwein, Peter and Loring, Terry A., Some questions of Erdős and Graham on numbers
of the form $\sum g_n/2^{g_n}$. Math. Comp. (1990), 377--394.
- [Er88c] Erdős, P., On the irrationality of certain series: problems and results. New advances
in transcendence theory (Durham, 1986) (1988), 102--109.
- [TUZ20] Tengely, Szabolcs and Ulas, Maciej and Zygadlo, Jakub, On a Diophantine equation of
Erdős and Graham. J. Number Theory (2020), 445--459.
- [PALOMAR-2026-10-11-000016](https://palomar-registry.org/entry.html?id=PALOMAR-2026-10-11-000016&version=1)
-/
@[expose] public section
open scoped Cardinal
namespace Erdos261
/-- A natural number $n$ is said to have property `Erdos261Prop` if there exist $t \ge 2$
pairwise distinct positive integers $a_1, \ldots, a_t$ such that
$n / 2^n = \sum_{1 \le k \le t} a_k / 2^{a_k}$. -/
def Erdos261Prop (n : ℕ) : Prop := ∃ᵉ (t ≥ 2) (a : Fin t → ℕ), a.Injective ∧
(1 ≤ a) ∧ n / (2 ^ n : ℚ) = ∑ k, (a k) / (2 ^ (a k) : ℚ)
/-- A canonical infinite representation of a rational number $x$ by positive integers. The
denominators are strictly increasing so that reorderings are not counted as different
representations. -/
def Erdos261InfiniteRepresentation (x : ℚ) (a : ℕ → ℕ) : Prop :=
StrictMono a ∧ (1 ≤ a) ∧ Summable (fun k => (a k) / (2 ^ (a k) : ℚ)) ∧
x = ∑' k, (a k) / (2 ^ (a k) : ℚ)
/-- For every positive integer $m$, if $n = 2^{m+1} - m - 2$, then
$$\frac{n}{2^n} = \sum_{n < k \le n + m} \frac{k}{2^k}.$$
This construction is due to Borwein and Loring [BoLo90]. -/
@[category textbook, AMS 11, formal_proof using lean4 at "https://github.com/linrock/math-proofs/blob/b53791ff6294b4b90e3653970367f127a52fd16e/erdos-261/Solution.lean#L73"]
theorem erdos_261.variants.borwein_loring (m : ℕ) (hm : 0 < m) :
let n := 2 ^ (m + 1) - m - 2
n / (2 ^ n : ℚ) = ∑ k ∈ Finset.Ioc n (n + m), k / (2 ^ k : ℚ) := by
sorry
/-- The Borwein--Loring construction gives the required property when $m \ge 2$. This lower
bound ensures that the representation contains at least two terms. -/
@[category textbook, AMS 11, formal_proof using lean4 at "https://github.com/linrock/math-proofs/blob/b53791ff6294b4b90e3653970367f127a52fd16e/erdos-261/Solution.lean#L78"]
theorem erdos_261.variants.borwein_loring_property (m : ℕ) (hm : 2 ≤ m) :
Erdos261Prop (2 ^ (m + 1) - m - 2) := by
sorry
set_option linter.style.formal_proof_palomar false in
/-- Are there infinitely many positive integers $n$ such that there exist some $t \ge 2$ and
distinct integers $a_1, \ldots, a_t \ge 1$ satisfying
$$\frac{n}{2^n} = \sum_{1 \le k \le t} \frac{a_k}{2^{a_k}}?$$
In [Er88c], Erdős notes that Cusick had a simple proof that infinitely many such $n$ exist. -/
@[category research solved, question, AMS 11, formal_proof using lean4 at "https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_Erdos261_erdos_261_parts_i.lean#L102"]
theorem erdos_261.parts.i : {n : ℕ | 0 < n ∧ Erdos261Prop n}.Infinite := by
sorry
set_option linter.style.formal_proof_palomar false in
/-- Tengely, Ulas, and Zygadlo [TUZ20] verified that every positive integer $n \le 10000$ has
the required property. -/
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/linrock/math-proofs/blob/b53791ff6294b4b90e3653970367f127a52fd16e/erdos-261/Solution.lean#L85"]
theorem erdos_261.variants.le_10000 {n : ℕ} (hn_pos : 0 < n) (hn : n ≤ 10000) :
Erdos261Prop n := by
sorry
/-- Do all positive integers $n$ have the required property? -/
@[category research open, question, AMS 11]
theorem erdos_261.parts.ii : ∀ n > 0, Erdos261Prop n := by
sorry
/-- Is there a rational number $x$ such that
$$x = \sum_{k=1}^{\infty} \frac{a_k}{2^{a_k}}$$
has at least $2^{\aleph_0}$ representations by pairwise distinct positive integers $a_k$? -/
@[category research open, question, AMS 11]
theorem erdos_261.parts.iii : ∃ x : ℚ,
𝔠 ≤ #{a : ℕ → ℕ | Erdos261InfiniteRepresentation x a} := by
sorry
set_option linter.style.formal_proof_palomar false in
/-- In [Er88c], Erdős asks the weaker question of whether there exists a rational $x$ with at
least two representations
$$x = \sum_{k=1}^{\infty} \frac{a_k}{2^{a_k}}$$
by pairwise distinct positive integers $a_k$.
The answer is yes: Z. Rafik (erdosproblems.com forum, 27 Apr 2026) observed that
$4/2^4 = 5/2^5 + 6/2^6$ and $\sum_{m \ge 1} m/2^m = 2$, so $7/4$ is represented both by
$\mathbb{N}_{>0} \setminus \{4\}$ and by $\mathbb{N}_{>0} \setminus \{5, 6\}$. It is generally believed that
"two" here is a misprint for $2^{\aleph_0}$ (see `erdos_261.parts.iii`, which remains open). -/
@[category research solved, question, AMS 11, formal_proof using lean4 at
"https://github.com/g8r-b8/erdos261-lean/blob/976bddf21eafc93ea86a7a1bfd92b847070a6f31/Erdos261.lean#L87"]
theorem erdos_261.variants.two_representations : ∃ x : ℚ,
2 ≤ #{a : ℕ → ℕ | Erdos261InfiniteRepresentation x a} := by
sorry
end Erdos261