Title:Convergence of fraction numerators to
Statement:Conjecture: , where is the companion denominator sequence.
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.06259 [math.NT] · NS.06259v1 for this version |
| Declaration: | OeisA340737.tendsto_exp_one |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | d6383e2b8b7edc5e0f1ca5167b94f7ed8ee6dc8784cb5b895d240da814f02978 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/340737.lean |
Formal statement
theorem tendsto_exp_one :
Filter.Tendsto (fun n : ℕ => (a n : ℝ) / (b n : ℝ)) Filter.atTop (nhds (Real.exp 1))Show the full Challenge.lean (146 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Convergence of fraction numerators $a(n)/b(n)$ to $e$
a: Numerators of a sequence of fractions converging to $e$.
$$a(1) = 3, a(2) = 5$$
For $n > 2$:
$$a(n) = \begin{cases} \left(\frac{n+2}{2}\right) a(n-1) - a(n-2) -
\left(\frac{n-2}{2}\right) a(n-3)
& \text{if } n \text{ is even} \cr 2 a(n-1) + n a(n-2) & \text{if } n \text{ is odd} \end{cases}$$
*References:*
- [A340737](https://oeis.org/A340737)
- [arxiv/2605.22763](https://arxiv.org/abs/2605.22763) *Advancing Mathematics Research with AI-Driven Formal Proof Search* by George Tsoukalas et al.
- [b](https://oeis.org/b)
-/
@[expose] public section
namespace OeisA340737
open MeasureTheory
open scoped Real
open Nat
/--
Numerators of a sequence of fractions converging to $e$.
$$a(1) = 3, a(2) = 5$$
For $n > 2$:
$$a(n) = \begin{cases} \left(\frac{n+2}{2}\right) a(n-1) - a(n-2) -
\left(\frac{n-2}{2}\right) a(n-3)
& \text{if } n \text{ is even} \cr 2 a(n-1) + n a(n-2) & \text{if } n \text{ is odd} \end{cases}$$
-/
def a (n : ℕ) : ℕ :=
match n with
| 0 => 0 -- Required for total function, O(1,1) suggests 0 is not relevant.
| 1 => 3
| 2 => 5
| n' + 3 => -- n $\ge$ 3
let n := n' + 3
let a_nm1 := a (n - 1)
let a_nm2 := a (n - 2)
let a_nm3 := a (n - 3)
if n % 2 = 0 then
-- n is even, n $\ge$ 4
let c1 : ℕ := (n + 2) / 2
let c2 : ℕ := (n - 2) / 2
-- $a(n) = c_1 \cdot a(n-1) - a(n-2) - c_2 \cdot a(n-3)$.
-- We use Int.ofNat for safe subtraction, as the result is known to be positive.
Int.toNat (Int.ofNat c1 * Int.ofNat a_nm1 - Int.ofNat a_nm2 - Int.ofNat c2 * Int.ofNat a_nm3)
else
-- n is odd, n $\ge$ 3
2 * a_nm1 + n * a_nm2
termination_by n
/--
Denominators of a sequence of fractions converging to $e$.
This sequence is defined by the same recurrence relation as a but with
initial values $b(1)=1, b(2)=2$.
$$b(1) = 1, b(2) = 2$$
For $n > 2$:
$$b(n) = \begin{cases} \left(\frac{n+2}{2}\right) b(n-1) - b(n-2) -
\left(\frac{n-2}{2}\right) b(n-3)
& \text{if } n \text{ is even} \cr 2 b(n-1) + n b(n-2) & \text{if } n \text{ is odd} \end{cases}$$
-/
def b (n : ℕ) : ℕ :=
match n with
| 0 => 0
| 1 => 1
| 2 => 2
| n' + 3 => -- n $\ge$ 3
let n := n' + 3
let b_nm1 := b (n - 1)
let b_nm2 := b (n - 2)
let b_nm3 := b (n - 3)
if n % 2 = 0 then
-- n is even, n $\ge$ 4
let c1 : ℕ := (n + 2) / 2
let c2 : ℕ := (n - 2) / 2
-- $b(n) = c_1 \cdot b(n-1) - b(n-2) - c_2 \cdot b(n-3)$.
-- We use Int.ofNat for safe subtraction.
Int.toNat (Int.ofNat c1 * Int.ofNat b_nm1 - Int.ofNat b_nm2 - Int.ofNat c2 * Int.ofNat b_nm3)
else
-- n is odd, n $\ge$ 3
2 * b_nm1 + n * b_nm2
termination_by n
@[category test, AMS 11]
lemma a_1 : a 1 = 3 := by unfold a; rfl
@[category test, AMS 11]
lemma a_2 : a 2 = 5 := by unfold a; rfl
@[category test, AMS 11]
lemma a_3 : a 3 = 19 := by unfold a; unfold a; unfold a; simp
@[category test, AMS 11]
lemma a_4 : a 4 = 49 := by unfold a; unfold a; unfold a; unfold a; simp
@[category test, AMS 11]
lemma a_5 : a 5 = 193 := by unfold a; unfold a; unfold a; unfold a; unfold a; simp
set_option linter.style.formal_proof_palomar false in
/--
Conjecture: $\lim_{n \to \infty} a(n) / b(n) = e$, where $b(n)$ is the companion denominator sequence.
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/340737.wip.lean#L438"]
theorem tendsto_exp_one :
Filter.Tendsto (fun n : ℕ => (a n : ℝ) / (b n : ℝ)) Filter.atTop (nhds (Real.exp 1)) := by
sorry
end OeisA340737
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA340737.tendsto_exp_one with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_tendsto_exp_one : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-340737 nosorry submit oeis-340737 nosorry/oeis-340737/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.