NLAlib.Ops.BackwardStep.loop_rel
Library · theorem
A counted loop with a relative backward error: let g be a size of the states that grows by at most the backward error (R_\varepsilon(a, \mathbf{b}) implies g(\mathbf{b}) \le g(a) + \varepsilon). If round i is, for every bound \mathbf{M}, a backward step from S i and g \le \mathbf{M} to S (i + 1) with error \nu \mathbf{M}, then N rounds from S 0 and g \le \mathbf{M}_0 end in S N with g \le (1 + \nu)^N \mathbf{M}_0, with error (1 + \nu)^N \mathbf{M}_0 - \mathbf{M}_0.
NLAlib.Ops.BackwardStep.loop_rel.{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} {body : Ops.Stmt Op Tst} {N : ℕ}
(hn : Ops.IExp.eval ρ.idx n = some N) (S : ℕ → α → Ops.Mem K → Prop) (g : α → ℝ)
(hg : ∀ {ε : ℝ} {a b : α}, R ε a b → g b ≤ g a + ε) (ν M₀ : ℝ)
(h :
∀ i < N,
∀ (M : ℝ),
Ops.BackwardStep md I τ body (ρ.pushIdx i) F R (fun a m ↦ S i a m ∧ g a ≤ M) (S (i + 1))
(ν * M)) :
Ops.BackwardStep md I τ (Ops.Stmt.loop n body) ρ F R (fun a m ↦ S 0 a m ∧ g a ≤ M₀)
(fun b m ↦ S N b m ∧ g b ≤ (1 + ν) ^ N * M₀) ((1 + ν) ^ N * M₀ - M₀)Import NLAlib.Ops.Logic.Backward.