Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5.3 — Algorithm 5, the elevated flow relaxation with a second-objective constraint

Definition
SharedVehicleApprox_Pricing_Supplement_MultiObjective

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

approximation-ratioclosed-queueing-networkp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1pricingshared-vehicle-systems

Two families of per-ride rewards define objectives Φ\PhiΦ and Ψ\PsiΨ on the same system, and ccc is a requirement on Ψ\PsiΨ. Algorithm 5 solves

max⁡q Φ^(q)=∑i,jφijRijΦ(qij)s.t.q∈[0,1]n×n,  ∑kφkiqki=∑jφijqij  ∀i,  Ψ^(q)=∑i,jφijRijΨ(qij)≥c.\max_q\ \hat\Phi(q)=\sum_{i,j}\varphi_{ij}R^\Phi_{ij}(q_{ij})\quad\text{s.t.}\quad q\in[0,1]^{n\times n},\ \ \sum_k\varphi_{ki}q_{ki}=\sum_j\varphi_{ij}q_{ij}\ \ \forall i,\ \ \hat\Psi(q)=\sum_{i,j}\varphi_{ij}R^\Psi_{ij}(q_{ij})\ge c.qmax​ Φ^(q)=i,j∑​φij​RijΦ​(qij​)s.t.q∈[0,1]n×n,  k∑​φki​qki​=j∑​φij​qij​  ∀i,  Ψ^(q)=i,j∑​φij​RijΨ​(qij​)≥c.

The definitions give feasibility and optimality, which state Theorem 24. Feasibility is that of Algorithm 1 with the one additional constraint.

Definition code
import Mathlib
import Definitions.Def_QueueingFundamentals_Networks_ClosedJackson
import Definitions.Def_SharedVehicleApprox_Pricing_Model

namespace SharedVehicleApprox.Pricing.Supplement

open Finset QueueingFundamentals.Networks

/-- Feasibility in the relaxation of Algorithm 5 (p. 29): balanced quantiles in `[0, 1]` with
elevated second objective `Ψ̂(q) ≥ c`. -/
def IsAlg5Feasible {n : ℕ} (φ : Fin n → Fin n → ℝ) (IΨ : Fin n → Fin n → ℝ → ℝ) (c : ℝ)
    (q : Fin n → Fin n → ℝ) : Prop :=
  IsRelaxFeasible φ q ∧ c ≤ elevObj φ IΨ q

/-- `q` is an optimal solution of the relaxation of Algorithm 5: it maximizes `Φ̂`. -/
def IsAlg5Optimal {n : ℕ} (φ : Fin n → Fin n → ℝ) (IΦ IΨ : Fin n → Fin n → ℝ → ℝ) (c : ℝ)
    (q : Fin n → Fin n → ℝ) : Prop :=
  IsAlg5Feasible φ IΨ c q ∧
    ∀ q', IsAlg5Feasible φ IΨ c q' → elevObj φ IΦ q' ≤ elevObj φ IΦ q

end SharedVehicleApprox.Pricing.Supplement
Source
Banerjee, Freund & Lykouris, Pricing and Optimization in Shared Vehicle Systems: An Approximation Framework, arXiv:1608.06819v4, pp. 28–29 (PDF 29–30), §5.3, Algorithm 5

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