AFTD Auto-Formalizing Theoretical Domains

sampfordRareGroupRatio

def

For partition parameters m, r, k with m + r = n, r ≥ 2, 1 ≤ k < m, the rare-group coupling deficit ratio is the quotient of the sum of weights W_ℓ for ℓ ≥ 2 over the total sum of weights W_ℓ for ℓ ≥ 0.

Statement

noncomputable def sampfordRareGroupRatio (m r k : ℕ) : ℝ
Defined in
OP-1944
Verified
18 Nov 2026
Axioms
none listed
Built on 1
  • sampfordRareGroupWeightFor integers m, r, k, ℓ with m + r = n, r ≥ 2, 1 ≤ k < m, the rare-group weight W_ℓ is defined as binom(m, k + 1 - ℓ) * binom(r, ℓ) * [k /…
Used by 3

Read back from the Lean

sampfordRareGroupRatio m r k is defined for natural numbers m, r, and k as the ratio of two sums: The numerator is the sum over ℓ from 2 to k + 1 (inclusive, i.e., ℓ ∈ Finset.Ico 2 (k + 2)) of sampfordRareGroupWeight m r k ℓ. The denominator is the sum over ℓ from 0 to k + 1 (inclusive, i.e., ℓ ∈ Finset.range (k + 2)) of sampfordRareGroupWeight m r k ℓ.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The rare-group coupling deficit ratio sum_{ℓ ≥ 2} W_ℓ / sum_{ℓ ≥ 0} W_ℓ. -/
noncomputable def sampfordRareGroupRatio (m r k : ℕ) : ℝ :=
  (∑ ℓ ∈ Finset.Ico 2 (k + 2), sampfordRareGroupWeight m r k ℓ) /
  (∑ ℓ ∈ Finset.range (k + 2), sampfordRareGroupWeight m r k ℓ)
See it in the graphDiscuss this resultChallenge it