NLA-lib Explorer

NLAlib.Ops.Interp.IsMeasurable.measurable_eval

Library · theorem

Runs are measurable: under a measurable interpretation, the success flag and the final memory of the run of a statement are measurable functions of the tape and the initial memory.

NLAlib.Ops.Interp.IsMeasurable.measurable_eval {Op Tst K : Type} [Inhabited K] [MeasurableSpace K]
  {I : Ops.Interp Op Tst K} (hI : I.IsMeasurable) (c : Ops.Stmt Op Tst) (ρ : Ops.Env) :
  (Measurable fun x ↦ (Ops.eval I x.1 c ρ x.2).isSome) ∧
    Measurable fun x ↦ (Ops.eval I x.1 c ρ x.2).getD x.2

Full source on GitHub

Import NLAlib.Ops.Logic.Probabilistic.