CompactQuantile
Abstract
The generalized inverse of a real CDF pushes Lebesgue measure on the open unit interval to the original probability measure. Atoms and singular laws are included. The midpoint approximation uses bounded continuous real tests; integration against the quantile is stated for arbitrary normed real vector targets with the declared measurability assumption.
The construction of Daniel Lyng in Econlib revision d7bd9477476cade1c6695c8891746048ceddc52f is adapted under Apache-2.0. Apache-2.0 license: docs/reports/licenses/econlib-strassen/LICENSE.txt. Strassen (1965) provides the historical martingale-transport context. In formulas, coe denotes the canonical coercion, dmu the integration measure, iUnion indexed union, smul scalar multiplication, and ae almost everywhere. Namespace-qualified Lean names and interval constructors retain their mathematical meaning; separated identifier words denote the corresponding underscored Lean constant.
Definition 1.1 (quantile).
Formalization. D5/S3/Analytic/Probability/CompactQuantile.quantile (✓ std3).
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
The lower generalized inverse of the cumulative distribution function; the infimum convention defines it for every real probability level, while order and transport results use the open unit interval.
Lemma 1.2 (set_nonempty).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.set_nonempty (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
For every probability level below one, some finite right endpoint has cumulative mass at least that level.
Lemma 1.3 (quantile_le_iff).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.quantile_le_iff (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
Inside the open unit interval, the generalized inverse lies below x exactly when the cumulative mass at x reaches the requested probability level.
Lemma 1.4 (monotoneOn_quantile).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.monotoneOn_quantile (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
The generalized inverse is increasing on the open unit interval.
Lemma 1.5 (aemeasurable_quantile_restrict_Ioo).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.aemeasurable_quantile_restrict_Ioo (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
The generalized inverse is almost-everywhere measurable for Lebesgue measure restricted to the open unit interval.
Theorem 1.6 (map_quantile_volume_Ioo).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.map_quantile_volume_Ioo (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
Pushing Lebesgue probability on the open unit interval through the generalized inverse recovers the entire original law, including its atoms.
Theorem 1.7 (integral_eq_integral_quantile).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.integral_eq_integral_quantile (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
An almost-everywhere strongly measurable function has the same Bochner integral under the original law as its composition with the quantile under unit-interval Lebesgue measure. The target is an arbitrary real normed vector space; no extra integrability premise is inserted.
Definition 1.8 (binMidpoint).
Formalization. D5/S3/Analytic/Probability/CompactQuantile.binMidpoint (✓ std3).
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
The midpoint of the uniform bin containing t, using the natural-number floor and real division. The definition is total even at n equal to zero.
Lemma 1.9 (bins_pairwise_disjoint).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.bins_pairwise_disjoint (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
The n half-open equal bins indexed by Fin n are pairwise disjoint, including the empty family at n equal to zero.
Lemma 1.10 (iUnion_bins_eq_Ico).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.iUnion_bins_eq_Ico (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
For every positive bin count, the union of the half-open equal bins is precisely the half-open unit interval.
Definition 1.11 (stepFun).
Formalization. D5/S3/Analytic/Probability/CompactQuantile.stepFun (✓ std3).
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
Evaluate the test function at the quantile of the midpoint of the bin containing t.
Lemma 1.12 (countable_not_continuousWithinAt_quantile).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.countable_not_continuousWithinAt_quantile (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
The discontinuity set of the increasing generalized inverse within the open unit interval is countable.
Theorem 1.13 (tendsto_integral_of_quantile_midpoint).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.tendsto_integral_of_quantile_midpoint (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
For a bounded continuous real test, equal-weight midpoint quantile sums converge to its expectation under the original law.
Definition 1.14 (stopLoss).
Formalization. D5/S3/Analytic/Probability/CompactQuantile.stopLoss (✓ std3).
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
The expected positive part of the excess over a threshold, defined by the real Bochner integral.
Lemma 1.15 (stopLoss_nonneg).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.stopLoss_nonneg (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
Every stop-loss value is nonnegative; the assertion uses the total integral convention and needs no finiteness assumption.
Lemma 1.16 (stopLoss_integrable).
Proof. Machine-checked in Lean as D5/S3/Analytic/Probability/CompactQuantile.stopLoss_integrable (✓ std3). ∎
Citation. Daniel Lyng (2026). Econlib compact scalar Strassen construction. URL: https://github.com/danlyng/Econlib/blob/d7bd9477476cade1c6695c8891746048ceddc52f/Econlib/Probability/Order/Strassen.lean.
Commentary.
An integrable real coordinate under a finite measure makes every positive-part excess integrable.
References
- Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.aemeasurable_quantile_restrict_Ioo - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.binMidpoint - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.bins_pairwise_disjoint - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.countable_not_continuousWithinAt_quantile - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.iUnion_bins_eq_Ico - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.integral_eq_integral_quantile - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.map_quantile_volume_Ioo - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.monotoneOn_quantile - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.quantile - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.quantile_le_iff - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.set_nonempty - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.stepFun - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.stopLoss - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.stopLoss_integrable - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.stopLoss_nonneg - Truth anchor:
D5/S3/Analytic/Probability/CompactQuantile.tendsto_integral_of_quantile_midpoint