NLAlib.Ops.Examples.backwardStep_loop_ite
Library · theorem
A loop of conditional rounds, in the shape of the decoupling loop of shifted QR ("iterate unless the scan says the matrix is decoupled"): the test at round i has an outcome described by T i; on a true outcome the round runs c, a backward step with error u \ge 0 from S i to S (i + 1); on a false outcome nothing runs, and the outcome alone gives S (i + 1). The loop of N rounds is a backward step with error N u.
NLAlib.Ops.Examples.backwardStep_loop_ite.{u_1} {Op Tst K : Type} {α : Type u_1} {md : Ops.Mode}
{I : Ops.Interp Op Tst K} {τ : Ops.Tape K} {ρ : Ops.Env} {F : Ops.Fp} {R : ℝ → α → α → Prop}
(hR : Ops.IsBackwardErrorRel R) {n : Ops.IExp} {N : ℕ} (hn : Ops.IExp.eval ρ.idx n = some N)
{q : Tst} {ds : List Ops.IExp} {ins : List Ops.Operand} {c : Ops.Stmt Op Tst} {u : ℝ} (hu : 0 ≤ u)
(S : ℕ → α → Ops.Mem K → Prop) (T : ℕ → Bool → α → Ops.Mem K → Prop)
(htest :
∀ i < N,
∀ (a : α) (m : Ops.Mem K),
S i a m → md.Holds (I.testAt q ds ins (ρ.pushIdx i) m) fun b ↦ T i b a m)
(hc :
∀ i < N,
Ops.BackwardStep md I τ c (ρ.pushIdx i) F R (fun a m ↦ S i a m ∧ T i true a m) (S (i + 1)) u)
(hstop : ∀ i < N, ∀ (a : α) (m : Ops.Mem K), S i a m → T i false a m → S (i + 1) a m) :
Ops.BackwardStep md I τ (Ops.Stmt.loop n (Ops.Stmt.ite q ds ins c Ops.Stmt.skip)) ρ F R (S 0)
(S N) (↑N * u)Import NLAlib.Ops.Examples.Backward.