Spatial #
Concrete spatial inventory and dyadic quantile selection #
This module connects the recursive transport construction to an inventory of
actual points. A supply configuration retains both each real location and
its certified depth-L cell label. The recursive quantile selector is given
a finite leaf index, and its law under Lebesgue-uniform demand is computed
exactly, including zero-mass leaves.
Split the left-to-right leaves of a depth-L + 1 tree into two blocks.
Equations
Instances For
The mass of a specified leaf, indexed from left to right.
Equations
Instances For
Total mass strictly to the left of a specified leaf.
Equations
Instances For
The finite leaf index selected by the same recursive mass comparisons as
selectedLeaf and quantile.
Equations
- One or more equations did not get rendered due to their size.
- (FD1D.DyadicMass.leaf mass).selectedIndex x✝ = 0
Instances For
The real endpoint returned by selectedLeaf is the indexed cell's left endpoint.
The selected endpoint never lies to the right of the continuous quantile.
Away from the single boundary point u = 0, a leaf is selected exactly on
its right-closed cumulative-mass interval. This formulation handles
zero-mass leaves without any positivity assumption on individual masses.
Lebesgue-uniform demand on the unit interval.
Equations
Instances For
Raw singleton mass of the finite pushforward by selectedIndex.
Equations
Instances For
The pushforward of Lebesgue-uniform demand assigns exactly the declared mass
to every leaf. The only discrepancy between recursive ≤ tie-breaking and
the half-open mass intervals is the null singleton u = 0.
The finite law induced by the demand-driven recursive leaf selector.
Equations
- q.selectedIndexLaw hq = { mass := q.selectedIndexPushforwardMass, mass_nonneg := ⋯, sum_mass := ⋯ }
Instances For
Exact spatial configurations #
The closed cell certified for a labeled supply point.
Equations
Instances For
An exact finite supply configuration: m labeled real points, each in the
unit interval and carrying a certified depth-L leaf label.
Spatial coordinate of each item in the supply configuration.
- leaf : Fin m → DyadicNode L
Dyadic cell containing each item in the supply configuration.
Instances For
Number of configured supply points carrying one leaf label.
Instances For
Count projection from exact locations to the finite inventory chain.
Equations
- C.countState = ⟨C.leafCount, ⋯⟩
Instances For
A total representative of a leaf. If the leaf is empty, the supplied fallback is returned; the later a.e. feasibility theorem proves that this case occurs only on the null exceptional demand set.
Equations
- C.representative fallback i = if h : ∃ (j : Fin m), C.leaf j = i then Classical.choose h else fallback
Instances For
Every positive-mass leaf contains an actual configured supply point.
Instances For
The supply label selected by a uniform demand coordinate.
Equations
- C.selectedSupplyIndex q fallback u = C.representative fallback (q.selectedIndex u)
Instances For
The actual configured supply location selected by the policy.
Equations
- C.selectedSupplyPoint q fallback u = C.location (C.selectedSupplyIndex q fallback u)
Instances For
Except at the zero demand boundary, the total representative really carries the recursively selected leaf label.
The selected configured item is feasible for almost every uniform demand.
The continuous quantile belongs to the cell indexed by selectedIndex.
For every nonexceptional demand, the actual selected point and continuous
quantile lie in one and the same depth-L cell.
The one-cell coupling bound holds almost everywhere under uniform demand.
Expected distance from a uniform demand to the actual selected supply point.
Equations
Instances For
Selecting an actual occupied point costs at most the exact CDF quantile area plus one cell width. There is only one discretization term.
Matching the finite deletion kernel #
If the dyadic leaf masses are a deletion rule's probabilities at the count projection, support by occupied concrete leaves follows automatically.
The selected leaf marginal is exactly the deletion marginal.
After an independent uniform arrival leaf, the concrete selected-leaf marginal produces exactly the count transition kernel.
Actual-point transport for a configuration realizing a deletion rule: the empty-leaf condition needed for feasibility is discharged by the rule.
Prefix a relative dyadic node by an absolute node.