AFTD Auto-Formalizing Theoretical Domains

is_envy_free_coupling

def

Given n parties, vote shares p : Fin n → ℝ, house size H, and marginal distributions distH on k-subsets (where k = H - ∑ i, Nat.floor (H * p i)) and distH1 on k'-subsets (where k' = (H + 1) - ∑ i, Nat.floor ((H + 1) * p i)), is_envy_free_coupling p H distH distH1 prob asserts that prob is non-negative, the sum of prob S T over all size-k' subsets T equals distH S for each size-k subset S, and the sum of prob S T over all size-k subsets S equals distH1 T for each size-k' subset T.

Statement

open Classical in
def is_envy_free_coupling {n : ℕ} (p : Fin n → ℝ) (H : ℕ)
    (distH distH1 : Finset (Fin n) → ℝ)
    (prob : Finset (Fin n) → Finset (Fin n) → ℝ) : Prop
Defined in
arXiv:2405.03687, Section 4
Verified
24 Nov 2026
Axioms
none listed
Used by 2
  • 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…
  • 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

For a natural number n, a vector p : Fin n → ℝ, a natural number H, marginal functions distH, distH1 : Finset (Fin n) → ℝ, and a function prob : Finset (Fin n) → Finset (Fin n) → ℝ, is_envy_free_coupling p H distH distH1 prob asserts that, with k := H - ∑ i : Fin n, ⌊H * p i⌋₊ (using natural subtraction) and k' := (H + 1) - ∑ i : Fin n, ⌊(H + 1) * p i⌋₊ (using natural subtraction): 1. For all S, T : Finset (Fin n), 0 ≤ prob S T. 2. For every subset S ⊆ Fin n with Card S = k, the sum over all subsets T ⊆ Fin n with Card T = k' of prob S T equals distH S. 3. For every subset T ⊆ Fin n with Card T = k', the sum over all subsets S ⊆ Fin n with Card S = k of prob S T equals distH1 T.

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 joint probability distribution is a coupling between two marginal lotteries at house sizes H and H + 1. -/
def is_envy_free_coupling {n : ℕ} (p : Fin n → ℝ) (H : ℕ)
    (distH distH1 : Finset (Fin n) → ℝ)
    (prob : Finset (Fin n) → Finset (Fin n) → ℝ) : Prop :=
  let k := H - ∑ i, Nat.floor (H * p i)
  let k' := (H + 1) - ∑ i, Nat.floor ((H + 1) * p i)
  (∀ S T, 0 ≤ prob S T) ∧
  (∀ S ∈ Finset.powersetCard k Finset.univ,
    ∑ T ∈ Finset.powersetCard k' Finset.univ, prob S T = distH S) ∧
  (∀ T ∈ Finset.powersetCard k' Finset.univ,
    ∑ S ∈ Finset.powersetCard k Finset.univ, prob S T = distH1 T)
See it in the graphDiscuss this resultChallenge it