AFTD Auto-Formalizing Theoretical Domains

is_admissible_lottery

def

For n parties with vote shares p : Fin n → ℝ and house size h, a function dist : Finset (Fin n) → ℝ is an admissible lottery if dist is non-negative everywhere, is supported on subsets of size k = h - ∑ i, Nat.floor (h * p i) (i.e. dist S ≠ 0 implies S.card = k), sums to 1 over subsets of size k, satisfies is_envy_free_outcome p h S for every subset S with dist S ≠ 0, and has expected seat count ∑ S ∈ Finset.powersetCard k Finset.univ, dist S * (Nat.floor (h * p i) + (if i ∈ S then 1 else 0)) equal to h * p i for every party i.

Statement

open Classical in
def is_admissible_lottery {n : ℕ} (p : Fin n → ℝ) (h : ℕ) (dist : Finset (Fin n) → ℝ) : Prop
Defined in
arXiv:2610.24217, Section 2.2 and Section 4.2
Verified
24 Nov 2026
Axioms
none listed
Built on 1
  • is_envy_free_outcomeFor n parties indexed by Fin n with vote shares p : Fin n → ℝ and house size h : ℕ, an extra-seat subset S ⊆ Fin n is envy-free if for all…
Used by 3
  • envy_free_coupling_loss_mem_unit_intervalFor n parties, vote shares p, house size H, and any coupling prob of admissible lotteries distH at H and distH1 at H + 1, the coupling…
  • has_admissible_lotteryFor n parties with vote shares p : Fin n → ℝ and house size h, has_admissible_lottery asserts that there exists an admissible lottery dist…
  • envy_free_min_coupling_lossFor vote shares p : Fin n → ℝ and house size H, envy_free_min_coupling_loss p H is the infimum of sampfordCouplingLoss p H prob over all…

Read back from the Lean

Given a dimension n : ℕ, a vector p : Fin n → ℝ, a total quota h : ℕ, and a distribution dist : Finset (Fin n) → ℝ, is_admissible_lottery p h dist asserts that, with l (i : Fin n) = Nat.floor (h * p i) and k = h - ∑ i : Fin n, l i (using natural number subtraction): 1. For every subset S : Finset (Fin n), 0 ≤ dist S. 2. For every subset S : Finset (Fin n), if dist S ≠ 0, then the cardinality of S is k. 3. The sum of dist S over all subsets S ⊆ Fin n with cardinality k equals 1. 4. For every subset S : Finset (Fin n), if dist S ≠ 0, then S is an envy-free outcome (is_envy_free_outcome p h S). 5. For every i : Fin n, the sum over all subsets S ⊆ Fin n of cardinality k of dist S * ((l i : ℝ) + (if i ∈ S then 1 else 0)) equals h * p i.

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

open Classical in
/-- A lottery on extra-seat subsets is admissible if it is non-negative, supported on size-k subsets, sums to 1, has envy-free support, and matches expected seats. -/
def is_admissible_lottery {n : ℕ} (p : Fin n → ℝ) (h : ℕ) (dist : Finset (Fin n) → ℝ) : Prop :=
  let l (i : Fin n) := Nat.floor (h * p i)
  let k := h - ∑ i, l i
  (∀ S, 0 ≤ dist S) ∧
  (∀ S, dist S ≠ 0 → S.card = k) ∧
  (∑ S ∈ Finset.powersetCard k Finset.univ, dist S = 1) ∧
  (∀ S, dist S ≠ 0 → is_envy_free_outcome p h S) ∧
  (∀ i : Fin n, ∑ S ∈ Finset.powersetCard k Finset.univ,
    dist S * ((l i : ℝ) + if i ∈ S then 1 else 0) = h * p i)
See it in the graphDiscuss this resultChallenge it