NLA-lib Explorer

NLAlib.SpectralBisection.initialConstants_writes

Library · theorem

Capacity alone suffices to compute the actual constants; exactness of their decoding is a separate numerical hypothesis. The operations consume no random words. A fragment of NLAlib.SpectralBisection.bisectionRoutine.

NLAlib.SpectralBisection.initialConstants_writes {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.IndexOp Op] {M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I)
  (hIndex : Ops.IsIndexLit M I) {τ : Ops.Tape K} {b off : ℕ} {m : Ops.Mem K}
  (hroom : off + 5 ≤ m.store.len b) :
  Ops.Writes Ops.Mode.total I τ SpectralBisection.initialConstants (Ops.Env.frame [] [(b, off)])
    (Ops.Store.inBlock b off 5)
    (fun μ ↦
      μ.pos = m.pos ∧
        μ.store.readBlock b off 5 =
          some
            [M.lit 1, M.lit 2, M.div (M.lit 1) (M.lit 2), M.neg (M.lit 1),
              M.sqrt (M.div (M.lit 1) (M.lit 2))])
    m

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.InitialConstants.