Lemma A.1 — closed form for the minimum tip
ProvedPricingWithTips.lemma_A_1_minimum_tip_formulaFor finite buyer and store sets and a finite nonempty courier set, the minimum nonnegative tip that makes at least one courier weakly prefer a designated buyer–store order to idling and every competing order equals the minimum, over couriers, of the maximum of zero, the target order’s participation shortfall, and the largest pairwise utility advantage required to defeat all competing orders under the paper’s counterfactual-tip rule.
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_A_1_minimum_tip_formula [Nonempty D]
(M : Market B S D) (w t : B → S → ℝ) (b : B) (s : S) :
minimumTip M w t b s = minimumTipFormula M w t b s := by sorry
end PricingWithTips
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every finite type of buyers, finite type of stores, and finite nonempty type of couriers, each equipped with decidable equality, let consist of functions and , together with the requirements for all and for all . Then, for every pair of otherwise unrestricted real-valued functions , every , and every , the infimum of the set of real numbers such that and there exists a courier satisfying both
and, for every and ,
where when and , when and , and when , is equal to
with
No sign or other conditions are imposed on or , and the market’s value function does not occur in either side of the asserted equality. Although and are not separately assumed nonempty, the universal quantification over and is vacuous if either is empty; is explicitly nonempty, and the inner supremum includes the indexed pair , whose contribution is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.