AFTD Auto-Formalizing Theoretical Domains

condorcet_loser_unique

theoremverifiedformalization

If x and y are both Condorcet losers under a preference profile P with a finite voter set V, then x = y.

Statement

theorem condorcet_loser_unique {V A : Type*} [Fintype V]
    (P : V → A → A → Prop) [∀ v, DecidableRel (P v)] (x y : A)
    (hx : condorcet_loser P x) (hy : condorcet_loser P y) :
    x = y
Formalizes
Fishburn 1977
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • condorcet_loserIn a profile of preferences P where a finite set of voters V have pairwise preferences over alternatives A, an alternative x : A is a…

Read back from the Lean

For any finite type $V$, any type $A$, any profile of decidable binary relations $P : V \to A \to A \to \mathrm{Prop}$, and any elements $x, y : A$: if $x$ is a Condorcet loser with respect to $P$ and $y$ is a Condorcet loser with respect to $P$, then $x = y$ (the Condorcet loser is unique if it exists).

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 proceeds by contradiction. If x and y were distinct Condorcet losers, then by the definition of a Condorcet loser, strictly more voters would prefer y to x than x to y, and also strictly more voters would prefer x to y than y to x. These two strict inequalities between finite counts directly contradict each other.

  1. It suffices to show that x and y cannot be distinct.

    Assume for contradiction that x ≠ y (named hne).

    line 6

      by_contra hne
  2. Strictly more voters prefer y to x than x to y, and strictly more voters prefer x to y than y to x.

    Since x is a Condorcet loser and y ≠ x (obtained by applying Ne.symm to the assumption x ≠ y), strictly more voters prefer y to x than prefer x to y (h1). Symmetrically, since y is a Condorcet loser and x ≠ y, strictly more voters prefer x to y than prefer y to x (h2).

    lines 7–8

    uses Ne.symm

      have h1 := hx y (Ne.symm hne)
      have h2 := hy x hne
  3. A contradiction is reached.

    Linear arithmetic over ℕ (omega) finds a contradiction between the two strict inequalities |{v | P v y x}| > |{v | P v x y}| and |{v | P v x y}| > |{v | P v y x}|.

    line 9

      omega
Ne.symm
If a ≠ b, then b ≠ a; inequality is symmetric.

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

/-- A strict Condorcet loser, if one exists, is unique. -/theorem condorcet_loser_unique {V A : Type*} [Fintype V]    (P : V → A → A → Prop) [∀ v, DecidableRel (P v)] (x y : A)    (hx : condorcet_loser P x) (hy : condorcet_loser P y) :    x = y := by  by_contra hne  have h1 := hx y (Ne.symm hne)  have h2 := hy x hne  omega
See it in the graphDiscuss this resultChallenge it