NLA-lib Explorer

NLAlib.SpectralBisection.StoresStep.kind_read

Library · theorem

Read the actual machine word denoting the outcome constructor.

NLAlib.SpectralBisection.StoresStep.kind_read {K : Type} {M : Ops.Machine K} {R : K} {n d lo k : ℕ}
  {ma ua qa ea sz kd ks : ℕ × ℕ} {step : EighStep K k} {m : Ops.Mem K}
  (h : SpectralBisection.StoresStep M R n d lo ma ua qa ea sz kd ks step m) :
  m.store.get kd.1 (kd.2 + n * d + lo) =
    some
      (M.lit
        ↑(match step, h with
          | EighStep.leaf U d_1, h => 1
          | EighStep.shift side A' σ, h => if side = true then 2 else 3
          | EighStep.split kp h Qp Qm Ap Am σ, h_1 => 4))

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.UpStepData.