NLA-lib Explorer

NLAlib.SpectralBisection.certifies_work

Library · theorem

Under exact bounded natural literals, admitted root sizes at least two and the declared monotone superadditive matrix-cost domination, the explicit fixed program succeeds with the word, storage, full instruction, work and sequential-span claims of its specification.

NLAlib.SpectralBisection.certifies_work {K : Type} [Inhabited K] (M : Ops.Machine K) (dec : K → ℝ)
  (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (domain : (Fin 3 → ℕ) → Prop)
  (admitted : ∃ d, domain d) (matrixWork matrixWorkspace : Ops.MatrixOp → List ℕ → ℕ) (T : ℕ → ℕ)
  (hLit : ∀ (d : Fin 3 → ℕ), domain d → Ops.IsExactNatLit dec M (max (d 0) 4))
  (hN : ∀ (d : Fin 3 → ℕ), domain d → 2 ≤ d 0) (hT : Monotone T)
  (hadd : ∀ (i j : ℕ), T i + T j ≤ T (i + j))
  (hMatrix : ∀ (o : Ops.MatrixOp) (ds : List ℕ), matrixWork o ds ≤ T (List.foldr max 0 ds)) :
  SpectralBisection.bisectionProgram.Certifies
    (Ops.Dense.functionalModel (SpectralBisection.problem domain admitted) M dec
      (Ops.EntryCodec.pair K) (fun {l m n} ↦ mm) (fun {m n} ↦ qr)
      (Ops.Dense.resources matrixWork matrixWorkspace))
    (SpectralBisection.workSpecification M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) domain admitted
      matrixWorkspace T)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.WorkCertification.