Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5.1, p. 25 — finite grids, probability weights, price laws, and mesh size

Definition
SinglePointPricing_Det_Supplement_Grid

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

maximin-ratiop2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1pricingrandomized-mechanismrobust-pricing

Let A=(a0,…,an−1)A=(a_0,\ldots,a_{n-1})A=(a0​,…,an−1​) be a finite price grid and let p0,…,pn−1p_0,\ldots,p_{n-1}p0​,…,pn−1​ be nonnegative weights with total mass one. The discrete price law and its class are

ΨA,p=∑j=0n−1pjδaj,PA={ΨA,p∈P:pj≥0, ∑jpj=1}.\Psi_{A,p}=\sum_{j=0}^{n-1}p_j\delta_{a_j},\qquad \mathcal P_A=\{\Psi_{A,p}\in\mathcal P:p_j\ge0,\ \sum_jp_j=1\}.ΨA,p​=j=0∑n−1​pj​δaj​​,PA​={ΨA,p​∈P:pj​≥0, j∑​pj​=1}.

The grid predicates assert strict increase and positivity on precisely these nnn indices. For a grid a0,…,aNa_0,\ldots,a_Na0​,…,aN​, Δ(A)=max⁡0≤i<N(ai+1−ai)\Delta(A)=\max_{0\le i<N}(a_{i+1}-a_i)Δ(A)=max0≤i<N​(ai+1​−ai​) is its mesh size.

These objects express finite price distributions independently of the paper's particular LP. They use the existing measure and mechanism interfaces. A grid with zero gaps is not used in the theorem domains; Δ(A)=0\Delta(A)=0Δ(A)=0 at N=0N=0N=0 is an unused total-function convention. Only the finite initial segment of each sequence is read. The printed aia_iai​ inside the sum over jjj is read as aja_jaj​.

Definition code
import Mathlib
import Definitions.Def_SinglePointPricing_Det_Setting

namespace SinglePointPricing.Det.Supplement

noncomputable section
open MeasureTheory

/-- A strictly increasing finite list, read on indices `0, ..., n-1`. -/
def IncreasingGrid (a : ℕ → ℝ) (n : ℕ) : Prop :=
  ∀ i j : ℕ, i < j → j < n → a i < a j

/-- Positivity is required only on the finite list. -/
def PositiveGrid (a : ℕ → ℝ) (n : ℕ) : Prop := ∀ i < n, 0 < a i

/-- Probability weights on precisely the first `n` indices. -/
def GridWeights (p : ℕ → ℝ) (n : ℕ) : Prop :=
  (∀ j < n, 0 ≤ p j) ∧ ∑ j ∈ Finset.range n, p j = 1

/-- §5.1, p. 25: the price law with finite support and weights `p`. -/
def gridMech (a p : ℕ → ℝ) (n : ℕ) : Measure ℝ :=
  ∑ j ∈ Finset.range n, ENNReal.ofReal (p j) • Measure.dirac (a j)

/-- The set `P_A` of price laws on the finite grid. -/
def GridClass (a : ℕ → ℝ) (n : ℕ) : Set (Measure ℝ) :=
  {Ψ | IsMech Ψ ∧ ∃ p : ℕ → ℝ, GridWeights p n ∧ Ψ = gridMech a p n}

/-- Largest gap of the grid `a₀, ..., a_N`; `0` if `N = 0` (unused). -/
def gridGap (a : ℕ → ℝ) (N : ℕ) : ℝ :=
  sSup ((fun i : Fin N => a (i.val + 1) - a i.val) '' Set.univ)

end
end SinglePointPricing.Det.Supplement
Source
Allouah, Bahamou & Besbes, Optimal Pricing with a Single Point, arXiv:2103.05611v2, §5.1, p. 25; Proposition F-2, p. App-40

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