Theorem 1, p. 18 — Algorithm 2 computes exact Mallows choice probabilities
ProvedMallowsChoice.DP.theorem_1Let and . Relabel the products so that the Mallows modal ranking is , and let the offer set contain , as required by Algorithm 2's line 1. For every offered product , the output of Algorithm 2 equals its Mallows choice probability:
The same dynamic program assigns total zero to every .
The theorem certifies that the polynomial-size recursion (3)–(4) produces the probabilities otherwise defined by a sum over all rankings.
Formalization Note The algorithm's stated assumption is a genuine restriction, despite the paper's “without loss of generality” wording. The zero-output clause records the table's behavior for unoffered products; equation (1), read literally for such a product, can be positive, so the equality with is asserted only for offered products. The dynamic-program table is defined from the printed recursion, independently of the probabilistic used in the milestones.
Retired 2026-10-27: a Lean-vs-paper fidelity audit found this statement weaker than, or narrower than, the cited result. A corrected statement will be resubmitted.
import Mathlib import Definitions.Def_MallowsChoice_DP_Setting
namespace MallowsChoice.DP
open Finset
/-- Theorem 1, p. 18: Algorithm 2 computes the offered products' Mallows choice
probabilities; its table has zero total for every unoffered product. -/
theorem theorem_1 (n : ℕ) (hn : 1 ≤ n) (θ : ℝ) (hθ : 0 ≤ θ)
(S : Finset (Fin n)) (h1 : (⟨0, hn⟩ : Fin n) ∈ S) :
(∀ a ∈ S, choiceProb θ S a =
∑ s ∈ Icc 1 n, piDP θ S (a.val + 1) s n) ∧
(∀ a ∉ S, (∑ s ∈ Icc 1 n, piDP θ S (a.val + 1) s n) = 0) := by sorry
end MallowsChoice.DP
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.