Reader Selection Monad #
A pure mathematical monad: a family of functions indexed by ι, composed with a data-dependent selector. This is the Reader monad with indexed selection.
The three monad laws hold definitionally (by rfl).
This structure underlies MeasurableBatchLearner composition in the learning theory layer, but the monad itself is pure mathematics with zero dependencies.
Pure: constant family (selector is irrelevant).
Equations
- ReaderSel.pure i₀ f = { family := fun (x : ι) => f, sel := fun (x : α) => i₀ }