is_envy_free_outcome
For 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 parties i, j ∈ Fin n with p j < p i, the seats Nat.floor (h * p j) + (if j ∈ S then 1 else 0) awarded to j are at most Nat.floor (h * p i) + (if i ∈ S then 1 else 0) awarded to i.
Statement
open Classical in def is_envy_free_outcome {n : ℕ} (p : Fin n → ℝ) (h : ℕ) (S : Finset (Fin n)) : Prop
- Defined in
- arXiv:2610.24217, Section 2.2
- Verified
- 24 Nov 2026
- Axioms
- none listed
- Used by 3
- is_admissible_lotteryFor 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…
- is_envy_free_outcome_of_equal_sharesFor n parties with equal vote shares heq : ∀ i j, p i = p j and house size h, every subset S of additional seats is envy-free.
- 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…
Read back from the Lean
For a natural number $n$, a function $p : \text{Fin } n \to \mathbb{R}$, a natural number $h$, and a finite set $S \subseteq \text{Fin } n$, the property is_envy_free_outcome asserts that for all indices $i, j \in \text{Fin } n$, if $p(j) < p(i)$, then
$$\lfloor h \cdot p(j) \rfloor + (\text{if } j \in S \text{ then } 1 \text{ else } 0) \le \lfloor h \cdot p(i) \rfloor + (\text{if } i \in S \text{ then } 1 \text{ else } 0),$$
where $h$ is coerced to $\mathbb{R}$ in the product, and $\lfloor \cdot \rfloor$ is Nat.floor (which maps real numbers to $\mathbb{N}$, evaluating to $0$ on non-positive reals).
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 /-- An outcome S of extra seats is envy-free for vote shares p at house size h: a party with strictly greater vote share never receives strictly fewer seats. -/ def is_envy_free_outcome {n : ℕ} (p : Fin n → ℝ) (h : ℕ) (S : Finset (Fin n)) : Prop := ∀ i j : Fin n, p j < p i → Nat.floor (h * p j) + (if j ∈ S then 1 else 0) ≤ Nat.floor (h * p i) + (if i ∈ S then 1 else 0)