NLAlib.Krylov.CG.residualCache_wp_binaryQuantized
Library · theorem
A general binary-format quantizer certifies the same kernel, on a mathematical real carrier. The nearest-selector law fixes the tie policy independently of execution. An end statement in operand form: no other declaration of the library is proved from it.
NLAlib.Krylov.CG.residualCache_wp_binaryQuantized {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.Blas1Op Op] [Ops.Apart Ops.Blas1Op Ops.ScalarOp Op] (fmt : Float.Model.Format)
{round : ℝ → ℤ} (hRound : ∀ (a : ℝ), Computation.AbsRelErr 0 (1 / 2) a ↑(round a))
{I : Ops.Interp Op Tst ℝ} (hI : Ops.IsScalar (Ops.BinaryQuantized.machine fmt round) I)
{τ : Ops.Tape ℝ} {n : ℕ} {r z : ℕ × ℕ} {m : Ops.Mem ℝ} {rs : List ℝ} (hl : m.Live [r, z])
(hr : m.store.readBlock r.1 r.2 n = some rs) (hz : z.2 < m.store.len z.1)
(hRange :
(1 + 2⁻¹ ^ fmt.mantissaBits) ^ (2 * n) * ‖WithLp.toLp 2 (Ops.decv id n rs)‖ ^ 2 +
↑n * (1 + 2⁻¹ ^ fmt.mantissaBits) ^ (2 * n) * (2 + 2⁻¹ ^ fmt.mantissaBits) *
(2 ^ fmt.minExponent / 2) ≤
fmt.maxFinite) :
Ops.Wp Ops.Mode.total I τ (Ops.Stmt.link Ops.Blas.sumSeqTable Ops.dotSum)
(Ops.Env.frame [n] [r, r, z])
(fun out ↦
∃ cache,
out = m.upd z cache ∧
out.store.get z.1 z.2 = some cache ∧
Computation.AbsRelErr ((1 + 2⁻¹ ^ fmt.mantissaBits) ^ (2 * n) - 1)
(↑n * (1 + 2⁻¹ ^ fmt.mantissaBits) ^ (2 * n) * (2 + 2⁻¹ ^ fmt.mantissaBits) *
(2 ^ fmt.minExponent / 2))
(‖WithLp.toLp 2 (Ops.decv id n rs)‖ ^ 2) cache)
mImport NLAlib.Krylov.CG.ResidualCacheFormats.