Assumption 4 and Theorem 4, p. 16 — law of cZ, limiting cost curve, double integral in (18)
DefinitionLargeBSP_Homog_Supplement_Mixturebundle-size-pricingp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1probability
Objects of the cost-dependent valuation model . Let have law and have law , independently, both nonnegative.
- Valuation law. is the law of . Its mixture form is , where the integrand at is , because the product is then .
- Limiting cost. With , for ,
- Limiting gain. For , the double integral in (18) is
At the bundle is empty, so . Items with contribute to both integrals.
Formalization Note The cases and are separate branches. Lean's and would otherwise give a wrong atom and, for an unbounded , a wrong empty-bundle cost. The law of is the image of the product measure under multiplication.
Definition code
import Mathlib
import Definitions.Def_LargeBSP_Homog_Supplement_Costs
open MeasureTheory ProbabilityTheory Filter
open scoped Topology
namespace LargeBSP.Homog.Supplement
/-- Law of C Z for independent C and Z; this retains the atom due to zero costs. -/
noncomputable def productLaw (κ ρ : Measure ℝ) : Measure ℝ :=
Measure.map (fun az : ℝ × ℝ => az.1 * az.2) (κ.prod ρ)
/-- The mixture cdf, with the deterministic zero product treated explicitly. -/
noncomputable def mixtureCdf (κ ρ : Measure ℝ) (x : ℝ) : ℝ :=
∫ a, (if a = 0 then (if 0 ≤ x then 1 else 0) else cdf ρ (x / a)) ∂κ
/-- Limiting cost curve, Theorem 4. At t=0 there is an empty bundle; the cutoff is +∞,
not Lean's default value for the real infimum of an empty quantile set. -/
noncomputable def mixtureCost (κ ρ : Measure ℝ) (t : ℝ) : ℝ :=
if t = 0 then 0 else
∫ a, (if a = 0 then 0 else
a * (1 - cdf ρ (quantile (cdf (productLaw κ ρ)) (1 - t) / a))) ∂κ
/-- The literal double integral in (18), with its empty-bundle and zero-cost cases. -/
noncomputable def mixtureGain (κ ρ : Measure ℝ) (t : ℝ) : ℝ :=
if t = 0 then 0 else
∫ a, (if a = 0 then 0 else
∫ z in Set.Ioi (quantile (cdf (productLaw κ ρ)) (1 - t) / a),
a * (z - 1) ∂ρ) ∂κ
end LargeBSP.Homog.Supplement
Source
Abdallah, Asadpour & Reed, Large-Scale Bundle-Size Pricing: A Theoretical Analysis, author's manuscript (2021; Oper. Res. doi:10.1287/opre.2020.2097), SHA-256 1dfcad7675689de2118550b720b7488b45737ecd5ee5cd6085e5b5d0250d40cd, Assumption 4 and Theorem 4, p. 16; (A10), p. A5; (A12), p. A6