Title:Bounds on fractional parts for
Statement:Conjecture: for , where .
A formal proof has been found with the methods described in arxiv/2605.22763.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.06265 [math.NT] · NS.06265v1 for this version |
| Declaration: | OeisA341254.a_bounds |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 07684b275185c6805b48f6f6d96df5c0edcdc5a587d7ef603188780b6c2f2545 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/341254.lean |
Formal statement
theorem a_bounds (n : ℕ) (hn : 1 ≤ n) : (1 / 4 : ℝ) < (n : ℝ) * rSq - (a n : ℝ) ∧
(n : ℝ) * rSq - (a n : ℝ) < 3Show the full Challenge.lean (169 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Bounds on fractional parts $n r^2 - a(n)$ for $r = (2+\sqrt{5})/2$
$a(n) = \lfloor r \cdot \lfloor r \cdot n \rfloor \rfloor$, where $r = (2 + \sqrt{5})/2$.
*References:*
- [A341254](https://oeis.org/A341254)
- [arxiv/2605.22763](https://arxiv.org/abs/2605.22763) *Advancing Mathematics Research with AI-Driven Formal Proof Search* by George Tsoukalas et al.
-/
@[expose] public section
namespace OeisA341254
open Real
/-- The constant $r = (2 + \sqrt{5})/2$. -/
noncomputable def rConst : ℝ := (2 + sqrt 5) / 2
/-- The constant $r^2$. -/
noncomputable def rSq : ℝ := rConst * rConst
/--
$a(n) = \lfloor r \cdot \lfloor r \cdot n \rfloor \rfloor$, where $r = (2 + \sqrt{5})/2$.
Note: The original OEIS definition has $n$ starting at 1. We define $a(n)$ for all $\mathbb{N}$.
-/
noncomputable def a (n : ℕ) : ℕ :=
let r := rConst
let inner_floor : ℤ := Int.floor (r * n)
(Int.floor (r * inner_floor.cast)).toNat
@[category test, AMS 11]
lemma a_1 : a 1 = 4 := by
unfold a rConst
dsimp only
push_cast
rw [mul_one]
have h1 : ⌊(2 + Real.sqrt 5) / 2⌋ = 2 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h1]
push_cast
have h2 : ⌊(2 + Real.sqrt 5) / 2 * 2⌋ = 4 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h2]
rfl
@[category test, AMS 11]
lemma a_2 : a 2 = 8 := by
unfold a rConst
dsimp only
push_cast
have h1 : ⌊(2 + Real.sqrt 5) / 2 * 2⌋ = 4 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h1]
push_cast
have h2 : ⌊(2 + Real.sqrt 5) / 2 * 4⌋ = 8 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h2]
rfl
@[category test, AMS 11]
lemma a_3 : a 3 = 12 := by
unfold a rConst
dsimp only
push_cast
have h1 : ⌊(2 + Real.sqrt 5) / 2 * 3⌋ = 6 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h1]
push_cast
have h2 : ⌊(2 + Real.sqrt 5) / 2 * 6⌋ = 12 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h2]
rfl
@[category test, AMS 11]
lemma a_4 : a 4 = 16 := by
unfold a rConst
dsimp only
push_cast
have h1 : ⌊(2 + Real.sqrt 5) / 2 * 4⌋ = 8 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h1]
push_cast
have h2 : ⌊(2 + Real.sqrt 5) / 2 * 8⌋ = 16 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h2]
rfl
@[category test, AMS 11]
lemma a_5 : a 5 = 21 := by
unfold a rConst
dsimp only
push_cast
have h1 : ⌊(2 + Real.sqrt 5) / 2 * 5⌋ = 10 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h1]
push_cast
have h2 : ⌊(2 + Real.sqrt 5) / 2 * 10⌋ = 21 := by
rw [Int.floor_eq_iff]
have h5 : 2236 / 1000 < Real.sqrt 5 ∧ Real.sqrt 5 < 2237 / 1000 := by
norm_num [Real.sqrt_lt, Real.lt_sqrt]
constructor <;> linarith
rw [h2]
rfl
set_option linter.style.formal_proof_palomar false in
/--
Conjecture: $1/4 < n r^2 - a(n) < 3$ for $n \ge 1$, where $r = (2 + \sqrt{5})/2$.
A formal proof has been found with the methods described in
[arxiv/2605.22763](https://arxiv.org/abs/2605.22763).
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at
"https://github.com/mo271/formal-conjectures/blob/a32396489dcb8f86c3549b93aa358ac6a10a3a1f/FormalConjectures/OEIS/341254.wip.lean#L188"]
theorem a_bounds (n : ℕ) (hn : 1 ≤ n) : (1 / 4 : ℝ) < (n : ℝ) * rSq - (a n : ℝ) ∧
(n : ℝ) * rSq - (a n : ℝ) < 3 := by
sorry
end OeisA341254
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA341254.a_bounds with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_bounds : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-341254 nosorry submit oeis-341254 nosorry/oeis-341254/Solution.lean --wait
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.