NLAlib.Ops.isMeasurableIndex_toNat
Library · theorem
The canonical conversion to an index (PL4): an index that is the floor of a nonnegative measurable decoding of the cell it reads is measurable.
NLAlib.Ops.isMeasurableIndex_toNat {K Op Tst : Type} [Inhabited K] [MeasurableSpace K]
{I : Ops.Interp Op Tst K} {q : Tst} {dec : K → ℝ} (hdec : Measurable dec)
(hq :
∀ (a : List (ℕ × ℕ)) (m : Ops.Mem K),
I.index q a m =
(m.readBlocks a (List.map (fun x ↦ 1) a)).bind fun xs ↦ Ops.toNatFn dec xs.flatten) :
I.IsMeasurableIndex qImport NLAlib.Ops.Catalog.ScalarMeasurable.