NLAlib.SpectralBisection.initialSizes_writes
Library · theorem
The root dimension and zero literals are the actual stored words. Numerical exactness of decoding them is not needed to execute initialization. A fragment of NLAlib.SpectralBisection.bisectionRoutine.
NLAlib.SpectralBisection.initialSizes_writes {K Op Tst : Type} [Ops.Has Ops.IndexOp Op]
{M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hIndex : Ops.IsIndexLit M I) {τ : Ops.Tape K}
{n L b off : ℕ} {m : Ops.Mem K} (hroom : off + (n * (L + 2) + 1) ≤ m.store.len b) :
Ops.Writes Ops.Mode.total I τ SpectralBisection.initialSizes (Ops.Env.frame [n, L] [(b, off)])
(Ops.Store.inBlock b off (n * (L + 2) + 1))
(fun μ ↦
μ.pos = m.pos ∧
μ.store.readBlock b off (n * (L + 2) + 1) =
some
(List.map (fun i ↦ if i = 0 then M.lit ↑n else M.lit 0) (List.range (n * (L + 2) + 1))))
mImport NLAlib.Eigensolvers.SpectralBisection.InitialSizes.