NLA-lib Explorer

NLAlib.SpectralBisection.storesLevel_zero_of_initialize_read

Library · theorem

Interpret the initializer's ordinary tuple of actual reads as the root level.

NLAlib.SpectralBisection.storesLevel_zero_of_initialize_read {K : Type} (M : Ops.Machine K)
  (F : FloatMachine K ℕ ℕ) (fuel : ℕ) {n L : ℕ} (R0 eps beta : K)
  (A : Matrix (Fin n) (Fin n) (K × K)) {c sz ma lv : ℕ × ℕ} {μ : Ops.Mem K}
  (hread :
    μ.readBlocks [c, sz, ma, lv] [5, n * (L + 2) + 1, 2 * (n * n), 2] =
      some
        [[M.lit 1, M.lit 2, M.div (M.lit 1) (M.lit 2), M.neg (M.lit 1), M.sqrtHalf],
          List.map (fun i ↦ if i = 0 then M.lit ↑n else M.lit 0) (List.range (n * (L + 2) + 1)),
          (Ops.EntryCodec.pair K).packFinMatrix A, [R0, eps]]) :
  SpectralBisection.StoresLevel M F n fuel R0 beta { k := n, A := A, R := R0, ε := eps, ℓ := L } 0
    ma sz lv μ

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.InitialLevel.