Lemma 4.4: first-pick matching probabilities Pr[(i,t) ∈ M1]
ProvedOnlineMaxWeightMatch.Approx.lemma_4_4Standing setting (§4). is a RideHail instance with bins (a finite set) and balls , arrival probabilities and weights . The vector is a feasible solution of LP-Match (constraints (9)–(12)) that satisfies Constraint (10) with equality, for every ball (the paper's standing assumption, guaranteed by the dummy bins of Line 2 of Algorithm 1). Algorithm 1 (Lines 3–13) is run on with ; is the probability over its randomness (arrivals, first picks, acceptance coins, second picks).
Let be the set of edges added in Line 8 (first picks). Then:
- for every early edge ,
- for every edge ,
This is the analysis of the first pick: early edges are matched with exactly the target probability, late ones with nearly half of it. Theorem 4.6 supplies the missing for late edges.
Formalization Note "Early" is Definition 4.3; every pair is an edge (missing edges have weight ).
import Mathlib import Definitions.Def_OnlineMaxWeightMatch_Approx_Analysis open MeasureTheory ProbabilityTheory
namespace OnlineMaxWeightMatch.Approx
/-- Lemma 4.4. Run Algorithm 1 (Lines 3–13) on an LP-Match feasible `x` with `Σ_i x_{i,t} = p_t`
for every ball `t`. If edge `(i, t)` is early, `Pr[(i, t) ∈ M1] = x_{i,t} · (1/2 + c)`; for every
edge, `x_{i,t} · (1/2 - 3c) ≤ Pr[(i, t) ∈ M1] ≤ x_{i,t} · (1/2 + c)`. -/
theorem lemma_4_4 {ι : Type*} [Fintype ι] {n : ℕ} (I : RideHailInstance ι n)
(x : ι → Fin n → ℝ) (hx : LPFeasible I x) (htight : ∀ t, ∑ i, x i t = I.p t)
:
(∀ i t, IsEarly x i t →
(algMeasure I x).real {ω | (i, t) ∈ M1 x ω} = x i t * (1 / 2 + c)) ∧
(∀ i t, x i t * (1 / 2 - 3 * c) ≤ (algMeasure I x).real {ω | (i, t) ∈ M1 x ω} ∧
(algMeasure I x).real {ω | (i, t) ∈ M1 x ω} ≤ x i t * (1 / 2 + c)) := by sorry
end OnlineMaxWeightMatch.Approx
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.