NLA-lib Explorer

NLAlib.Krylov.CG.HSPCG.Rounded.satisfies_preconditioner_oracle

Library · theorem

A primitive implemented by the actual fixed oracle function satisfies its local output contract. This premise specifies only one tagged matrix-vector call, not a solver run.

NLAlib.Krylov.CG.HSPCG.Rounded.satisfies_preconditioner_oracle {Op Tst : Type}
  [Ops.Has (Ops.Tagged Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp) Op] {n : ℕ}
  {P : Matrix (Fin n) (Fin n) ℝ} {O : MatvecOracle P} {I : Ops.Interp Op Tst ℝ}
  (h :
    I.IsFn Ops.Mode.total (Ops.Tagged.inj Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp.matvec)
      (Ops.matvecFn O.mulVec) (Ops.MatvecOperands n n)) :
  I.Satisfies Ops.Mode.total (Ops.Tagged.inj Krylov.CG.HSPCG.Preconditioner Ops.OperatorOp.matvec)
    ((Krylov.CG.HSPCG.Rounded.oracleRel O).spec (Ops.MatvecOperands n n))

Full source on GitHub

Import NLAlib.Krylov.CG.HSPCG.Rounded.Preconditioner.