AFTD Auto-Formalizing Theoretical Domains

four_voters_simple_rule

def

The voting rule on Fin 4 with 4 voters that selects the Condorcet winner if one exists, and candidate 0 otherwise.

Statement

noncomputable def four_voters_simple_rule (P : Fin 4 → LinearOrder (Fin 4)) : Fin 4
Source
step towards op_2119_four_voters_four_alternatives_nomg_exists
Verified
22 Nov 2026
Axioms
none listed
Built on 1
  • is_condorcet_winnerGiven a finite type of voters N, a profile of linear orders P : N → LinearOrder A on alternatives A, and an alternative x : A,…

Lean source view module on GitHub

/-- The simple voting rule on Fin 4 with 4 voters choosing the Condorcet winner if one exists, and 0 otherwise. -/
noncomputable def four_voters_simple_rule (P : Fin 4 → LinearOrder (Fin 4)) : Fin 4 := open Classical in
  if h : ∃ x, is_condorcet_winner P x then Classical.choose h else 0
See it in the graphDiscuss this resultChallenge it