NLA-lib Explorer

NLAlib.Ops.Interp.IsMeasurable.measurable_testAt

Library · theorem

The test of a loop or a branch is measurable in the memory.

NLAlib.Ops.Interp.IsMeasurable.measurable_testAt {Op Tst K : Type} [Inhabited K] [MeasurableSpace K]
  {I : Ops.Interp Op Tst K} (hI : I.IsMeasurable) (q : Tst) (ds : List Ops.IExp)
  (ins : List Ops.Operand) (ρ : Ops.Env) :
  (Measurable fun m ↦ (I.testAt q ds ins ρ m).isSome) ∧
    Measurable fun m ↦ (I.testAt q ds ins ρ m).getD false

Full source on GitHub

Import NLAlib.Ops.Logic.Probabilistic.