NLA-lib Explorer

NLAlib.Schur.size_stmtCost_verifiedSchurWith_le

Library · theorem

The instructions of the verified solver (on every tape): the instrumented static count of NLAlib.Schur.verifiedSchurWith Solve at the order n + 1, the dimensions (n_r, n_q, k, F, T) and zero offsets is at most the solver's count at the same arguments, plus 1619(n + 1)^3 for the check, 32(n + 1)^2 for the copy and 64 for the frames: the verification costs O(n^3) on top of the solver.

NLAlib.Schur.size_stmtCost_verifiedSchurWith_le {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] (Solve : Ops.Stmt O Q) (n nr nq k F T : ℕ) :
  Ops.Count.size
      (Ops.stmtCost (Schur.verifiedSchurWith Solve).instrument
        [n + 1, nr, nq, k, F, T, 0, 0, 0, 0, 0]) ≤
    Ops.Count.size (Ops.stmtCost Solve.instrument [n + 1, nr, nq, k, F, T, 0, 0, 0, 0, 0]) +
          1619 * (n + 1) ^ 3 +
        32 * (n + 1) ^ 2 +
      64

Full source on GitHub

Import NLAlib.Eigensolvers.Schur.Verified.