Skip to content
Open
Changes from all 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
45 changes: 45 additions & 0 deletions FormalConjectures/ErdosProblems/1096.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/-
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

/-!
# Erdős Problem 1096
*Reference:* [erdosproblems.com/1096](https://www.erdosproblems.com/1096)
Comment on lines +20 to +21
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# Erdős Problem 1096
*Reference:* [erdosproblems.com/1096](https://www.erdosproblems.com/1096)
# Erdős Problem 1096
*Reference:* [erdosproblems.com/1096](https://www.erdosproblems.com/1096)

-/

open Filter

namespace Erdos1096

/-- The set of numbers of the shape ∑_{i ∈ S} q^i (for all finite S). -/
def Sums (q : ℝ) : Set ℝ :=
{ s | ∃ S : Finset ℕ, s = ∑ i ∈ S, q ^ i }
Comment on lines +29 to +30
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
def Sums (q : ℝ) : Set ℝ :=
{ s | ∃ S : Finset ℕ, s = ∑ i ∈ S, q ^ i }
def Sums (q : ℝ) : Set ℝ := { ∑ i ∈ S, q ^ i | S : Finset ℕ }

Here is a more compact way of writing this.


/--
Let 1 < q < 1 + ε and consider the set of numbers of the shape ∑_{i ∈ S} q^i
(for all finite S), ordered by size as 0 = x_1 < x_2 < ...
The sequence x is strictly increasing such that its range is Sums q.
If ε > 0 is sufficiently small, then x_{k+1} - x_k → 0.
-/
@[category research open, AMS 11]
theorem erdos_1096 :
∃ ε > 0, ∀ q, 1 < q → q < 1 + ε →
∀ x : ℕ → ℝ, StrictMono x → Set.range x = Sums q →
Tendsto (fun k => x (k + 1) - x k) atTop (nhds 0) ↔ answer(sorry) :=
Comment on lines +40 to +42
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
∃ ε > 0, ∀ q, 1 < q → q < 1 + ε →
∀ x : ℕ → ℝ, StrictMono x → Set.range x = Sums q →
Tendsto (fun k => x (k + 1) - x k) atTop (nhds 0) ↔ answer(sorry) :=
(∃ ε > 0, ∀ q, 1 < q → q < 1 + ε →
∀ x : ℕ → ℝ, StrictMono x → Set.range x = Sums q →
Tendsto (fun k => x (k + 1) - x k) atTop (𝓝 0)) ↔ answer(sorry) :=

sorry

end Erdos1096