NLA-lib Explorer

NLAlib.Krylov.CG.HSPCG.Rounded.Stored.Certification.algorithm_checked

Library · theorem

Standard rounding

What the certificate states: at every admitted size, for every admitted input, every interpretation satisfying the contracts of the model and every tape, the run of the fixed program from the supplied buffers succeeds within the scratch, the budget, the work, the span and the memory of the specification, and its final memory satisfies the output condition (NLAlib.Ops.Inputs.Checked).

NLAlib.Krylov.CG.HSPCG.Rounded.Stored.Certification.algorithm_checked
  (lowerA upperA lowerP upperP : (Fin 2 → ℕ) → ℝ) (domain : (Fin 2 → ℕ) → Prop)
  (admitted : ∃ d, domain d)
  (supply :
    ∀ (d : Fin 2 → ℕ),
      domain d →
        ∃ x, Krylov.CG.HSPCG.Rounded.Stored.Certification.accepts lowerA upperA lowerP upperP d x)
  (M : Ops.Machine ℝ) (u : ℝ) (hM : Ops.StdModel u id M) (hu : 0 ≤ u) (E : (Fin 2 → ℕ) → ℝ)
  (hAccuracy :
    ∀ (d : Fin 2 → ℕ),
      domain d →
        Ops.Standard.Accuracy (Krylov.CG.HSPCG.Rounded.StoredContext.relativeError u (d 0)) u (E d)
          (Ops.Blas.seq.err u) (d 0))
  (ha : ∀ (d : Fin 2 → ℕ), domain d → 0 < lowerA d)
  (hp : ∀ (d : Fin 2 → ℕ), domain d → 0 < lowerP d)
  (hAp : ∀ (d : Fin 2 → ℕ), domain d → 6 * E d * upperA d ≤ lowerA d)
  (hPp : ∀ (d : Fin 2 → ℕ), domain d → 6 * E d * upperP d ≤ lowerP d)
  (hwindow :
    ∀ (d : Fin 2 → ℕ),
      domain d → E d * (1024 * (upperA d / lowerA d) * (upperP d / lowerP d)) ^ (d 1 + 1) ≤ 1 / 2) :
  (Krylov.CG.HSPCG.Rounded.Stored.Certification.inputs lowerA upperA lowerP upperP domain admitted
        supply).Checked
    (Krylov.CG.HSPCG.Rounded.Stored.Certification.algorithm lowerA upperA lowerP upperP domain
      admitted supply M u hM hu E hAccuracy ha hp hAp hPp hwindow)

Full source on GitHub

Import NLAlib.Krylov.CG.HSPCG.Rounded.StoredCertification.