AFTD Auto-Formalizing Theoretical Domains

appearance_vector

def

The appearance vector of an individual z in a power relation r is the list whose k-th element is the number of coalitions in the k-th equivalence class of r that contain z.

Statement

def appearance_vector {X : Type*} [DecidableEq X] (r : PowerRelation X) (z : X) : List ℕ
Defined in
arXiv:2611.19021 Definition 7
Verified
22 Nov 2026
Axioms
none listed
Built on 1
  • PowerRelationA power relation is a weak order on a finite collection of feasible coalitions of individuals, represented by an ordered partition into…
Used by 3
  • impossibility_con_ucon_lex_cel_claim2If an SRS R satisfies consistency (satisfies_con), union consistency (satisfies_ucon), and Lex-cel extension (satisfies_le), and x ≠ y are…
  • impossibility_con_ucon_lex_celFor any countably infinite type of individuals X with decidable equality, no social ranking solution R on X simultaneously satisfies…
  • lex_celFor individuals x and y and a power relation r, x is weakly preferred to y under the Lex-cel solution at r, denoted lex_cel r x y, if…

Read back from the Lean

Given a type X with decidable equality, a PowerRelation X r, and an element z : X, appearance_vector r z is the list of natural numbers obtained by taking, for each class c in r.classes, the number of subsets S ∈ c that contain z (that is, the cardinality of the finset {S ∈ c | z ∈ S}).

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

/-- Appearance vector of an individual in a power relation. -/
def appearance_vector {X : Type*} [DecidableEq X] (r : PowerRelation X) (z : X) : List ℕ := r.classes.map (fun c => (c.filter (fun S => z ∈ S)).card)
See it in the graphDiscuss this resultChallenge it