NLA-lib Explorer

NLAlib.Krylov.CG.HSCG.Carried.Rounded.Certification.algorithm

Library · def

Standard rounding Oracle: matrix–vector product Work: program manifest

Spectral and precision assumptions on the declared inputs imply total rounded execution and the stored residual-gap, physical-energy and backward-model guarantees. No execution or initialized iterate is assumed. All resources concern the same canonical execution.

NLAlib.Krylov.CG.HSCG.Carried.Rounded.Certification.algorithm {K : Type} [Inhabited K]
  {domain : (Fin 2 → ℕ) → Prop} {admitted : ∃ d, domain d}
  (model :
    Ops.Standard.Model (Krylov.CG.HSCG.Carried.Rounded.Certification.problem domain admitted)
      fun d ↦ d 0)
  (cost : Ops.Standard.Costing) (work scratch : List ℕ → ℕ)
  (hresources : model.resources = Ops.Standard.resources model.scheme cost work scratch)
  (em E a a' : (Fin 2 → ℕ) → ℝ) (hok : ∀ (d : Fin 2 → ℕ), domain d → model.scheme.admits (d 0))
  (haccuracy :
    ∀ (d : Fin 2 → ℕ),
      domain d →
        Ops.Standard.Accuracy (em d) (model.scheme.roundoff model.unit) (E d)
          (model.scheme.errors model.unit) (d 0))
  (hbudget :
    ∀ (d : Fin 2 → ℕ),
      domain d →
        ∀ (x : (Krylov.CG.HSCG.Carried.Rounded.Certification.problem domain admitted).Input d),
          model.scheme.roundoff (model.matvecAllowance d x) ≤ em d * specNorm (model.matrix d x))
  (hOp :
    Ops.Standard.Model.ReadsOperator
      (Krylov.CG.HSCG.Carried.Rounded.Certification.inputs domain admitted) model fun x A ↦ A)
  (ha : ∀ (d : Fin 2 → ℕ), domain d → 0 < a d)
  (hspec :
    ∀ (d : Fin 2 → ℕ),
      domain d →
        ∀ (x : (Krylov.CG.HSCG.Carried.Rounded.Certification.problem domain admitted).Input d),
          spectrum ℝ (model.matrix d x) ⊆ Set.Icc (a d) (a' d))
  (hprec : ∀ (d : Fin 2 → ℕ), domain d → 3 * E d * a' d ≤ a d)
  (hwindow :
    ∀ (d : Fin 2 → ℕ), domain d → ↑(d 1) ^ 2 * √↑(d 1) * E d * (a' d / a d) ^ 2 ≤ 1 / 10 ^ 5) :
  Ops.Algorithm model.access
    (Krylov.CG.HSCG.Carried.Rounded.Certification.specification model E a a')

Full source on GitHub

Import NLAlib.Krylov.CG.HSCG.Carried.Rounded.Certification.