NLA-lib Explorer

NLAlib.Schur.schurPipelineAlgorithm

Library · def

This statement changed in the recorded rename: 2026-11-merge-schur.

Uniform model Work: closed

The dense Schur pipeline as a canonical certificate, from component data: the fixed program NLAlib.Schur.schurPipelineProgram of any four stages, over the model NLAlib.SmallEig.smallEigModel with the unit costs, given that it passes the storage discipline (ht), its routine meets the every-tape specification NLAlib.Schur.schurPipelineSpec under every interpretation of the model (hmeets: it terminates and writes only the matrix, the accumulator and the flag), and the stages' instrumented static counts at the pipeline's offsets are at most W_\bullet, succeeds within the static budget, scratch and memory, with work and span at most NLAlib.Schur.schurPipelineWork of the W_\bullet. Algorithm: dense-schur (run model)

NLAlib.Schur.schurPipelineAlgorithm {Mch : Ops.Machine ℝ} {words : ℕ → ℝ → ℝ → List ℝ}
  {sizes : ℕ → ℝ → ℝ → Fin 6 → ℕ} {admitted : ∃ d, Schur.SchurSizes Mch sizes d} (sU : ℕ)
  (Nm Reg Red Core : Ops.Stmt SmallEig.SmallEigOp ShiftedQR.Tst)
  (WNm WReg WRed WCore : (Fin 6 → ℕ) → ℕ)
  (hNm : ∀ (d : Fin 6 → ℕ), Ops.Count.size (Ops.stmtCost Nm.instrument [d 0 + 1, 0, 0]) ≤ WNm d)
  (hReg :
    ∀ (d : Fin 6 → ℕ),
      Ops.Count.size (Ops.stmtCost Reg.instrument [d 0 + 1, d 1, 0, 0, 0]) ≤ WReg d)
  (hRed :
    ∀ (d : Fin 6 → ℕ), Ops.Count.size (Ops.stmtCost Red.instrument [d 0 + 1, 0, 0, 0, 0]) ≤ WRed d)
  (hCore :
    ∀ (d : Fin 6 → ℕ),
      Ops.Count.size
          (Ops.stmtCost Core.instrument [d 0 + 1, d 2, d 3, d 4, d 5, 0, d 1, 0, 0, 0, 0]) ≤
        WCore d)
  (hwords : ∀ (n : ℕ) (δ φ : ℝ), (words n δ φ).length = sizes n δ φ 1 + sizes n δ φ 2)
  (ht :
    (Schur.schurPipelineProgram Nm Reg Red Core).wellTyped SmallEig.smallEigResources
        (Schur.schurPipelineProblem Mch words sizes admitted).formats =
      true)
  (hmeets :
    ∀ (d : Fin 6 → ℕ),
      Schur.SchurSizes Mch sizes d →
        ∀ (x : (Schur.schurPipelineProblem Mch words sizes admitted).Input d)
          (I : Ops.Interp SmallEig.SmallEigOp ShiftedQR.Tst ℝ),
          (SmallEig.smallEigModel (Schur.schurPipelineProblem Mch words sizes admitted) Mch
                  sU).contracts
              d x I →
            (Schur.schurPipelineRoutine Nm Reg Red Core).Meets I
              (Schur.schurPipelineSpec (words (d 0) (↑x).1.δ (↑x).1.φ) (List.ofFn d))) :
  Ops.Algorithm
    (SmallEig.smallEigModel (Schur.schurPipelineProblem Mch words sizes admitted) Mch sU)
    (Schur.schurPipelineSpecification Mch words sizes admitted Nm Reg Red Core WNm WReg WRed WCore)

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Certification.