NLA-lib Explorer

NLAlib.Ops.Mem.measurable_readBlocks_two_map

Library · theorem

A Boolean of two cells read from the memory, measurable on the pair: measurable.

NLAlib.Ops.Mem.measurable_readBlocks_two_map {K : Type} [Inhabited K] [MeasurableSpace K]
  {x y : ℕ × ℕ} {φ : List (List K) → Bool} (hφ : MeasurableSet {p | φ [[p.1], [p.2]] = true}) :
  (Measurable fun m ↦ (Option.map φ (m.readBlocks [x, y] [1, 1])).isSome) ∧
    Measurable fun m ↦ (Option.map φ (m.readBlocks [x, y] [1, 1])).getD false

Full source on GitHub

Import NLAlib.Ops.Catalog.ScalarMeasurable.