Working couriers correspond bijectively to delivered orders
ProvedPricingWithTips.full_courier_assignment_equiv_ordersLet a feasible allocation assign every courier to a delivery. Each working courier has exactly one assigned buyer–store order, and every delivered order has exactly one courier. Consequently the set of couriers is in bijection with the set of delivered orders, with each courier matched to the order she actually carries.
This identifies the allocation with a perfect matching in the courier–order assignment game.
Preamble
import Definitions.Def_PricingWithTips_Model
Formal statement
namespace PricingWithTips
variable {B S D : Type*} [Fintype B] [Fintype S] [Fintype D]
[DecidableEq B] [DecidableEq S] [DecidableEq D]
theorem full_courier_assignment_equiv_orders
(A : Allocation B S D) (hfull : ∀ d, A.CourierWorks d) :
∃ e : D ≃ {p : B × S // A.Delivers p.1 p.2},
∀ d, A.Trades (e d).1.1 (e d).1.2 d := by sorry
end PricingWithTipsSource