NLA-lib Explorer

NLAlib.SpectralBisection.storesStep_branchOutcome_iff

Library · theorem

A branch outcome's signed shift already is its retained half-radius; its storage obligation is exactly the tuple of represented output words.

NLAlib.SpectralBisection.storesStep_branchOutcome_iff {K : Type} (M : Ops.Machine K) (dec : K → ℝ)
  (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (n d lo : ℕ) {k kp : ℕ} (hkp : kp ≤ k) (R : K)
  (S : ℕ → ℕ → K × K) (A Pp Pm : Matrix (Fin k) (Fin k) (K × K)) (ma ua qa ea sz kd ks : ℕ × ℕ)
  (m : Ops.Mem K) :
  have step :=
    SpectralBisection.branchOutcome M dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) lo R S A Pp Pm kp hkp;
  SpectralBisection.StoresStep M R n d lo ma ua qa ea sz kd ks step m ↔
    m.readBlocks (SpectralBisection.stepOutputs n d lo ma ua qa ea sz kd ks step)
        (SpectralBisection.stepOutputLengths step) =
      some (SpectralBisection.stepOutputWords M step)

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.State.