NLA-lib Explorer

NLAlib.Krylov.CG.HSPCG.Rounded.step_writes_function

Library · theorem

Standard rounding Relative-error BLAS Oracle: matrix–vector product

A total active rounded step in operand form, on a stored state: it retains both actual pairings as the fixed scalar dot kernel on the initial and final finite vectors, so identical vector operands give identical recomputed incoming and preceding outgoing pairings. A corollary of the judgment of the round, in the form the guarded round of the solver composes.

NLAlib.Krylov.CG.HSPCG.Rounded.step_writes_function {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.OperatorOp Op]
  [Ops.Has (Ops.Tagged Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp) Op] {F : Ops.Machine ℝ}
  {n : ℕ} {em u : ℝ} {ε : Ops.Blas1Err} {A P : Matrix (Fin n) (Fin n) ℝ} {O : MatvecOracle P}
  {I : Ops.Interp Op Tst ℝ} {ok : ℕ → Prop} (hS : Ops.IsScalar F I) (hF : Ops.StdModel u id F)
  (hB : Ops.IsBlas1 id ε ok I) (hok : ok n) (hA : Ops.IsMatvec id A (em * specNorm A) I)
  (hP :
    I.IsFn Ops.Mode.total (Ops.Tagged.inj Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp.matvec)
      (Ops.matvecFn O.mulVec) (Ops.MatvecOperands n n))
  (hD :
    I.IsFn Ops.Mode.total (Ops.Has.inj Ops.Blas1Op.dot) (Ops.dotSeqFn F)
      (Ops.OutApart fun x ↦ True))
  {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {x r z p : ℕ × ℕ} {s : PCGState ℝ (Fin n)} (hxr : x.1 ≠ r.1)
  (hxz : x.1 ≠ z.1) (hxp : x.1 ≠ p.1) (hrz : r.1 ≠ z.1) (hrp : r.1 ≠ p.1) (hzp : z.1 ≠ p.1)
  (hl : μ.Live [x, r, z, p]) (hstate : Krylov.CG.HSPCG.StoresState id n x r z p s μ)
  (hdom : Krylov.CG.HSPCG.Rounded.Margins em (ε.dot n) A s)
  (hz : μ.Room [x, r, z, p] [n, n, n, n]) :
  Ops.Writes Ops.Mode.total I τ Krylov.CG.HSPCG.step (Ops.Env.frame [n] [x, r, z, p, x, r, z, p])
    (Ops.Fp.blocks [x, r, z, p] [n, n, n, n])
    (fun μ' ↦
      μ'.pos = μ.pos ∧
        ∃ s' rho rho',
          Krylov.CG.HSPCG.StoresState id n x r z p s' μ' ∧
            Krylov.CG.HSPCG.Rounded.RoundBounds em u (ε.dot n) ε.axpy A O s s' rho rho' ∧
              rho = Krylov.CG.HSPCG.Rounded.pairingValue F s.r s.z ∧
                rho' = Krylov.CG.HSPCG.Rounded.pairingValue F s'.r s'.z)
    μ

Full source on GitHub

Import NLAlib.Krylov.CG.HSPCG.Rounded.Step.