AFTD Auto-Formalizing Theoretical Domains

op_2454_strong_fef1_allocation_exists

theoremverifiedformalization

Open Problem OP-2454 (arXiv:2611.34488, Sec. 6): For any number of agents n and goods m, strictly positive item sizes s : Fin m → ℝ (∀ g, 0 < s g), nonnegative individual budgets B : Fin n → ℝ (∀ i, 0 ≤ B i), and nonnegative item values v : Fin n → Fin m → ℝ (∀ i g, 0 ≤ v i g), there exists an allocation A : Fin n → Finset (Fin m) that is budget-feasible (is_budget_feasible s B A), satisfies strong FEF1 between agents (is_strong_fef1_agents s B v A), and satisfies FEF1 towards the charity (is_fef1_charity s B v A).

Statement

theorem op_2454_strong_fef1_allocation_exists (n m : ℕ)
    (s : Fin m → ℝ) (hs : ∀ g, 0 < s g)
    (B : Fin n → ℝ) (hB : ∀ i, 0 ≤ B i)
    (v : Fin n → Fin m → ℝ) (hv : ∀ i g, 0 ≤ v i g) :
    ∃ A : Fin n → Finset (Fin m),
      is_budget_feasible s B A ∧
      is_strong_fef1_agents s B v A ∧
      is_fef1_charity s B v A
Formalizes
arXiv:2611.34488 Sec. 6
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5
  • is_strong_fef1_agentsGiven common item sizes s : Fin m → ℝ, individual agent budgets B : Fin n → ℝ, and additive valuations given by item values v : Fin n →…
  • is_fef1_charityGiven common item sizes s : Fin m → ℝ, individual agent budgets B : Fin n → ℝ, and additive valuations given by item values v : Fin n →…
  • is_budget_feasibleAn allocation of m items to n agents is budget-feasible under item sizes s and agent budgets B if the allocated bundles are pairwise…
  • additive_valuationThe additive valuation with item values u: a bundle is worth the sum of its items' values.
  • charityGiven natural numbers m and n and an allocation X : Fin n → Finset (Fin m), charity X is the finset of items in Fin m not allocated to any…

Read back from the Lean

For any natural numbers n (number of agents) and m (number of items), given: - an item cost/size vector s : Fin m → ℝ satisfying s g > 0 for all items g : Fin m, - an agent budget vector B : Fin n → ℝ satisfying B i ≥ 0 for all agents i : Fin n, and - agent valuations v : Fin n → Fin m → ℝ satisfying v i g ≥ 0 for all agents i : Fin n and items g : Fin m, there exists an allocation A : Fin n → Finset (Fin m) satisfying: 1. **Budget feasibility** (is_budget_feasible): - the bundles A i are pairwise disjoint for all distinct i, j : Fin n; - for every agent i : Fin n, the total size of their bundle does not exceed their budget: ∑ g ∈ A i, s g ≤ B i. 2. **Strong FEF1 between agents** (is_strong_fef1_agents): - for any two distinct agents i, j : Fin n with A j nonempty, there exists an item g ∈ A j such that for every subset T ⊆ A j \ {g}, if T is budget-feasible for i (∑ x ∈ T, s x ≤ B i), then i's valuation of T is at most i's valuation of their own bundle: ∑ x ∈ T, v i x ≤ ∑ x ∈ A i, v i x. 3. **FEF1 with respect to charity / unallocated items** (is_fef1_charity): - for every agent i : Fin n and every nonempty subset T of unallocated items (i.e., T ⊆ Finset.univ \ ⋃ j, A j), if T is budget-feasible for i (∑ x ∈ T, s x ≤ B i), then there exists an item g ∈ T such that removing g makes T no more preferred by i than their own bundle: ∑ x ∈ T \ {g}, v i x ≤ ∑ x ∈ A i, v i x.

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

We consider the property P requiring an allocation to be budget-feasible and to prevent any agent from envying a proper sub-bundle of another agent within budget. Because the set of such allocations is finite and non-empty (containing the all-empty allocation), there exists an allocation A maximizing social welfare among those satisfying P. We prove that no agent can envy any affordable subset of the unallocated items (the charity); otherwise, reallocating a cardinality-minimal envied charity bundle to the envying agent would yield another allocation in P with strictly higher social welfare, contradicting maximality. Strong FEF1 between agents follows because removing any item yields a proper sub-bundle, and FEF1 towards the charity follows by combining valuation monotonicity with the absence of envy for charity bundles.

  1. Item valuations are monotone under set inclusion: if S ⊆ T, then v_i(S) ≤ v_i(T) for each agent i.

    Because each item has a non-negative valuation v_i(g) ≥ 0, summing over a subset S gives at most the sum over T by Finset.sum_le_sum_of_subset_of_nonneg.

    lines 10–14

    uses Finset.sum_le_sum_of_subset_of_nonneg

      classical
      have hmono : ∀ i (S T : Finset (Fin m)), S ⊆ T →
          additive_valuation (v i) S ≤ additive_valuation (v i) T := by
        intro i S T hST
        exact Finset.sum_le_sum_of_subset_of_nonneg hST (fun g _ _ => hv i g)
  2. The empty allocation satisfies budget feasibility and has no envy towards proper sub-bundles between distinct agents.

    We define property P(A) requiring A to be budget-feasible and to satisfy v_i(T) ≤ v_i(A_i) for all i ≠ j and all proper subsets T ⊊ A_j with s(T) ≤ B_i. When every agent receives the empty set, the bundles are trivially pairwise disjoint, each empty bundle has size 0 ≤ B_i, and any subset of the empty set is empty (by Finset.subset_empty.mp), so no proper subsets exist and the envy condition holds vacuously.

    lines 15–23

    uses Finset.subset_empty.mp

      -- P: budget feasible and envy-free up to any good (towards proper subsets) between agents
      let P : (Fin n → Finset (Fin m)) → Prop := fun A => is_budget_feasible s B A ∧
        ∀ i j, i ≠ j → ∀ T, T ⊆ A j → T ≠ A j → additive_valuation s T ≤ B i →
          additive_valuation (v i) T ≤ additive_valuation (v i) (A i)
      let W : (Fin n → Finset (Fin m)) → ℝ := fun A => ∑ i, additive_valuation (v i) (A i)
      have hP0 : P (fun _ => ∅) := by
        refine ⟨⟨fun i j _ => by simp, fun i => by simp [additive_valuation, hB i]⟩, ?_⟩
        intro i j _ T hT hne
        exact absurd (Finset.subset_empty.mp hT) hne
  3. There exists an allocation A satisfying P that maximizes social welfare W(A) = ∑_i v_i(A_i).

    The set of allocations is finite, and the subcollection satisfying P is non-empty since it contains the empty allocation. Hence W attains its maximum on this subcollection by Finset.exists_max_image. We fix such an allocation A.

    lines 24–26

    uses Finset.exists_max_image, Finset.mem_filter.mpr, Finset.mem_univ, Finset.mem_filter.mp

      obtain ⟨A, hAmem, hAmax⟩ := Finset.exists_max_image (Finset.univ.filter P) W
        ⟨_, Finset.mem_filter.mpr ⟨Finset.mem_univ _, hP0⟩⟩
      have hA : P A := (Finset.mem_filter.mp hAmem).2
  4. Items in the charity are not allocated to any agent in A.

    By definition, the charity is the set of all items minus the union of the allocated bundles A_j. Therefore, an item belonging to the charity cannot belong to any agent's bundle A_j.

    lines 27–30

    uses Finset.mem_sdiff, Finset.mem_univ, Finset.mem_biUnion, true_and

      have hmemC : ∀ g j, g ∈ charity A → g ∉ A j := by
        intro g j hg hgj
        simp only [charity, Finset.mem_sdiff, Finset.mem_univ, Finset.mem_biUnion, true_and] at hg
        exact hg ⟨j, hgj⟩
  5. If any agent envies an affordable subset of the charity, there exists a minimal-cardinality counterexample bundle S envied by some agent k.

    We set up a proof of hEF (no agent envies an affordable charity bundle) by contradiction. Assuming there is an agent i_0 and an affordable subset T_0 ⊆ charity(A) strictly preferred to A_{i_0}, we collect in F all subsets T ⊆ charity(A) that are affordable to some agent k and satisfy v_k(A_k) < v_k(T). Since F is non-empty, by Finset.exists_min_image we choose an element S ∈ F minimizing cardinality |S|, envied by some agent k with s(S) ≤ B_k.

    lines 31–41

    uses Finset.exists_min_image, Finset.mem_filter.mpr, Finset.mem_univ, Finset.mem_filter.mp

      -- nobody envies an affordable subset of the charity
      have hEF : ∀ i T, T ⊆ charity A → additive_valuation s T ≤ B i →
          additive_valuation (v i) T ≤ additive_valuation (v i) (A i) := by
        by_contra hcon
        push Not at hcon
        let F := (Finset.univ : Finset (Finset (Fin m))).filter (fun T => T ⊆ charity A ∧
          ∃ k, additive_valuation s T ≤ B k ∧ additive_valuation (v k) (A k) < additive_valuation (v k) T)
        obtain ⟨i0, T0, hT0, hs0, hv0⟩ := hcon
        obtain ⟨S, hSmem, hSmin⟩ := Finset.exists_min_image F Finset.card
          ⟨T0, Finset.mem_filter.mpr ⟨Finset.mem_univ _, hT0, i0, hs0, hv0⟩⟩
        obtain ⟨hSC, k, hSk, hvk⟩ := (Finset.mem_filter.mp hSmem).2
  6. The modified allocation A', obtained by reallocating S to agent k, is budget-feasible and has pairwise disjoint bundles.

    We define A' by setting A'_k = S and leaving all other bundles unchanged (A'_j = A_j for j ≠ k). Because S ⊆ charity(A), it is disjoint from all other bundles A_j by the charity disjointness property (Finset.disjoint_left.mpr, Finset.disjoint_right.mpr), and bundles between other agents were already disjoint. Furthermore, s(S) ≤ B_k holds by choice of S ∈ F, and other agents' bundles were already within budget.

    lines 42–60

    uses Ne.symm, Finset.disjoint_left.mpr, Finset.disjoint_right.mpr

        let A' := Function.update A k S
        have hA'k : A' k = S := by simp [A']
        have hA'j : ∀ j, j ≠ k → A' j = A j := fun j hj => by simp [A', hj]
        have hP' : P A' := by
          refine ⟨⟨?_, ?_⟩, ?_⟩
          · intro i j hij
            by_cases hi : i = k
            · subst hi
              rw [hA'k, hA'j j (Ne.symm hij)]
              exact Finset.disjoint_left.mpr fun g hg => hmemC g j (hSC hg)
            · by_cases hj : j = k
              · subst hj
                rw [hA'k, hA'j i hi]
                exact Finset.disjoint_right.mpr fun g hg => hmemC g i (hSC hg)
              · rw [hA'j i hi, hA'j j hj]; exact hA.1.1 hij
          · intro i
            by_cases hi : i = k
            · subst hi; rw [hA'k]; exact hSk
            · rw [hA'j i hi]; exact hA.1.2 i
  7. The modified allocation A' satisfies property P: no agent envies a proper sub-bundle of another agent within budget.

    Consider distinct agents i ≠ j and a proper subset T ⊊ A'_j with s(T) ≤ B_i. If j = k, then T ⊊ S, which implies |T| < |S| (by Finset.card_lt_card and Finset.ssubset_iff_subset_ne.mpr); if agent i envied T, then T would belong to F, contradicting the minimality of |S| in F. If j ≠ k, then T ⊊ A_j; agent k does not envy T because v_k(A'_k) = v_k(S) > v_k(A_k) ≥ v_k(T) (as A satisfied P), and any other agent i ≠ k cannot envy T because their bundle and valuation are unchanged from A.

    lines 61–78

    uses Finset.mem_filter.mpr, Finset.mem_univ, Finset.card_lt_card, Finset.ssubset_iff_subset_ne.mpr

          · intro i j hij T hT hne hsT
            by_cases hj : j = k
            · subst hj
              have hi : i ≠ j := hij
              rw [hA'k] at hT hne
              rw [hA'j i hi]
              by_contra hlt
              push Not at hlt
              have hTF : T ∈ F := Finset.mem_filter.mpr ⟨Finset.mem_univ _, hT.trans hSC, i, hsT, hlt⟩
              have := hSmin T hTF
              have := Finset.card_lt_card (Finset.ssubset_iff_subset_ne.mpr ⟨hT, hne⟩)
              omega
            · rw [hA'j j hj] at hT hne
              by_cases hi : i = k
              · subst hi
                rw [hA'k]
                exact (hA.2 i j hij T hT hne hsT).trans hvk.le
              · rw [hA'j i hi]; exact hA.2 i j hij T hT hne hsT
  8. No agent envies any affordable subset of the charity: for all i and T ⊆ charity(A) with s(T) ≤ B_i, v_i(T) ≤ v_i(A_i).

    The social welfare of A' is strictly greater than that of A, because agent k's valuation strictly increased (v_k(S) > v_k(A_k)) while all other agents' valuations remained the same (Finset.sum_lt_sum). This contradicts the fact that A maximizes social welfare among allocations satisfying P, completing the proof of hEF by contradiction.

    lines 79–87

    uses Finset.sum_lt_sum, Finset.mem_univ, Finset.mem_filter.mpr

        have hW : W A < W A' := by
          apply Finset.sum_lt_sum
          · intro i _
            by_cases hi : i = k
            · subst hi; rw [hA'k]; exact hvk.le
            · rw [hA'j i hi]
          · exact ⟨k, Finset.mem_univ _, by rw [hA'k]; exact hvk⟩
        have := hAmax A' (Finset.mem_filter.mpr ⟨Finset.mem_univ _, hP'⟩)
        linarith
  9. The allocation A satisfies strong FEF1 between agents.

    Given distinct agents i ≠ j where A_j is non-empty, choose any item g ∈ A_j. Any subset T ⊆ A_j \\ {g} is a proper subset of A_j because g ∉ T (Finset.erase_subset, Finset.notMem_erase). Since A satisfies P, whenever s(T) ≤ B_i, agent i weakly prefers A_i to T.

    lines 88–94

    uses Finset.erase_subset, Finset.notMem_erase

      refine ⟨A, hA.1, ?_, ?_⟩
      · intro i j hij hne
        obtain ⟨g, hg⟩ := hne
        refine ⟨g, hg, fun T hT hsT => hA.2 i j hij T (hT.trans (Finset.erase_subset _ _)) ?_ hsT⟩
        intro hTe
        have : g ∈ T := hTe ▸ hg
        exact (Finset.notMem_erase g (A j)) (hT this)
  10. The allocation A satisfies FEF1 towards the charity, completing the proof of the theorem.

    Given an agent i and a non-empty affordable subset T ⊆ charity(A), select any good g ∈ T. By monotonicity of valuations, v_i(T \\ {g}) ≤ v_i(T). By hEF, v_i(T) ≤ v_i(A_i). Combining these gives v_i(T \\ {g}) ≤ v_i(A_i), establishing FEF1 towards the charity.

    lines 95–97

    uses Finset.erase_subset

      · intro i T hT hne hsT
        obtain ⟨g, hg⟩ := hne
        exact ⟨g, hg, (hmono i _ _ (Finset.erase_subset g T)).trans (hEF i T hT hsT)⟩
Finset.sum_le_sum_of_subset_of_nonneg
If s ⊆ t and the summands outside s are non-negative, the sum over s is at most the sum over t.
Finset.subset_empty.mp
A subset of the empty set is equal to the empty set.
Finset.exists_max_image
Every non-empty finite set contains an element maximizing a given function.
Finset.mem_univ
Every element of a finite type belongs to the universal finset.
Finset.mem_filter.mpr
An element belongs to a filtered set if it belongs to the base set and satisfies the predicate.
Finset.mem_filter.mp
An element of a filtered set satisfies the filter predicate and belongs to the base set.
Finset.mem_sdiff
An element belongs to the set difference s \\ t if and only if it belongs to s and not to t.
Finset.mem_biUnion
An element belongs to the union over an index set if and only if it belongs to the indexed set for some index.
true_and
The conjunction of True and a proposition p is equivalent to p.
Finset.exists_min_image
Every non-empty finite set contains an element minimizing a given function.
Ne.symm
Inequality is symmetric: if a ≠ b, then b ≠ a.
Finset.disjoint_left.mpr
Two sets are disjoint if no element of the first set belongs to the second.
Finset.disjoint_right.mpr
Two sets are disjoint if no element of the second set belongs to the first.
Finset.card_lt_card
A strict subset of a finite set has strictly smaller cardinality.
Finset.ssubset_iff_subset_ne.mpr
A subset that is not equal to the whole set is a strict subset.
Finset.sum_lt_sum
If f ≤ g everywhere on a finite set and f < g at at least one element, the sum of f is strictly less than the sum of g.
Finset.erase_subset
Removing an element from a set produces a subset.
Finset.notMem_erase
An element a does not belong to the set obtained by removing a.

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

/-- Open Problem OP-2454: existence of an allocation satisfying strong FEF1 between agents and FEF1 towards charity under heterogeneous budget constraints. -/theorem op_2454_strong_fef1_allocation_exists (n m : ℕ)    (s : Fin m → ℝ) (hs : ∀ g, 0 < s g)    (B : Fin n → ℝ) (hB : ∀ i, 0 ≤ B i)    (v : Fin n → Fin m → ℝ) (hv : ∀ i g, 0 ≤ v i g) :    ∃ A : Fin n → Finset (Fin m),      is_budget_feasible s B A ∧      is_strong_fef1_agents s B v A ∧      is_fef1_charity s B v A := by  classical  have hmono : ∀ i (S T : Finset (Fin m)), S ⊆ T →      additive_valuation (v i) S ≤ additive_valuation (v i) T := by    intro i S T hST    exact Finset.sum_le_sum_of_subset_of_nonneg hST (fun g _ _ => hv i g)  -- P: budget feasible and envy-free up to any good (towards proper subsets) between agents  let P : (Fin n → Finset (Fin m)) → Prop := fun A => is_budget_feasible s B A ∧    ∀ i j, i ≠ j → ∀ T, T ⊆ A j → T ≠ A j → additive_valuation s T ≤ B i →      additive_valuation (v i) T ≤ additive_valuation (v i) (A i)  let W : (Fin n → Finset (Fin m)) → ℝ := fun A => ∑ i, additive_valuation (v i) (A i)  have hP0 : P (fun _ => ∅) := by    refine ⟨⟨fun i j _ => by simp, fun i => by simp [additive_valuation, hB i]⟩, ?_⟩    intro i j _ T hT hne    exact absurd (Finset.subset_empty.mp hT) hne  obtain ⟨A, hAmem, hAmax⟩ := Finset.exists_max_image (Finset.univ.filter P) W    ⟨_, Finset.mem_filter.mpr ⟨Finset.mem_univ _, hP0⟩⟩  have hA : P A := (Finset.mem_filter.mp hAmem).2  have hmemC : ∀ g j, g ∈ charity A → g ∉ A j := by    intro g j hg hgj    simp only [charity, Finset.mem_sdiff, Finset.mem_univ, Finset.mem_biUnion, true_and] at hg    exact hg ⟨j, hgj⟩  -- nobody envies an affordable subset of the charity  have hEF : ∀ i T, T ⊆ charity A → additive_valuation s T ≤ B i →      additive_valuation (v i) T ≤ additive_valuation (v i) (A i) := by    by_contra hcon    push Not at hcon    let F := (Finset.univ : Finset (Finset (Fin m))).filter (fun T => T ⊆ charity A ∧      ∃ k, additive_valuation s T ≤ B k ∧ additive_valuation (v k) (A k) < additive_valuation (v k) T)    obtain ⟨i0, T0, hT0, hs0, hv0⟩ := hcon    obtain ⟨S, hSmem, hSmin⟩ := Finset.exists_min_image F Finset.card      ⟨T0, Finset.mem_filter.mpr ⟨Finset.mem_univ _, hT0, i0, hs0, hv0⟩⟩    obtain ⟨hSC, k, hSk, hvk⟩ := (Finset.mem_filter.mp hSmem).2    let A' := Function.update A k S    have hA'k : A' k = S := by simp [A']    have hA'j : ∀ j, j ≠ k → A' j = A j := fun j hj => by simp [A', hj]    have hP' : P A' := by      refine ⟨⟨?_, ?_⟩, ?_⟩      · intro i j hij        by_cases hi : i = k        · subst hi          rw [hA'k, hA'j j (Ne.symm hij)]          exact Finset.disjoint_left.mpr fun g hg => hmemC g j (hSC hg)        · by_cases hj : j = k          · subst hj            rw [hA'k, hA'j i hi]            exact Finset.disjoint_right.mpr fun g hg => hmemC g i (hSC hg)          · rw [hA'j i hi, hA'j j hj]; exact hA.1.1 hij      · intro i        by_cases hi : i = k        · subst hi; rw [hA'k]; exact hSk        · rw [hA'j i hi]; exact hA.1.2 i      · intro i j hij T hT hne hsT        by_cases hj : j = k        · subst hj          have hi : i ≠ j := hij          rw [hA'k] at hT hne          rw [hA'j i hi]          by_contra hlt          push Not at hlt          have hTF : T ∈ F := Finset.mem_filter.mpr ⟨Finset.mem_univ _, hT.trans hSC, i, hsT, hlt⟩          have := hSmin T hTF          have := Finset.card_lt_card (Finset.ssubset_iff_subset_ne.mpr ⟨hT, hne⟩)          omega        · rw [hA'j j hj] at hT hne          by_cases hi : i = k          · subst hi            rw [hA'k]            exact (hA.2 i j hij T hT hne hsT).trans hvk.le          · rw [hA'j i hi]; exact hA.2 i j hij T hT hne hsT    have hW : W A < W A' := by      apply Finset.sum_lt_sum      · intro i _        by_cases hi : i = k        · subst hi; rw [hA'k]; exact hvk.le        · rw [hA'j i hi]      · exact ⟨k, Finset.mem_univ _, by rw [hA'k]; exact hvk⟩    have := hAmax A' (Finset.mem_filter.mpr ⟨Finset.mem_univ _, hP'⟩)    linarith  refine ⟨A, hA.1, ?_, ?_⟩  · intro i j hij hne    obtain ⟨g, hg⟩ := hne    refine ⟨g, hg, fun T hT hsT => hA.2 i j hij T (hT.trans (Finset.erase_subset _ _)) ?_ hsT⟩    intro hTe    have : g ∈ T := hTe ▸ hg    exact (Finset.notMem_erase g (A j)) (hT this)  · intro i T hT hne hsT    obtain ⟨g, hg⟩ := hne    exact ⟨g, hg, (hmono i _ _ (Finset.erase_subset g T)).trans (hEF i T hT hsT)⟩
See it in the graphDiscuss this resultChallenge it