Smallest parts in overpartitions
DefinitionSmallest-even-part contribution of an overpartition#✓fully proved
For an overpartition \(O\) of \(n\), let \(s\) be the smallest part of \(O\). The contribution of \(O\) is the number of copies of \(s\) in \(O\) if \(s\) is even and not overlined, and \(0\) otherwise; the empty overpartition, which has no smallest part, contributes \(0\).
public def overpartitionSpt2Contribution {n : ℕ} (O : Nat.Overpartition n) : ℕ :=
if h : O.toPartition.parts.toFinset.Nonempty then
let s := O.toPartition.parts.toFinset.min' h
if Even s ∧ s ∉ O.overlines then O.toPartition.parts.count s else 0
else
0
@[ext]
structure Overpartition (n : ℕ) where
/-- The underlying partition. -/
toPartition : Partition n
/-- The distinct part sizes that are overlined. -/
overlines : Finset ℕ
/-- Every overlined size occurs in the underlying partition. -/
overlines_subset : overlines ⊆ toPartition.parts.toFinset
deriving DecidableEq
MathlibExt/Combinatorics/Enumerative/Partition/Overpartition.lean:46
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Section 1 (definition of
spt2‾(n)).
Uses 1 · Used by 3
DefinitionNumber of smallest even parts in overpartitions#✓fully proved
For a natural number \(n\), \(\overline{\mathrm{spt2}}(n)\) is the number of smallest parts in the overpartitions of \(n\) whose smallest part is even and not overlined: the sum, over all overpartitions \(O\) of \(n\), of the smallest-even-part contribution of \(O\), which is the number of copies of the smallest part \(s\) of \(O\) when \(s\) is even and not overlined, and \(0\) otherwise (in particular when \(O\) is empty). For example \(\overline{\mathrm{spt2}}(4) = 3\), from \(4\) and \(2 + 2\), while \(\overline{2} + 2\) does not count; the values for \(n = 0, \dots, 8\) are \(0, 0, 1, 0, 3, 2, 6, 6, 15\).
public def overpartitionSpt2 (n : ℕ) : ℕ :=
∑ O : Nat.Overpartition n, overpartitionSpt2Contribution O
@[ext]
structure Overpartition (n : ℕ) where
/-- The underlying partition. -/
toPartition : Partition n
/-- The distinct part sizes that are overlined. -/
overlines : Finset ℕ
/-- Every overlined size occurs in the underlying partition. -/
overlines_subset : overlines ⊆ toPartition.parts.toFinset
deriving DecidableEq
MathlibExt/Combinatorics/Enumerative/Partition/Overpartition.lean:46
public def overpartitionSpt2Contribution {n : ℕ} (O : Nat.Overpartition n) : ℕ :=
if h : O.toPartition.parts.toFinset.Nonempty then
let s := O.toPartition.parts.toFinset.min' h
if Even s ∧ s ∉ O.overlines then O.toPartition.parts.count s else 0
else
0
WantedExt/NumberTheory/OverpartitionSpt2CongruencesWanted.lean:35
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Section 1.
Uses 2 · Used by 4
Theorem\(\overline{\mathrm{spt2}}\) vanishes at zero#✓fully proved
Let \(\overline{\mathrm{spt2}}(n)\) be the number of smallest parts in the overpartitions of \(n\) whose smallest part is even and not overlined. Then \(\overline{\mathrm{spt2}}(0) = 0\): the only overpartition of \(0\) is empty and has no smallest part.
public theorem overpartitionSpt2_zero : overpartitionSpt2 0 = 0
public def overpartitionSpt2 (n : ℕ) : ℕ :=
∑ O : Nat.Overpartition n, overpartitionSpt2Contribution O
WantedExt/NumberTheory/OverpartitionSpt2CongruencesWanted.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Section 1.
Uses 3
TheoremOverpartitions with odd smallest part contribute nothing#✓fully proved
If \(O\) is an overpartition of \(n\) with at least one part and the smallest part of \(O\) is odd, then the smallest-even-part contribution of \(O\) is \(0\).
public theorem overpartitionSpt2Contribution_eq_zero_of_odd {n : ℕ} (O : Nat.Overpartition n)
(h : O.toPartition.parts.toFinset.Nonempty)
(hodd : Odd (O.toPartition.parts.toFinset.min' h)) :
overpartitionSpt2Contribution O = 0
@[ext]
structure Overpartition (n : ℕ) where
/-- The underlying partition. -/
toPartition : Partition n
/-- The distinct part sizes that are overlined. -/
overlines : Finset ℕ
/-- Every overlined size occurs in the underlying partition. -/
overlines_subset : overlines ⊆ toPartition.parts.toFinset
deriving DecidableEq
MathlibExt/Combinatorics/Enumerative/Partition/Overpartition.lean:46
public def overpartitionSpt2Contribution {n : ℕ} (O : Nat.Overpartition n) : ℕ :=
if h : O.toPartition.parts.toFinset.Nonempty then
let s := O.toPartition.parts.toFinset.min' h
if Even s ∧ s ∉ O.overlines then O.toPartition.parts.count s else 0
else
0
WantedExt/NumberTheory/OverpartitionSpt2CongruencesWanted.lean:35
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Section 1.
Uses 2
TheoremThree congruences modulo 4 for \(\overline{\mathrm{spt2}}\)#●ready to prove
Let \(\overline{\mathrm{spt2}}(n)\) be the number of smallest parts in the overpartitions of \(n\) whose smallest part is even and not overlined. For every natural number \(n\), each of \(\overline{\mathrm{spt2}}(36n + 30)\), \(\overline{\mathrm{spt2}}(48n + 34)\) and \(\overline{\mathrm{spt2}}(72n + 42)\) is divisible by \(4\).
public theorem_wanted overpartitionSpt2_basic_congruences (n : ℕ) :
overpartitionSpt2 (36 * n + 30) % 4 = 0 ∧
overpartitionSpt2 (48 * n + 34) % 4 = 0 ∧
overpartitionSpt2 (72 * n + 42) % 4 = 0
public def overpartitionSpt2 (n : ℕ) : ℕ :=
∑ O : Nat.Overpartition n, overpartitionSpt2Contribution O
WantedExt/NumberTheory/OverpartitionSpt2CongruencesWanted.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Theorem 1.
Uses 1
TheoremCongruences modulo 4 for \(\overline{\mathrm{spt2}}\) along powers of 2#●ready to prove
Let \(\overline{\mathrm{spt2}}(N)\) be the number of smallest parts in the overpartitions of \(N\) whose smallest part is even and not overlined. For all natural numbers \(j\) and \(n\), \(\overline{\mathrm{spt2}}(N)\) is divisible by \(4\) for each of the six values \(N = 2^{j+4} n + 7 \cdot 2^{j+1}\), \(N = 2^{j+2} \cdot 9 n + 15 \cdot 2^{j+1}\), \(N = 2^{j+4} \cdot 3 n + 17 \cdot 2^{j+1}\), \(N = 2^{j+3} \cdot 9 n + 21 \cdot 2^{j+1}\), \(N = 2^{j+4} \cdot 5 n + 17 \cdot 2^{j+1}\) and \(N = 2^{j+4} \cdot 5 n + 33 \cdot 2^{j+1}\).
public theorem_wanted overpartitionSpt2_dyadic_congruences (j n : ℕ) :
overpartitionSpt2 (2 ^ (j + 4) * n + 7 * 2 ^ (j + 1)) % 4 = 0 ∧
overpartitionSpt2 (2 ^ (j + 2) * 9 * n + 15 * 2 ^ (j + 1)) % 4 = 0 ∧
overpartitionSpt2 (2 ^ (j + 4) * 3 * n + 17 * 2 ^ (j + 1)) % 4 = 0 ∧
overpartitionSpt2 (2 ^ (j + 3) * 9 * n + 21 * 2 ^ (j + 1)) % 4 = 0 ∧
overpartitionSpt2 (2 ^ (j + 4) * 5 * n + 17 * 2 ^ (j + 1)) % 4 = 0 ∧
overpartitionSpt2 (2 ^ (j + 4) * 5 * n + 33 * 2 ^ (j + 1)) % 4 = 0
public def overpartitionSpt2 (n : ℕ) : ℕ :=
∑ O : Nat.Overpartition n, overpartitionSpt2Contribution O
WantedExt/NumberTheory/OverpartitionSpt2CongruencesWanted.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Theorem 2.
Uses 1
TheoremCongruences modulo 4 for \(\overline{\mathrm{spt2}}\) at primes \(p \equiv 5, 7 \pmod 8\)#●ready to prove
Let \(\overline{\mathrm{spt2}}(N)\) be the number of smallest parts in the overpartitions of \(N\) whose smallest part is even and not overlined. Let \(p > 3\) be a prime with \(p \equiv 5 \pmod 8\) or \(p \equiv 7 \pmod 8\). Then for all natural numbers \(k\) and \(m\) with \(p \nmid m\), the number \(\overline{\mathrm{spt2}}(32 p^{2k+1} m + 24 p^{2k+2})\) is divisible by \(4\).
public theorem_wanted overpartitionSpt2_prime_congruence
(p k m : ℕ) (hp : Nat.Prime p) (hp3 : 3 < p)
(hp8 : p % 8 = 5 ∨ p % 8 = 7) (hm : ¬p ∣ m) :
overpartitionSpt2 (32 * p ^ (2 * k + 1) * m + 24 * p ^ (2 * k + 2)) % 4 = 0
public def overpartitionSpt2 (n : ℕ) : ℕ :=
∑ O : Nat.Overpartition n, overpartitionSpt2Contribution O
WantedExt/NumberTheory/OverpartitionSpt2CongruencesWanted.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Theorem 3.
Uses 1
Theorem2-dissection of the square of Euler's product#●ready to prove
Let \(q\) be a complex number with \(|q| < 1\), and for \(k \ge 1\) let \(f_k = (q^k; q^k)_\infty = \prod_{n=0}^{\infty} (1 - q^k (q^k)^n)\) be the raw infinite q-Pochhammer product. Then
public theorem_wanted qPochhammer_two_dissection_square (q : ℂ) (hq : ‖q‖ < 1) :
qPochhammerInfRaw q q ^ 2 =
qPochhammerInfRaw (q ^ 2) (q ^ 2) *
qPochhammerInfRaw (q ^ 8) (q ^ 8) ^ 5 /
(qPochhammerInfRaw (q ^ 4) (q ^ 4) ^ 2 *
qPochhammerInfRaw (q ^ 16) (q ^ 16) ^ 2) -
2 * q * qPochhammerInfRaw (q ^ 2) (q ^ 2) *
qPochhammerInfRaw (q ^ 16) (q ^ 16) ^ 2 /
qPochhammerInfRaw (q ^ 8) (q ^ 8)
noncomputable def qPochhammerInfRaw (a q : ℂ) : ℂ :=
tprod (fun n : ℕ => (1 - a * q ^ n))
MathlibExt/Analysis/SpecialFunctions/QPochhammer.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Lemma 1.
Uses 1
Theorem2-dissection of the reciprocal square of Euler's product#●ready to prove
Let \(q\) be a complex number with \(|q| < 1\), and for \(k \ge 1\) let \(f_k = (q^k; q^k)_\infty = \prod_{n=0}^{\infty} (1 - q^k (q^k)^n)\) be the raw infinite q-Pochhammer product. Then
public theorem_wanted qPochhammer_two_dissection_inverse_square (q : ℂ) (hq : ‖q‖ < 1) :
1 / qPochhammerInfRaw q q ^ 2 =
qPochhammerInfRaw (q ^ 8) (q ^ 8) ^ 5 /
(qPochhammerInfRaw (q ^ 2) (q ^ 2) ^ 5 *
qPochhammerInfRaw (q ^ 16) (q ^ 16) ^ 2) +
2 * q * qPochhammerInfRaw (q ^ 4) (q ^ 4) ^ 2 *
qPochhammerInfRaw (q ^ 16) (q ^ 16) ^ 2 /
(qPochhammerInfRaw (q ^ 2) (q ^ 2) ^ 5 *
qPochhammerInfRaw (q ^ 8) (q ^ 8))
noncomputable def qPochhammerInfRaw (a q : ℂ) : ℂ :=
tprod (fun n : ℕ => (1 - a * q ^ n))
MathlibExt/Analysis/SpecialFunctions/QPochhammer.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Lemma 1.
Uses 1
TheoremThe 3-dissection of \(f_1^3\) for complex \(q\)#●ready to prove
Let \(q\) be a complex number with \(|q| < 1\), and for \(k \ge 1\) let \(f_k = (q^k; q^k)_\infty = \prod_{m \ge 1} (1 - q^{km})\) be the raw infinite q-Pochhammer product with \(a = q^k\) and base \(q^k\). Then
public theorem_wanted qPochhammer_three_dissection_cube (q : ℂ) (hq : ‖q‖ < 1) :
qPochhammerInfRaw q q ^ 3 =
qPochhammerInfRaw (q ^ 6) (q ^ 6) *
qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 6 /
(qPochhammerInfRaw (q ^ 3) (q ^ 3) *
qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 3) +
4 * q ^ 3 * qPochhammerInfRaw (q ^ 3) (q ^ 3) ^ 2 *
qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 6 /
(qPochhammerInfRaw (q ^ 6) (q ^ 6) ^ 2 *
qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 3) -
3 * q * qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 3
noncomputable def qPochhammerInfRaw (a q : ℂ) : ℂ :=
tprod (fun n : ℕ => (1 - a * q ^ n))
MathlibExt/Analysis/SpecialFunctions/QPochhammer.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Lemma 2.
Uses 1
TheoremThe 3-dissection of \(f_4/f_1\) for complex \(q\)#●ready to prove
Let \(q\) be a complex number with \(|q| < 1\), and for \(k \ge 1\) let \(f_k = (q^k; q^k)_\infty = \prod_{m \ge 1} (1 - q^{km})\) be the raw infinite q-Pochhammer product with \(a = q^k\) and base \(q^k\). Then
MetaMathlibExt.qPochhammer_three_dissection_ratio_four_one · 15 lines
public theorem_wanted qPochhammer_three_dissection_ratio_four_one (q : ℂ) (hq : ‖q‖ < 1) :
qPochhammerInfRaw (q ^ 4) (q ^ 4) / qPochhammerInfRaw q q =
qPochhammerInfRaw (q ^ 12) (q ^ 12) *
qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 4 /
(qPochhammerInfRaw (q ^ 3) (q ^ 3) ^ 3 *
qPochhammerInfRaw (q ^ 36) (q ^ 36) ^ 2) +
q * qPochhammerInfRaw (q ^ 6) (q ^ 6) ^ 2 *
qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 3 *
qPochhammerInfRaw (q ^ 36) (q ^ 36) /
(qPochhammerInfRaw (q ^ 3) (q ^ 3) ^ 4 *
qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 2) +
2 * q ^ 2 * qPochhammerInfRaw (q ^ 6) (q ^ 6) *
qPochhammerInfRaw (q ^ 18) (q ^ 18) *
qPochhammerInfRaw (q ^ 36) (q ^ 36) /
qPochhammerInfRaw (q ^ 3) (q ^ 3) ^ 3
noncomputable def qPochhammerInfRaw (a q : ℂ) : ℂ :=
tprod (fun n : ℕ => (1 - a * q ^ n))
MathlibExt/Analysis/SpecialFunctions/QPochhammer.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Lemma 2.
Uses 1
TheoremThe 3-dissection of \(f_1 f_2\) for complex \(q\)#●ready to prove
Let \(q\) be a complex number with \(|q| < 1\), and for \(k \ge 1\) let \(f_k = (q^k; q^k)_\infty = \prod_{m \ge 1} (1 - q^{km})\) be the raw infinite q-Pochhammer product with \(a = q^k\) and base \(q^k\). Then
public theorem_wanted qPochhammer_three_dissection_product_one_two (q : ℂ) (hq : ‖q‖ < 1) :
qPochhammerInfRaw q q * qPochhammerInfRaw (q ^ 2) (q ^ 2) =
qPochhammerInfRaw (q ^ 6) (q ^ 6) *
qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 4 /
(qPochhammerInfRaw (q ^ 3) (q ^ 3) *
qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 2) -
q * qPochhammerInfRaw (q ^ 9) (q ^ 9) *
qPochhammerInfRaw (q ^ 18) (q ^ 18) -
2 * q ^ 2 * qPochhammerInfRaw (q ^ 3) (q ^ 3) *
qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 4 /
(qPochhammerInfRaw (q ^ 6) (q ^ 6) *
qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 2)
noncomputable def qPochhammerInfRaw (a q : ℂ) : ℂ :=
tprod (fun n : ℕ => (1 - a * q ^ n))
MathlibExt/Analysis/SpecialFunctions/QPochhammer.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Lemma 2.
Uses 1
Theorem3-dissection of the product form of Ramanujan's psi function#●ready to prove
Let \(q\) be a complex number with \(|q| < 1\), and for \(k \ge 1\) let \(f_k = (q^k; q^k)_\infty = \prod_{n=0}^{\infty} (1 - q^k (q^k)^n)\) be the raw infinite q-Pochhammer product. Then
Here \(f_2^2/f_1\) is the product form of Ramanujan's theta function \(\psi(q) = \sum_{n \ge 0} q^{n(n+1)/2}\).
public theorem_wanted ramanujanPsi_three_dissection (q : ℂ) (hq : ‖q‖ < 1) :
qPochhammerInfRaw (q ^ 2) (q ^ 2) ^ 2 / qPochhammerInfRaw q q =
qPochhammerInfRaw (q ^ 6) (q ^ 6) *
qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 2 /
(qPochhammerInfRaw (q ^ 3) (q ^ 3) *
qPochhammerInfRaw (q ^ 18) (q ^ 18)) +
q * qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 2 /
qPochhammerInfRaw (q ^ 9) (q ^ 9)
noncomputable def qPochhammerInfRaw (a q : ℂ) : ℂ :=
tprod (fun n : ℕ => (1 - a * q ^ n))
MathlibExt/Analysis/SpecialFunctions/QPochhammer.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Lemma 3.
Uses 1
Theorem3-dissection of the product form of Ramanujan's psi function at negated argument#●ready to prove
Let \(q\) be a complex number with \(|q| < 1\), and for \(k \ge 1\) let \(f_k = (q^k; q^k)_\infty = \prod_{n=0}^{\infty} (1 - q^k (q^k)^n)\) be the raw infinite q-Pochhammer product. Then
Here \(f_1 f_4/f_2\) is the product form of \(\psi(-q)\), where \(\psi(q) = \sum_{n \ge 0} q^{n(n+1)/2}\) is Ramanujan's theta function.
public theorem_wanted ramanujanPsi_neg_dissection (q : ℂ) (hq : ‖q‖ < 1) :
qPochhammerInfRaw q q * qPochhammerInfRaw (q ^ 4) (q ^ 4) /
qPochhammerInfRaw (q ^ 2) (q ^ 2) =
qPochhammerInfRaw (q ^ 3) (q ^ 3) *
qPochhammerInfRaw (q ^ 12) (q ^ 12) *
qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 5 /
(qPochhammerInfRaw (q ^ 6) (q ^ 6) ^ 2 *
qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 2 *
qPochhammerInfRaw (q ^ 36) (q ^ 36) ^ 2) -
q * qPochhammerInfRaw (q ^ 9) (q ^ 9) *
qPochhammerInfRaw (q ^ 36) (q ^ 36) /
qPochhammerInfRaw (q ^ 18) (q ^ 18)
noncomputable def qPochhammerInfRaw (a q : ℂ) : ℂ :=
tprod (fun n : ℕ => (1 - a * q ^ n))
MathlibExt/Analysis/SpecialFunctions/QPochhammer.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Lemma 4.
Uses 1
Theorem3-dissection of the product form of Ramanujan's phi function at negated argument#●ready to prove
Let \(q\) be a complex number with \(|q| < 1\), and for \(k \ge 1\) let \(f_k = (q^k; q^k)_\infty = \prod_{n=0}^{\infty} (1 - q^k (q^k)^n)\) be the raw infinite q-Pochhammer product. Then
Here \(f_1^2/f_2\) is the product form of \(\varphi(-q)\), where \(\varphi(q) = \sum_{n \in \mathbb{Z}} q^{n^2}\) is Ramanujan's theta function.
public theorem_wanted ramanujanPhi_neg_dissection (q : ℂ) (hq : ‖q‖ < 1) :
qPochhammerInfRaw q q ^ 2 / qPochhammerInfRaw (q ^ 2) (q ^ 2) =
qPochhammerInfRaw (q ^ 9) (q ^ 9) ^ 2 /
qPochhammerInfRaw (q ^ 18) (q ^ 18) -
2 * q * qPochhammerInfRaw (q ^ 3) (q ^ 3) *
qPochhammerInfRaw (q ^ 18) (q ^ 18) ^ 2 /
(qPochhammerInfRaw (q ^ 6) (q ^ 6) *
qPochhammerInfRaw (q ^ 9) (q ^ 9))
noncomputable def qPochhammerInfRaw (a q : ℂ) : ℂ :=
tprod (fun n : ℕ => (1 - a * q ^ n))
MathlibExt/Analysis/SpecialFunctions/QPochhammer.lean:47
Sources
- Robson da Silva, Extending Congruences for the Number of Smallest Parts in Overpartitions with Smallest Part Even, INTEGERS 26 (2026), Article A62, Lemma 5.
Uses 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.