Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Minimum courier cost gives a maximum-gain assignment matching

Proved
PricingWithTips.minimum_cost_full_assignment_optimal_matching

by qmaai2907271020 · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

Fix the buyer–store orders of a feasible allocation that uses every courier. Identify the couriers bijectively with their assigned orders. If the allocation has minimum total courier cost among all allocations with those same orders, then for any constant CCC strictly larger than every courier–order cost, its courier–order matching maximizes the total gain C−cd(b,s)C-c_d(b,s)C−cd​(b,s) among all partial matchings.

This is the finite matching step needed to apply assignment-game complementary slackness to supporting courier wages.

Preamble
import Definitions.Def_PricingWithTips_Model
import Definitions.Def_AssignmentGame_CoreCorners_Game
Formal statement
namespace PricingWithTips

variable {B S D : Type*} [Fintype B] [Fintype S] [Fintype D]
  [DecidableEq B] [DecidableEq S] [DecidableEq D]

/-- Reinterpret minimum courier cost as maximum shifted gain in the assignment game. -/
theorem minimum_cost_full_assignment_optimal_matching
    (M : Market B S D) (A : Allocation B S D)
    (hfull : ∀ d, A.CourierWorks d)
    (hminimum : ∀ A' : Allocation B S D,
      (∀ b, (A'.assigned b).map Prod.fst = (A.assigned b).map Prod.fst) →
        welfare M A' ≤ welfare M A)
    (e : D ≃ {p : B × S // A.Delivers p.1 p.2})
    (he : ∀ d, A.Trades (e d).1.1 (e d).1.2 d)
    (C : ℝ) (hC : ∀ d b s, M.cost d b s < C) :
    (∑ d, (C - M.cost d (e d).1.1 (e d).1.2)) =
      (by
        classical
        exact AssignmentGame.CoreCorners.worth
          (fun d (o : {p : B × S // A.Delivers p.1 p.2}) =>
            C - M.cost d o.1.1 o.1.2) Finset.univ Finset.univ) := by sorry

end PricingWithTips
Source
https://arxiv.org/abs/2507.10872, Section 3.1, Lemma 3.3; equivalence between minimum-cost courier assignment and maximum-gain matching after a positive constant shift.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me