Title:Half-Fibonacci sequence · conjecture2
Statement:Conjecture (2): There are infinitely many consecutive pairs that differ by 1.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.04902 [math.NT] · NS.04902v1 for this version |
| Declaration: | OeisA120424.conjecture2 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | 0baa22edf74b9dfc292390582b5f925751e148c13206b0a5a61dd9840b0adaf6 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/120424.lean |
Formal statement
theorem conjecture2 :
Set.Infinite {n : ℕ | a (n + 1) = a n + 1 ∨ a n = a (n + 1) + 1}Show the full Challenge.lean (80 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Half-Fibonacci sequence
$a(0) = 1, a(1) = 3$; for $n \ge 2$, $a(n) = f(a(n-1)) + f(a(n-2))$ where $f(x) = x/2$ if $x$
is even
and $f(x) = x$ if $x$ is odd.
*References:*
- [A120424](https://oeis.org/A120424)-/
@[expose] public section
namespace OeisA120424
/-- Halve even numbers, leave odd numbers unchanged. -/
def f (x : ℕ) : ℕ := if x % 2 = 0 then x / 2 else x
/-- Half-Fibonacci sequence starting with $1, 3$. -/
def a : ℕ → ℕ
| 0 => 1
| 1 => 3
| n + 2 => f (a (n + 1)) + f (a n)
/-- Value of the sequence `a` at 0. -/
@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by rfl
/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 3 := by rfl
/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 4 := by rfl
/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 5 := by rfl
/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 7 := by rfl
/--
Conjecture (1): The natural density of even terms in the sequence is $1/2$.-/
@[category research open, AMS 11]
theorem conjecture1 :
Filter.Tendsto (fun n : ℕ => ((Finset.filter (fun k => a k % 2 = 0) (Finset.range n)).card
: ℝ) / (n : ℝ))
Filter.atTop (nhds (1 / 2 : ℝ)) := by
sorry
/--
Conjecture (2): There are infinitely many consecutive pairs that differ by 1.-/
@[category research open, AMS 11]
theorem conjecture2 :
Set.Infinite {n : ℕ | a (n + 1) = a n + 1 ∨ a n = a (n + 1) + 1} := by
sorry
end OeisA120424
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA120424.conjecture2 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture2 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-120424--conjecture2 nosorry submit oeis-120424--conjecture2 nosorry/oeis-120424--conjecture2/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.