NLA-lib Explorer

NLAlib.SpectralBisection.storesLevel_zero

Library · theorem

Zero-depth initialization stores precisely the mathematical root and no other occupied slot. The root size cell is explicit even for an empty root matrix.

NLAlib.SpectralBisection.storesLevel_zero {K : Type} (M : Ops.Machine K) (F : FloatMachine K ℕ ℕ)
  {n fuel : ℕ} {R0 eps beta : K} {ell : ℕ} (A : Matrix (Fin n) (Fin n) (K × K)) {ma sz lv : ℕ × ℕ}
  {m : Ops.Mem K}
  (hA : m.store.readBlock ma.1 ma.2 (2 * (n * n)) = some ((Ops.EntryCodec.pair K).packFinMatrix A))
  (hSz : m.store.get sz.1 sz.2 = some (M.lit ↑n))
  (hOther : ∀ lo < n, lo ≠ 0 → m.store.get sz.1 (sz.2 + lo) = some (M.lit 0))
  (hParams : m.store.readBlock lv.1 lv.2 2 = some [R0, eps]) :
  SpectralBisection.StoresLevel M F n fuel R0 beta { k := n, A := A, R := R0, ε := eps, ℓ := ell } 0
    ma sz lv m

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.Storage.