Lefebvre's variations, No. 258 — on a theme by Condorcet: exactly 540 of the 7776 five-voter profiles on three candidates have a majority cycle
ProvedLefebvreVariations.condorcet_cycle_five_voters_540_profilesFive voters each rank three candidates strictly. Candidate beats if at least three voters rank above . Exactly of the profiles contain a majority cycle:
For three voters the proportion is , and as the electorate grows the proportion under the impartial culture tends to the Guilbaud limit of about ; five voters is the next odd size after three.
Formalization Note A profile is \texttt{p : Fin 5 Equiv.Perm (Fin 3)}, with \texttt{p v c} the rank of candidate for voter (lower is better). The count is the cardinality of the \texttt{Finset.univ.filter} of profiles for which three candidates form a cycle of strict majorities (at least of voters).
Why this is a variation. No open platform problem on the probability of the Condorcet paradox was found; this is the five-voter case of the classical question of the likelihood of majority cycles under the impartial culture (Guilbaud's limit, finite values by Gehrlein). The count is a finite enumeration over 7776 profiles. No formal link to a platform parent is claimed.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib
namespace LefebvreVariations
/-- Among the `6⁵ = 7776` profiles of five voters with strict rankings of three candidates,
exactly 540 (5/72, about 6.94 %) produce a cycle in the pairwise majority relation. `p v c` is the
rank of candidate `c` for voter `v` (lower = better), and candidate `a` beats `b` when at least
three of the five voters rank `a` above `b`. Source: Condorcet's paradox (1785); the limiting
probability under the impartial culture, about 8.77 %, is due to Guilbaud (1952) and finite
electorates were tabulated by Gehrlein (both cited from memory); the count 540 is a direct
enumeration. -/
theorem condorcet_cycle_five_voters_540_profiles :
(Finset.univ.filter (fun p : Fin 5 → Equiv.Perm (Fin 3) =>
∃ a b c : Fin 3,
3 ≤ (Finset.univ.filter (fun v : Fin 5 => p v a < p v b)).card ∧
3 ≤ (Finset.univ.filter (fun v : Fin 5 => p v b < p v c)).card ∧
3 ≤ (Finset.univ.filter (fun v : Fin 5 => p v c < p v a)).card)).card = 540 := by
sorry
end LefebvreVariations