AFTD Auto-Formalizing Theoretical Domains

sampford_rare_group_ratio_four_two_two

theoremverified

For partition parameters m = 4, r = 2, k = 2, the rare-group coupling deficit ratio is equal to 1/5.

Statement

theorem sampford_rare_group_ratio_four_two_two :
    sampfordRareGroupRatio 4 2 2 = 1 / 5
Source
OP-1944
Verified
19 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • sampfordRareGroupRatioFor 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…

Read back from the Lean

The ratio sampfordRareGroupRatio 4 2 2 equals 1 / 5 in the real numbers, where sampfordRareGroupRatio m r k is defined as the sum over ℓ ∈ {2, ..., k + 1} of sampfordRareGroupWeight m r k ℓ divided by the sum over ℓ ∈ {0, ..., k + 1} 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.

The proof, explained

The theorem is proved by directly unfolding the definitions of the rare-group coupling deficit ratio and weight at parameters $m = 4$, $r = 2$, $k = 2$. The summation ranges in the numerator and denominator are evaluated by decidability to the explicit sets $\{2, 3\}$ and $\{0, 1, 2, 3\}$. Finally, computing the binomial coefficients and performing rational arithmetic over these finite sums yields $6 / 30 = 1/5$.

  1. The definition of the rare-group coupling deficit ratio is expanded into an explicit quotient of finite sums.

    Unfolding the definitions of `sampfordRareGroupRatio` and `sampfordRareGroupWeight` expresses the ratio as the sum of weights over $\ell \in [2, 4)$ divided by the sum of weights over $\ell \in [0, 4)$ for parameters $m = 4$, $r = 2$, $k = 2$.

    line 4

      dsimp [sampfordRareGroupRatio, sampfordRareGroupWeight]
  2. The summation index sets $[2, 4)$ and $[0, 4)$ are replaced by the explicit sets $\{2, 3\}$ and $\{0, 1, 2, 3\}$.

    Using finite decidability (`decide`), the interval `Finset.Ico 2 4` is evaluated to $\{2, 3\}$ and `Finset.range 4` is evaluated to $\{0, 1, 2, 3\}$. Rewriting with these equalities substitutes the explicit sets into the numerator and denominator sums.

    lines 5–7

    uses Finset.Ico, Finset.range

      have h1 : Finset.Ico 2 4 = {2, 3} := by decide
      have h2 : Finset.range 4 = {0, 1, 2, 3} := by decide
      rw [h1, h2]
  3. The quotient of finite sums evaluates to $1/5$. automation

    The arithmetic normalizer evaluates the binomial coefficients $\binom{4}{3-\ell}$ and $\binom{2}{\ell}$ for each $\ell \in \{0, 1, 2, 3\}$, sums the resulting values to get $6$ in the numerator and $30$ in the denominator, and simplifies $6 / 30$ to $1 / 5$.

    line 8

    uses Nat.choose

      norm_num [Nat.choose]
Finset.Ico
The half-open interval $[a, b) = \{x \mid a \le x < b\}$ as a finite set.
Finset.range
The finite set $\{0, 1, \dots, n-1\}$ of natural numbers strictly less than $n$.
Nat.choose
The binomial coefficient $\binom{n}{k}$, giving the number of ways to choose $k$ items from $n$.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

/-- The rare-group coupling deficit ratio for m = 4, r = 2, k = 2 is 1/5. -/theorem sampford_rare_group_ratio_four_two_two :    sampfordRareGroupRatio 4 2 2 = 1 / 5 := by  dsimp [sampfordRareGroupRatio, sampfordRareGroupWeight]  have h1 : Finset.Ico 2 4 = {2, 3} := by decide  have h2 : Finset.range 4 = {0, 1, 2, 3} := by decide  rw [h1, h2]  norm_num [Nat.choose]
See it in the graphDiscuss this resultChallenge it