envy_free_coupling_loss_mem_unit_interval
For 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 loss sampfordCouplingLoss p H prob lies in [0, 1].
Statement
theorem envy_free_coupling_loss_mem_unit_interval {n : ℕ} (p : Fin n → ℝ) (H : ℕ)
(distH distH1 : Finset (Fin n) → ℝ) (prob : Finset (Fin n) → Finset (Fin n) → ℝ)
(hprob : is_envy_free_coupling p H distH distH1 prob)
(hdistH : is_admissible_lottery p H distH)
(hdistH1 : is_admissible_lottery p (H + 1) distH1) :
0 ≤ sampfordCouplingLoss p H prob ∧ sampfordCouplingLoss p H prob ≤ 1- Source
- folklore
- Verified
- 25 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 4
- 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_couplingGiven n parties, vote shares p : Fin n → ℝ, house size H, and marginal distributions distH on k-subsets (where k = H - ∑ i, Nat.floor (H *…
- sampfordCouplingLossThe coupling loss: the total probability, under the coupling prob, of those pairs (S,T) of seat-assignment subsets for which some party i…
- 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…
Read back from the Lean
For any natural number $n$, vector $p : \text{Fin } n \to \mathbb{R}$, natural number $H$, functions $\text{distH}, \text{distH1} : \text{Finset } (\text{Fin } n) \to \mathbb{R}$, and joint distribution $\text{prob} : \text{Finset } (\text{Fin } n) \to \text{Finset } (\text{Fin } n) \to \mathbb{R}$:
If:
1. prob is an envy-free coupling (is_envy_free_coupling) for $p, H, \text{distH}, \text{distH1}$,
2. distH is an admissible lottery (is_admissible_lottery) for $p$ at horizon $H$, and
3. distH1 is an admissible lottery (is_admissible_lottery) for $p$ at horizon $H + 1$,
then the Sampford coupling loss (sampfordCouplingLoss p H prob) lies in the unit interval $[0, 1]$, i.e., $0 \le \text{sampfordCouplingLoss } p\ H\ \text{prob}$ and $\text{sampfordCouplingLoss } p\ H\ \text{prob} \le 1$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem shows that the house-monotonicity coupling loss of any valid coupling between admissible lotteries at house sizes H and H + 1 lies in [0, 1]. The loss is defined as the expected probability of an allocation decrease under the joint distribution prob. Non-negativity holds because each term in the sum is either zero or a coupling probability prob(S, T) ≥ 0. The upper bound holds because each term is bounded above by the full probability prob(S, T), whose sum over all outcomes reduces to the marginal distribution distH and sums to 1.
The marginal sums of the coupling yield distH, and the distribution distH sums to 1.
By the definition of an envy-free coupling (hprob), summing prob(S, T) over all valid seat subsets T at house size H + 1 equals distH(S) for any subset S at house size H. In addition, because distH is an admissible lottery (hdistH), its probabilities over all valid subsets S sum to 1.
have hmarg : ∀ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, ∑ T ∈ Finset.powersetCard (H + 1 - ∑ i, ⌊((H:ℝ) + 1) * p i⌋₊) Finset.univ, prob S T = distH S := hprob.2.1 have hsum : ∑ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, distH S = 1 := hdistH.2.2.1
The coupling loss is non-negative (0 ≤ sampfordCouplingLoss p H prob).
Splitting the goal into non-negativity and the upper bound, we first show 0 ≤ sampfordCouplingLoss p H prob. Unfolding the definition of sampfordCouplingLoss expresses the loss as a double sum over pairs (S, T). By Finset.sum_nonneg, a sum is non-negative if each term is non-negative. For any pair (S, T), the term is defined by a case split: if a house-monotonicity violation occurs, the value is prob(S, T), which is non-negative by the definition of a coupling; otherwise, it is 0, which is non-negative by le_refl.
uses
Finset.sum_nonneg,le_reflconstructor · simp only [sampfordCouplingLoss] apply Finset.sum_nonneg intro S _ apply Finset.sum_nonneg intro T _ split_ifs with h · exact hprob.1 S T · exact le_refl 0
The coupling loss is at most 1 (sampfordCouplingLoss p H prob ≤ 1).
Unfolding sampfordCouplingLoss, we bound the double sum by 1 in a chain of steps. First, each term (if a violation occurs then prob(S, T) else 0) is bounded above by prob(S, T), since either the condition holds and both sides are equal by le_refl, or it does not and 0 ≤ prob(S, T) holds by non-negativity of probabilities. Applying Finset.sum_le_sum over both indices bounds the total loss by the sum of prob(S, T) over all S and T. Next, applying Finset.sum_congr and the marginal identity hmarg replaces the inner sum over T with distH(S). Finally, the outer sum of distH(S) over S equals 1 by the normalization property hsum.
uses
Finset.sum_le_sum,le_refl,Finset.sum_congr· simp only [sampfordCouplingLoss] calc ∑ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, ∑ T ∈ Finset.powersetCard (H + 1 - ∑ i, ⌊((H:ℝ) + 1) * p i⌋₊) Finset.univ, (if ∃ i, (⌊((H:ℝ) + 1) * p i⌋₊ + if i ∈ T then 1 else 0) < ⌊(H:ℝ) * p i⌋₊ + (if i ∈ S then 1 else 0) then prob S T else 0) ≤ ∑ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, ∑ T ∈ Finset.powersetCard (H + 1 - ∑ i, ⌊((H:ℝ) + 1) * p i⌋₊) Finset.univ, prob S T := by apply Finset.sum_le_sum intro S _ apply Finset.sum_le_sum intro T _ split_ifs with h · exact le_refl _ · exact hprob.1 S T _ = ∑ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, distH S := by apply Finset.sum_congr rfl intro S hS exact hmarg S hS _ = 1 := hsum
Finset.sum_nonneg- A finite sum of non-negative elements is non-negative.
le_refl- The ordering relation ≤ is reflexive (a ≤ a for all a).
Finset.sum_le_sum- If f(i) ≤ g(i) for all elements i in a finite set, then the sum of f over the set is at most the sum of g.
Finset.sum_congr- If two finite sets are equal and two summands agree on every element, their finite sums are equal.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- The house-monotonicity coupling loss of any valid coupling of admissible lotteries lies between 0 and 1. -/theorem envy_free_coupling_loss_mem_unit_interval {n : ℕ} (p : Fin n → ℝ) (H : ℕ) (distH distH1 : Finset (Fin n) → ℝ) (prob : Finset (Fin n) → Finset (Fin n) → ℝ) (hprob : is_envy_free_coupling p H distH distH1 prob) (hdistH : is_admissible_lottery p H distH) (hdistH1 : is_admissible_lottery p (H + 1) distH1) : 0 ≤ sampfordCouplingLoss p H prob ∧ sampfordCouplingLoss p H prob ≤ 1 := by have hmarg : ∀ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, ∑ T ∈ Finset.powersetCard (H + 1 - ∑ i, ⌊((H:ℝ) + 1) * p i⌋₊) Finset.univ, prob S T = distH S := hprob.2.1 have hsum : ∑ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, distH S = 1 := hdistH.2.2.1 constructor · simp only [sampfordCouplingLoss] apply Finset.sum_nonneg intro S _ apply Finset.sum_nonneg intro T _ split_ifs with h · exact hprob.1 S T · exact le_refl 0 · simp only [sampfordCouplingLoss] calc ∑ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, ∑ T ∈ Finset.powersetCard (H + 1 - ∑ i, ⌊((H:ℝ) + 1) * p i⌋₊) Finset.univ, (if ∃ i, (⌊((H:ℝ) + 1) * p i⌋₊ + if i ∈ T then 1 else 0) < ⌊(H:ℝ) * p i⌋₊ + (if i ∈ S then 1 else 0) then prob S T else 0) ≤ ∑ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, ∑ T ∈ Finset.powersetCard (H + 1 - ∑ i, ⌊((H:ℝ) + 1) * p i⌋₊) Finset.univ, prob S T := by apply Finset.sum_le_sum intro S _ apply Finset.sum_le_sum intro T _ split_ifs with h · exact le_refl _ · exact hprob.1 S T _ = ∑ S ∈ Finset.powersetCard (H - ∑ i, ⌊(H:ℝ) * p i⌋₊) Finset.univ, distH S := by apply Finset.sum_congr rfl intro S hS exact hmarg S hS _ = 1 := hsum