Title:Asymptotics of an inner sum formula for
Statement:Conjecture: .
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.05952 [math.NT] · NS.05952v1 for this version |
| Declaration: | OeisA258667.a_is_equivalent_asymptoticTerm |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | c4f9ab875102eee6e092f432e85f361ffd6244d974af2ea2df6e0841b10dbfb0 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/OEIS/258667.lean |
Formal statement
theorem a_is_equivalent_asymptoticTerm :
IsEquivalent atTop (fun n : ℕ => (a n : ℝ)) asymptoticTermShow the full Challenge.lean (145 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Asymptotics of an inner sum formula for $a(n)$
The inner sum of the formula used in a:
$$\sum_{\max(k-n+5, 0) \le j \le \min(k,4)} \binom{8-j}{j}\binom{2n-k+j-10}{k-j}$$
a: A total of $n$ married couples, including a mathematician M and his wife, are to be seated
at the $2n$ chairs around a circular table, with no man seated next to his wife. After the ladies
are seated at every other chair, M is the first man allowed to choose one of the remaining chairs.
The sequence gives the number of ways of seating the other men, with no man seated next to his
wife, if M chooses the chair that is 9 seats clockwise from his wife's chair.
$$a(n) = \begin{cases} 0 & \text{if } n \le 5 \cr
\sum_{k=0}^{n-1}(-1)^k(n-k-1)! \sum_{\max(k-n+5, 0) \le j \le \min(k,4)}
\binom{8-j}{j}\binom{2n-k+j-10}{k-j} & \text{if } n > 5 \end{cases}$$
*References:*
- [A258667](https://oeis.org/A258667)
- [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 OeisA258667
open scoped Topology
open BigOperators Nat Int Real Asymptotics Filter
/--
The inner sum of the formula used in a:
$$\sum_{\max(k-n+5, 0) \le j \le \min(k,4)} \binom{8-j}{j}\binom{2n-k+j-10}{k-j}$$
-/
def inner_sum (n k : ℕ) : ℤ :=
let L : ℕ := max 0 (k + 5 - n)
let U : ℕ := min k 4
Finset.sum (Finset.Icc L U) fun j =>
let term1 := Nat.choose (8 - j) j
-- The top argument of the second binomial coefficient is written in Nat subtraction form.
let term2 := Nat.choose (2 * n + j - (k + 10)) (k - j)
ofNat term1 * ofNat term2
/--
a: A total of $n$ married couples, including a mathematician M and his wife, are to be seated
at the $2n$ chairs around a circular table, with no man seated next to his wife. After the ladies
are seated at every other chair, M is the first man allowed to choose one of the remaining chairs.
The sequence gives the number of ways of seating the other men, with no man seated next to his
wife, if M chooses the chair that is 9 seats clockwise from his wife's chair.
$$a(n) = \begin{cases} 0 & \text{if } n \le 5 \cr
\sum_{k=0}^{n-1}(-1)^k(n-k-1)! \sum_{\max(k-n+5, 0) \le j \le \min(k,4)}
\binom{8-j}{j}\binom{2n-k+j-10}{k-j} & \text{if } n > 5 \end{cases}$$
-/
def a (n : ℕ) : ℕ :=
if n ≤ 5 then 0 else
(Finset.sum (Finset.range n) fun k =>
let sign : ℤ := if k % 2 = 0 then 1 else -1
-- Nat.factorial (n - 1 - k) is safe since h implies n > 5 and k < n.
let fac_term : ℤ := ofNat (Nat.factorial (n - 1 - k))
sign * fac_term * inner_sum n k
).natAbs
noncomputable def natFacToReal (n : ℕ) : ℝ := (Nat.factorial n : ℝ)
/-- The denominator term $k! (n-1)_k$ represented as a Real number. -/
noncomputable def menageDenomTerm (n k : ℕ) : ℝ :=
let k_fac_R := natFacToReal k
-- (n-1)_k is the falling factorial. Nat.descFactorial (n-1) k is (n-1)!/(n-1-k)!
let falling_fac := (Nat.descFactorial (n - 1) k : ℝ)
k_fac_R * falling_fac
/-- The infinite series part of the asymptotic expansion:
$\sum_{k \ge 1} \frac{(-1)^k}{k!(n-1)_k}$. -/
noncomputable def asymptoticSumPart (n : ℕ) : ℝ :=
-- The sum is effectively finite since (n-1)_k is 0 for k >= n.
Finset.sum (Finset.range n) fun k =>
if k = 0 then 0
else
let denom := menageDenomTerm n k
-- Denominator is non-zero if n >= 1 and 1 <= k < n.
if denom = 0 then 0
else ((-1 : ℝ) ^ k) / denom
/-- The proposed asymptotic expression for a(n). -/
noncomputable def asymptoticTerm (n : ℕ) : ℝ :=
if n ≤ 2 then 0 -- Avoid division by zero, irrelevant for n -> infinity
else
let n_R : ℝ := n
let n_fac_R := natFacToReal n
let prefactor : ℝ := exp (-2) * (n_fac_R / (n_R - 2))
prefactor * (1 + asymptoticSumPart n)
@[category test, AMS 11]
lemma a_1 : a 1 = 0 := by rfl
@[category test, AMS 11]
lemma a_2 : a 2 = 0 := by rfl
@[category test, AMS 11]
lemma a_3 : a 3 = 0 := by rfl
@[category test, AMS 11]
lemma a_4 : a 4 = 0 := by rfl
@[category test, AMS 11]
lemma a_5 : a 5 = 0 := by rfl
set_option linter.style.formal_proof_palomar false in
/--
Conjecture: $a(n) \sim e^{-2} \cdot n! / (n-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/258667.wip.lean#L427"]
theorem a_is_equivalent_asymptoticTerm :
IsEquivalent atTop (fun n : ℕ => (a n : ℝ)) asymptoticTerm := by
sorry
end OeisA258667
To prove it: keep every definition of Challenge.lean unchanged and prove OeisA258667.a_is_equivalent_asymptoticTerm with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_is_equivalent_asymptoticTerm : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch oeis-258667 nosorry submit oeis-258667 nosorry/oeis-258667/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.