NLA-lib Explorer

NLAlib.SpectralBisection.readsOnly_storesLevel

Library · theorem

Level inputs read only their reached node fields, absent size words and parameter pair. The supplied inclusions permit one coarse arena footprint for all these reads.

NLAlib.SpectralBisection.readsOnly_storesLevel {K : Type} (M : Ops.Machine K)
  (F : FloatMachine K ℕ ℕ) (n fuel : ℕ) (R0 beta : K) (root : EighNode K) (d : ℕ) (ma sz lv : ℕ × ℕ)
  (pos : ℕ) (G : Ops.Fp)
  (hNode :
    ∀ (a : List Bool) (lo : ℕ) (x : EighNode K),
      a.length = d →
        eighLoc F n fuel R0 beta 0 0 root a = some (lo, x) →
          Ops.Store.inBlock sz.1 (sz.2 + n * d + lo) 1 ⊔
              Ops.Store.inBlock ma.1 (ma.2 + 2 * (n * n) * d + 2 * n * lo) (2 * (x.k * x.k)) ≤
            G)
  (hAbsent : Ops.Store.inBlock sz.1 (sz.2 + n * d) n ≤ G)
  (hParams : Ops.Store.inBlock lv.1 (lv.2 + 2 * d) 2 ≤ G) :
  Ops.Store.ReadsOnly G fun s ↦
    SpectralBisection.StoresLevel M F n fuel R0 beta root d ma sz lv { store := s, pos := pos }

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.LevelRead.