AFTD Auto-Formalizing Theoretical Domains

persistent_dictatorship_denominator_eq

lemmaverified

For any finite voter type V and candidate type C, any family of pseudometrics d on V ⊕ C indexed by V, and any candidate map y_star : V → C, the sum over all voters i in V of the social cost of y_star i under metric d i equals the sum of d_i(i, y_star i) plus the double sum over all i and j ≠ i of d_i(j, y_star i).

Statement

lemma persistent_dictatorship_denominator_eq
    {V C : Type*} [Fintype V] [DecidableEq V]
    (d : V → PseudoMetricSpace (V ⊕ C))
    (y_star : V → C) :
    (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) =
      (∑ i : V, (letI := d i; dist (Sum.inl i : V ⊕ C) (Sum.inr (y_star i)))) +
      (∑ i : V, ∑ j ∈ Finset.univ.erase i,
        (letI := d i; dist (Sum.inl j : V ⊕ C) (Sum.inr (y_star i))))
Source
arXiv:2611.30683 Theorem 3.10 -- Stay or Switch? Metric Distortion with Online Candidate Arrivals
Verified
25 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • 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.
Used by 1

Read back from the Lean

For any types V and C, where V is a finite type with decidable equality, for any family d : V → PseudoMetricSpace (V ⊕ C) assigning a pseudometric space structure on V ⊕ C to each i : V, and for any function y_star : V → C: The sum over all i : V of candidate_metric_social_cost V (y_star i) (evaluated using the pseudometric space structure d i) is equal to the sum over all i : V of the distance (under d i) between Sum.inl i and Sum.inr (y_star i), plus the sum over all i : V of the sum over all j ∈ Finset.univ.erase i of the distance (under d i) between Sum.inl j and Sum.inr (y_star i).

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- Decomposition of the sum of social costs into dictator-own distances and cross-voter distances. -/
lemma persistent_dictatorship_denominator_eq
    {V C : Type*} [Fintype V] [DecidableEq V]
    (d : V → PseudoMetricSpace (V ⊕ C))
    (y_star : V → C) :
    (∑ i : V, (letI := d i; candidate_metric_social_cost V (y_star i))) =
      (∑ i : V, (letI := d i; dist (Sum.inl i : V ⊕ C) (Sum.inr (y_star i)))) +
      (∑ i : V, ∑ j ∈ Finset.univ.erase i,
        (letI := d i; dist (Sum.inl j : V ⊕ C) (Sum.inr (y_star i)))) := by
  simp_rw [candidate_metric_social_cost]
  have h (i : V) :
      (∑ v : V, (letI := d i; dist (Sum.inl v : V ⊕ C) (Sum.inr (y_star i)))) =
        (letI := d i; dist (Sum.inl i : V ⊕ C) (Sum.inr (y_star i))) +
          ∑ j ∈ Finset.univ.erase i, (letI := d i; dist (Sum.inl j : V ⊕ C) (Sum.inr (y_star i))) :=
    (Finset.add_sum_erase Finset.univ _ (Finset.mem_univ i)).symm
  simp_rw [h]
  exact Finset.sum_add_distrib
See it in the graphDiscuss this resultChallenge it