NLA-lib Explorer

NLAlib.Krylov.Lanczos.Certification.algorithm

Library · def

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

Declared primitive contracts and explicit spectral-free Lanczos precision assumptions certify successful canonical execution for every admitted size and every supplied word input. Symmetry, scheme applicability, a common accuracy envelope and the normwise matvec allowance are mathematical data/model hypotheses. No execution or desired output is assumed. The same actual execution satisfies all instruction, work, sequential span and payload bounds.

NLAlib.Krylov.Lanczos.Certification.algorithm {K : Type} [Inhabited K] {domain : (Fin 2 → ℕ) → Prop}
  {admitted : ∃ d, domain d}
  (model : Ops.Standard.Model (Krylov.Lanczos.Certification.problem domain admitted) fun d ↦ d 0)
  (cost : Ops.Standard.Costing) (matvecWork matvecScratch : List ℕ → ℕ)
  (hresources : model.resources = Ops.Standard.resources model.scheme cost matvecWork matvecScratch)
  (em E : (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.Lanczos.Certification.problem domain admitted).Input d),
          model.scheme.roundoff (model.matvecAllowance d x) ≤ em d * specNorm (model.matrix d x))
  (hAT :
    ∀ (d : Fin 2 → ℕ),
      domain d →
        ∀ (x : (Krylov.Lanczos.Certification.problem domain admitted).Input d),
          (model.matrix d x)ᵀ = model.matrix d x) :
  Ops.Algorithm model.access (Krylov.Lanczos.Certification.specification model E)

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Certification.