two_agent_ef1_one_mms
For two agents and any finite set of m indivisible goods with nonnegative additive valuations, there exists a complete allocation that is EF1 and satisfies each agent's exact maximin share.
Statement
theorem two_agent_ef1_one_mms (m : ℕ)
(u : Fin 2 → Fin m → ℝ) (hpos : ∀ i g, 0 ≤ u i g) :
∃ σ : Fin m → Fin 2,
is_ef1_goods u σ ∧
∀ i : Fin 2, maximin_share (additive_valuation (u i)) 2 ≤
additive_valuation (u i) (bundle_of σ i)- Related work
- arXiv:1403.3700, Section 3
- Verified
- 27 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 4
- additive_valuationThe additive valuation with item values u: a bundle is worth the sum of its items' values.
- bundle_ofUnder an allocation that gives each item x to agent s(x), agent i's bundle is the set of items given to i.
- maximin_shareThe maximin share of a valuation among n agents: the maximum, over partitions of the items into n bundles, of the value of the worst bundle.
- is_ef1_goodsEF1 for goods: every agent i either does not envy agent j, or stops envying j after some single good is removed from j's bundle.
Read back from the Lean
For any natural number $m$ (the number of goods), and any valuation function $u : \mathrm{Fin}\ 2 \to \mathrm{Fin}\ m \to \mathbb{R}$ representing the utilities of 2 agents for the $m$ goods, if all utilities are non-negative ($\forall i \in \mathrm{Fin}\ 2, \forall g \in \mathrm{Fin}\ m,\ 0 \le u(i, g)$), then there exists an allocation $\sigma : \mathrm{Fin}\ m \to \mathrm{Fin}\ 2$ such that:
1. $\sigma$ is envy-free up to one good (is_ef1_goods u σ): for every pair of agents $i, j \in \mathrm{Fin}\ 2$, either agent $i$'s additive valuation for $j$'s bundle is at most $i$'s valuation for their own bundle, or there exists a good $g$ in $j$'s bundle whose removal makes $i$'s valuation for $j$'s bundle at most $i$'s valuation for their own bundle; and
2. Every agent $i \in \mathrm{Fin}\ 2$ receives at least their 2-partition maximin share: $\mathrm{maximin\_share}(\mathrm{additive\_valuation}(u\ i))\ 2 \le \mathrm{additive\_valuation}(u\ i)(\mathrm{bundle\_of}\ \sigma\ i)$.
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
To find a complete allocation for two agents that is EF1 and guarantees each agent their 1-out-of-2 maximin share (MMS), start by selecting a partition P that maximizes the minimum bundle value for agent 0, achieving agent 0's MMS. If agent 1 weakly prefers bundle 1, allocate P as is; otherwise, swap the two bundle assignments. The receiving agent who picks second receives at least half the total value and therefore at least their MMS without envy, while agent 0 receives at least their MMS and satisfies EF1 because an MMS-maximizing partition cannot contain a strictly preferred bundle where removing any single good still leaves it strictly preferred.
The indicator partition for a subset assigns that subset to agent 0 and its complement to agent 1.
For any subset of goods S, define the two-agent allocation that maps elements of S to 0 and other elements to 1. By checking membership elementwise, bundle 0 is S and bundle 1 is the complement of S in the universal set.
uses
Finset.mem_univ,true_and,Finset.mem_sdiffopen Finset private def two_agent_ef1_one_mms_part {m : ℕ} (S : Finset (Fin m)) : Fin m → Fin 2 := fun x => if x ∈ S then 0 else 1 private lemma two_agent_ef1_one_mms_bundle_part_zero {m : ℕ} (S : Finset (Fin m)) : bundle_of (two_agent_ef1_one_mms_part S) 0 = S := by ext x; simp only [bundle_of, two_agent_ef1_one_mms_part, Finset.mem_univ, true_and] by_cases h : x ∈ S <;> simp [h] private lemma two_agent_ef1_one_mms_bundle_part_one {m : ℕ} (S : Finset (Fin m)) : bundle_of (two_agent_ef1_one_mms_part S) 1 = Finset.univ \ S := by ext x; simp only [bundle_of, two_agent_ef1_one_mms_part, Finset.mem_univ, true_and, Finset.mem_sdiff] by_cases h : x ∈ S <;> simp [h]
For two agents, the maximin share is the supremum over all 2-partitions Q of min (v(Q_0), v(Q_1)), and every 2-partition provides a lower bound.
The infimum over Fin 2 coincides with the pairwise minimum min (f 0) (f 1). Unfolding the definition of maximin share, MMS(v, 2) is the supremum of min (v(Q_0), v(Q_1)) over all partitions Q into two bundles. Consequently, the minimum bundle value under any single partition Q is at most MMS(v, 2).
uses
le_antisymm,le_min,ciInf_le,Finite.bddBelow_range,le_ciInf,two_agent_ef1_one_mms_iInf_fin_two,two_agent_ef1_one_mms_maximin_eq,le_ciSup,Finite.bddAbove_rangeprivate lemma two_agent_ef1_one_mms_iInf_fin_two (f : Fin 2 → ℝ) : (⨅ k : Fin 2, f k) = min (f 0) (f 1) := by apply le_antisymm · exact le_min (ciInf_le (Finite.bddBelow_range f) 0) (ciInf_le (Finite.bddBelow_range f) 1) · apply le_ciInf; intro k; fin_cases k <;> simp private lemma two_agent_ef1_one_mms_maximin_eq {m : ℕ} (v : Finset (Fin m) → ℝ) : maximin_share v 2 = ⨆ Q : Fin m → Fin 2, min (v (bundle_of Q 0)) (v (bundle_of Q 1)) := by unfold maximin_share simp only [two_agent_ef1_one_mms_iInf_fin_two] private lemma two_agent_ef1_one_mms_mmsP_le {m : ℕ} (v : Finset (Fin m) → ℝ) (Q : Fin m → Fin 2) : min (v (bundle_of Q 0)) (v (bundle_of Q 1)) ≤ maximin_share v 2 := by rw [two_agent_ef1_one_mms_maximin_eq] exact le_ciSup (Finite.bddAbove_range (fun Q : Fin m → Fin 2 => min (v (bundle_of Q 0)) (v (bundle_of Q 1)))) Q
Additive valuations split over disjoint unions, satisfy single-item addition and removal identities, and are nonnegative and monotone for nonnegative weights.
An additive valuation evaluates a bundle by summing the weights of its items. The sum splits across disjoint sets, increases by w(g) upon inserting g ∉ S, and satisfies v(S) = v(S \ {g}) + w(g) for g ∈ S. When item weights are nonnegative, valuations are nonnegative on every bundle and monotone under set inclusion.
uses
Finset.sum_union,Finset.sum_erase_add,Finset.sum_insert,Finset.sum_nonneg,Finset.sum_le_sum_of_subset_of_nonnegprivate lemma two_agent_ef1_one_mms_sum_union {m : ℕ} (w : Fin m → ℝ) (S T : Finset (Fin m)) (h : Disjoint S T) : additive_valuation w (S ∪ T) = additive_valuation w S + additive_valuation w T := by simp only [additive_valuation]; rw [Finset.sum_union h] private lemma two_agent_ef1_one_mms_sum_erase {m : ℕ} (w : Fin m → ℝ) (S : Finset (Fin m)) (g : Fin m) (hg : g ∈ S) : additive_valuation w S = additive_valuation w (S.erase g) + w g := by simp only [additive_valuation]; rw [← Finset.sum_erase_add S w hg] private lemma two_agent_ef1_one_mms_sum_insert {m : ℕ} (w : Fin m → ℝ) (S : Finset (Fin m)) (g : Fin m) (hg : g ∉ S) : additive_valuation w (insert g S) = w g + additive_valuation w S := by simp only [additive_valuation]; rw [Finset.sum_insert hg] private lemma two_agent_ef1_one_mms_nonneg {m : ℕ} (w : Fin m → ℝ) (hw : ∀ g, 0 ≤ w g) (S : Finset (Fin m)) : 0 ≤ additive_valuation w S := by simp only [additive_valuation]; exact Finset.sum_nonneg (fun x _ => hw x) private lemma two_agent_ef1_one_mms_sum_mono {m : ℕ} (w : Fin m → ℝ) (hw : ∀ g, 0 ≤ w g) {S T : Finset (Fin m)} (h : S ⊆ T) : additive_valuation w S ≤ additive_valuation w T := by simp only [additive_valuation] exact Finset.sum_le_sum_of_subset_of_nonneg h (fun x _ _ => hw x)
In any two-agent allocation, the two bundles are disjoint and exhaust all goods.
Since agent labels are in Fin 2, an item belongs to bundle 1 if and only if it does not belong to bundle 0. Bundle 1 is therefore the set difference of the universal set and bundle 0, making the two bundles disjoint and their union equal to the full set of goods.
uses
Finset.mem_filter,Finset.mem_univ,true_and,Finset.mem_sdiff,Fin.eq_one_of_ne_zero,Finset.disjoint_sdiff,Finset.union_sdiff_of_subset,Finset.subset_univprivate lemma two_agent_ef1_one_mms_bundle_disjoint {m : ℕ} (P : Fin m → Fin 2) : Disjoint (bundle_of P 0) (bundle_of P 1) := by rw [show bundle_of P 1 = Finset.univ \ bundle_of P 0 from by ext x simp only [bundle_of, Finset.mem_filter, Finset.mem_univ, true_and, Finset.mem_sdiff] constructor · intro h; rw [h]; decide · intro h; exact Fin.eq_one_of_ne_zero (P x) h] exact Finset.disjoint_sdiff private lemma two_agent_ef1_one_mms_bundle_union {m : ℕ} (P : Fin m → Fin 2) : bundle_of P 0 ∪ bundle_of P 1 = Finset.univ := by rw [show bundle_of P 1 = Finset.univ \ bundle_of P 0 from by ext x simp only [bundle_of, Finset.mem_filter, Finset.mem_univ, true_and, Finset.mem_sdiff] constructor · intro h; rw [h]; decide · intro h; exact Fin.eq_one_of_ne_zero (P x) h] exact Finset.union_sdiff_of_subset (Finset.subset_univ _)
The two-agent maximin share of an additive valuation is at most half the total valuation of all goods. automation
For any 2-partition Q, the valuations of bundle 0 and bundle 1 sum to the valuation of the full set of goods. Since min (a, b) ≤ (a + b) / 2 for any two real numbers, every partition satisfies min (w(Q_0), w(Q_1)) ≤ w(univ) / 2. Taking the supremum over all partitions establishes that MMS(w, 2) ≤ w(univ) / 2.
uses
two_agent_ef1_one_mms_maximin_eq,ciSup_le,two_agent_ef1_one_mms_sum_union,two_agent_ef1_one_mms_bundle_disjoint,two_agent_ef1_one_mms_bundle_union,min_le_left,min_le_rightprivate lemma two_agent_ef1_one_mms_maximin_le_half {m : ℕ} (w : Fin m → ℝ) : maximin_share (additive_valuation w) 2 ≤ additive_valuation w Finset.univ / 2 := by rw [two_agent_ef1_one_mms_maximin_eq] apply ciSup_le intro Q have hsum : additive_valuation w (bundle_of Q 0) + additive_valuation w (bundle_of Q 1) = additive_valuation w Finset.univ := by rw [← two_agent_ef1_one_mms_sum_union w _ _ (two_agent_ef1_one_mms_bundle_disjoint Q), two_agent_ef1_one_mms_bundle_union Q] have h1 := min_le_left (additive_valuation w (bundle_of Q 0)) (additive_valuation w (bundle_of Q 1)) have h2 := min_le_right (additive_valuation w (bundle_of Q 0)) (additive_valuation w (bundle_of Q 1)) linarith
In an MMS-maximizing partition where bundle 0 is strictly less valuable than bundle 1, assuming every item removal leaves bundle 1 strictly more valuable than bundle 0 yields a maximal item in bundle 1 with strictly positive weight.
Let A = Q_0 and B = Q_1. Suppose, for contradiction, that v(A) < v(B \ {g}) for all g ∈ B. Because 0 ≤ v(A) < v(B), the set B is nonempty, so it contains an item g maximizing w. If w(g) ≤ 0, then nonnegativity would force all items in B to have weight 0, giving v(B) = 0 and contradicting v(B) > 0. Hence w(g) > 0.
uses
two_agent_ef1_one_mms_bundle_disjoint,two_agent_ef1_one_mms_nonneg,lt_of_le_of_lt,Finset.eq_empty_or_nonempty,Finset.exists_max_image,Finset.sum_eq_zeroprivate lemma two_agent_ef1_one_mms_cut {m : ℕ} (w : Fin m → ℝ) (hw : ∀ g, 0 ≤ w g) (Q : Fin m → Fin 2) (hQ : min (additive_valuation w (bundle_of Q 0)) (additive_valuation w (bundle_of Q 1)) = maximin_share (additive_valuation w) 2) (hlt : additive_valuation w (bundle_of Q 0) < additive_valuation w (bundle_of Q 1)) : ∃ g ∈ bundle_of Q 1, additive_valuation w ((bundle_of Q 1).erase g) ≤ additive_valuation w (bundle_of Q 0) := by set A := bundle_of Q 0 with hA set B := bundle_of Q 1 with hB set v := additive_valuation w with hv have hdisj : Disjoint A B := by rw [hA, hB]; exact two_agent_ef1_one_mms_bundle_disjoint Q by_contra hcon push_neg at hcon have hA0 : 0 ≤ v A := two_agent_ef1_one_mms_nonneg w hw A have hBpos : 0 < v B := lt_of_le_of_lt hA0 hlt have hBne : B.Nonempty := by rcases Finset.eq_empty_or_nonempty B with h | h · rw [h] at hBpos; simp [hv, additive_valuation] at hBpos · exact h obtain ⟨g, hgB, hgmax⟩ := Finset.exists_max_image B w hBne have hwg : 0 < w g := by by_contra h push_neg at h have hall : ∀ x ∈ B, w x = 0 := by intro x hx; have h1 := hgmax x hx; have h2 := hw x; linarith have : v B = 0 := by simp only [hv, additive_valuation]; exact Finset.sum_eq_zero (fun x hx => hall x hx) linarith
The cut lemma: in an MMS-maximizing partition with v(A) < v(B), there exists an item g in B whose removal leaves v(B \ {g}) ≤ v(A).
Continuing the contradiction argument, adding the positive-weight item g to A yields v(A) < v(A ∪ {g}). Furthermore, B \ {g} is a subset of the complement univ \ (A ∪ {g}), so monotonicity gives v(A) < v(B \ {g}) ≤ v(univ \ (A ∪ {g})). Both bundles in the partition (A ∪ {g}, univ \ (A ∪ {g})) then have value strictly greater than v(A) = MMS(v, 2), contradicting the maximality of the maximin share. Thus some item g ∈ B must satisfy v(B \ {g}) ≤ v(A).
uses
Finset.disjoint_left.mp,two_agent_ef1_one_mms_sum_insert,Finset.mem_erase,Finset.mem_sdiff,Finset.mem_univ,Finset.mem_insert,two_agent_ef1_one_mms_sum_mono,lt_min,lt_of_lt_of_le,min_eq_left,le_of_lt,two_agent_ef1_one_mms_mmsP_le,two_agent_ef1_one_mms_bundle_part_zero,two_agent_ef1_one_mms_bundle_part_onehave hErase : v A < v (B.erase g) := hcon g hgB have hgA : g ∉ A := by intro h; exact (Finset.disjoint_left.mp hdisj h) hgB have hAg : v A < v (insert g A) := by rw [hv, two_agent_ef1_one_mms_sum_insert w A g hgA]; linarith have hsub : B.erase g ⊆ Finset.univ \ (insert g A) := by intro x hx rw [Finset.mem_erase] at hx rw [Finset.mem_sdiff] refine ⟨Finset.mem_univ x, ?_⟩ rw [Finset.mem_insert] rintro (hxg | hxA) · exact hx.1 hxg · exact (Finset.disjoint_left.mp hdisj hxA) hx.2 have hmono : v (B.erase g) ≤ v (Finset.univ \ (insert g A)) := two_agent_ef1_one_mms_sum_mono w hw hsub have hminlt : v A < min (v (insert g A)) (v (Finset.univ \ (insert g A))) := lt_min hAg (lt_of_lt_of_le hErase hmono) have hmax : maximin_share v 2 = v A := by rw [← hQ]; exact min_eq_left (le_of_lt hlt) have hle := two_agent_ef1_one_mms_mmsP_le v (two_agent_ef1_one_mms_part (insert g A)) rw [two_agent_ef1_one_mms_bundle_part_zero, two_agent_ef1_one_mms_bundle_part_one, hmax] at hle linarith
Swapping the agent labels interchanges the two assigned bundles.
Modifying an allocation map so that items assigned to 0 are sent to 1 and vice versa interchanges the bundles: the new bundle 0 is the original bundle 1, and the new bundle 1 is the original bundle 0.
uses
Finset.mem_filter,Finset.mem_univ,true_and,Fin.eq_one_of_ne_zeroprivate lemma two_agent_ef1_one_mms_swap_zero {m : ℕ} (P : Fin m → Fin 2) : bundle_of (fun x => if P x = 0 then (1:Fin 2) else 0) 0 = bundle_of P 1 := by ext x simp only [bundle_of, Finset.mem_filter, Finset.mem_univ, true_and] by_cases h : P x = 0 · have hp1 : ¬ (P x = 1) := by rw [h]; decide simp [h, hp1] · have hp1 : P x = 1 := Fin.eq_one_of_ne_zero (P x) h simp [h, hp1] private lemma two_agent_ef1_one_mms_swap_one {m : ℕ} (P : Fin m → Fin 2) : bundle_of (fun x => if P x = 0 then (1:Fin 2) else 0) 1 = bundle_of P 0 := by ext x simp only [bundle_of, Finset.mem_filter, Finset.mem_univ, true_and] by_cases h : P x = 0 · simp [h] · have hne : (if P x = 0 then (1:Fin 2) else 0) ≠ 1 := by simp [h] simp [h, hne]
There exists a partition P attaining agent 0's maximin share, and agent 1's valuations of the two bundles sum to the total value u_1(univ).
Because the set of allocations of m goods to 2 agents is finite and nonempty, there exists a partition P that achieves the maximum of min (u_0(P_0), u_0(P_1)), which equals MMS(u_0, 2). Since P_0 and P_1 partition the goods, agent 1's additive valuations on the two bundles sum to u_1(univ).
uses
Finset.exists_max_image,Finset.univ_nonempty,two_agent_ef1_one_mms_maximin_eq,le_antisymm,ciSup_le,Finset.mem_univ,le_ciSup,Finite.bddAbove_range,two_agent_ef1_one_mms_sum_union,two_agent_ef1_one_mms_bundle_disjoint,two_agent_ef1_one_mms_bundle_union/-- For two agents with nonnegative additive valuations, there exists a complete allocation that is EF1 and achieves each agent's full maximin share. -/ theorem two_agent_ef1_one_mms (m : ℕ) (u : Fin 2 → Fin m → ℝ) (hpos : ∀ i g, 0 ≤ u i g) : ∃ σ : Fin m → Fin 2, is_ef1_goods u σ ∧ ∀ i : Fin 2, maximin_share (additive_valuation (u i)) 2 ≤ additive_valuation (u i) (bundle_of σ i) := by classical obtain ⟨P, -, hPmax⟩ := Finset.exists_max_image (Finset.univ : Finset (Fin m → Fin 2)) (fun Q => min (additive_valuation (u 0) (bundle_of Q 0)) (additive_valuation (u 0) (bundle_of Q 1))) Finset.univ_nonempty have hPeq : maximin_share (additive_valuation (u 0)) 2 = min (additive_valuation (u 0) (bundle_of P 0)) (additive_valuation (u 0) (bundle_of P 1)) := by rw [two_agent_ef1_one_mms_maximin_eq] apply le_antisymm · apply ciSup_le; intro Q; exact hPmax Q (Finset.mem_univ Q) · exact le_ciSup (Finite.bddAbove_range (fun Q : Fin m → Fin 2 => min (additive_valuation (u 0) (bundle_of Q 0)) (additive_valuation (u 0) (bundle_of Q 1)))) P have hsum1 : additive_valuation (u 1) (bundle_of P 0) + additive_valuation (u 1) (bundle_of P 1) = additive_valuation (u 1) Finset.univ := by rw [← two_agent_ef1_one_mms_sum_union (u 1) _ _ (two_agent_ef1_one_mms_bundle_disjoint P), two_agent_ef1_one_mms_bundle_union P]
When agent 1 weakly prefers bundle 1, assigning P_0 to agent 0 and P_1 to agent 1 satisfies EF1.
Case analysis on agent 1's preference: suppose u_1(P_0) ≤ u_1(P_1), and assign P directly. Agent 1 weakly prefers their own bundle P_1 over P_0, experiencing no envy. Agent 0 compares P_0 to P_1: either u_0(P_1) ≤ u_0(P_0) (no envy), or u_0(P_0) < u_0(P_1), in which case the cut lemma provides a good g ∈ P_1 such that u_0(P_1 \ {g}) ≤ u_0(P_0). Hence EF1 holds in all cases.
uses
le_refl,Fin.eq_one_of_ne_zero,two_agent_ef1_one_mms_cutby_cases hchoice : additive_valuation (u 1) (bundle_of P 0) ≤ additive_valuation (u 1) (bundle_of P 1) · refine ⟨P, ?_, ?_⟩ · intro i j by_cases hi0 : i = 0 · subst i by_cases hj0 : j = 0 · subst j; left; exact le_refl _ · have hj1 : j = 1 := Fin.eq_one_of_ne_zero j hj0 subst j by_cases hv : additive_valuation (u 0) (bundle_of P 1) ≤ additive_valuation (u 0) (bundle_of P 0) · left; exact hv · push_neg at hv right exact two_agent_ef1_one_mms_cut (u 0) (fun g => hpos 0 g) P hPeq.symm hv · have hi1 : i = 1 := Fin.eq_one_of_ne_zero i hi0 subst i by_cases hj0 : j = 0 · subst j; left; exact hchoice · have hj1 : j = 1 := Fin.eq_one_of_ne_zero j hj0; subst j; left; exact le_refl _
When u_1(P_0) ≤ u_1(P_1), both agents receive at least their maximin shares under allocation P. automation
Agent 0 receives P_0, which satisfies u_0(P_0) ≥ min (u_0(P_0), u_0(P_1)) = MMS(u_0, 2). Agent 1 receives P_1. Since u_1(P_0) ≤ u_1(P_1) and u_1(P_0) + u_1(P_1) = u_1(univ), agent 1 receives at least u_1(univ) / 2, which is at least MMS(u_1, 2) by the general maximin share upper bound.
uses
min_le_left,Fin.eq_one_of_ne_zero,two_agent_ef1_one_mms_maximin_le_half· intro i by_cases hi0 : i = 0 · subst i calc maximin_share (additive_valuation (u 0)) 2 = min (additive_valuation (u 0) (bundle_of P 0)) (additive_valuation (u 0) (bundle_of P 1)) := hPeq _ ≤ additive_valuation (u 0) (bundle_of P 0) := min_le_left _ _ · have hi1 : i = 1 := Fin.eq_one_of_ne_zero i hi0 subst i have hhalf : maximin_share (additive_valuation (u 1)) 2 ≤ additive_valuation (u 1) Finset.univ / 2 := two_agent_ef1_one_mms_maximin_le_half (u 1) have hle : additive_valuation (u 1) Finset.univ / 2 ≤ additive_valuation (u 1) (bundle_of P 1) := by linarith linarith
When agent 1 strictly prefers bundle 0, the swapped allocation σ assigning P_1 to agent 0 and P_0 to agent 1 satisfies EF1.
When u_1(P_1) < u_1(P_0), define the swapped allocation σ with σ_0 = P_1 and σ_1 = P_0. The minimum bundle value for agent 0 remains unchanged and equals MMS(u_0, 2). Agent 1 strictly prefers σ_1 = P_0 to σ_0 = P_1, so agent 1 has no envy. For agent 0, either there is no envy or the cut lemma applied to σ provides an item in σ_1 eliminating any envy.
uses
two_agent_ef1_one_mms_swap_zero,two_agent_ef1_one_mms_swap_one,min_comm,le_refl,Fin.eq_one_of_ne_zero,two_agent_ef1_one_mms_cut· push_neg at hchoice let σ : Fin m → Fin 2 := fun x => if P x = 0 then 1 else 0 have hb0 : bundle_of σ 0 = bundle_of P 1 := two_agent_ef1_one_mms_swap_zero P have hb1 : bundle_of σ 1 = bundle_of P 0 := two_agent_ef1_one_mms_swap_one P have hQσ : min (additive_valuation (u 0) (bundle_of σ 0)) (additive_valuation (u 0) (bundle_of σ 1)) = maximin_share (additive_valuation (u 0)) 2 := by rw [hb0, hb1, min_comm]; exact hPeq.symm refine ⟨σ, ?_, ?_⟩ · intro i j by_cases hi0 : i = 0 · subst i by_cases hj0 : j = 0 · subst j; left; exact le_refl _ · have hj1 : j = 1 := Fin.eq_one_of_ne_zero j hj0 subst j by_cases hv : additive_valuation (u 0) (bundle_of σ 1) ≤ additive_valuation (u 0) (bundle_of σ 0) · left; exact hv · push_neg at hv right exact two_agent_ef1_one_mms_cut (u 0) (fun g => hpos 0 g) σ hQσ hv · have hi1 : i = 1 := Fin.eq_one_of_ne_zero i hi0 subst i by_cases hj0 : j = 0 · subst j rw [hb0, hb1]; left; linarith · have hj1 : j = 1 := Fin.eq_one_of_ne_zero j hj0; subst j; left; exact le_refl _
When u_1(P_1) < u_1(P_0), both agents receive at least their maximin shares under σ. automation
Agent 0 receives σ_0 = P_1, which satisfies u_0(P_1) ≥ min (u_0(P_0), u_0(P_1)) = MMS(u_0, 2). Agent 1 receives σ_1 = P_0. Since u_1(P_1) < u_1(P_0) and the two bundles sum to u_1(univ), agent 1's share is at least u_1(univ) / 2, which is at least MMS(u_1, 2).
uses
min_le_right,Fin.eq_one_of_ne_zero,two_agent_ef1_one_mms_maximin_le_half· intro i by_cases hi0 : i = 0 · subst i rw [hb0] calc maximin_share (additive_valuation (u 0)) 2 = min (additive_valuation (u 0) (bundle_of P 0)) (additive_valuation (u 0) (bundle_of P 1)) := hPeq _ ≤ additive_valuation (u 0) (bundle_of P 1) := min_le_right _ _ · have hi1 : i = 1 := Fin.eq_one_of_ne_zero i hi0 subst i rw [hb1] have hhalf : maximin_share (additive_valuation (u 1)) 2 ≤ additive_valuation (u 1) Finset.univ / 2 := two_agent_ef1_one_mms_maximin_le_half (u 1) have hle : additive_valuation (u 1) Finset.univ / 2 ≤ additive_valuation (u 1) (bundle_of P 0) := by linarith linarith
Finset.mem_univ- Every element of a type belongs to the universal finite set `Finset.univ`.
true_and- The conjunction `True ∧ p` is logically equivalent to `p`.
Finset.mem_sdiff- An element is in the set difference `s \ t` if and only if it is in `s` and not in `t`.
le_antisymm- If `a ≤ b` and `b ≤ a`, then `a = b`.
le_min- A value `c` is less than or equal to `min a b` if and only if `c ≤ a` and `c ≤ b`.
ciInf_le- The infimum of a bounded-below family is less than or equal to each value in the family.
Finite.bddBelow_range- The range of a function on a finite domain is bounded below.
le_ciInf- If `c` is less than or equal to every element in a nonempty family, then `c` is at most the infimum of the family.
two_agent_ef1_one_mms_iInf_fin_two- For any function on `Fin 2`, the infimum over the two elements equals the pairwise minimum `min (f 0) (f 1)`.
two_agent_ef1_one_mms_maximin_eq- For two agents, the maximin share equals the supremum over all 2-partitions of the minimum value between the two bundles.
le_ciSup- Every element of a family bounded above is at most the supremum of the family.
Finite.bddAbove_range- The range of a function on a finite domain is bounded above.
Finset.sum_union- The sum of a function over the union of two disjoint finite sets is the sum of the sums over each set.
Finset.sum_erase_add- For any element in a finite set, the sum over the entire set equals the sum over the set with that element removed plus the element's value.
Finset.sum_insert- Adding an element not in a finite set increases the sum over that set by the value of the new element.
Finset.sum_nonneg- A finite sum of nonnegative terms is nonnegative.
Finset.sum_le_sum_of_subset_of_nonneg- If `s ⊆ t` and all elements in `t \ s` have nonnegative terms, then the sum over `s` is at most the sum over `t`.
Finset.mem_filter- An element belongs to `s.filter p` if and only if it belongs to `s` and satisfies `p`.
Fin.eq_one_of_ne_zero- In `Fin 2`, any element not equal to 0 is equal to 1.
Finset.disjoint_sdiff- A set `s` and the set difference `t \ s` are always disjoint.
Finset.union_sdiff_of_subset- If `s ⊆ t`, the union of `s` and `t \ s` equals `t`.
Finset.subset_univ- Every finite subset is a subset of the universal set.
ciSup_le- If every element in a nonempty family is at most `c`, then the supremum of the family is at most `c`.
two_agent_ef1_one_mms_sum_union- An additive valuation evaluated on the union of two disjoint sets equals the sum of its values on each set.
two_agent_ef1_one_mms_bundle_disjoint- In any two-agent allocation, bundle 0 and bundle 1 are disjoint sets of goods.
two_agent_ef1_one_mms_bundle_union- In any two-agent allocation, the union of bundle 0 and bundle 1 is the universal set of all goods.
min_le_left- The minimum `min a b` is less than or equal to `a`.
min_le_right- The minimum `min a b` is less than or equal to `b`.
two_agent_ef1_one_mms_nonneg- An additive valuation with nonnegative weights is nonnegative on every bundle.
lt_of_le_of_lt- If `a ≤ b` and `b < c`, then `a < c`.
Finset.eq_empty_or_nonempty- Any finite set is either empty or nonempty.
Finset.exists_max_image- A nonempty finite set contains an element achieving the maximum of a function.
Finset.sum_eq_zero- If a function is identically zero on a finite set, its sum over the set is zero.
Finset.disjoint_left.mp- If two sets are disjoint, an element of the first set does not belong to the second set.
two_agent_ef1_one_mms_sum_insert- Inserting an item not in a bundle increases its additive valuation by the weight of that item.
Finset.mem_erase- An element belongs to `s.erase b` if and only if it is not equal to `b` and belongs to `s`.
Finset.mem_insert- An element belongs to `insert b s` if and only if it equals `b` or belongs to `s`.
two_agent_ef1_one_mms_sum_mono- An additive valuation with nonnegative weights is monotone under bundle inclusion.
lt_min- If `a < b` and `a < c`, then `a < min b c`.
lt_of_lt_of_le- If `a < b` and `b ≤ c`, then `a < c`.
min_eq_left- If `a ≤ b`, then `min a b = a`.
le_of_lt- If `a < b`, then `a ≤ b`.
two_agent_ef1_one_mms_mmsP_le- The minimum bundle value under any 2-partition is at most the maximin share.
two_agent_ef1_one_mms_bundle_part_zero- The indicator partition for subset `S` assigns bundle 0 to be `S`.
two_agent_ef1_one_mms_bundle_part_one- The indicator partition for subset `S` assigns bundle 1 to be the complement `univ \ S`.
Finset.univ_nonempty- The universal set of a nonempty finite type is nonempty.
le_refl- The inequality `a ≤ a` holds reflexively for every element.
two_agent_ef1_one_mms_cut- In an MMS-maximizing partition where bundle 0 is strictly less valuable than bundle 1, there exists an item in bundle 1 whose removal leaves bundle 1 weakly less valuable than bundle 0.
two_agent_ef1_one_mms_maximin_le_half- The two-agent maximin share of an additive valuation is at most half the total valuation of all goods.
two_agent_ef1_one_mms_swap_zero- Swapping the agent labels in a 2-allocation makes the new bundle 0 equal to the original bundle 1.
two_agent_ef1_one_mms_swap_one- Swapping the agent labels in a 2-allocation makes the new bundle 1 equal to the original bundle 0.
min_comm- The pairwise minimum is commutative: `min a b = min b a`.
- Linear arithmetic automation (`linarith`) closes inequalities without detailing intermediate steps, notably for bounding the minimum of two values summing to the total valuation by half that total.
- Exhaustive case analysis on indices in `Fin 2` relies on decision procedures (`decide`, `fin_cases`) and case-splitting tactics (`by_cases`).
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.
open Finsetprivate def two_agent_ef1_one_mms_part {m : ℕ} (S : Finset (Fin m)) : Fin m → Fin 2 := fun x => if x ∈ S then 0 else 1private lemma two_agent_ef1_one_mms_bundle_part_zero {m : ℕ} (S : Finset (Fin m)) : bundle_of (two_agent_ef1_one_mms_part S) 0 = S := by ext x; simp only [bundle_of, two_agent_ef1_one_mms_part, Finset.mem_univ, true_and] by_cases h : x ∈ S <;> simp [h]private lemma two_agent_ef1_one_mms_bundle_part_one {m : ℕ} (S : Finset (Fin m)) : bundle_of (two_agent_ef1_one_mms_part S) 1 = Finset.univ \ S := by ext x; simp only [bundle_of, two_agent_ef1_one_mms_part, Finset.mem_univ, true_and, Finset.mem_sdiff] by_cases h : x ∈ S <;> simp [h]private lemma two_agent_ef1_one_mms_iInf_fin_two (f : Fin 2 → ℝ) : (⨅ k : Fin 2, f k) = min (f 0) (f 1) := by apply le_antisymm · exact le_min (ciInf_le (Finite.bddBelow_range f) 0) (ciInf_le (Finite.bddBelow_range f) 1) · apply le_ciInf; intro k; fin_cases k <;> simpprivate lemma two_agent_ef1_one_mms_maximin_eq {m : ℕ} (v : Finset (Fin m) → ℝ) : maximin_share v 2 = ⨆ Q : Fin m → Fin 2, min (v (bundle_of Q 0)) (v (bundle_of Q 1)) := by unfold maximin_share simp only [two_agent_ef1_one_mms_iInf_fin_two]private lemma two_agent_ef1_one_mms_mmsP_le {m : ℕ} (v : Finset (Fin m) → ℝ) (Q : Fin m → Fin 2) : min (v (bundle_of Q 0)) (v (bundle_of Q 1)) ≤ maximin_share v 2 := by rw [two_agent_ef1_one_mms_maximin_eq] exact le_ciSup (Finite.bddAbove_range (fun Q : Fin m → Fin 2 => min (v (bundle_of Q 0)) (v (bundle_of Q 1)))) Qprivate lemma two_agent_ef1_one_mms_sum_union {m : ℕ} (w : Fin m → ℝ) (S T : Finset (Fin m)) (h : Disjoint S T) : additive_valuation w (S ∪ T) = additive_valuation w S + additive_valuation w T := by simp only [additive_valuation]; rw [Finset.sum_union h]private lemma two_agent_ef1_one_mms_sum_erase {m : ℕ} (w : Fin m → ℝ) (S : Finset (Fin m)) (g : Fin m) (hg : g ∈ S) : additive_valuation w S = additive_valuation w (S.erase g) + w g := by simp only [additive_valuation]; rw [← Finset.sum_erase_add S w hg]private lemma two_agent_ef1_one_mms_sum_insert {m : ℕ} (w : Fin m → ℝ) (S : Finset (Fin m)) (g : Fin m) (hg : g ∉ S) : additive_valuation w (insert g S) = w g + additive_valuation w S := by simp only [additive_valuation]; rw [Finset.sum_insert hg]private lemma two_agent_ef1_one_mms_nonneg {m : ℕ} (w : Fin m → ℝ) (hw : ∀ g, 0 ≤ w g) (S : Finset (Fin m)) : 0 ≤ additive_valuation w S := by simp only [additive_valuation]; exact Finset.sum_nonneg (fun x _ => hw x)private lemma two_agent_ef1_one_mms_sum_mono {m : ℕ} (w : Fin m → ℝ) (hw : ∀ g, 0 ≤ w g) {S T : Finset (Fin m)} (h : S ⊆ T) : additive_valuation w S ≤ additive_valuation w T := by simp only [additive_valuation] exact Finset.sum_le_sum_of_subset_of_nonneg h (fun x _ _ => hw x)private lemma two_agent_ef1_one_mms_bundle_disjoint {m : ℕ} (P : Fin m → Fin 2) : Disjoint (bundle_of P 0) (bundle_of P 1) := by rw [show bundle_of P 1 = Finset.univ \ bundle_of P 0 from by ext x simp only [bundle_of, Finset.mem_filter, Finset.mem_univ, true_and, Finset.mem_sdiff] constructor · intro h; rw [h]; decide · intro h; exact Fin.eq_one_of_ne_zero (P x) h] exact Finset.disjoint_sdiffprivate lemma two_agent_ef1_one_mms_bundle_union {m : ℕ} (P : Fin m → Fin 2) : bundle_of P 0 ∪ bundle_of P 1 = Finset.univ := by rw [show bundle_of P 1 = Finset.univ \ bundle_of P 0 from by ext x simp only [bundle_of, Finset.mem_filter, Finset.mem_univ, true_and, Finset.mem_sdiff] constructor · intro h; rw [h]; decide · intro h; exact Fin.eq_one_of_ne_zero (P x) h] exact Finset.union_sdiff_of_subset (Finset.subset_univ _)private lemma two_agent_ef1_one_mms_maximin_le_half {m : ℕ} (w : Fin m → ℝ) : maximin_share (additive_valuation w) 2 ≤ additive_valuation w Finset.univ / 2 := by rw [two_agent_ef1_one_mms_maximin_eq] apply ciSup_le intro Q have hsum : additive_valuation w (bundle_of Q 0) + additive_valuation w (bundle_of Q 1) = additive_valuation w Finset.univ := by rw [← two_agent_ef1_one_mms_sum_union w _ _ (two_agent_ef1_one_mms_bundle_disjoint Q), two_agent_ef1_one_mms_bundle_union Q] have h1 := min_le_left (additive_valuation w (bundle_of Q 0)) (additive_valuation w (bundle_of Q 1)) have h2 := min_le_right (additive_valuation w (bundle_of Q 0)) (additive_valuation w (bundle_of Q 1)) linarithprivate lemma two_agent_ef1_one_mms_cut {m : ℕ} (w : Fin m → ℝ) (hw : ∀ g, 0 ≤ w g) (Q : Fin m → Fin 2) (hQ : min (additive_valuation w (bundle_of Q 0)) (additive_valuation w (bundle_of Q 1)) = maximin_share (additive_valuation w) 2) (hlt : additive_valuation w (bundle_of Q 0) < additive_valuation w (bundle_of Q 1)) : ∃ g ∈ bundle_of Q 1, additive_valuation w ((bundle_of Q 1).erase g) ≤ additive_valuation w (bundle_of Q 0) := by set A := bundle_of Q 0 with hA set B := bundle_of Q 1 with hB set v := additive_valuation w with hv have hdisj : Disjoint A B := by rw [hA, hB]; exact two_agent_ef1_one_mms_bundle_disjoint Q by_contra hcon push_neg at hcon have hA0 : 0 ≤ v A := two_agent_ef1_one_mms_nonneg w hw A have hBpos : 0 < v B := lt_of_le_of_lt hA0 hlt have hBne : B.Nonempty := by rcases Finset.eq_empty_or_nonempty B with h | h · rw [h] at hBpos; simp [hv, additive_valuation] at hBpos · exact h obtain ⟨g, hgB, hgmax⟩ := Finset.exists_max_image B w hBne have hwg : 0 < w g := by by_contra h push_neg at h have hall : ∀ x ∈ B, w x = 0 := by intro x hx; have h1 := hgmax x hx; have h2 := hw x; linarith have : v B = 0 := by simp only [hv, additive_valuation]; exact Finset.sum_eq_zero (fun x hx => hall x hx) linarith have hErase : v A < v (B.erase g) := hcon g hgB have hgA : g ∉ A := by intro h; exact (Finset.disjoint_left.mp hdisj h) hgB have hAg : v A < v (insert g A) := by rw [hv, two_agent_ef1_one_mms_sum_insert w A g hgA]; linarith have hsub : B.erase g ⊆ Finset.univ \ (insert g A) := by intro x hx rw [Finset.mem_erase] at hx rw [Finset.mem_sdiff] refine ⟨Finset.mem_univ x, ?_⟩ rw [Finset.mem_insert] rintro (hxg | hxA) · exact hx.1 hxg · exact (Finset.disjoint_left.mp hdisj hxA) hx.2 have hmono : v (B.erase g) ≤ v (Finset.univ \ (insert g A)) := two_agent_ef1_one_mms_sum_mono w hw hsub have hminlt : v A < min (v (insert g A)) (v (Finset.univ \ (insert g A))) := lt_min hAg (lt_of_lt_of_le hErase hmono) have hmax : maximin_share v 2 = v A := by rw [← hQ]; exact min_eq_left (le_of_lt hlt) have hle := two_agent_ef1_one_mms_mmsP_le v (two_agent_ef1_one_mms_part (insert g A)) rw [two_agent_ef1_one_mms_bundle_part_zero, two_agent_ef1_one_mms_bundle_part_one, hmax] at hle linarithprivate lemma two_agent_ef1_one_mms_swap_zero {m : ℕ} (P : Fin m → Fin 2) : bundle_of (fun x => if P x = 0 then (1:Fin 2) else 0) 0 = bundle_of P 1 := by ext x simp only [bundle_of, Finset.mem_filter, Finset.mem_univ, true_and] by_cases h : P x = 0 · have hp1 : ¬ (P x = 1) := by rw [h]; decide simp [h, hp1] · have hp1 : P x = 1 := Fin.eq_one_of_ne_zero (P x) h simp [h, hp1]private lemma two_agent_ef1_one_mms_swap_one {m : ℕ} (P : Fin m → Fin 2) : bundle_of (fun x => if P x = 0 then (1:Fin 2) else 0) 1 = bundle_of P 0 := by ext x simp only [bundle_of, Finset.mem_filter, Finset.mem_univ, true_and] by_cases h : P x = 0 · simp [h] · have hne : (if P x = 0 then (1:Fin 2) else 0) ≠ 1 := by simp [h] simp [h, hne]/-- For two agents with nonnegative additive valuations, there exists a complete allocation that is EF1 and achieves each agent's full maximin share. -/theorem two_agent_ef1_one_mms (m : ℕ) (u : Fin 2 → Fin m → ℝ) (hpos : ∀ i g, 0 ≤ u i g) : ∃ σ : Fin m → Fin 2, is_ef1_goods u σ ∧ ∀ i : Fin 2, maximin_share (additive_valuation (u i)) 2 ≤ additive_valuation (u i) (bundle_of σ i) := by classical obtain ⟨P, -, hPmax⟩ := Finset.exists_max_image (Finset.univ : Finset (Fin m → Fin 2)) (fun Q => min (additive_valuation (u 0) (bundle_of Q 0)) (additive_valuation (u 0) (bundle_of Q 1))) Finset.univ_nonempty have hPeq : maximin_share (additive_valuation (u 0)) 2 = min (additive_valuation (u 0) (bundle_of P 0)) (additive_valuation (u 0) (bundle_of P 1)) := by rw [two_agent_ef1_one_mms_maximin_eq] apply le_antisymm · apply ciSup_le; intro Q; exact hPmax Q (Finset.mem_univ Q) · exact le_ciSup (Finite.bddAbove_range (fun Q : Fin m → Fin 2 => min (additive_valuation (u 0) (bundle_of Q 0)) (additive_valuation (u 0) (bundle_of Q 1)))) P have hsum1 : additive_valuation (u 1) (bundle_of P 0) + additive_valuation (u 1) (bundle_of P 1) = additive_valuation (u 1) Finset.univ := by rw [← two_agent_ef1_one_mms_sum_union (u 1) _ _ (two_agent_ef1_one_mms_bundle_disjoint P), two_agent_ef1_one_mms_bundle_union P] by_cases hchoice : additive_valuation (u 1) (bundle_of P 0) ≤ additive_valuation (u 1) (bundle_of P 1) · refine ⟨P, ?_, ?_⟩ · intro i j by_cases hi0 : i = 0 · subst i by_cases hj0 : j = 0 · subst j; left; exact le_refl _ · have hj1 : j = 1 := Fin.eq_one_of_ne_zero j hj0 subst j by_cases hv : additive_valuation (u 0) (bundle_of P 1) ≤ additive_valuation (u 0) (bundle_of P 0) · left; exact hv · push_neg at hv right exact two_agent_ef1_one_mms_cut (u 0) (fun g => hpos 0 g) P hPeq.symm hv · have hi1 : i = 1 := Fin.eq_one_of_ne_zero i hi0 subst i by_cases hj0 : j = 0 · subst j; left; exact hchoice · have hj1 : j = 1 := Fin.eq_one_of_ne_zero j hj0; subst j; left; exact le_refl _ · intro i by_cases hi0 : i = 0 · subst i calc maximin_share (additive_valuation (u 0)) 2 = min (additive_valuation (u 0) (bundle_of P 0)) (additive_valuation (u 0) (bundle_of P 1)) := hPeq _ ≤ additive_valuation (u 0) (bundle_of P 0) := min_le_left _ _ · have hi1 : i = 1 := Fin.eq_one_of_ne_zero i hi0 subst i have hhalf : maximin_share (additive_valuation (u 1)) 2 ≤ additive_valuation (u 1) Finset.univ / 2 := two_agent_ef1_one_mms_maximin_le_half (u 1) have hle : additive_valuation (u 1) Finset.univ / 2 ≤ additive_valuation (u 1) (bundle_of P 1) := by linarith linarith · push_neg at hchoice let σ : Fin m → Fin 2 := fun x => if P x = 0 then 1 else 0 have hb0 : bundle_of σ 0 = bundle_of P 1 := two_agent_ef1_one_mms_swap_zero P have hb1 : bundle_of σ 1 = bundle_of P 0 := two_agent_ef1_one_mms_swap_one P have hQσ : min (additive_valuation (u 0) (bundle_of σ 0)) (additive_valuation (u 0) (bundle_of σ 1)) = maximin_share (additive_valuation (u 0)) 2 := by rw [hb0, hb1, min_comm]; exact hPeq.symm refine ⟨σ, ?_, ?_⟩ · intro i j by_cases hi0 : i = 0 · subst i by_cases hj0 : j = 0 · subst j; left; exact le_refl _ · have hj1 : j = 1 := Fin.eq_one_of_ne_zero j hj0 subst j by_cases hv : additive_valuation (u 0) (bundle_of σ 1) ≤ additive_valuation (u 0) (bundle_of σ 0) · left; exact hv · push_neg at hv right exact two_agent_ef1_one_mms_cut (u 0) (fun g => hpos 0 g) σ hQσ hv · have hi1 : i = 1 := Fin.eq_one_of_ne_zero i hi0 subst i by_cases hj0 : j = 0 · subst j rw [hb0, hb1]; left; linarith · have hj1 : j = 1 := Fin.eq_one_of_ne_zero j hj0; subst j; left; exact le_refl _ · intro i by_cases hi0 : i = 0 · subst i rw [hb0] calc maximin_share (additive_valuation (u 0)) 2 = min (additive_valuation (u 0) (bundle_of P 0)) (additive_valuation (u 0) (bundle_of P 1)) := hPeq _ ≤ additive_valuation (u 0) (bundle_of P 1) := min_le_right _ _ · have hi1 : i = 1 := Fin.eq_one_of_ne_zero i hi0 subst i rw [hb1] have hhalf : maximin_share (additive_valuation (u 1)) 2 ≤ additive_valuation (u 1) Finset.univ / 2 := two_agent_ef1_one_mms_maximin_le_half (u 1) have hle : additive_valuation (u 1) Finset.univ / 2 ≤ additive_valuation (u 1) (bundle_of P 0) := by linarith linarith