NLA-lib Explorer

NLAlib.SpectralBisection.assemble_toFloatMachine_samplers

Library · theorem

Assembly uses only scalar arithmetic and matrix multiplication, so changing sampler seed types or sampler functions does not change an assembled result.

NLAlib.SpectralBisection.assemble_toFloatMachine_samplers {K Su Sg Vu Vg : Type} (M : Ops.Machine K)
  (dec : K → ℝ) (mm : MatMulMap (K × K)) (qr : QRMap (K × K)) (unif : K → Su → K)
  (normal : Sg → K × K) (unif' : K → Vu → K) (normal' : Vg → K × K) {k : ℕ} (step : EighStep K k)
  (children :
    (side : Bool) →
      Matrix (Fin (step.childSize side)) (Fin (step.childSize side)) (K × K) ×
        (Fin (step.childSize side) → K)) :
  EighStep.assemble (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal) step
      children =
    EighStep.assemble (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif' normal') step
      children

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.UpReference.