AFTD Auto-Formalizing Theoretical Domains

is_weighted_uncovered

def

Given a finite type of voters V, a type of candidates C, a preference profile prof : V → LinearOrder C assigning each voter a linear order on C, a real parameter lam, a finite candidate set S : Finset C, and a candidate c : C, is_weighted_uncovered prof lam S c asserts that c is in S and for every candidate c' in S with c' ≠ c, either (1 - lam) * |V| ≤ |{v ∈ V | (prof v).lt c' c}|, or there exists c'' in S with c'' ≠ c and c'' ≠ c' such that (1 - lam) * |V| ≤ |{v ∈ V | (prof v).lt c'' c}| and lam * |V| ≤ |{v ∈ V | (prof v).lt c' c''}|.

Statement

def is_weighted_uncovered {V C : Type*} [Fintype V]
    (prof : V → LinearOrder C) (lam : ℝ) (S : Finset C) (c : C) : Prop
Defined in
arXiv:2611.30683, Section 4, p. 23; Munagala and Wang (2019)
Verified
29 Nov 2026
Axioms
none listed
Used by 3
  • weighted_uncovered_step_invarianceFor any finite type of voters V and candidate type C with decidable equality, given a preference profile prof : V → LinearOrder C, a real…
  • is_weighted_uncovered_singletonFor any finite type of voters V, any type of candidates C, any preference profile prof : V → LinearOrder C assigning each voter a linear…
  • online_wus_winnerGiven a finite type of voters V, candidate type C with decidable equality, preference profile prof : V → LinearOrder C, and a sequence of…

Read back from the Lean

Given types V and C with V finite, a profile prof : V → LinearOrder C assigning a linear order on C to each voter in V, a real parameter lam, a finite set S : Finset C, and an element c : C, the predicate is_weighted_uncovered prof lam S c asserts that: 1. c ∈ S, and 2. for every c' ∈ S such that c' ≠ c, at least one of the following two conditions holds: - the number of voters v : V for which c' < c according to the linear order prof v is at least (1 - lam) * |V|; or - there exists an element c'' ∈ S such that c'' ≠ c, c'' ≠ c', and both: - the number of voters v : V for which c'' < c according to prof v is at least (1 - lam) * |V|, and - the number of voters v : V for which c' < c'' according to prof v is at least lam * |V|.

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 candidate c in S is in the lam-weighted uncovered set of S if for every c' in S different from c, c directly beats c' with at least (1-lam)|V| votes or there is an intermediate candidate c'' in S beating c' with lam|V| votes while c beats c'' with (1-lam)|V| votes. -/
def is_weighted_uncovered {V C : Type*} [Fintype V]
    (prof : V → LinearOrder C) (lam : ℝ) (S : Finset C) (c : C) : Prop :=
  c ∈ S ∧
  ∀ c' ∈ S, c' ≠ c →
    (1 - lam) * (Fintype.card V : ℝ) ≤ ((Finset.univ.filter (fun v : V => (prof v).lt c' c)).card : ℝ) ∨
    ∃ c'' ∈ S, c'' ≠ c ∧ c'' ≠ c' ∧
      (1 - lam) * (Fintype.card V : ℝ) ≤ ((Finset.univ.filter (fun v : V => (prof v).lt c'' c)).card : ℝ) ∧
      lam * (Fintype.card V : ℝ) ≤ ((Finset.univ.filter (fun v : V => (prof v).lt c' c'')).card : ℝ)
See it in the graphDiscuss this resultChallenge it