Lemma 4.4 — equilibrium allocations as maximum-weight matchings
ProvedPricingWithTips.lemma_4_4_equilibrium_iff_maximum_weightFix an allocation and a componentwise maximal vector of courier utilities. The allocation is supportable by a with-tip equilibrium if and only if the induced buyer–store matching maximizes total adjusted value, where a delivered buyer–store pair has zero required tip and every undelivered pair is discounted by the least delivery cost plus the corresponding courier utility.
import Definitions.Def_PricingWithTips_Model
namespace PricingWithTips
variable {B S D : Type*} [Fintype B] [Fintype S] [Fintype D]
[DecidableEq B] [DecidableEq S] [DecidableEq D]
theorem lemma_4_4_equilibrium_iff_maximum_weight [Nonempty D]
(M : Market B S D) (A : Allocation B S D) (uBar : D → ℝ)
(hu : IsMaximalCourierUtility M A uBar) :
HasWithTipEquilibriumAt M A ↔
IsMaximumWeight A.toBuyerMatching (adjustedValue M A uBar) := by sorry
end PricingWithTips
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every finite types , , and equipped with decidable equality, with nonempty (while and may be empty), every market consisting of a nonnegative value and a nonnegative delivery cost for each buyer–store and courier–buyer–store tuple, every feasible allocation that assigns each buyer either no pair or one store–courier pair and never uses a store or courier for two distinct buyers, and every real vector , assume that is a componentwise maximal vector of realized courier utilities for in the following literal sense: there exists a nonnegative wage schedule such that every courier assigned by to receives nonnegative wage-minus-cost and weakly prefers that trip to every , every unassigned courier has nonpositive wage-minus-cost on every possible trip, every buyer–store pair not delivered by has wage zero, and each courier's realized utility equals , where realized utility is at a classically chosen trip delivered by if such a trip exists and is zero if none exists; moreover, for every wage schedule satisfying those same courier-plan conditions, each courier's realized utility is at most . Then the following two statements are equivalent. First, there exist a store-price schedule , a wage schedule , and a tip schedule that form a with-tip equilibrium at exactly : all prices, wages, and tips are nonnegative; an unassigned buyer has for every store , while a buyer assigned to pays , obtains , and weakly prefers that quantity to for every ; each courier assigned to has actual utility and weakly prefers it to for every ; every unassigned courier has actual utility at most zero on every possible trip; every unused store has price zero; and every buyer–store pair not delivered by has both wage and tip zero. Here is the infimum over real for which some courier would weakly prefer to idling and to all other orders if the tip at were replaced by , the same buyer's tips at every other store were replaced by zero, and all other buyers' tips remained as in : explicitly, the courier must have and, for every , , where when , is zero when but , and otherwise equals . Second, the buyer-to-store matching obtained from by discarding each assigned courier has maximum total adjusted value among all partial buyer-to-store matchings that use no store for two distinct buyers: its weight is the sum over buyers, contributing zero for an unmatched buyer and for a buyer matched to , and every other such partial matching has weight at most this one, where if delivers buyer from store , and otherwise is the infimum over couriers of . Empty buyer or store types are included: the corresponding universal conditions and sums are vacuous or zero, and the claimed equivalence remains asserted under the stated maximal-utility hypothesis.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.