NLA-lib Explorer

NLAlib.SpectralBisection.matrixWorkBisectionAlgorithm

Library · def

Uniform model Work: program manifest

The fixed dense solver is total on every admitted raw input and tape, with exact stored word output, tape consumption and cleanup. Root sizes are at least two and natural literals through max n 4 decode exactly. Matrix costs are dominated by a monotone superadditive largest-dimension function; scratch uses the independent polynomial plus finite workspace envelope. Scalar, sampling, literal, query and structural work retain their full static charges. The matrix-cost domination is global, including empty and all-zero dimension lists.

NLAlib.SpectralBisection.matrixWorkBisectionAlgorithm {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)) :
  Ops.Algorithm
    (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.