NLA-lib Explorer

NLAlib.SpectralBisection.upNode_writes_leaf

Library · theorem

A stored leaf already has its mathematical output, and its actual metadata dispatch executes no arithmetic or matrix calls. A fragment of NLAlib.SpectralBisection.bisectionRoutine.

NLAlib.SpectralBisection.upNode_writes_leaf {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.MatrixOp Op] [Ops.Has Ops.IdxTst Tst] {M : Ops.Machine K} {dec : K → ℝ}
  {I : Ops.Interp Op Tst K} (hQ : Ops.IsToNat dec I) {τ : Ops.Tape K} {m : Ops.Mem K} {n d lo k : ℕ}
  {R : K} {ma ua qa ea sz kd kp t : ℕ × ℕ} (U : Matrix (Fin k) (Fin k) (K × K)) (values : Fin k → K)
  (hLit : dec (M.lit 1) = 1)
  (hStep :
    SpectralBisection.StoresStep M R n d lo ma ua qa ea sz kd kp (EighStep.leaf U values) m) :
  Ops.Writes Ops.Mode.total I τ SpectralBisection.upNode
    (Ops.Env.frame [n, d, lo, k] [ua, qa, ea, kd, kp, t])
    (Ops.Fp.blocks (SpectralBisection.resultOperands n d lo ua ea)
      (SpectralBisection.resultLengths k))
    (fun m' ↦ m'.pos = m.pos ∧ SpectralBisection.StoresResult n d lo ua ea (U, values) m'.store) m

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.UpNode.