Title:Expansion of g.f.
Statement:Conjecture: for , is also the number of sequences of length covering an initial interval of positive integers and avoiding three terms such that .
- Gus Wiseman, Jun 17 2021
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | formal_proof |
| Cite as: | NS.06623 [math.CO] · NS.06623v1 for this version |
| Declaration: | OeisA52709.conjecture |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | a99e7fb38e093b363eb09f974156e8651afef73efb89af323bd0c79dd658448e |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/52709.lean |
Formal statement
theorem conjecture (n : ℕ) (hn : 0 < n) [Fintype (sequencesCountedByA052709 n)] :
a n = Fintype.card (sequencesCountedByA052709 n)Show the full Challenge.lean (102 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Expansion of g.f. $(1-\sqrt{1-4x-4x^2})/(2(1+x))$
The $n$-th term $a(n)$ is given by
$$a(n) = \sum_{k=0}^{n-1} \frac{1}{k+1} \binom{2k}{k} \binom{k}{n-1-k}$$
*References:*
- [A052709](https://oeis.org/A052709)-/
@[expose] public section
namespace OeisA52709
/-- $a(n) = \sum_{k=0}^{n-1} \frac{1}{k+1} \binom{2k}{k} \binom{k}{n-1-k}$. -/
def a (n : ℕ) : ℕ :=
∑ k ∈ Finset.range n, ((Nat.choose (2 * k) k) / (k + 1)) * (Nat.choose k (n - 1 - k))
@[category test, AMS 5 11]
theorem a_0 : a 0 = 0 := by
decide
@[category test, AMS 5 11]
theorem a_1 : a 1 = 1 := by
decide
@[category test, AMS 5 11]
theorem a_2 : a 2 = 1 := by
decide
@[category test, AMS 5 11]
theorem a_3 : a 3 = 3 := by
decide
@[category test, AMS 5 11]
theorem a_4 : a 4 = 9 := by
decide
@[category test, AMS 5 11]
theorem a_5 : a 5 = 31 := by
decide
/-- A list of natural numbers is composed of positive integers. -/
def isPositiveList (l : List ℕ) : Prop :=
∀ x ∈ l, 0 < x
/-- A list covers an initial interval of positive integers if the set of
its elements is $\{1, 2, \dots, \max(l)\}$. -/
def coversInitialInterval (l : List ℕ) : Prop :=
isPositiveList l ∧
let s := l.toFinset
match s.max with
| some max_s => ∀ m : ℕ, 0 < m → (m ∈ s ↔ m ≤ max_s)
| none => l.isEmpty
/-- A list has a non-decreasing subsequence of length 3 (the pattern $x \le y \le z$). -/
def hasNondecreasingPattern3 (l : List ℕ) : Prop :=
∃ (i j k : Fin l.length),
i < j ∧ j < k ∧ l.get i ≤ l.get j ∧ l.get j ≤ l.get k
/-- A list avoids the pattern $x \le y \le z$ if it does not have a non-decreasing
subsequence of length 3. -/
def avoidsPatternXYZ (l : List ℕ) : Prop :=
¬ hasNondecreasingPattern3 l
/-- The set of sequences of length $n-1$ satisfying the conditions of the conjecture. -/
def sequencesCountedByA052709 (n : ℕ) : Set (List ℕ) :=
{ l : List ℕ | l.length = n - 1 ∧ coversInitialInterval l ∧ avoidsPatternXYZ l }
set_option linter.style.formal_proof_palomar false in
/--
Conjecture: for $n > 0$, $a(n)$ is also the number of sequences of length $n - 1$ covering an
initial interval of positive integers and avoiding three terms
$(\dots, x, \dots, y, \dots, z, \dots)$ such that $x \le y \le z$.
- Gus Wiseman, Jun 17 2021
-/
@[category research solved, AMS 5 11,
formal_proof using lean4 at "https://github.com/epoch-research/LeanOpenProblems-results/blob/f02efd9a8c5fc6a735d2a90c33e24f7278ce0ffc/runs/oeis-full-50usd-ant-j0j0g4uzligm1k41/oeis_52709_conjecture_0/Submission/Spec.lean#L1289"]
theorem conjecture (n : ℕ) (hn : 0 < n) [Fintype (sequencesCountedByA052709 n)] :
a n = Fintype.card (sequencesCountedByA052709 n) := by
sorry
end OeisA52709
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA52709.conjecture with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_conjecture : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-52709 nosorry submit oeis-52709 nosorry/oeis-52709/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.