AFTD Auto-Formalizing Theoretical Domains

impartial_culture_winner_prob

def

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

Statement

noncomputable def impartial_culture_winner_prob (k n : ℕ) : ℝ
Defined in
Guilbaud 1952; Gehrlein & Fishburn 1976
Verified
17 Nov 2026
Axioms
none listed
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…
  • 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 3

Read back from the Lean

Given natural numbers k (the number of voters) and n (the number of candidates/alternatives), impartial_culture_winner_prob k n is the real number defined as the probability under the impartial culture model that a Condorcet winner exists. Specifically, it is the ratio of: 1. The number of voter preference profiles P : Fin k → Equiv.Perm (Fin n) such that there exists a candidate w : Fin n who is a strict Condorcet winner—meaning that for every other candidate y : Fin n with y ≠ w, the number of voters v : Fin k for which P v w < P v y is strictly greater than the number of voters for which P v y < P v w; divided by: 2. The total number of preference profiles, Fintype.card (Fin k → Equiv.Perm (Fin n)) (which is (n!)^k).

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 a strict Condorcet winner. -/
noncomputable def impartial_culture_winner_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)
See it in the graphDiscuss this resultChallenge it