AFTD Auto-Formalizing Theoretical Domains

ArrowTheorem.isDictator

defimported Lean

$f$ is a dictatorship if there exists a voter $i$ such that $f = \mathrm{dict}_i$, i.e.\ society's preference always equals voter $i$'s.

Statement

set_option maxHeartbeats 800000 in
open scoped BigOperators in
open BooleanAnalysis in
variable {n : ℕ} in
def ArrowTheorem.isDictator (f : BooleanFunc n) : Prop
Defined in
TCSlib, `ArrowTheorem.isDictator`
Lean proof
By Mina, Allan Li, Owen McGinty (from the file's git history), from github.com/Shilun-Allan-Li/tcslib at c8a02591b1e5 (Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.
Verified
07 Oct 2026
Axioms
none listed
Built on 2
  • BooleanAnalysis.BooleanFuncA Boolean function of arity $n$ is a function $f : \{0,1\}^n \to \bbr$.
  • BooleanAnalysis.dictatorThe dictator function for coordinate $i$ outputs the sign of the $i$-th bit: $\mathrm{dict}_i(x) = (-1)^{x_i}$. Its unique nonzero…
Used by 2
  • ArrowTheorem.degree_one_implies_dictatorDegree-one unanimous voting rules are dictatorships. Let $f:\{0,1\}^n\to\bbr$ be a Boolean function that is odd, is $\pm 1$-valued, and is…
  • ArrowTheorem.arrow_theoremArrow's impossibility theorem. Let $n$ be a natural number and let $f:\{0,1\}^n\to\bbr$ be a social welfare function that aggregates the…

Lean source view module on GitHub

set_option maxHeartbeats 800000 in
open scoped BigOperators in
open BooleanAnalysis in
variable {n : ℕ} in
/-- f is a dictatorship: there exists some voter i whose preference always determines society's preference. **Source:** [OD14, Ch. 2]. -/
def ArrowTheorem.isDictator (f : BooleanFunc n) : Prop :=
  ∃ i : Fin n, f = dictator i
See it in the graphDiscuss this resultChallenge it