Title:Combinatorial representation of the recurrence
Statement:Conjecture: The sequence a(n) is also the number of compositions of into positive integers such that adjacent parts and the largest part differ by at most 1. - Gus Wiseman, May 19 2020
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.06120 [math.NT] · NS.06120v1 for this version |
| Declaration: | OeisA28859.exists_finset_sequence |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 0279569101c0712af534530224b8f28908a8d312729ed222db2f1f0f67966a5c |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/28859.lean |
Formal statement
theorem exists_finset_sequence (n : ℕ) :
let L := n + 1
let Sequence := Fin L → ℕ
let S : Set SequenceShow the full Challenge.lean (88 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Combinatorial representation of the recurrence $a(n+2) = 2a(n+1) + 2a(n)$
A028859 (OEIS): $a(n+2) = 2 \cdot a(n+1) + 2 \cdot a(n)$; $a(0) = 1$, $a(1) = 3$.
*References:*
- [A028859](https://oeis.org/A028859)
- [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 OeisA28859
/--
A028859 (OEIS): $a(n+2) = 2 \cdot a(n+1) + 2 \cdot a(n)$; $a(0) = 1$, $a(1) = 3$.
-/
def a (n : ℕ) : ℕ :=
match n with
| 0 => 1
| 1 => 3
| (n + 2) => 2 * a (n + 1) + 2 * a n
termination_by n
set_option linter.unusedVariables false
@[category test, AMS 11]
lemma a_0 : a 0 = 1 := by native_decide
@[category test, AMS 11]
lemma a_1 : a 1 = 3 := by native_decide
@[category test, AMS 11]
lemma a_2 : a 2 = 8 := by native_decide
@[category test, AMS 11]
lemma a_3 : a 3 = 22 := by native_decide
@[category test, AMS 11]
lemma a_4 : a 4 = 60 := by native_decide
set_option linter.style.formal_proof_palomar false in
/--
Conjecture: The sequence a(n) is also the number of compositions of $n$ into positive integers
such that adjacent parts and the largest part differ by at most 1. - _Gus Wiseman_, May 19 2020
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/28859.wip.lean#L402"]
theorem exists_finset_sequence (n : ℕ) :
let L := n + 1
let Sequence := Fin L → ℕ
let S : Set Sequence :=
{σ : Sequence |
L > 0 ∧
(∀ i : Fin L, σ i > 0) ∧
let max_val := Finset.sup Finset.univ σ
(∀ k : ℕ, 1 ≤ k ∧ k ≤ max_val → ∃ i : Fin L, σ i = k) ∧
(∀ i j : Fin L, i < j → j.val ≠ i.val + 1 → σ i ≥ σ j)}
∃ (F : Finset Sequence), (F : Set Sequence) = S ∧ F.card = a n := by
sorry
end OeisA28859
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA28859.exists_finset_sequence with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_exists_finset_sequence : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-28859 nosorry submit oeis-28859 nosorry/oeis-28859/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.