AFTD Auto-Formalizing Theoretical Domains

plackett_luce_ranking_entropy_ge_winner_entropy

theoremverified

For any n ≥ 1 and any strictly positive probability vector p on {0, ..., n-1}, the Plackett-Luce ranking entropy is at least the winner entropy ∑_{i=0}^{n-1} -p_i * log(p_i).

Statement

theorem plackett_luce_ranking_entropy_ge_winner_entropy
    (n : ℕ) (hn : 1 ≤ n) (p : ℕ → ℝ)
    (hp_pos : ∀ i ∈ Finset.range n, 0 < p i)
    (hp_sum : ∑ i ∈ Finset.range n, p i = 1) :
    ∑ i ∈ Finset.range n, Real.negMulLog (p i) ≤ plackett_luce_entropy p (Finset.range n)
Source
Preference Elicitation as Average-Case Sorting (AAAI 2021)
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • plackett_luce_entropyShannon entropy (natural logarithm) of the Plackett-Luce distribution over the rankings of S.
  • plackett_luce_entropy_eqChain rule: the Plackett-Luce entropy on S equals the entropy of the first choice plus the expected Plackett-Luce entropy of the remaining…
  • plackett_luce_entropy_ge_winner_entropyFor any n ≥ 2 and any strictly positive probability vector p on {0, ..., n-1}, the Plackett-Luce ranking entropy on {0, ..., n-1} is at…

Read back from the Lean

For every positive integer $n$ and every function $p : ℕ → ℝ$, if $p(i) > 0$ for all $i \in \{0, \dots, n-1\}$ and $\sum_{i=0}^{n-1} p(i) = 1$, then the Shannon entropy of $p$ on $\{0, \dots, n-1\}$ (given by $\sum_{i=0}^{n-1} \mathrm{negMulLog}(p(i))$) is less than or equal to the Plackett-Luce ranking entropy of $p$ on $\{0, \dots, n-1\}$.

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 proof applies the recursive decomposition of the Plackett-Luce entropy, which expresses the total ranking entropy as the entropy of choosing the first-place winner plus the expected Plackett-Luce entropy of ranking the remaining items. Since the weights sum to 1, the first-place choice entropy simplifies to the winner entropy ∑_{i=0}^{n-1} -p_i log(p_i). Because every probability is positive and the entropy of ranking the remaining alternatives is always non-negative, the expected remaining entropy term is non-negative, proving the inequality.

  1. The set of alternatives {0, ..., n-1} is non-empty.

    Since 1 ≤ n, we have n ≠ 0. By `Finset.nonempty_range_iff`, {0, ..., n-1} is non-empty if and only if n ≠ 0.

    lines 7–9

    uses Finset.nonempty_range_iff

      have hS : (Finset.range n).Nonempty := by
        rw [Finset.nonempty_range_iff]
        omega
  2. The Plackett-Luce entropy of {0, ..., n-1} equals the winner entropy plus the expected entropy of ranking the remaining items after the first choice.

    By the decomposition lemma `plackett_luce_entropy_eq`, the entropy on {0, ..., n-1} is the sum of the first-choice entropy and the expected remaining entropy. Because the probabilities sum to 1, the denominator in each choice probability p_a / (∑ p_b) is 1. Simplifying p_a / 1 to p_a via `div_one` and `Finset.sum_congr`, the first term becomes the winner entropy ∑_{a=0}^{n-1} -p_a log(p_a).

    lines 10–15

    uses plackett_luce_entropy_eq, div_one, Finset.sum_congr

      have h_eq := plackett_luce_entropy_eq p (Finset.range n) hS hp_pos
      rw [hp_sum] at h_eq
      have h_div : ∀ a ∈ Finset.range n, p a / 1 = p a := fun a _ => div_one (p a)
      have h_first : ∑ a ∈ Finset.range n, Real.negMulLog (p a / 1) = ∑ a ∈ Finset.range n, Real.negMulLog (p a) :=
        Finset.sum_congr rfl fun a ha => by rw [h_div a ha]
      rw [h_first] at h_eq
  3. The expected remaining ranking entropy ∑_{a=0}^{n-1} (p_a / 1) * plackett_luce_entropy p ({0, ..., n-1} \ {a}) is non-negative.

    By `Finset.sum_nonneg`, a finite sum is non-negative if each term is non-negative. For each alternative a, p_a ≥ 0 because p_a > 0 (`le_of_lt`). The entropy of ranking the remaining items is non-negative by `plackett_luce_entropy_ge_winner_entropy_nonneg`, since all remaining items retain positive probabilities (`Finset.mem_of_mem_erase`). The product of these two non-negative terms is non-negative by `mul_nonneg`.

    lines 16–23

    uses Finset.sum_nonneg, le_of_lt, plackett_luce_entropy_ge_winner_entropy_nonneg, Finset.mem_of_mem_erase, mul_nonneg

      have h_second_nonneg : 0 ≤ ∑ a ∈ Finset.range n, p a / 1 * plackett_luce_entropy p ((Finset.range n).erase a) := by
        refine Finset.sum_nonneg fun a ha => ?_
        rw [h_div a ha]
        have hpa : 0 ≤ p a := le_of_lt (hp_pos a ha)
        have hrem : 0 ≤ plackett_luce_entropy p ((Finset.range n).erase a) := by
          refine plackett_luce_entropy_ge_winner_entropy_nonneg p ((Finset.range n).erase a) fun b hb => ?_
          exact hp_pos b (Finset.mem_of_mem_erase hb)
        exact mul_nonneg hpa hrem
  4. The Plackett-Luce ranking entropy is at least the winner entropy. automation

    Because the Plackett-Luce entropy equals the winner entropy plus a non-negative term, linear arithmetic (`linarith`) immediately deduces that the winner entropy is less than or equal to the Plackett-Luce entropy.

    line 24

      linarith
Finset.nonempty_range_iff
A finite range {0, ..., n-1} is non-empty if and only if n ≠ 0.
plackett_luce_entropy_eq
For a non-empty finite set with positive weights, the Plackett-Luce entropy decomposes into the entropy of choosing the first item plus the expected Plackett-Luce entropy of ranking the remaining items.
div_one
Dividing a quantity by 1 yields the quantity itself (a / 1 = a).
Finset.sum_congr
Two sums over finite sets are equal if the index sets are equal and their summands agree on every element.
Finset.sum_nonneg
A finite sum is non-negative if every summand is non-negative.
le_of_lt
A strict inequality implies the corresponding non-strict inequality (a < b → a ≤ b).
plackett_luce_entropy_ge_winner_entropy_nonneg
The Plackett-Luce entropy on any finite set with positive weights is non-negative.
Finset.mem_of_mem_erase
If an element belongs to S \ {a}, it belongs to S.
mul_nonneg
The product of two non-negative real numbers is non-negative.

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 Plackett-Luce ranking entropy on n alternatives is at least its winner entropy. -/theorem plackett_luce_ranking_entropy_ge_winner_entropy    (n : ℕ) (hn : 1 ≤ n) (p : ℕ → ℝ)    (hp_pos : ∀ i ∈ Finset.range n, 0 < p i)    (hp_sum : ∑ i ∈ Finset.range n, p i = 1) :    ∑ i ∈ Finset.range n, Real.negMulLog (p i) ≤ plackett_luce_entropy p (Finset.range n) := by  have hS : (Finset.range n).Nonempty := by    rw [Finset.nonempty_range_iff]    omega  have h_eq := plackett_luce_entropy_eq p (Finset.range n) hS hp_pos  rw [hp_sum] at h_eq  have h_div : ∀ a ∈ Finset.range n, p a / 1 = p a := fun a _ => div_one (p a)  have h_first : ∑ a ∈ Finset.range n, Real.negMulLog (p a / 1) = ∑ a ∈ Finset.range n, Real.negMulLog (p a) :=    Finset.sum_congr rfl fun a ha => by rw [h_div a ha]  rw [h_first] at h_eq  have h_second_nonneg : 0 ≤ ∑ a ∈ Finset.range n, p a / 1 * plackett_luce_entropy p ((Finset.range n).erase a) := by    refine Finset.sum_nonneg fun a ha => ?_    rw [h_div a ha]    have hpa : 0 ≤ p a := le_of_lt (hp_pos a ha)    have hrem : 0 ≤ plackett_luce_entropy p ((Finset.range n).erase a) := by      refine plackett_luce_entropy_ge_winner_entropy_nonneg p ((Finset.range n).erase a) fun b hb => ?_      exact hp_pos b (Finset.mem_of_mem_erase hb)    exact mul_nonneg hpa hrem  linarith
See it in the graphDiscuss this resultChallenge it