persistent_randomized_dictatorship_distortion_le_five
For any finite voter type V with at least 3 voters, any candidate type C, and any family of pseudometrics d on V ⊕ C indexed by V such that the distance between any two voters is identical under all d i, if each voter i chooses a candidate x i minimizing the distance to i under d i, and y_star i is a candidate minimizing the social cost under d i, then the sum over i in V of the social cost of x i under d i is at most 5 times the sum over i in V of the social cost of y_star i under d i.
Statement
theorem persistent_randomized_dictatorship_distortion_le_five {V C : Type*} [Fintype V] [DecidableEq V] (hn : 3 ≤ Fintype.card V) (d : V → PseudoMetricSpace (V ⊕ C)) (h_voter : ∀ (i i' : V) (u v : V), (letI := d i; dist (Sum.inl u : V ⊕ C) (Sum.inl v : V ⊕ C)) = (letI := d i'; dist (Sum.inl u : V ⊕ C) (Sum.inl v : V ⊕ C))) (x : V → C) (hx : ∀ (i : V) (c : C), (letI := d i; dist (Sum.inl i : V ⊕ C) (Sum.inr (x i))) ≤ (letI := d i; dist (Sum.inl i : V ⊕ C) (Sum.inr c))) (y_star : V → C) (hy_star : ∀ (i : V) (c : C), (letI := d i; candidate_metric_social_cost V (y_star i)) ≤ (letI := d i; candidate_metric_social_cost V c)) : (∑ i : V, (letI := d i; candidate_metric_social_cost V (x i))) ≤ 5 * (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i)))
- Formalizes
- arXiv:2611.30683 Theorem 3.10 -- Stay or Switch? Metric Distortion with Online Candidate Arrivals
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- candidate_metric_social_costThe social cost of candidate c under a pseudometric space on V ⊕ C is the sum over all voters v in V of the distance between v and c.
- persistent_randomized_dictatorship_distortion_boundFor any finite voter type V with at least 3 voters, any candidate type C, and any family of pseudometrics d on V ⊕ C indexed by V such…
Read back from the Lean
Let $V$ and $C$ be types, where $V$ is a finite type with decidable equality. Assume:
1. hn: The cardinality of $V$ is at least 3 ($3 \le |V|$).
2. d: A map assigning to each $i \in V$ a pseudometric space structure on the sum type $V \oplus C$.
3. h_voter: For all $i, i', u, v \in V$, the pseudometric distance between $\text{Sum.inl}(u)$ and $\text{Sum.inl}(v)$ under $d(i)$ equals their distance under $d(i')$ (i.e., all pseudometrics $d(i)$ agree on the distances between elements of $V$).
4. x: A function $x : V \to C$.
5. hx: For all $i \in V$ and all $c \in C$, under the pseudometric $d(i)$, the distance from $\text{Sum.inl}(i)$ to $\text{Sum.inr}(x(i))$ is less than or equal to the distance from $\text{Sum.inl}(i)$ to $\text{Sum.inr}(c)$ (i.e., $x(i)$ is a candidate minimizing distance to $i$ under $d(i)$).
6. y_star: A function $y^* : V \to C$.
7. hy_star: For all $i \in V$ and all $c \in C$, under the pseudometric $d(i)$, the candidate metric social cost of $y^*(i)$ is less than or equal to the candidate metric social cost of $c$.
Then the sum over all $i \in V$ of the candidate metric social cost of $x(i)$ under $d(i)$ is at most 5 times the sum over all $i \in V$ of the candidate metric social cost of $y^*(i)$ under $d(i)$.
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 reduces the metric distortion bound of 5 to an algebraic inequality by appealing to a known distortion bound for persistent randomized dictatorship, which bounds the sum of social costs by $(5|V|-2)/(|V|+2)$ times the optimal sum. Since $|V| \\ge 0$, the denominator $|V|+2$ is strictly positive, and clearing denominators reduces $(5|V|-2)/(|V|+2) \\le 5$ to the trivial inequality $-2 \\le 10$. Finally, because metric distances are non-negative, the total optimal social cost is non-negative, allowing the coefficient inequality to be multiplied by the optimal cost to yield the upper bound of 5.
The total social cost of the chosen candidates is at most $\\frac{5|V|-2}{|V|+2}$ times the sum of optimal social costs.
Apply the previously established bound persistent_randomized_dictatorship_distortion_bound using the assumptions that $|V| \\ge 3$, that all voter-to-voter distances coincide across metrics, and that each $x_i$ and $y^*_i$ minimizes individual distance and social cost, respectively.
uses
persistent_randomized_dictatorship_distortion_boundhave hbound := persistent_randomized_dictatorship_distortion_bound hn d h_voter x hx y_star hy_starThe sum of the optimal social costs over all voters is non-negative.
By definition, candidate social cost is a sum of distances. Because metric distances are always non-negative (dist_nonneg), each individual optimal social cost is non-negative by Finset.sum_nonneg. Summing these non-negative quantities over all voters $i \\in V$ yields a non-negative total sum, again by Finset.sum_nonneg.
uses
Finset.sum_nonneg,dist_nonneghave hT : (0:ℝ) ≤ (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) := by have hnonneg : ∀ (i : V), (0:ℝ) ≤ (letI := d i; candidate_metric_social_cost V (y_star i)) := by intro i letI := d i unfold candidate_metric_social_cost exact Finset.sum_nonneg (fun v _ => dist_nonneg) exact Finset.sum_nonneg (fun i _ => hnonneg i)
The distortion factor satisfies $\\frac{5|V|-2}{|V|+2} \\le 5$.
Since the voter count $|V|$ cast to the real numbers is non-negative (Nat.cast_nonneg), the denominator $|V| + 2$ is strictly positive. Clearing the denominator via div_le_iff₀ reduces the goal to $5|V| - 2 \\le 5(|V| + 2) = 5|V| + 10$, which holds by linear arithmetic since $-2 \\le 10$.
uses
Nat.cast_nonneg,div_le_iff₀have hcoef : ((5 * (Fintype.card V : ℝ) - 2) / ((Fintype.card V : ℝ) + 2)) ≤ 5 := by have hnpos : (0:ℝ) < (Fintype.card V : ℝ) + 2 := by have : (0:ℝ) ≤ (Fintype.card V : ℝ) := Nat.cast_nonneg _ linarith rw [div_le_iff₀ hnpos] linarith
The sum of social costs of the chosen candidates is at most 5 times the sum of optimal social costs.
Combine the two bounds: the total cost is at most $\\frac{5|V|-2}{|V|+2}$ times the optimal cost by the distortion bound, and multiplying the inequality $\\frac{5|V|-2}{|V|+2} \\le 5$ by the non-negative total optimal cost via mul_le_mul_of_nonneg_right bounds this by 5 times the optimal cost.
uses
mul_le_mul_of_nonneg_rightcalc (∑ i : V, (letI := d i; candidate_metric_social_cost V (x i))) ≤ ((5 * (Fintype.card V : ℝ) - 2) / ((Fintype.card V : ℝ) + 2)) * (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) := hbound _ ≤ 5 * (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) := by apply mul_le_mul_of_nonneg_right hcoef hT
persistent_randomized_dictatorship_distortion_bound- For at least 3 voters, the sum of social costs of the nearest candidates chosen by each voter is at most $(5|V|-2)/(|V|+2)$ times the sum of optimal social costs.
Finset.sum_nonneg- A finite sum of non-negative elements in an ordered additive monoid is non-negative.
dist_nonneg- The distance between any two points in a pseudometric space is non-negative.
Nat.cast_nonneg- The coercion of any natural number into an ordered semiring (such as the reals) is non-negative.
div_le_iff₀- For a strictly positive divisor, a quotient $b / c \\le a$ if and only if $b \\le a \\cdot c$.
mul_le_mul_of_nonneg_right- Multiplying both sides of an inequality $b \\le c$ on the right by a non-negative element $a \\ge 0$ preserves the inequality: $b \\cdot a \\le c \\cdot a$.
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.
/-- Persistent randomized dictatorship achieves metric distortion at most 5 against adaptive adversaries. -/theorem persistent_randomized_dictatorship_distortion_le_five {V C : Type*} [Fintype V] [DecidableEq V] (hn : 3 ≤ Fintype.card V) (d : V → PseudoMetricSpace (V ⊕ C)) (h_voter : ∀ (i i' : V) (u v : V), (letI := d i; dist (Sum.inl u : V ⊕ C) (Sum.inl v : V ⊕ C)) = (letI := d i'; dist (Sum.inl u : V ⊕ C) (Sum.inl v : V ⊕ C))) (x : V → C) (hx : ∀ (i : V) (c : C), (letI := d i; dist (Sum.inl i : V ⊕ C) (Sum.inr (x i))) ≤ (letI := d i; dist (Sum.inl i : V ⊕ C) (Sum.inr c))) (y_star : V → C) (hy_star : ∀ (i : V) (c : C), (letI := d i; candidate_metric_social_cost V (y_star i)) ≤ (letI := d i; candidate_metric_social_cost V c)) : (∑ i : V, (letI := d i; candidate_metric_social_cost V (x i))) ≤ 5 * (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) := by have hbound := persistent_randomized_dictatorship_distortion_bound hn d h_voter x hx y_star hy_star have hT : (0:ℝ) ≤ (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) := by have hnonneg : ∀ (i : V), (0:ℝ) ≤ (letI := d i; candidate_metric_social_cost V (y_star i)) := by intro i letI := d i unfold candidate_metric_social_cost exact Finset.sum_nonneg (fun v _ => dist_nonneg) exact Finset.sum_nonneg (fun i _ => hnonneg i) have hcoef : ((5 * (Fintype.card V : ℝ) - 2) / ((Fintype.card V : ℝ) + 2)) ≤ 5 := by have hnpos : (0:ℝ) < (Fintype.card V : ℝ) + 2 := by have : (0:ℝ) ≤ (Fintype.card V : ℝ) := Nat.cast_nonneg _ linarith rw [div_le_iff₀ hnpos] linarith calc (∑ i : V, (letI := d i; candidate_metric_social_cost V (x i))) ≤ ((5 * (Fintype.card V : ℝ) - 2) / ((Fintype.card V : ℝ) + 2)) * (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) := hbound _ ≤ 5 * (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) := by apply mul_le_mul_of_nonneg_right hcoef hT