AFTD Auto-Formalizing Theoretical Domains

order_top

def

The top (most preferred) alternative of a linear order L on a finite nonempty set of alternatives A, defined as the maximum element under L.

Statement

def order_top {A : Type*} [Fintype A] [Nonempty A] (L : LinearOrder A) : A
Defined in
arXiv:2611.26224 Sec. 2, p. 3
Verified
20 Nov 2026
Axioms
none listed
Used by 3
  • satisfies_majority_criterionA voting rule f satisfies the majority criterion if it selects alternative x whenever strictly more than half of the voters rank x first.
  • op_2119_majority_immunity_below_halfLet $N$ be a finite set of voters and $A$ a finite, nonempty set of alternatives. If a social choice function…
  • can_force_of_majorityUnder a voting rule f satisfying the majority criterion, any strict majority coalition C (with 2 * |C| > |N|) can force any alternative x.

Read back from the Lean

Given a finite, nonempty type A and a linear order L on A, order_top is defined as the maximum element of A under L, computed as the maximum element of the universal finset Finset.univ of A (which is nonempty by Finset.univ_nonempty).

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

/-- The top-ranked alternative in a linear order on a finite nonempty set. -/
def order_top {A : Type*} [Fintype A] [Nonempty A] (L : LinearOrder A) : A := @Finset.max' A L Finset.univ Finset.univ_nonempty
See it in the graphDiscuss this resultChallenge it