AFTD Auto-Formalizing Theoretical Domains

tef1_exists_le_three_chores_three_agents

theoremverified

For every natural number m ≤ 3 and every cost matrix d : Fin 3 → Fin m → ℝ with nonnegative entries (∀ i c, 0 ≤ d i c), there exists an allocation π : Fin m → Fin 3 that is temporal EF1 (is_tef1 3 m d π).

Statement

theorem tef1_exists_le_three_chores_three_agents (m : ℕ) (hm : m ≤ 3)
    (d : Fin 3 → Fin m → ℝ) (hd : ∀ i c, 0 ≤ d i c) :
    ∃ π : Fin m → Fin 3, is_tef1 3 m d π
Source
arXiv:2611.25892 Sec. 7
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • is_tef1An allocation π : Fin m → Fin n of m chores to n agents is temporal EF1 (TEF1) with respect to additive costs d : Fin n → Fin m → ℝ if for…
  • chore_prefix_bundleFor an allocation π : Fin m → Fin n assigning m chores (identified with their arrival rounds in Fin m) to n agents in Fin n, agent i's…
  • additive_valuationThe additive valuation with item values u: a bundle is worth the sum of its items' values.
Used by 1
  • tef1_nonexistence_min_ge_fourIf m : ℕ is the least element (IsLeast) of the set of natural numbers k for which there exists a 3-agent, k-chore instance with…

Read back from the Lean

For every natural number $m$ with $m \le 3$, and every non-negative cost/disutility matrix $d : \mathrm{Fin}(3) \to \mathrm{Fin}(m) \to \mathbb{R}$ (where $0 \le d(i, c)$ for all agents $i \in \mathrm{Fin}(3)$ and chores $c \in \mathrm{Fin}(m)$), there exists an assignment $\pi : \mathrm{Fin}(m) \to \mathrm{Fin}(3)$ of chores to agents that satisfies time-dependent envy-freeness up to one chore (is_tef1 3 m d π): namely, for every chore step $t \in \mathrm{Fin}(m)$ and any distinct agents $i, j \in \mathrm{Fin}(3)$ ($i \neq j$), agent $i$'s additive disutility for the chores assigned to $i$ up to step $t$ is at most agent $i$'s disutility for the chores assigned to $j$ up to step $t$, or there exists some chore $c \le t$ assigned to $i$ whose removal from $i$'s prefix bundle makes agent $i$'s disutility at most agent $i$'s disutility for $j$'s prefix bundle up to step $t$.

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 proof establishes that a temporal EF1 (TEF1) chore allocation always exists for 3 agents when there are at most 3 chores with nonnegative costs. The strategy is to allocate each chore c directly to agent c, which is valid because m ≤ 3. Since this allocation is injective, each agent receives at most one chore across the entire process, meaning any agent's prefix bundle contains at most one chore at any round. If an agent's prefix bundle is empty, its cost is 0 and the agent trivially does not envy any other agent; if it contains a single chore, removing that chore reduces the bundle cost to 0, satisfying the EF1 condition against any bundle with nonnegative cost.

  1. Define the allocation π assigning each chore c to the agent with the same index c.

    Since the number of chores m is at most 3, any chore index c < m is strictly less than 3 by transitivity (lt_of_lt_of_le). We can therefore define π(c) = c by embedding Fin m into Fin 3, giving at most one chore to each agent, and take π as the candidate allocation.

    lines 5–6

    uses lt_of_lt_of_le

      let π : Fin m → Fin 3 := fun c => ⟨c.val, lt_of_lt_of_le c.isLt hm⟩
      refine ⟨π, ?_⟩
  2. The allocation π is injective, so no agent receives more than one chore overall.

    If π(a) = π(b), applying the projection to underlying natural numbers via congrArg gives a.val = b.val. Since elements of Fin m are uniquely determined by their numerical values (Fin.ext), a = b.

    lines 7–12

    uses congrArg, Fin.ext

      have hπinj : Function.Injective π := by
        intro a b hab
        have h : a.val = b.val := by
          have := congrArg (fun x : Fin 3 => x.val) hab
          simpa [π] using this
        exact Fin.ext h
  3. Any additive valuation with nonnegative item costs assigns a nonnegative total cost to every bundle.

    Unfolding the definition of additive_valuation, the cost of a set of chores S is the sum of the individual chore costs. Because each chore cost is nonnegative, the sum over S is nonnegative by Finset.sum_nonneg.

    lines 13–17

    uses additive_valuation, Finset.sum_nonneg

      have hnonneg : ∀ (u : Fin m → ℝ) (S : Finset (Fin m)), (∀ c, 0 ≤ u c) →
          0 ≤ additive_valuation u S := by
        intro u S hu
        simp only [additive_valuation]
        exact Finset.sum_nonneg (fun c _ => hu c)
  4. Fix an arbitrary round t and two distinct agents i and j.

    To establish the TEF1 property, we introduce an arbitrary round t and distinct agents i ≠ j, for which we must show that either agent i does not envy agent j, or removing one chore from agent i's bundle eliminates the envy.

    line 18

      intro t i j hij
  5. If agent i's prefix bundle at round t is nonempty, removing its unique chore eliminates any envy toward agent j.

    Suppose agent i's prefix bundle contains at least one chore c. Since π is injective, any chore assigned to agent i must equal c, meaning the bundle is precisely the singleton {c} (Finset.eq_singleton_iff_unique_mem.2). Removing c reduces agent i's bundle cost to d(i, c) - d(i, c) = 0. Since agent j's prefix bundle has nonnegative cost, agent i's reduced bundle costs at most agent j's prefix bundle, satisfying the EF1 condition.

    lines 19–31

    uses Finset.eq_singleton_iff_unique_mem.2, chore_prefix_bundle, Finset.mem_filter, Finset.mem_univ, true_and, additive_valuation, Finset.sum_singleton

      by_cases hne : (chore_prefix_bundle π t i).Nonempty
      · obtain ⟨c, hc⟩ := hne
        right
        refine ⟨c, hc, ?_⟩
        have hsingle : chore_prefix_bundle π t i = {c} := by
          apply Finset.eq_singleton_iff_unique_mem.2
          refine ⟨hc, ?_⟩
          intro b hb
          simp only [chore_prefix_bundle, Finset.mem_filter, Finset.mem_univ, true_and] at hb hc
          exact hπinj (hb.2.trans hc.2.symm)
        have h2 := hnonneg (d i) (chore_prefix_bundle π t j) (fun c => hd i c)
        rw [hsingle, additive_valuation, Finset.sum_singleton]
        linarith
  6. If agent i's prefix bundle at round t is empty, agent i has cost 0 and does not envy agent j.

    If agent i's prefix bundle is not nonempty, it is the empty set (Finset.not_nonempty_iff_eq_empty.1), so its cost is 0 by Finset.sum_empty. Because agent j's prefix bundle has nonnegative cost, agent i's prefix bundle costs no more than agent j's, satisfying envy-freeness without removing any chore.

    lines 32–36

    uses Finset.not_nonempty_iff_eq_empty.1, additive_valuation, Finset.sum_empty

      · left
        have hempty : chore_prefix_bundle π t i = ∅ := Finset.not_nonempty_iff_eq_empty.1 hne
        have h2 := hnonneg (d i) (chore_prefix_bundle π t j) (fun c => hd i c)
        rw [hempty, additive_valuation, Finset.sum_empty]
        linarith
lt_of_lt_of_le
If a < b and b ≤ c, then a < c.
congrArg
Applying a function to equal inputs yields equal outputs: if a₁ = a₂, then f(a₁) = f(a₂).
Fin.ext
Two elements of Fin n are equal if and only if their underlying natural values are equal.
additive_valuation
The additive valuation of a set S under cost vector u is the sum of u(j) for j in S.
Finset.sum_nonneg
A finite sum of nonnegative terms is nonnegative.
Finset.eq_singleton_iff_unique_mem.2
A finite set S is equal to the singleton {c} if c ∈ S and every element of S equals c.
chore_prefix_bundle
The set of chores allocated to agent i up to round t under allocation π.
Finset.mem_filter
An element a belongs to Finset.filter p s if and only if a ∈ s and p(a) holds.
Finset.mem_univ
Every element of a finite type belongs to its universal finset Finset.univ.
true_and
For any proposition p, the conjunction True ∧ p is equivalent to p.
Finset.sum_singleton
The sum of a function over a singleton set {a} equals the value of the function at a.
Finset.not_nonempty_iff_eq_empty.1
If a finite set is not nonempty, it is equal to the empty set.
Finset.sum_empty
The sum of any function over the empty set is 0.

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

/-- A TEF1 allocation always exists for three agents and at most three chores. -/theorem tef1_exists_le_three_chores_three_agents (m : ℕ) (hm : m ≤ 3)    (d : Fin 3 → Fin m → ℝ) (hd : ∀ i c, 0 ≤ d i c) :    ∃ π : Fin m → Fin 3, is_tef1 3 m d π := by  let π : Fin m → Fin 3 := fun c => ⟨c.val, lt_of_lt_of_le c.isLt hm⟩  refine ⟨π, ?_⟩  have hπinj : Function.Injective π := by    intro a b hab    have h : a.val = b.val := by      have := congrArg (fun x : Fin 3 => x.val) hab      simpa [π] using this    exact Fin.ext h  have hnonneg : ∀ (u : Fin m → ℝ) (S : Finset (Fin m)), (∀ c, 0 ≤ u c) →      0 ≤ additive_valuation u S := by    intro u S hu    simp only [additive_valuation]    exact Finset.sum_nonneg (fun c _ => hu c)  intro t i j hij  by_cases hne : (chore_prefix_bundle π t i).Nonempty  · obtain ⟨c, hc⟩ := hne    right    refine ⟨c, hc, ?_⟩    have hsingle : chore_prefix_bundle π t i = {c} := by      apply Finset.eq_singleton_iff_unique_mem.2      refine ⟨hc, ?_⟩      intro b hb      simp only [chore_prefix_bundle, Finset.mem_filter, Finset.mem_univ, true_and] at hb hc      exact hπinj (hb.2.trans hc.2.symm)    have h2 := hnonneg (d i) (chore_prefix_bundle π t j) (fun c => hd i c)    rw [hsingle, additive_valuation, Finset.sum_singleton]    linarith  · left    have hempty : chore_prefix_bundle π t i = ∅ := Finset.not_nonempty_iff_eq_empty.1 hne    have h2 := hnonneg (d i) (chore_prefix_bundle π t j) (fun c => hd i c)    rw [hempty, additive_valuation, Finset.sum_empty]    linarith
See it in the graphDiscuss this resultChallenge it