NLA-lib Explorer

NLAlib.SpectralBisection.StoresStep.child_inputs

Library · theorem

Every occupied mathematical child has its actual size word and packed input matrix stored at the next level and its constructor-selected slot.

NLAlib.SpectralBisection.StoresStep.child_inputs {K : Type} {M : Ops.Machine K} {R : K}
  {n d lo k : ℕ} {ma ua qa ea sz kd kp : ℕ × ℕ} {step : EighStep K k} {m : Ops.Mem K}
  (h : SpectralBisection.StoresStep M R n d lo ma ua qa ea sz kd kp step m) (b : Bool)
  (hb : step.HasChild b) :
  m.store.get sz.1 (sz.2 + n * (d + 1) + step.childSlot lo b) = some (M.lit ↑(step.childSize b)) ∧
    m.store.readBlock ma.1 (ma.2 + 2 * (n * n) * (d + 1) + 2 * n * step.childSlot lo b)
        (2 * (step.childSize b * step.childSize b)) =
      some ((Ops.EntryCodec.pair K).packFinMatrix (step.childMatrix b))

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.ChildStorage.