NLA-lib Explorer

NLAlib.SpectralBisection.disj_downPrefix_pending

Library · theorem

Completed slot reservations and a fresh scalar scratch word preserve every pending size query and active node input. Freshness is a buffer-handle bound, so no input capacity arithmetic is needed to protect the reads from scratch.

NLAlib.SpectralBisection.disj_downPrefix_pending {K : Type} {m : Ops.Mem K} {n L d : ℕ}
  {c ma ua qa ea sz kd kp lv su sg par t : ℕ × ℕ} {ks : ℕ → ℕ} (hd : d ≤ L)
  (hslot : ∀ lo < n, lo + ks lo ≤ n)
  (h :
    Ops.Fp.Apart (SpectralBisection.arenaOperands c ma ua qa ea sz kd kp lv su sg)
      (SpectralBisection.arenaLengths n L))
  (hPar :
    (Ops.Fp.blocks (SpectralBisection.arenaOperands c ma ua qa ea sz kd kp lv su sg)
          (SpectralBisection.arenaLengths n L)).Disj
      (Ops.Store.inBlock par.1 par.2 3))
  (hl : m.Live [par, lv, su, sg, ma, ua, qa, ea, sz, kd, kp, c]) (ht : List.length m.store ≤ t.1)
  (lo : ℕ) (hlo : lo < n) :
  (Ops.Fp.loopPrefix (fun j ↦ SpectralBisection.downRegion n d j (ks j) ma ua qa ea sz kd kp) lo ⊔
        Ops.Store.inBlock t.1 (t.2 + 4) 1).Disj
    (Ops.Store.inBlock sz.1 (sz.2 + n * d + lo) 1 ⊔
      if 0 < ks lo then
        Ops.Fp.blocks (SpectralBisection.nodeInputs n d lo par lv su sg ma c)
          (SpectralBisection.nodeInputLengths n (ks lo))
      else ⊥)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.DownArena.