A total pointer from a family of cells #
Category: 1-Mathlib. No CSD content.
A recurring pattern: a probability space is carved into finitely many disjoint measurable cells carrying prescribed weights, and one wants a total readout function whose fibres are those cells. Totality is the only wrinkle — the cells generally cover the space up to a null set, not exactly — so the leftover is sent to a default index and shown not to matter.
Extracted at the second consumer (CONVENTIONS.md §9, rule of two):
RecordLayer.cdfDeIsolationInteraction— the CDF cells on the fibreℝ;- the competing-clock race cells on the fibre
Fin (n+1) → ℝ(Mathlib/Probability/CompetingExponentials.lean).
Both need exactly cellPointer and measure_cellPointer_preimage.
The total pointer of a cell family: report the cell containing x, or the default i₀
when x lies in none of them.
Equations
- MeasureTheory.cellPointer C i₀ x = if h : ∃ (i : ι), x ∈ C i then h.choose else i₀
Instances For
The pointer's fibre over i: the cell, together with the leftover when i is the default.
★ The pointer's fibres carry the cell weights. The leftover is null because the cells are disjoint and their weights already exhaust the probability, so the default index gains nothing.