AFTD Auto-Formalizing Theoretical Domains

op_2346_partial_asymptotic_lower_bound

theoremverifiedformalization

Proposition 3.5: For every integer k ≥ 2 and horizon T = k * (k - 1) + 1, every deterministic online rule with distortion bound D satisfies 2*k - 1 ≤ D.

Statement

theorem op_2346_partial_asymptotic_lower_bound :
    ∀ (k : ℕ) (_hk : 2 ≤ k),
      ∀ (rule : OnlineICDecision (k * (k - 1) + 1)) (D : ℝ),
        is_online_distortion_bounded rule D → (2 * (k : ℝ) - 1) ≤ D
Formalizes
arXiv:2611.30683 Sec. 3.1, Prop. 3.5, Stay or Switch? Metric Distortion with Online Candidate Arrivals
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8
  • OnlineICDecisionFor a horizon T, OnlineICDecision T is the type of online decision rules that universally quantify over all finite types V of voters,…
  • is_online_distortion_boundedA rule achieves metric distortion at most D for horizon T if for every nonempty finite voter type V, every pseudometric space on V ⊕ Fin…
  • ic_winnerFor an online rule, a finite voter type V, and a preference profile prof on Fin T, ic_winner rule prof t evaluates ic_winner_nat on t.val…
  • LinearOrder.toTotalPreorderEvery LinearOrder is a TotalPreorder.
  • TotalPreorderA total preorder: a preorder where ≤ is total (complete). This is weaker than LinearOrder — it does NOT require antisymmetry or…
  • ic_winner_natGiven an online rule, a finite voter type V, and an election profile prof of linear orders on Fin T, ic_winner_nat defines by recursion on…
  • is_consistent_pseudometricGiven types V and C, a pseudometric space instance on V ⊕ C, and an election profile prof : V → LinearOrder C assigning a linear order on…
  • 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.

Read back from the Lean

For every natural number $k \ge 2$, every online incentive-compatible decision rule rule for $T = k(k - 1) + 1$ candidates, and every real number $D$: if rule has online distortion bounded by $D$, then $D \ge 2k - 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 derives the lower bound by showing that no deterministic online rule can satisfy any finite distortion bound $D$. At step 1, the rule must choose between candidate 0 and candidate 1; an embedding of voters and candidates into the real line places whichever candidate $\tau \in \{0, 1\}$ the rule chooses at distance $L = |D| + 1 \ge 1$ from all voters, while the other candidate is at distance 1. Because all voters consistently prefer the distance-1 candidate over $\tau$, the distortion bound requires $k \cdot L \le D \cdot k$, forcing $|D| + 1 \le D$. This contradicts $D \le |D|$, and the desired inequality $2k - 1 \le D$ follows by contradiction.

  1. The mapping sending $\tau$ to its integer value and every other candidate $c$ to $T + c$ is injective, defining a linear order on $\operatorname{Fin} T$.

    To define a linear order with $\tau$ as its minimum, each candidate $c$ is mapped to $c$ if $c = \tau$ and to $T + c$ if $c \ne \tau$. Injectivity is verified by case analysis on whether $a = \tau$ and $b = \tau$: if both equal $\tau$, $a = b$; if one equals $\tau$ and the other does not, the equality of mapped values forces $a = T + b$ (or vice versa), contradicting $a < T$; if neither equals $\tau$, $T + a = T + b$ implies $a = b$.

    lines 4–15

    uses Fin.ext, if_pos, if_neg

        intro a b h
        change (if a = τ then a.val else T + a.val) = (if b = τ then b.val else T + b.val) at h
        by_cases ha : a = τ <;> by_cases hb : b = τ
        · rw [ha, hb]
        · rw [if_pos ha, if_neg hb] at h
          have := a.isLt
          omega
        · rw [if_neg ha, if_pos hb] at h
          have := b.isLt
          omega
        · rw [if_neg ha, if_neg hb] at h
          exact Fin.ext (by omega))
  2. In this linear order, $\tau$ is strictly less than every other candidate $c \ne \tau$.

    Unfolding the definition via the order characterization lemma reduces the claim to $\tau < T + c$, which holds since $\tau < T \le T + c$.

    lines 24–26

    uses op_2346_partial_asymptotic_lower_bound_min_order_key, if_pos, if_neg

      rw [op_2346_partial_asymptotic_lower_bound_min_order_key, if_pos rfl, if_neg hc]
      have := τ.isLt
      omega
  3. At step $t = 1$, the online rule chooses candidate 1 if it accepts the all-true voter preference report, and candidate 0 otherwise.

    At time $t = 0$, candidate 0 is selected. At step $t = 1$, each voter compares candidate 0 with candidate 1; because typeclass resolution evaluates the comparison using the ambient order where $0 < 1$, every voter reports `true`. The rule then either adopts candidate 1 or stays with candidate 0 depending solely on its decision on this all-true report.

    lines 31–33

    uses ic_winner, ic_winner_nat, Nat.reduceAdd

          if rule V ⟨1, h1⟩ (fun _ => true) then ⟨1, h1⟩ else ⟨0, by omega⟩ := by
      simp only [ic_winner, ic_winner_nat, Nat.reduceAdd]
      by_cases hb : rule V ⟨1, h1⟩ (fun _ => true) <;> simp [hb]
  4. There is a pseudometric space on voters and candidates where all voters are at distance $L$ from candidate $\tau$ and distance 1 from all other candidates.

    We embed voters and candidates into the real line by sending all voters to 0, candidate $\tau$ to $L$, and every other candidate to 1. The induced pseudometric satisfies $\operatorname{dist}(v, c) = L$ if $c = \tau$ and $1$ otherwise, since $L \ge 1 \ge 0$.

    lines 40–50

    uses PseudoMetricSpace.induced, inferInstance, le_trans, zero_le_one, Real.dist_eq, abs_of_nonneg

      haveI : Nonempty (Fin k) := ⟨⟨0, hk⟩⟩
      let φ : Fin k ⊕ Fin T → ℝ := fun x => match x with | Sum.inl _ => 0 | Sum.inr c => if c = τ then L else 1
      letI : PseudoMetricSpace (Fin k ⊕ Fin T) := PseudoMetricSpace.induced φ inferInstance
      have hL0 : (0:ℝ) ≤ L := le_trans zero_le_one hL1
      have hdist : ∀ (v : Fin k) (c : Fin T), dist (Sum.inl v) (Sum.inr c) = if c = τ then L else 1 := by
        intro v c
        show dist (φ (Sum.inl v)) (φ (Sum.inr c)) = if c = τ then L else 1
        rw [Real.dist_eq]
        by_cases h : c = τ
        · simp [φ, h, abs_of_nonneg hL0]
        · simp [φ, h]
  5. This pseudometric is consistent with the profile where every voter ranks $\tau$ as their least-preferred option.

    A voter prefers candidate $a$ to candidate $b$ whenever $\operatorname{dist}(v, a) < \operatorname{dist}(v, b)$. Because candidate distances are either 1 or $L \ge 1$, this inequality can only hold when $\operatorname{dist}(v, a) = 1$ and $\operatorname{dist}(v, b) = L > 1$, which forces $b = \tau$ and $a \ne \tau$. In the order where $\tau$ is minimal, $\tau < a$ holds, establishing consistency.

    lines 51–66

    uses if_neg, if_pos, lt_irrefl, op_2346_partial_asymptotic_lower_bound_min_order_lt

      have hcons : is_consistent_pseudometric (Fin k) (Fin T)
          (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order τ) := by
        intro v a b hab
        rw [hdist, hdist] at hab
        have hb : b = τ := by
          by_contra hbn
          rw [if_neg hbn] at hab
          by_cases ha : a = τ
          · rw [if_pos ha] at hab; linarith
          · rw [if_neg ha] at hab; exact absurd hab (lt_irrefl 1)
        have ha : a ≠ τ := by
          rintro rfl
          rw [if_pos rfl, if_pos hb] at hab
          exact absurd hab (lt_irrefl L)
        rw [hb]
        exact op_2346_partial_asymptotic_lower_bound_min_order_lt τ ha
  6. The social cost of candidate $\tau$ is $k \cdot L$, and the social cost of any other candidate is $k$.

    The candidate social cost sums the distances from all $k$ voters. Since all voters are colocated, summing their identical distances yields $k \cdot L$ for candidate $\tau$ and $k \cdot 1 = k$ for any other candidate.

    lines 67–71

    uses Finset.sum_congr

      have hcost : ∀ c : Fin T, candidate_metric_social_cost (Fin k) c = (k:ℝ) * (if c = τ then L else 1) := by
        intro c
        show (∑ v : Fin k, dist (Sum.inl v) (Sum.inr c)) = (k:ℝ) * (if c = τ then L else 1)
        rw [Finset.sum_congr rfl (fun v _ => hdist v c)]
        simp
  7. If an online rule with distortion bound $D$ selects $\tau$ at time $t$ while an alternative $y \le t$ with $y \ne \tau$ is available, then $L \le D$.

    The definition of distortion boundedness requires the social cost of the chosen candidate $\tau$ to be at most $D$ times the social cost of $y$. Substituting the computed costs gives $k \cdot L \le D \cdot k$, and dividing by $k > 0$ yields $L \le D$.

    lines 72–78

    uses mul_one, mul_comm, le_of_mul_le_mul_left

      have h := hD (Fin k)
        (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order τ) hcons t y hyt
      rw [hwin, hcost, hcost] at h
      simp only [↓reduceIte, if_neg hne, mul_one] at h
      have hkR : (0:ℝ) < (k:ℝ) := by exact_mod_cast hk
      rw [mul_comm D (k:ℝ)] at h
      exact le_of_mul_le_mul_left h hkR
  8. For $k \ge 2$, the horizon satisfies $T > 1$, and choosing $L = |D| + 1$ guarantees $L \ge 1$.

    Since $k \ge 2$, we have $k(k-1) \ge 2$, so $T = k(k-1)+1 > 1$. Setting $L = |D| + 1$ satisfies $L \ge 1$ because $|D| \ge 0$.

    lines 85–95

    uses Nat.mul_le_mul, abs_nonneg

      intro k hk rule D hD
      have hk0 : 0 < k := by omega
      have hT2 : 1 < k * (k - 1) + 1 := by
        have h1 : 1 ≤ k - 1 := by omega
        have h2 : 2 * 1 ≤ k * (k - 1) := Nat.mul_le_mul hk h1
        omega
      let L : ℝ := |D| + 1
      have hL1 : 1 ≤ L := by
        have h0 : (0:ℝ) ≤ |D| := abs_nonneg D
        show 1 ≤ |D| + 1
        linarith
  9. The rule's decision at step $t = 1$ implies $L \le D$.

    We branch on the rule's choice between candidates 0 and 1 at time $t = 1$. If the rule selects candidate 1, we set $\tau = 1$ and $y = 0 \le 1$, and the obstruction lemma gives $L \le D$. If the rule selects candidate 0, we set $\tau = 0$ and $y = 1 \le 1$, and the obstruction lemma again gives $L \le D$. In both branches, $L \le D$ is established.

    lines 96–116

    uses op_2346_partial_asymptotic_lower_bound_ic_winner_one, if_pos, if_neg, op_2346_partial_asymptotic_lower_bound_obstruction, le_rfl

      have hmain : L ≤ D := by
        let c0 : Fin (k * (k - 1) + 1) := ⟨0, by omega⟩
        let c1 : Fin (k * (k - 1) + 1) := ⟨1, hT2⟩
        by_cases hb : rule (Fin k) c1 (fun _ => true)
        · have hwin : ic_winner rule
              (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order c1) c1 = c1 := by
            rw [op_2346_partial_asymptotic_lower_bound_ic_winner_one rule
              (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order c1) hT2]
            simp only [c1] at hb ⊢
            rw [if_pos hb]
          have hne : c0 ≠ c1 := by simp [c0, c1]
          have hyt : c0 ≤ c1 := by simp [c0, c1]
          exact op_2346_partial_asymptotic_lower_bound_obstruction rule D L hL1 k hk0 c1 c0 c1 hne hyt hwin hD
        · have hwin : ic_winner rule
              (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order c0) c1 = c0 := by
            rw [op_2346_partial_asymptotic_lower_bound_ic_winner_one rule
              (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order c0) hT2]
            simp only [c0] at hb ⊢
            rw [if_neg hb]
          have hne : c1 ≠ c0 := by simp [c0, c1]
          exact op_2346_partial_asymptotic_lower_bound_obstruction rule D L hL1 k hk0 c0 c1 c1 hne le_rfl hwin hD
  10. The distortion bound satisfies $2k - 1 \le D$. automation

    From $L \le D$ and $L = |D| + 1$, we have $|D| + 1 \le D$. But $D \le |D|$, which would mean $|D| + 1 \le |D|$, an arithmetic impossibility. Linear real arithmetic derives a contradiction from this inequality, vacuously proving $2k - 1 \le D$.

    lines 117–118

    uses le_abs_self

      have hfin : |D| + 1 ≤ D := hmain
      linarith [le_abs_self D]
abs_nonneg
The absolute value of any real number is non-negative: $0 \le |a|$.
abs_of_nonneg
If a real number $a$ is non-negative, then its absolute value equals itself: $|a| = a$.
Fin.ext
Two elements of `Fin n` are equal if and only if their underlying natural values are equal.
Finset.sum_congr
Two finite sums over the same finite set are equal if their terms are pointwise equal.
ic_winner
The sequential winner selected by an online decision rule on a voter profile up to step $t$.
ic_winner_nat
The recursive definition of the sequential candidate chosen by an online rule across steps $0, \dots, t$.
if_neg
An if-then-else expression evaluates to its else branch when the condition is false.
if_pos
An if-then-else expression evaluates to its then branch when the condition is true.
inferInstance
Automatically synthesizes a typeclass instance from the current context.
le_abs_self
Any real number is bounded above by its absolute value: $a \le |a|$.
le_of_mul_le_mul_left
If $a \cdot b \le a \cdot c$ and $a > 0$, then $b \le c$.
le_rfl
The reflexive property of inequality: $a \le a$.
le_trans
Transitivity of inequality: if $a \le b$ and $b \le c$, then $a \le c$.
lt_irrefl
Strict inequality is irreflexive: $a < a$ never holds.
mul_comm
Multiplication is commutative: $a \cdot b = b \cdot a$.
mul_one
Multiplying any number by 1 preserves the number: $a \cdot 1 = a$.
Nat.mul_le_mul
Multiplication of non-negative integers preserves weak inequalities.
Nat.reduceAdd
Evaluates natural number addition during simplification.
op_2346_partial_asymptotic_lower_bound_ic_winner_one
At step 1, the sequential winner chosen by the online rule is candidate 1 if the rule accepts the all-true profile, and candidate 0 otherwise.
op_2346_partial_asymptotic_lower_bound_min_order_key
In the linear order where $\tau$ is minimal, candidate $a$ is strictly less than candidate $b$ iff the integer encoding of $a$ is strictly less than that of $b$.
op_2346_partial_asymptotic_lower_bound_min_order_lt
In the linear order where $\tau$ is minimal, $\tau < c$ holds for every other candidate $c \ne \tau$.
op_2346_partial_asymptotic_lower_bound_obstruction
If an online decision rule with distortion bound $D$ selects candidate $\tau$ when $\tau$ is placed at distance $L \ge 1$ from all voters while another available candidate $y \le t$ is at distance 1, then $L \le D$.
PseudoMetricSpace.induced
Pulls back a pseudometric space structure along a function into an existing pseudometric space.
Real.dist_eq
The Euclidean distance between two real numbers $x$ and $y$ is $|x - y|$.
zero_le_one
The constant 0 is less than or equal to 1.

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

private def op_2346_partial_asymptotic_lower_bound_min_order {T : ℕ} (τ : Fin T) :    LinearOrder (Fin T) :=  LinearOrder.lift' (fun c : Fin T => if c = τ then c.val else T + c.val) (by    intro a b h    change (if a = τ then a.val else T + a.val) = (if b = τ then b.val else T + b.val) at h    by_cases ha : a = τ <;> by_cases hb : b = τ    · rw [ha, hb]    · rw [if_pos ha, if_neg hb] at h      have := a.isLt      omega    · rw [if_neg ha, if_pos hb] at h      have := b.isLt      omega    · rw [if_neg ha, if_neg hb] at h      exact Fin.ext (by omega))private lemma op_2346_partial_asymptotic_lower_bound_min_order_key {T : ℕ} (τ a b : Fin T) :    (@LT.lt (Fin T) (op_2346_partial_asymptotic_lower_bound_min_order τ).toLT a b) ↔      (if a = τ then a.val else T + a.val) < (if b = τ then b.val else T + b.val) := Iff.rflprivate lemma op_2346_partial_asymptotic_lower_bound_min_order_lt {T : ℕ} (τ : Fin T) {c : Fin T}    (hc : c ≠ τ) :    @LT.lt (Fin T) (op_2346_partial_asymptotic_lower_bound_min_order τ).toLT τ c := by  rw [op_2346_partial_asymptotic_lower_bound_min_order_key, if_pos rfl, if_neg hc]  have := τ.isLt  omegaprivate lemma op_2346_partial_asymptotic_lower_bound_ic_winner_one {T : ℕ} (rule : OnlineICDecision T)    {V : Type} [Fintype V] (prof : V → LinearOrder (Fin T)) (h1 : 1 < T) :    ic_winner rule prof ⟨1, h1⟩ =      if rule V ⟨1, h1⟩ (fun _ => true) then ⟨1, h1⟩ else ⟨0, by omega⟩ := by  simp only [ic_winner, ic_winner_nat, Nat.reduceAdd]  by_cases hb : rule V ⟨1, h1⟩ (fun _ => true) <;> simp [hb]private lemma op_2346_partial_asymptotic_lower_bound_obstruction {T : ℕ} (rule : OnlineICDecision T)    (D L : ℝ) (hL1 : 1 ≤ L) (k : ℕ) (hk : 0 < k) (τ y t : Fin T) (hne : y ≠ τ) (hyt : y ≤ t)    (hwin : ic_winner rule      (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order τ) t = τ)    (hD : is_online_distortion_bounded rule D) : L ≤ D := by  haveI : Nonempty (Fin k) := ⟨⟨0, hk⟩⟩  let φ : Fin k ⊕ Fin T → ℝ := fun x => match x with | Sum.inl _ => 0 | Sum.inr c => if c = τ then L else 1  letI : PseudoMetricSpace (Fin k ⊕ Fin T) := PseudoMetricSpace.induced φ inferInstance  have hL0 : (0:ℝ) ≤ L := le_trans zero_le_one hL1  have hdist : ∀ (v : Fin k) (c : Fin T), dist (Sum.inl v) (Sum.inr c) = if c = τ then L else 1 := by    intro v c    show dist (φ (Sum.inl v)) (φ (Sum.inr c)) = if c = τ then L else 1    rw [Real.dist_eq]    by_cases h : c = τ    · simp [φ, h, abs_of_nonneg hL0]    · simp [φ, h]  have hcons : is_consistent_pseudometric (Fin k) (Fin T)      (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order τ) := by    intro v a b hab    rw [hdist, hdist] at hab    have hb : b = τ := by      by_contra hbn      rw [if_neg hbn] at hab      by_cases ha : a = τ      · rw [if_pos ha] at hab; linarith      · rw [if_neg ha] at hab; exact absurd hab (lt_irrefl 1)    have ha : a ≠ τ := by      rintro rfl      rw [if_pos rfl, if_pos hb] at hab      exact absurd hab (lt_irrefl L)    rw [hb]    exact op_2346_partial_asymptotic_lower_bound_min_order_lt τ ha  have hcost : ∀ c : Fin T, candidate_metric_social_cost (Fin k) c = (k:ℝ) * (if c = τ then L else 1) := by    intro c    show (∑ v : Fin k, dist (Sum.inl v) (Sum.inr c)) = (k:ℝ) * (if c = τ then L else 1)    rw [Finset.sum_congr rfl (fun v _ => hdist v c)]    simp  have h := hD (Fin k)    (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order τ) hcons t y hyt  rw [hwin, hcost, hcost] at h  simp only [↓reduceIte, if_neg hne, mul_one] at h  have hkR : (0:ℝ) < (k:ℝ) := by exact_mod_cast hk  rw [mul_comm D (k:ℝ)] at h  exact le_of_mul_le_mul_left h hkR/-- Proposition 3.5: For horizon T = k(k-1)+1, any deterministic online IC rule has distortion at least 2k-1. -/theorem op_2346_partial_asymptotic_lower_bound :    ∀ (k : ℕ) (_hk : 2 ≤ k),      ∀ (rule : OnlineICDecision (k * (k - 1) + 1)) (D : ℝ),        is_online_distortion_bounded rule D → (2 * (k : ℝ) - 1) ≤ D := by  intro k hk rule D hD  have hk0 : 0 < k := by omega  have hT2 : 1 < k * (k - 1) + 1 := by    have h1 : 1 ≤ k - 1 := by omega    have h2 : 2 * 1 ≤ k * (k - 1) := Nat.mul_le_mul hk h1    omega  let L : ℝ := |D| + 1  have hL1 : 1 ≤ L := by    have h0 : (0:ℝ) ≤ |D| := abs_nonneg D    show 1 ≤ |D| + 1    linarith  have hmain : L ≤ D := by    let c0 : Fin (k * (k - 1) + 1) := ⟨0, by omega⟩    let c1 : Fin (k * (k - 1) + 1) := ⟨1, hT2⟩    by_cases hb : rule (Fin k) c1 (fun _ => true)    · have hwin : ic_winner rule          (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order c1) c1 = c1 := by        rw [op_2346_partial_asymptotic_lower_bound_ic_winner_one rule          (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order c1) hT2]        simp only [c1] at hb ⊢        rw [if_pos hb]      have hne : c0 ≠ c1 := by simp [c0, c1]      have hyt : c0 ≤ c1 := by simp [c0, c1]      exact op_2346_partial_asymptotic_lower_bound_obstruction rule D L hL1 k hk0 c1 c0 c1 hne hyt hwin hD    · have hwin : ic_winner rule          (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order c0) c1 = c0 := by        rw [op_2346_partial_asymptotic_lower_bound_ic_winner_one rule          (fun _ : Fin k => op_2346_partial_asymptotic_lower_bound_min_order c0) hT2]        simp only [c0] at hb ⊢        rw [if_neg hb]      have hne : c1 ≠ c0 := by simp [c0, c1]      exact op_2346_partial_asymptotic_lower_bound_obstruction rule D L hL1 k hk0 c0 c1 c1 hne le_rfl hwin hD  have hfin : |D| + 1 ≤ D := hmain  linarith [le_abs_self D]
See it in the graphDiscuss this resultChallenge it