AFTD Auto-Formalizing Theoretical Domains

is_anonymous_rule

def

A voting rule f : (N → LinearOrder A) → A mapping profiles of linear orders on A to alternatives is anonymous if for every profile P and permutation σ of voters N, f (fun i => P (σ i)) = f P.

Statement

def is_anonymous_rule {N A : Type*} (f : (N → LinearOrder A) → A) : Prop
Defined in
arXiv:2611.26224 Sec. 6, p. 13
Verified
20 Nov 2026
Axioms
none listed

Read back from the Lean

Given types N and A, and a function f : (N → LinearOrder A) → A (mapping profiles of linear orders on A indexed by N to an element of A), is_anonymous_rule f asserts that for every preference profile P : N → LinearOrder A and every permutation σ : Equiv.Perm N, applying f to the permuted profile (fun i => P (σ i)) yields the same result as f P.

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

/-- A voting rule is anonymous if permuting voters does not change the outcome. -/
def is_anonymous_rule {N A : Type*} (f : (N → LinearOrder A) → A) : Prop :=
  ∀ (P : N → LinearOrder A) (σ : Equiv.Perm N), f (fun i => P (σ i)) = f P
See it in the graphDiscuss this resultChallenge it