FormalConjectures/OEIS/258667.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
12 declarations, 1 contain sorry, 0 declared as axioms
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
- arxiv/2605.22763 Advancing Mathematics Research with AI-Driven Formal Proof Search by George Tsoukalas et al.
Imports (1)
- def
OeisA258667.inner_sumThe 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}$$ line 54 sourceSource documentation
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}$$
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,IntProof uses:
Max.max,OfNat.ofNat,HSub.hSub,HAdd.hAdd,Min.min,Finset.sum,Finset.Icc,Nat.choose,HMul.hMul,Int.ofNat13 instances, coercions and auxiliary constants left out.
def inner_sum (n k : ℕ) : ℤ := …
- def
OeisA258667.aa: 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 line 74 sourceSource documentation
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}$$
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
ite,LE.le,OfNat.ofNat,Int.natAbs,Finset.sum,Int,Finset.range,Eq,HMod.hMod,Neg.neg,Int.ofNat,Nat.factorial,HSub.hSub,HMul.hMul, OeisA258667.inner_sum13 instances, coercions and auxiliary constants left out.
def a (n : ℕ) : ℕ := …
- def
OeisA258667.natFacToRealline 84 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
Nat.factorial2 instances, coercions and auxiliary constants left out.
- def
OeisA258667.menageDenomTermThe denominator term $k! (n-1)_k$ represented as a Real number line 87 sourceSource documentation
The denominator term $k! (n-1)_k$ represented as a Real number.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses: OeisA258667.natFacToReal,
Nat.descFactorial,HSub.hSub,OfNat.ofNat,HMul.hMul7 instances, coercions and auxiliary constants left out.
noncomputable def menageDenomTerm (n k : ℕ) : ℝ := …
- def
OeisA258667.asymptoticSumPartThe infinite series part of the asymptotic expansion: $\sum_{k \ge 1} \frac{(-1)^k}{k!(n-1)_k}$ line 95 sourceSource documentation
The infinite series part of the asymptotic expansion: $\sum_{k \ge 1} \frac{(-1)^k}{k!(n-1)_k}$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
Finset.sum,Finset.range,ite,Eq,OfNat.ofNat, OeisA258667.menageDenomTerm,HDiv.hDiv,HPow.hPow,Neg.neg16 instances, coercions and auxiliary constants left out.
noncomputable def asymptoticSumPart (n : ℕ) : ℝ := …
- def
OeisA258667.asymptoticTermThe proposed asymptotic expression for a(n) line 106 sourceSource documentation
The proposed asymptotic expression for a(n).
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
ite,LE.le,OfNat.ofNat, OeisA258667.natFacToReal,HMul.hMul,Real.exp,Neg.neg,HDiv.hDiv,HSub.hSub,HAdd.hAdd, OeisA258667.asymptoticSumPart21 instances, coercions and auxiliary constants left out.
noncomputable def asymptoticTerm (n : ℕ) : ℝ := …
- lemma
OeisA258667.a_1line 116 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA258667.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA258667.a_2line 119 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA258667.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA258667.a_3line 122 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA258667.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA258667.a_4line 125 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA258667.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
OeisA258667.a_5line 128 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Nat, OeisA258667.a,OfNat.ofNatProof uses:
Eq.refl2 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
OeisA258667.a_is_equivalent_asymptoticTermsorry line 139 sourcedepends on sorry what this means
Statement uses:
Asymptotics.IsEquivalent,Nat,Real,Filter.atTop, OeisA258667.a, OeisA258667.asymptoticTermProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat17 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.