NLAlib.Ops.MeasurableRun.guard
Library · theorem
A guarded result: a step that succeeds on a measurable set, with a measurable result.
NLAlib.Ops.MeasurableRun.guard {K : Type} [Inhabited K] [MeasurableSpace K]
{p : Ops.Tape K → Ops.Mem K → Prop} [(τ : Ops.Tape K) → (m : Ops.Mem K) → Decidable (p τ m)]
{g : Ops.Tape K × Ops.Mem K → Ops.Mem K} (hp : MeasurableSet {x | p x.1 x.2})
(hg : Measurable g) : Ops.MeasurableRun fun τ m ↦ if p τ m then some (g (τ, m)) else noneImport NLAlib.Ops.RunMeasurable.