NLA-lib Explorer

NLAlib.Ops.Mem.measurable_of

Library · theorem

A map into memories is measurable if its position, its number of buffers, its buffer lengths and its cells are.

NLAlib.Ops.Mem.measurable_of {K : Type} [Inhabited K] [MeasurableSpace K] {X : Type}
  [MeasurableSpace X] {f : X → Ops.Mem K} (hp : Measurable fun x ↦ (f x).pos)
  (hl : Measurable fun x ↦ List.length (f x).store)
  (hb : ∀ (b : ℕ), Measurable fun x ↦ (f x).store.len b)
  (hc :
    ∀ (z : ℕ × ℕ),
      Measurable fun x ↦
        (((f x).store.get z.1 z.2).isSome, ((f x).store.get z.1 z.2).getD default)) :
  Measurable f

Full source on GitHub

Import NLAlib.Ops.RunMeasurable.