AFTD Auto-Formalizing Theoretical Domains

impartial_culture_winner_loser_prob

def

For natural numbers k and n, impartial_culture_winner_loser_prob k n is the real probability under impartial culture that an election with k voters and n candidates has both a strict Condorcet winner and a strict Condorcet loser.

Statement

noncomputable def impartial_culture_winner_loser_prob (k n : ℕ) : ℝ
Defined in
Guilbaud 1952; Gehrlein & Fishburn 1976
Verified
17 Nov 2026
Axioms
none listed
Built on 3
  • 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…
  • impartial_culture_probGiven natural numbers k and n, and a predicate E on profiles Fin k → Equiv.Perm (Fin n), impartial_culture_prob k n E is the real number…
Used by 2

Read back from the Lean

For two natural numbers $k$ (number of voters) and $n$ (number of candidates), impartial_culture_winner_loser_prob k n defines the real number representing the probability under the impartial culture model (where each voter independently and uniformly chooses a permutation of $n$ candidates) that a preference profile has both a Condorcet winner and a Condorcet loser. A candidate $w : Fin\ n$ is a Condorcet winner if for every candidate $y \ne w$, strictly more voters rank $w$ ahead of $y$ (i.e., $P(v)(w) < P(v)(y)$) than rank $y$ ahead of $w$. Similarly, a candidate $l : Fin\ n$ is a Condorcet loser if for every candidate $y \ne l$, strictly more voters rank $y$ ahead of $l$ than rank $l$ ahead of $y$. The value is computed as the number of profiles $P : Fin\ k \to Equiv.Perm (Fin\ n)$ satisfying both conditions, divided by the total number of profiles $(n!)^k$, cast to $\mathbb{R}$.

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

/-- Probability that an impartial-culture election has both a strict Condorcet winner and a strict Condorcet loser. -/
noncomputable def impartial_culture_winner_loser_prob (k n : ℕ) : ℝ := open Classical in
  impartial_culture_prob k n (fun P =>
    (∃ w : Fin n, condorcet_winner (fun (v : Fin k) (x y : Fin n) => P v x < P v y) w) ∧
    (∃ l : Fin n, condorcet_loser (fun (v : Fin k) (x y : Fin n) => P v x < P v y) l))
See it in the graphDiscuss this resultChallenge it