The equipartition of the unit interval into m cells #
unitInterval.cellIdx m x is the index of the cell containing x when [0, 1] is cut into m
pieces of equal length,
[0, 1/m), [1/m, 2/m), …, [(m-1)/m, 1].
The cells are the fibres of cellIdx m, and each has volume 1/m. This is the measure-theoretic
content behind reading a finite object as an object on the canonical carrier (I, volume): a
finite graph as a step graphon, a finite partition as a measurable one, an m-point law as a law
on the unit interval.
The clipping at the top #
cellIdx m x = min ⌊m * x⌋₊ (m - 1). The min is what closes the top cell: without it x = 1
would be a fibre of its own and the fibres would no longer be m sets of equal measure. Clipping,
rather than special-casing x = 1, also keeps the definition total in m: at m = 0 it returns
0, but that value has no cell-index meaning; results that interpret it as a valid cell index or
compute a cell volume carry positivity or range hypotheses.
So the fibres are the half-open cells [i/m, (i+1)/m) for i + 1 < m, together with the closed
top cell [(m-1)/m, 1] = Set.Ici ((m-1)/m).
Main definitions #
TauCeti.unitInterval.cellIdx— the cell index;TauCeti.unitInterval.cellFin— the same index as an element ofFin m, for positivem.
Main results #
TauCeti.unitInterval.cellIdx_lt— the index is a valid one:cellIdx m x < mwhen0 < m;TauCeti.unitInterval.cellIdx_eq_iff_of_succ_ltandTauCeti.unitInterval.cellIdx_eq_sub_one_iff— the fibres below the top cell, and the top fibre;TauCeti.unitInterval.measurable_cellIdx— the index depends measurably on the point;TauCeti.unitInterval.measurableSet_preimage_cellIdx— every cell is measurable;TauCeti.unitInterval.volume_preimage_cellIdx— every cell has volume1/m;TauCeti.unitInterval.measurePreserving_cellFin— the cell index carriesvolumeto the uniform measure onFin m;TauCeti.unitInterval.integral_pi_comp_cellIdx_eq_inv_smul_sum— a function of the cell indices of finitely many independent uniform points integrates to the average of its values overV → Fin m.
References #
- Roadmap:
TauCetiRoadmap/DenseGraphLimits/README.md— the(I, volume)carrier on whichfiniteGraphGraphon(Layer 1/7) and the Layer-2 step graphons are built. Nothing here mentions graphons.
The index of the cell containing x for the partition of [0, 1] into the m equal cells
[0, 1/m), [1/m, 2/m), …, [(m-1)/m, 1].
The min closes the top cell, so that x = 1 is not a fibre of its own; see the module docstring.
At m = 0 the value is 0 and carries no cell-index meaning; results that interpret the value as
a valid cell index or compute cell volume require positivity or range hypotheses.
Instances For
The cell index is a valid index into Fin m.
The cell index depends measurably on the point.
Each cell is measurable.
The Fin m-valued cell index depends measurably on the point.
The cells are equally likely. The Fin m-valued cell index is measure preserving from
(I, volume) to the uniform probability measure on Fin m: this is how an object on m equally
weighted points is read on the unit interval.
Independent uniform points, read through their cells. The integral of a function of the
cell indices of #V independent uniform points on [0, 1] is the average of that function over
all #V-tuples of cells.
This is the transfer that turns an integral over the continuous carrier (I, volume) into a finite
sum, and it is where the equal volume of the cells is consumed. The integrand's argument is
ℕ-valued, so no 0 < m hypothesis is hidden in a Fin m-valued cell map; the sum on the right
ranges over V → Fin m, which is where the finiteness lives.