Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition B-2, p. B-5 — pasting a local equilibrium into an attraction region

Proved
SurgeSpatial.Attraction.proposition_B_2

by mikedeng1 · Oct 22, 2026 · Mathlib 0df444a (Lean v4.33.1)

attraction-regionlocal-equilibriump2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1pastingspatial-pricing

Let (p,T)(p,\mathcal T)(p,T) be a feasible solution of (P2) and z∈Cz\in\mathcal Cz∈C a sink, with A=A(z∣p,T)A=A(z\mid p,\mathcal T)A=A(z∣p,T), Γ(A)>0\Gamma(A)>0Γ(A)>0, and L=⋃a{Xa(z∣p,T)}\mathcal L=\bigcup_a\{X_a(z\mid p,\mathcal T)\}L=⋃a​{Xa​(z∣p,T)}. Let Θ~\tilde\ThetaΘ~ be the measure on AAA of drivers that stay within AAA under T\mathcal TT: Θ~(B)=T(B×A)\tilde\Theta(B)=\mathcal T(B\times A)Θ~(B)=T(B×A) for measurable B⊆AB\subseteq AB⊆A. Suppose that

  1. p~\tilde pp~​ is a price mapping, measurable on AAA, with values in [0,Vˉ][0,\bar V][0,Vˉ] on AAA;
  2. T~∈FA(Θ~)\tilde{\mathcal T}\in\mathcal F_A(\tilde\Theta)T~∈FA​(Θ~) is a local equilibrium in AAA under p~\tilde pp~​;
  3. VA(x∣p~,T~)≤V(x∣p,T)V_A(x\mid\tilde p,\tilde{\mathcal T})\le V(x\mid p,\mathcal T)VA​(x∣p~​,T~)≤V(x∣p,T) for all x∈Ax\in Ax∈A, and Θ~({x∈A:VA(x∣p~,T~)=V(x∣p,T)})=Θ~(A)\tilde\Theta(\{x\in A:V_A(x\mid\tilde p,\tilde{\mathcal T})=V(x\mid p,\mathcal T)\})=\tilde\Theta(A)Θ~({x∈A:VA​(x∣p~​,T~)=V(x∣p,T)})=Θ~(A).

Define the pasted price p^=p~\hat p=\tilde pp^​=p~​ on AAA and p^=p\hat p=pp^​=p off AAA, and the pasted flow

T^(B)=T(B∩((Ac∪L)×Ac))+T~(B∩(A×A)),\hat{\mathcal T}(B)=\mathcal T\big(B\cap((A^c\cup\mathcal L)\times A^c)\big)+\tilde{\mathcal T}\big(B\cap(A\times A)\big),T^(B)=T(B∩((Ac∪L)×Ac))+T~(B∩(A×A)),

with Ac=C∖AA^c=\mathcal C\setminus AAc=C∖A. Then (p^,T^)(\hat p,\hat{\mathcal T})(p^​,T^) is a feasible solution of (P2), and

sT^(x)={sT~(x)x∈A,sT(x)x∈Ac,Γ-a.e.s^{\hat{\mathcal T}}(x)=\begin{cases}s^{\tilde{\mathcal T}}(x)&x\in A,\\ s^{\mathcal T}(x)&x\in A^c,\end{cases}\qquad\Gamma\text{-a.e.}sT^(x)={sT~(x)sT(x)​x∈A,x∈Ac,​Γ-a.e.

Any local equilibrium in an attraction region that keeps drivers' utilities at or below the old ones, with equality where the staying drivers start, can be pasted into the global equilibrium.

Formalization Note Θ~\tilde\ThetaΘ~ is written literally as the restriction to AAA of B↦T(B×A)B\mapsto\mathcal T(B\times A)B↦T(B×A). Γ(A)>0\Gamma(A)>0Γ(A)>0 is the precondition of Definition 3 (local equilibria are defined only for such sets). Densities of T~\tilde{\mathcal T}T~ are taken with respect to Γ\GammaΓ, which agrees with Γ∣A\Gamma|_AΓ∣A​ Γ\GammaΓ-a.e. on AAA. The density identity is stated Γ\GammaΓ-a.e., since densities are defined only up to null sets.

Preamble
import Mathlib
import Definitions.Def_SurgeSpatial_Attraction_Setting
open MeasureTheory
Formal statement
namespace SurgeSpatial.Attraction

open scoped Classical in
theorem proposition_B_2 (M : Market) (hM : M.Standing) (p : E → ℝ) (T : Measure (E × E))
    (hpT : M.FeasibleP2 p T) (z : E) (hz : z ∈ M.C) (hsink : M.IsSink p T z)
    (hΓA : 0 < M.Γ (M.attr p T z)) (pt : E → ℝ) (Tt : Measure (E × E))
    (hpt : Measurable ((M.attr p T z).domRestrict pt))
    (hpt_range : ∀ x ∈ M.attr p T z, pt x ∈ Set.Icc 0 M.Vbar)
    (hTt : M.FeasFlowOn (M.attr p T z)
      (((T.restrict (Set.univ ×ˢ M.attr p T z)).map Prod.fst).restrict (M.attr p T z)) Tt)
    (hloc : M.IsLocalEquilibrium (M.attr p T z)
      (((T.restrict (Set.univ ×ˢ M.attr p T z)).map Prod.fst).restrict (M.attr p T z)) pt Tt)
    (hle : ∀ x ∈ M.attr p T z, M.VB (M.attr p T z) pt Tt x ≤ M.V p T x)
    (heq : (((T.restrict (Set.univ ×ˢ M.attr p T z)).map Prod.fst).restrict (M.attr p T z))
        {x | x ∈ M.attr p T z ∧ M.VB (M.attr p T z) pt Tt x = M.V p T x} =
      (((T.restrict (Set.univ ×ˢ M.attr p T z)).map Prod.fst).restrict (M.attr p T z))
        (M.attr p T z)) :
    M.FeasibleP2 ((M.attr p T z).piecewise pt p)
        (T.restrict (((M.C \ M.attr p T z) ∪ Set.range (M.Xend p T z)) ×ˢ
            (M.C \ M.attr p T z)) + Tt.restrict (M.attr p T z ×ˢ M.attr p T z)) ∧
      M.sT (T.restrict (((M.C \ M.attr p T z) ∪ Set.range (M.Xend p T z)) ×ˢ
            (M.C \ M.attr p T z)) + Tt.restrict (M.attr p T z ×ˢ M.attr p T z))
        =ᵐ[M.Γ] (M.attr p T z).piecewise (M.sT Tt) (M.sT T) := by sorry

end SurgeSpatial.Attraction
Source
Besbes, Castro, Lobel, Surge Pricing and its Spatial Supply Response, SSRN 3124571 (version of May 17, 2019), p. B-5, Proposition B-2 and Definition 3
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 23, 2026

    Confirmed by the mission captain (proposal self-audit).

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