plackett_luce_entropy_ge_winner_entropy
For 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 least the winner entropy ∑_{i=0}^{n-1} -p_i log p_i.
Statement
theorem plackett_luce_entropy_ge_winner_entropy (n : ℕ) (hn : 2 ≤ 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)- Related work
- knowledgebase
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 6
- 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…
- rankings_ofThe rankings of a finite set S of alternatives: all orderings of S as duplicate-free lists.
- sum_plackett_luce_probWith positive weights, the Plackett-Luce probabilities of the rankings of S sum to 1.
- plackett_luce_probPlackett-Luce probability of a ranking (best first): the product over positions of the weight of the alternative placed there divided by…
- mem_rankings_of_iffA list is a ranking of S iff it has no duplicates and its set of entries is S.
- Used by 1
- plackett_luce_ranking_entropy_ge_winner_entropyFor any n ≥ 1 and any strictly positive probability vector p on {0, ..., n-1}, the Plackett-Luce ranking entropy is at least the winner…
Read back from the Lean
For every natural number $n \ge 2$ and every function $p : \mathbb{N} \to \mathbb{R}$, 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$ over $\{0, \dots, n - 1\}$ (namely $\sum_{i=0}^{n-1} -p(i) \ln(p(i))$) is less than or equal to the Plackett-Luce entropy of $p$ on the set $\{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 uses the recursive expansion of the Plackett-Luce ranking entropy on a set of items into the entropy of choosing the first-place winner plus the expected Plackett-Luce entropy of ranking the remaining items. For a normalized probability vector, the selection probabilities simplify to p_i, so the first term is exactly the winner Shannon entropy. Because Plackett-Luce probabilities are non-negative and sum to 1, the ranking entropy on any subset is non-negative, making the expected remainder non-negative. Dropping this non-negative remainder immediately implies that the total ranking entropy is at least the winner entropy.
The Plackett-Luce probability of the empty ranking list is non-negative.
We proceed by induction on the ranking list l. In the base case where l is empty, its Plackett-Luce probability is 1 by definition, which is non-negative.
induction l with | nil => simp [plackett_luce_prob]
For an inductive step l = a :: t, the head weight w(a), the tail weights, the tail probability, and the sum of tail weights are all non-negative.
The head item a belongs to a :: t by List.mem_cons_self, so w(a) ≥ 0. Every item in the tail t belongs to a :: t by List.mem_cons_of_mem, so tail items have non-negative weights. By the induction hypothesis, the Plackett-Luce probability of t is non-negative. Moreover, the sum of tail weights is non-negative by List.sum_nonneg, since every element in the mapped list is the weight of some item in t by List.mem_map.
uses
List.mem_cons_self,List.mem_cons_of_mem,List.sum_nonneg,List.mem_map| cons a t ih => have ha : 0 ≤ w a := hw a List.mem_cons_self have ht : ∀ x ∈ t, 0 ≤ w x := fun x hx => hw x (List.mem_cons_of_mem a hx) have iht := ih ht simp only [plackett_luce_prob] have hsum : 0 ≤ (t.map w).sum := by refine List.sum_nonneg ?_ intro x hx rw [List.mem_map] at hx rcases hx with ⟨y, hy, rfl⟩ exact ht y hyThe Plackett-Luce probability of a :: t is non-negative.
The probability of a :: t is the product of w(a) / (w(a) + ∑_{x ∈ t} w(x)) and the tail probability. We branch on whether the denominator vanishes. If it is 0, the division is 0 by div_zero, making the product 0 by zero_mul. If it is non-zero, the sum of two non-negative terms is non-negative (add_nonneg), so it must be strictly positive by lt_or_eq_of_le and False.elim. Hence the quotient is non-negative by div_nonneg and le_of_lt, and multiplying by the non-negative tail probability yields a non-negative result by mul_nonneg.
uses
div_zero,zero_mul,add_nonneg,lt_or_eq_of_le,False.elim,div_nonneg,le_of_lt,mul_nonnegby_cases h0 : w a + (t.map w).sum = 0 · rw [h0, div_zero, zero_mul] · have hdenom : 0 < w a + (t.map w).sum := by rcases lt_or_eq_of_le (add_nonneg ha hsum) with h | h · exact h · exact False.elim (h0 h.symm) exact mul_nonneg (div_nonneg ha (le_of_lt hdenom)) iht
The Plackett-Luce entropy on S is a sum of terms -p(l) log p(l) over rankings l of S, and each ranking probability p(l) is non-negative.
Unfolding the definition, the entropy is the sum of -p(l) log p(l) over all rankings l of S. To prove the sum is non-negative via Finset.sum_nonneg, it suffices to show each summand is non-negative. For any ranking l of S, its items belong to S by mem_rankings_of_iff and List.mem_toFinset, hence have positive and thus non-negative weights by le_of_lt. Applying plackett_luce_entropy_ge_winner_entropy_prob_nonneg establishes that p(l) ≥ 0.
uses
Finset.sum_nonneg,mem_rankings_of_iff,List.mem_toFinset,le_of_lt,plackett_luce_entropy_ge_winner_entropy_prob_nonnegunfold plackett_luce_entropy refine Finset.sum_nonneg fun l hl => ?_ have h_mem : ∀ x ∈ l, 0 ≤ w x := by intro x hx rw [mem_rankings_of_iff] at hl have : x ∈ S := by rw [← hl.2, List.mem_toFinset] exact hx exact le_of_lt (hw x this) have h0 : 0 ≤ plackett_luce_prob w l := plackett_luce_entropy_ge_winner_entropy_prob_nonneg w l h_mem
For each ranking l of S, its Plackett-Luce probability is at most 1.
The sum of Plackett-Luce probabilities over all rankings of S equals 1 by sum_plackett_luce_prob. Because every ranking t has non-negative probability (again by checking item membership via mem_rankings_of_iff and List.mem_toFinset, followed by le_of_lt and plackett_luce_entropy_ge_winner_entropy_prob_nonneg), each individual probability p(l) is bounded above by the total sum 1 using Finset.single_le_sum.
uses
sum_plackett_luce_prob,Finset.single_le_sum,mem_rankings_of_iff,List.mem_toFinset,le_of_lt,plackett_luce_entropy_ge_winner_entropy_prob_nonneghave h1 : plackett_luce_prob w l ≤ 1 := by have hsum := sum_plackett_luce_prob w S.card S rfl hw rw [← hsum] refine Finset.single_le_sum (fun t ht => ?_) hl rw [mem_rankings_of_iff] at ht have ht_mem : ∀ x ∈ t, 0 ≤ w x := by intro x hx have : x ∈ S := by rw [← ht.2, List.mem_toFinset] exact hx exact le_of_lt (hw x this) exact plackett_luce_entropy_ge_winner_entropy_prob_nonneg w t ht_mem
Each summand -p(l) log p(l) is non-negative, so the total Plackett-Luce entropy on S is non-negative.
Since 0 ≤ p(l) ≤ 1, Real.negMulLog_nonneg shows that -p(l) log p(l) ≥ 0, which completes the sum_nonneg goal.
uses
Real.negMulLog_nonnegexact Real.negMulLog_nonneg h0 h1The set of items {0, ..., n-1} is nonempty.
The range Finset.range n is nonempty if and only if n ≠ 0 by Finset.nonempty_range_iff, which holds because n ≥ 2 by omega.
uses
Finset.nonempty_range_iffhave hS : (Finset.range n).Nonempty := by rw [Finset.nonempty_range_iff] omega
The Plackett-Luce entropy decomposes into the winner entropy plus an expected remaining entropy.
By plackett_luce_entropy_eq, the entropy expands as the sum of -(p_a / ∑ p) log(p_a / ∑ p) plus ∑_a (p_a / ∑ p) H(p, S \ {a}). Since ∑ p = 1, each quotient p_a / 1 simplifies to p_a by div_one. Rewriting the first sum with Finset.sum_congr reduces it to the winner entropy ∑_{i=0}^{n-1} -p_i log p_i.
uses
plackett_luce_entropy_eq,div_one,Finset.sum_congrhave 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
The expected remaining entropy ∑_{a=0}^{n-1} p_a H(p, {0, ..., n-1} \ {a}) is non-negative.
We show the sum is non-negative using Finset.sum_nonneg. For each item a, p_a ≥ 0 from p_a > 0 via le_of_lt. The remaining entropy on the erased set is non-negative by plackett_luce_entropy_ge_winner_entropy_nonneg, since any element b in {0, ..., n-1} \ {a} is in the original range by Finset.mem_of_mem_erase and thus has p_b > 0. The product of two non-negative terms is non-negative by mul_nonneg.
uses
Finset.sum_nonneg,le_of_lt,plackett_luce_entropy_ge_winner_entropy_nonneg,Finset.mem_of_mem_erase,mul_nonneghave 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
The Plackett-Luce ranking entropy is at least the winner entropy.
Combining the equality H = (winner entropy) + (expected remaining entropy) with the fact that the expected remaining entropy is non-negative, linear arithmetic (linarith) proves that the winner entropy is at most H.
linarith
List.mem_cons_self- An element is always a member of the list formed by prepending it to any list.
List.mem_cons_of_mem- If an element is in a list, it is also in the list obtained by prepending any element.
List.sum_nonneg- The sum of a list of non-negative real numbers is non-negative.
List.mem_map- An element is in the image of a list under a function if and only if it is the image of some element of the list.
div_zero- Dividing any number by zero equals zero.
zero_mul- Multiplying zero by any number yields zero.
add_nonneg- The sum of two non-negative numbers is non-negative.
lt_or_eq_of_le- If a ≤ b, then either a < b or a = b.
False.elim- From a contradiction (False), any statement follows.
div_nonneg- The quotient of two non-negative numbers is non-negative.
le_of_lt- If a < b, then a ≤ b.
mul_nonneg- The product of two non-negative numbers is non-negative.
Finset.sum_nonneg- The sum of a non-negative function over a finite set is non-negative.
mem_rankings_of_iff- A list is an ordering of a finite set S without duplicates if and only if its elements form S and it contains no duplicate entries.
List.mem_toFinset- An element is in the set of elements of a list if and only if it belongs to the list.
plackett_luce_entropy_ge_winner_entropy_prob_nonneg- The Plackett-Luce probability of any ranking list is non-negative when all item weights are non-negative.
sum_plackett_luce_prob- The sum of Plackett-Luce probabilities over all permutations of a finite set with strictly positive weights is 1.
Finset.single_le_sum- Any individual non-negative term in a finite sum is less than or equal to the total sum.
Real.negMulLog_nonneg- The function -x log x is non-negative for every x in [0, 1].
Finset.nonempty_range_iff- The range {0, ..., n-1} is nonempty if and only if n ≠ 0.
plackett_luce_entropy_eq- The Plackett-Luce entropy decomposes into the winner selection entropy plus the expected Plackett-Luce entropy of ranking the remaining items.
div_one- Dividing any number by 1 leaves it unchanged.
Finset.sum_congr- Two sums over the same finite set are equal if their terms agree on every element.
plackett_luce_entropy_ge_winner_entropy_nonneg- The Plackett-Luce entropy on a finite set with strictly positive weights is non-negative.
Finset.mem_of_mem_erase- If an element belongs to S \ {a}, it belongs to S.
- In Lean, real division by zero is defined to yield zero (a / 0 = 0), which handles the case of zero total weight without requiring a separate positivity branch on paper.
- The nonemptiness of the item set {0, ..., n-1} from n ≥ 2 is verified via linear integer arithmetic by the omega tactic.
- The final step deducing that the total Plackett-Luce entropy is at least the winner entropy combines the decomposition H = (winner entropy) + (remainder) with non-negativity of the remainder via the linarith linear arithmetic tactic.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
lemma plackett_luce_entropy_ge_winner_entropy_prob_nonneg (w : ℕ → ℝ) (l : List ℕ) (hw : ∀ x ∈ l, 0 ≤ w x) : 0 ≤ plackett_luce_prob w l := by induction l with | nil => simp [plackett_luce_prob] | cons a t ih => have ha : 0 ≤ w a := hw a List.mem_cons_self have ht : ∀ x ∈ t, 0 ≤ w x := fun x hx => hw x (List.mem_cons_of_mem a hx) have iht := ih ht simp only [plackett_luce_prob] have hsum : 0 ≤ (t.map w).sum := by refine List.sum_nonneg ?_ intro x hx rw [List.mem_map] at hx rcases hx with ⟨y, hy, rfl⟩ exact ht y hy by_cases h0 : w a + (t.map w).sum = 0 · rw [h0, div_zero, zero_mul] · have hdenom : 0 < w a + (t.map w).sum := by rcases lt_or_eq_of_le (add_nonneg ha hsum) with h | h · exact h · exact False.elim (h0 h.symm) exact mul_nonneg (div_nonneg ha (le_of_lt hdenom)) ihtlemma plackett_luce_entropy_ge_winner_entropy_nonneg (w : ℕ → ℝ) (S : Finset ℕ) (hw : ∀ b ∈ S, 0 < w b) : 0 ≤ plackett_luce_entropy w S := by unfold plackett_luce_entropy refine Finset.sum_nonneg fun l hl => ?_ have h_mem : ∀ x ∈ l, 0 ≤ w x := by intro x hx rw [mem_rankings_of_iff] at hl have : x ∈ S := by rw [← hl.2, List.mem_toFinset] exact hx exact le_of_lt (hw x this) have h0 : 0 ≤ plackett_luce_prob w l := plackett_luce_entropy_ge_winner_entropy_prob_nonneg w l h_mem have h1 : plackett_luce_prob w l ≤ 1 := by have hsum := sum_plackett_luce_prob w S.card S rfl hw rw [← hsum] refine Finset.single_le_sum (fun t ht => ?_) hl rw [mem_rankings_of_iff] at ht have ht_mem : ∀ x ∈ t, 0 ≤ w x := by intro x hx have : x ∈ S := by rw [← ht.2, List.mem_toFinset] exact hx exact le_of_lt (hw x this) exact plackett_luce_entropy_ge_winner_entropy_prob_nonneg w t ht_mem exact Real.negMulLog_nonneg h0 h1/-- For any probability vector p on n ≥ 2 items, the Plackett-Luce ranking entropy is at least the winner entropy. -/theorem plackett_luce_entropy_ge_winner_entropy (n : ℕ) (hn : 2 ≤ 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