NLA-lib Explorer

NLAlib.Krylov.CG.HSPCG.StoredContext.guarded_laws

Library · theorem

Exact PCG interfaces for both decoded raw matrices, obtained through the shared primitive bridge before applying the original numerical word theorem.

NLAlib.Krylov.CG.HSPCG.StoredContext.guarded_laws
  {I : Ops.Interp Ops.RCLikeBlas.Operation Ops.CmpTst ℝ}
  (hS : Ops.IsScalar Ops.RCLikeBlas.machine I) (hB : Ops.RCLikeBlas.IsExact I)
  (context : List (ℕ × ℕ)) (systemIndex preconditionerIndex : Fin context.length) {n : ℕ}
  {C : ℕ → Prop} (reference : Ops.Store ℝ) (systemRaw preconditionerRaw : List ℝ)
  (hc : ∀ z ∈ context, C z.1)
  (hA : reference.readBlock context[systemIndex].1 context[systemIndex].2 (n * n) = some systemRaw)
  (hP :
    reference.readBlock context[preconditionerIndex].1 context[preconditionerIndex].2 (n * n) =
      some preconditionerRaw) :
  have J :=
    Krylov.CG.HSPCG.StoredContext.guarded I context systemIndex preconditionerIndex C reference n
      systemRaw preconditionerRaw;
  Ops.IsScalar Ops.RCLikeBlas.machine J ∧
    Ops.IsExactBlas1 id (fun x ↦ True) J ∧
      Ops.IsExactMatvec id (Ops.StoredOperator.denseMatrix n n systemRaw) J ∧
        Krylov.CG.HSPCG.IsExactPreconditioner id
          (Ops.StoredOperator.denseMatrix n n preconditionerRaw) J

Full source on GitHub

Import NLAlib.Krylov.CG.HSPCG.StoredContext.