NLAlib.Ops.MeasurableRun.whileIter
Library · theorem
The loop with early exit of measurable steps, followed by a measurable continuation indexed by the number of rounds done.
NLAlib.Ops.MeasurableRun.whileIter {K : Type} [Inhabited K] [MeasurableSpace K]
{T : ℕ → Ops.Mem K → Option Bool}
(hT : ∀ (i : ℕ), (Measurable fun m ↦ (T i m).isSome) ∧ Measurable fun m ↦ (T i m).getD false)
{B C : ℕ → Ops.Tape K → Ops.Mem K → Option (Ops.Mem K)} (hB : ∀ (i : ℕ), Ops.MeasurableRun (B i))
(hC : ∀ (i : ℕ), Ops.MeasurableRun (C i)) (r i : ℕ) :
Ops.MeasurableRun fun τ m ↦
(Ops.whileIter (fun i m ↦ Option.map (fun b ↦ (b, m)) (T i m)) (fun i ↦ B i τ) r i m).bind
fun jm ↦ C jm.1 τ jm.2Import NLAlib.Ops.RunMeasurable.