NLA-lib Explorer

NLAlib.HutchPlusPlus.Certification.countedAlgorithm

Library ยท def

Uniform model Work: closed

The certificate with explicit work: when every operation counts one, the work and the span of the run are at most operationCount. The program, the output and the memory are those of algorithm.

NLAlib.HutchPlusPlus.Certification.countedAlgorithm {๐•œ : Type} [RCLike ๐•œ] (dataLength : โ„• โ†’ โ„• โ†’ โ„•)
  (matrix : (m n : โ„•) โ†’ List ๐•œ โ†’ Matrix (Fin m) (Fin n) ๐•œ)
  (workspace : Ops.ExactLinear.Operation โ†’ List โ„• โ†’ โ„•) (w : โ„•)
  (hW : โˆ€ (o : Ops.ExactLinear.Operation) (d : List โ„•), workspace o d โ‰ค w) (stream : โ„•) :
  Ops.Algorithm
    (Ops.ExactLinear.model (HutchPlusPlus.Certification.problem dataLength) dataLength matrix
      (fun x x_1 โ†ฆ 1) workspace)
    (have __src :=
      HutchPlusPlus.Certification.specification dataLength matrix (fun x x_1 โ†ฆ 1) workspace w
        stream;
    { budget := __src.budget, scratch := __src.scratch,
      work := HutchPlusPlus.Certification.operationCount,
      span := HutchPlusPlus.Certification.operationCount, memory := __src.memory,
      good := __src.good })

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.Certification.