Paper-facing model for fully dynamic matching on the line #
This module gives a compact, Mathlib-only statement vocabulary for the main theorem. An online policy sees the current inventory and current demand, selects one live supply, pays their distance, and replaces that supply by an independent uniform replenishment. The path measure below is the homogeneous Markov law driven by iid uniform demand/replenishment pairs.
A labeled inventory of m supplies in [0,1].
Equations
- FD1D.V5.Palomar.Inventory m = (Fin m → ↑unitInterval)
Instances For
One period's independent demand and replenishment coordinates.
Equations
Instances For
The law of an independent uniform demand/replenishment pair.
Instances For
An online matching policy. The selected label depends only on the current inventory and current demand. The second measurability field records the exact coordinate replacement map used to construct its Markov law.
- select : Inventory m → ↑unitInterval → Fin m
Selected inventory label as a function of the current state and uniform demand.
- selectMeasurable : Measurable fun (p : Inventory m × ↑unitInterval) => self.select p.1 p.2
- stepMeasurable : Measurable fun (p : Inventory m × Noise) => Function.update p.1 (self.select p.1 p.2.1) p.2.2
Instances For
Replace the selected supply by the replenishment coordinate.
Equations
- FD1D.V5.Palomar.step P s z = Function.update s (P.select s z.1) z.2
Instances For
The pre-match inventory together with the current random coordinates.
Equations
Instances For
Apply the current noise and attach fresh noise for the next period.
Equations
- FD1D.V5.Palomar.processAdvance P p = (FD1D.V5.Palomar.step P p.1.1 p.1.2, p.2)
Instances For
The homogeneous one-period kernel of an online policy.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Attach an independent first demand/replenishment pair to an inventory law.
Equations
Instances For
A homogeneous kernel viewed as a history-dependent kernel.
Equations
- FD1D.V5.Palomar.historyKernel P n = (FD1D.V5.Palomar.processKernel P).comap (fun (h : ↥(Finset.Iic n) → FD1D.V5.Palomar.ProcessState m) => h ⟨n, ⋯⟩) ⋯
Instances For
The path-space law generated from an arbitrary initial inventory law.
Equations
Instances For
The trajectory law from a fixed initial inventory.
Equations
Instances For
The iid uniform law of the inventory produced by scheduled replacement.
Equations
- FD1D.V5.Palomar.uniformInventoryLaw m = MeasureTheory.Measure.pi fun (x : Fin m) => MeasureTheory.volume
Instances For
The policy trajectory after iid uniform initialization.
Equations
Instances For
The distance paid in one period.
Instances For
Root mean square one-period cost from a fixed initial inventory.
Equations
- FD1D.V5.Palomar.trajectoryRMSCostFromState P s₀ t = √(∫ (path : ℕ → FD1D.V5.Palomar.ProcessState m), FD1D.V5.Palomar.processCost P (path t) ^ 2 ∂FD1D.V5.Palomar.trajectoryFromState P s₀)
Instances For
Average cost over N periods: scheduled replacement first, followed by the
online policy on the resulting iid uniform inventory.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The manuscript's regularization parameter.
Equations
- FD1D.V5.Palomar.regularization m = 2000 * Nat.clog 2 (m + 1)
Instances For
The dyadic tree depth used by the policy.
Equations
- FD1D.V5.Palomar.treeDepth m = Nat.log 2 (max 1 (m / FD1D.V5.Palomar.regularization m))
Instances For
The dyadic leaf count used by the policy.
Equations
Instances For
Abstract primitive-operation count in the real-arithmetic model.
Equations
- FD1D.V5.Palomar.operationCount m = 20 * (FD1D.V5.Palomar.treeDepth m + 1)
Instances For
Abstract memory-word count in the real-arithmetic model.
Equations
Instances For
One explicit universal constant for both cost bounds.
Equations
- FD1D.V5.Palomar.universalConstant = 72000 / Real.log 2
Instances For
The two quantitative guarantees for one inventory size.
- arbitraryInitialRMS (s₀ : Inventory m) : Filter.limsup (trajectoryRMSCostFromState P s₀) Filter.atTop ≤ universalConstant * Real.log ↑(m + 1) / ↑m
- initializedFiniteHorizon (N : ℕ) : 2 * m ^ 2 ≤ N → ∀ (initial demand : Inventory m), ∫ (path : ℕ → ProcessState m), initializedAverageCost P initial demand N path ∂uniformTrajectory P ≤ universalConstant * Real.log ↑(m + 1) / ↑m
Instances For
Explicit and asymptotic resource accounting for the policy family.
- memoryExplicit {m : ℕ} : 1 ≤ m → memoryCount m ≤ 5 * m
- operationsAsymptotic : (fun (m : ℕ) => ↑(operationCount m)) =O[Filter.atTop] fun (m : ℕ) => Real.log ↑m
Instances For
Exact compared content of the formalized stochastic cost upper bound.
- policy (m : ℕ) : 2 ≤ m → ∃ (P : OnlinePolicy m), PolicyGuarantees m P