Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Stationary law of a finite-state continuous-time Markov chain given by its transition rates

Definition
SharedVehicleApprox_Pricing_Supplement_StationaryLaw

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

Let S\mathcal SS be a finite set of states and let Q(s,t)Q(s,t)Q(s,t) be the transition rate from sss to ttt. A stationary law of the chain is a function π≥0\pi\ge0π≥0 that vanishes outside S\mathcal SS, has total mass ∑s∈Sπ(s)=1\sum_{s\in\mathcal S}\pi(s)=1∑s∈S​π(s)=1, and satisfies the global balance equations

π(s)∑t∈SQ(s,t)=∑t∈Sπ(t) Q(t,s)(s∈S).\pi(s)\sum_{t\in\mathcal S}Q(s,t)=\sum_{t\in\mathcal S}\pi(t)\,Q(t,s)\qquad(s\in\mathcal S).π(s)t∈S∑​Q(s,t)=t∈S∑​π(t)Q(t,s)(s∈S).

This is the paper's description of a steady-state distribution (p. 7), for an arbitrary finite state space. The models with travel times use it.

Formalization Note The balance equations are the published full-balance predicate of Kelly and Yudovina, applied on the subtype of S\mathcal SS, where its unconditional sums are finite sums. A rate Q(s,s)Q(s,s)Q(s,s) appears on both sides and cancels.

Definition code
import Mathlib
import Definitions.Def_KellyStochasticNetworks_Balance

namespace SharedVehicleApprox.Pricing.Supplement

open Finset

/-- A stationary law of the continuous-time Markov chain with transition rates `rate` on the finite
state space `St`: a probability vector on `St`, zero off `St`, satisfying the equilibrium (global
balance) equations `π s ∑_t rate s t = ∑_t π t · rate t s` at every `s ∈ St`. -/
def IsStationaryLaw {S : Type*} (St : Finset S) (rate : S → S → ℝ) (π : S → ℝ) : Prop :=
  (∀ s, 0 ≤ π s) ∧ (∀ s, s ∉ St → π s = 0) ∧ (∑ s ∈ St, π s) = 1 ∧
    KellyStochasticNetworks.FullBalance (fun s : {s // s ∈ St} => π s)
      (fun s t : {s // s ∈ St} => rate s t)

end SharedVehicleApprox.Pricing.Supplement
Source
Banerjee, Freund & Lykouris, Pricing and Optimization in Shared Vehicle Systems: An Approximation Framework, arXiv:1608.06819v4, p. 7 (PDF 8), §2.2, balance equation (1)

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