AFTD Auto-Formalizing Theoretical Domains

condorcet_winner_ne_loser

theoremverifiedformalization

Under a preference profile P with a finite voter set V, if an alternative x is a Condorcet winner and y is a Condorcet loser, and there exists at least one alternative distinct from x, then x ≠ y.

Statement

theorem condorcet_winner_ne_loser {V A : Type*} [Fintype V]
    (P : V → A → A → Prop) [∀ v, DecidableRel (P v)] (x y : A)
    (hw : condorcet_winner P x) (hl : condorcet_loser P y)
    (z : A) (hz : z ≠ x) : x ≠ y
Formalizes
Fishburn 1977
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • condorcet_winnerIn a profile of preferences P where a finite set of voters V have pairwise preferences over alternatives A, an alternative x : A is a…
  • 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 types V and A where V is finite, and any family of decidable binary relations P : V → A → A → Prop, let x, y : A. If x is a Condorcet winner under P (meaning that for every a ≠ x, strictly more voters prefer x to a than prefer a to x) and y is a Condorcet loser under P (meaning that for every a ≠ y, strictly more voters prefer a to y than prefer y to a), and there exists a specified element z : A distinct from x, then x ≠ y.

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

We proceed by contradiction, assuming that the Condorcet winner x is identical to the Condorcet loser y. Since there exists an alternative z distinct from x, the Condorcet winner property requires strictly more voters to prefer x over z than z over x, while the Condorcet loser property requires the exact opposite. These two strict inequalities on head-to-head vote counts cannot simultaneously hold, yielding the contradiction.

  1. It suffices to derive a contradiction assuming x = y.

    We proceed by contradiction, assuming that the Condorcet winner x is equal to the Condorcet loser y.

    line 6

      rintro rfl
  2. The number of voters preferring x to z is strictly greater than the number preferring z to x, and vice versa.

    Specializing the definition of a Condorcet winner to the alternative z (which is distinct from x by hypothesis) shows that strictly more voters prefer x to z than z to x. At the same time, because y = x, specializing the definition of a Condorcet loser to z shows that strictly more voters prefer z to x than x to z.

    lines 7–8

      have h1 := hw z hz
      have h2 := hl z hz
  3. The two inequalities are contradictory.

    The two strict inequalities |{v | P(v, x, z)}| > |{v | P(v, z, x)}| and |{v | P(v, z, x)}| > |{v | P(v, x, z)}| on natural numbers cannot both hold (a > b and b > a). Presburger linear arithmetic (`omega`) detects this contradiction and closes the goal.

    line 9

      omega

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

/-- In any election with at least two alternatives, a Condorcet winner cannot be a Condorcet loser. -/theorem condorcet_winner_ne_loser {V A : Type*} [Fintype V]    (P : V → A → A → Prop) [∀ v, DecidableRel (P v)] (x y : A)    (hw : condorcet_winner P x) (hl : condorcet_loser P y)    (z : A) (hz : z ≠ x) : x ≠ y := by  rintro rfl  have h1 := hw z hz  have h2 := hl z hz  omega
See it in the graphDiscuss this resultChallenge it